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';
|
||||
|
||||
const decorate = compose(
|
||||
simpleState('x'),
|
||||
simpleState('y'),
|
||||
simpleState('x', {
|
||||
track: true,
|
||||
}),
|
||||
simpleState('y', {
|
||||
track: true,
|
||||
}),
|
||||
);
|
||||
|
||||
class PositionedBase extends Trait {
|
||||
|
|
Loading…
Reference in New Issue
Block a user