diff --git a/packages/kittik-deck/src/Deck.ts b/packages/kittik-deck/src/Deck.ts index 5b16e38..c8d16ac 100644 --- a/packages/kittik-deck/src/Deck.ts +++ b/packages/kittik-deck/src/Deck.ts @@ -124,11 +124,11 @@ export class Deck extends EventEmitter { const globalShapes = declaration.shapes ?? []; const globalAnimations = declaration.animations ?? []; - declaration.slides.forEach((slide) => this.addSlide(Slide.create(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 {