mirror of
https://github.com/penpot/penpot.git
synced 2026-09-10 14:09:17 +00:00
Merge pull request #8616 from penpot/alotor-fix-live-update-pvalues
🐛 Fix problem with update live sidebar values
This commit is contained in:
commit
fe9f1d63ad
@ -15,6 +15,7 @@
|
|||||||
[app.main.data.helpers :as dsh]
|
[app.main.data.helpers :as dsh]
|
||||||
[app.main.data.workspace :as udw]
|
[app.main.data.workspace :as udw]
|
||||||
[app.main.data.workspace.common :as dwc]
|
[app.main.data.workspace.common :as dwc]
|
||||||
|
[app.main.features :as features]
|
||||||
[app.main.refs :as refs]
|
[app.main.refs :as refs]
|
||||||
[app.main.store :as st]
|
[app.main.store :as st]
|
||||||
[app.main.ui.context :as ctx]
|
[app.main.ui.context :as ctx]
|
||||||
@ -39,7 +40,6 @@
|
|||||||
[app.main.ui.workspace.sidebar.options.shapes.text :as text]
|
[app.main.ui.workspace.sidebar.options.shapes.text :as text]
|
||||||
[app.util.i18n :as i18n :refer [tr]]
|
[app.util.i18n :as i18n :refer [tr]]
|
||||||
[okulary.core :as l]
|
[okulary.core :as l]
|
||||||
|
|
||||||
[rumext.v2 :as mf]))
|
[rumext.v2 :as mf]))
|
||||||
|
|
||||||
;; --- Options
|
;; --- Options
|
||||||
@ -50,10 +50,15 @@
|
|||||||
(let [shape-type (dm/get-prop shape :type)
|
(let [shape-type (dm/get-prop shape :type)
|
||||||
shape-id (dm/get-prop shape :id)
|
shape-id (dm/get-prop shape :id)
|
||||||
|
|
||||||
|
wasm-modifiers (mf/deref refs/workspace-wasm-modifiers)
|
||||||
modifiers (mf/deref refs/workspace-modifiers)
|
modifiers (mf/deref refs/workspace-modifiers)
|
||||||
modifiers (dm/get-in modifiers [shape-id :modifiers])
|
|
||||||
|
|
||||||
shape (gsh/transform-shape shape modifiers)
|
shape
|
||||||
|
(if (features/active-feature? @st/state "render-wasm/v1")
|
||||||
|
(let [wasm-modifiers (into {} wasm-modifiers)]
|
||||||
|
(gsh/apply-transform shape (get wasm-modifiers shape-id)))
|
||||||
|
(gsh/transform-shape shape (dm/get-in modifiers [shape-id :modifiers])))
|
||||||
|
|
||||||
props (mf/spread-props props {:shape shape :file-id file-id :page-id page-id :libraries libraries})]
|
props (mf/spread-props props {:shape shape :file-id file-id :page-id page-id :libraries libraries})]
|
||||||
|
|
||||||
(case shape-type
|
(case shape-type
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user