chore: formatting
This commit is contained in:
parent
4e54e474f9
commit
c92ca306b4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user