Skip to content

Commit

Permalink
style: 💄 move Slide.create() to the nextline in Deck
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaiklor committed May 9, 2020
1 parent 104953f commit 999f82e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/kittik-deck/src/Deck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,13 @@ export class Deck extends EventEmitter {
const globalShapes = declaration.shapes ?? [];
const globalAnimations = declaration.animations ?? [];

declaration.slides.forEach((slide) => this.addSlide(Slide.create({
...slide,
shapes: globalShapes.concat(slide.shapes),
animations: globalAnimations.concat(slide.animations ?? [])
}, this.canvas)));
declaration.slides.forEach((slide) => this.addSlide(
Slide.create({
...slide,
shapes: globalShapes.concat(slide.shapes),
animations: globalAnimations.concat(slide.animations ?? [])
}, this.canvas)
));
}

private initKeyboard (): void {
Expand Down

0 comments on commit 999f82e

Please sign in to comment.