From d42380a9a4e76ecd0360b43e90dd8c1a35f0a5ab Mon Sep 17 00:00:00 2001 From: MinHo Lim Date: Wed, 20 Aug 2025 15:48:11 +0900 Subject: [PATCH 1/2] include in transformer init --- src/patchmap.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/patchmap.js b/src/patchmap.js index 4b90d455..161f18bc 100644 --- a/src/patchmap.js +++ b/src/patchmap.js @@ -115,6 +115,7 @@ class Patchmap { viewport: viewportOptions = {}, theme: themeOptions = {}, assets: assetsOptions = [], + transformer, } = opts; this.undoRedoManager._setHotkeys(); @@ -127,6 +128,7 @@ class Patchmap { this._resizeObserver = initResizeObserver(element, this.app, this.viewport); this._stateManager = new StateManager(this); + this.transformer = transformer; this.isInit = true; } From eeb7b3a31a66a83471ed388a1d93bd7ffa95ea2b Mon Sep 17 00:00:00 2001 From: MinHo Lim Date: Wed, 20 Aug 2025 15:55:55 +0900 Subject: [PATCH 2/2] fix --- src/patchmap.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/patchmap.js b/src/patchmap.js index 161f18bc..52da405d 100644 --- a/src/patchmap.js +++ b/src/patchmap.js @@ -151,6 +151,7 @@ class Patchmap { this._theme = themeStore(); this._undoRedoManager = new UndoRedoManager(); this._animationContext = gsap.context(() => {}); + this._transformer = null; } draw(data) {