🐛 Propagate changes of token values in external library

This commit is contained in:
Andrés Moya 2026-07-31 17:52:02 +02:00
parent f5b533ea97
commit 67f0111210
2 changed files with 6 additions and 3 deletions

View File

@ -24,6 +24,7 @@
[app.main.data.workspace.layout :as dwly]
[app.main.data.workspace.libraries :as dwl]
[app.main.data.workspace.texts :as dwt]
[app.main.data.workspace.tokens.propagation :as dwtp]
[app.main.router :as rt]
[app.util.globals :refer [global]]
[app.util.mouse :as mse]
@ -334,4 +335,5 @@
(watch [_ state _]
(when (contains? (:files state) file-id)
(rx/of (dwl/ext-library-changed file-id modified-at revn changes)
(dwl/notify-sync-file))))))
(dwl/notify-sync-file)
(dwtp/propagate-workspace-tokens))))))

View File

@ -25,7 +25,7 @@
[app.main.data.style-dictionary :as sd]
[app.main.data.tinycolor :as tinycolor]
[app.main.data.tokenscript :as ts]
[app.main.data.workspace :as udw]
;; [app.main.data.workspace :as udw]
[app.main.data.workspace.colors :as wdc]
[app.main.data.workspace.shape-layout :as dwsl]
[app.main.data.workspace.shapes :as dwsh]
@ -93,7 +93,8 @@
(ptk/reify ::update-shape-rotation
ptk/WatchEvent
(watch [_ _ _]
(when (number? value)
;; TODOstatus see a way of avoiding the circular dependency of using here main.data.workspace
#_(when (number? value)
(rx/of
(udw/trigger-bounding-box-cloaking shape-ids)
(udw/increase-rotation shape-ids value nil