chore: formatting

This commit is contained in:
cha0s 2019-03-20 19:48:52 -05:00
parent 4e54e474f9
commit c92ca306b4

View File

@ -114,7 +114,7 @@ class AnimatedBase extends Trait {
const animations = this.params.get('animations');
const {offset} = animations[key];
const {animation} = animationView;
const size = Rectangle.size(animation.sourceRectangle)
const size = Rectangle.size(animation.sourceRectangle);
const halfway = Vector.scale(size, -0.5);
animationView.position = Vector.add(halfway, offset);
this.entity.container.addChild(animationView);
@ -162,7 +162,7 @@ class AnimatedBase extends Trait {
traitAdded: (trait) => {
if (-1 === [
'animated',
'graphical'
'graphical',
].indexOf(trait.constructor.type())) {
return;
}