feat: track position
This commit is contained in:
parent
77ec2a3c04
commit
73a91efbeb
|
@ -3,8 +3,12 @@ import {compose} from '@avocado/core';
|
||||||
import {simpleState, Trait} from '../trait';
|
import {simpleState, Trait} from '../trait';
|
||||||
|
|
||||||
const decorate = compose(
|
const decorate = compose(
|
||||||
simpleState('x'),
|
simpleState('x', {
|
||||||
simpleState('y'),
|
track: true,
|
||||||
|
}),
|
||||||
|
simpleState('y', {
|
||||||
|
track: true,
|
||||||
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
class PositionedBase extends Trait {
|
class PositionedBase extends Trait {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user