feat: track position

This commit is contained in:
cha0s 2019-03-18 20:05:00 -05:00
parent 77ec2a3c04
commit 73a91efbeb

View File

@ -3,8 +3,12 @@ import {compose} from '@avocado/core';
import {simpleState, Trait} from '../trait';
const decorate = compose(
simpleState('x'),
simpleState('y'),
simpleState('x', {
track: true,
}),
simpleState('y', {
track: true,
}),
);
class PositionedBase extends Trait {