From f5956794762a2b86565c93c73429d8558c9d50e7 Mon Sep 17 00:00:00 2001 From: Eugene Obrezkov Date: Sat, 9 May 2020 15:09:54 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Deck=20uses=20an=20old=20?= =?UTF-8?q?call=20signature=20for=20creating=20slides?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/kittik-deck/src/Deck.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {