From c049938101e02772b7be2cb0a7e8b27594c3e257 Mon Sep 17 00:00:00 2001 From: MinHo Lim Date: Thu, 19 Jun 2025 14:12:39 +0900 Subject: [PATCH] fix isInit --- src/patchmap.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/patchmap.js b/src/patchmap.js index f29642d6..abfa0e04 100644 --- a/src/patchmap.js +++ b/src/patchmap.js @@ -50,6 +50,10 @@ class Patchmap { return this._isInit; } + set isInit(value) { + this._isInit = value; + } + get undoRedoManager() { return this._undoRedoManager; } @@ -93,7 +97,7 @@ class Patchmap { initCanvas(element, this.app); this._resizeObserver = initResizeObserver(element, this.app, this.viewport); - this._isInit = true; + this.isInit = true; } destroy() { @@ -109,7 +113,7 @@ class Patchmap { this._app = null; this._viewport = null; this._resizeObserver = null; - this._isInit = false; + this.isInit = false; this._theme = themeStore(); this._undoRedoManager = new UndoRedoManager(); this._animationContext = gsap.context(() => {});