From 73a91efbeb7ab4120369cd2103b3c13bf8fb0644 Mon Sep 17 00:00:00 2001 From: cha0s Date: Mon, 18 Mar 2019 20:05:00 -0500 Subject: [PATCH] feat: track position --- packages/entity/traits/positioned.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/entity/traits/positioned.js b/packages/entity/traits/positioned.js index 9c9adca..cb6ba3f 100644 --- a/packages/entity/traits/positioned.js +++ b/packages/entity/traits/positioned.js @@ -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 {