mirror of
https://github.com/penpot/penpot.git
synced 2025-05-31 09:16:14 +02:00
commit
13773d829a
2 changed files with 26 additions and 18 deletions
|
@ -203,8 +203,7 @@
|
||||||
(mf/deps value-str)
|
(mf/deps value-str)
|
||||||
(fn []
|
(fn []
|
||||||
(when-let [input-node (mf/ref-val ref)]
|
(when-let [input-node (mf/ref-val ref)]
|
||||||
(when-not (dom/active? input-node)
|
(dom/set-value! input-node value-str))))
|
||||||
(dom/set-value! input-node value-str)))))
|
|
||||||
|
|
||||||
(mf/use-effect
|
(mf/use-effect
|
||||||
(mf/deps handle-blur)
|
(mf/deps handle-blur)
|
||||||
|
|
|
@ -49,16 +49,25 @@
|
||||||
|
|
||||||
[width height]
|
[width height]
|
||||||
(if (or resize-x? resize-y?)
|
(if (or resize-x? resize-y?)
|
||||||
(let [pc (-> (gpt/point x y)
|
(let [pc (cond-> (gpt/point x y)
|
||||||
|
(some? transform)
|
||||||
(gpt/transform transform)
|
(gpt/transform transform)
|
||||||
|
|
||||||
|
(some? current-transform)
|
||||||
(gpt/transform current-transform))
|
(gpt/transform current-transform))
|
||||||
|
|
||||||
pw (-> (gpt/point (+ x width) y)
|
pw (cond-> (gpt/point (+ x width) y)
|
||||||
|
(some? transform)
|
||||||
(gpt/transform transform)
|
(gpt/transform transform)
|
||||||
|
|
||||||
|
(some? current-transform)
|
||||||
(gpt/transform current-transform))
|
(gpt/transform current-transform))
|
||||||
|
|
||||||
ph (-> (gpt/point x (+ y height))
|
ph (cond-> (gpt/point x (+ y height))
|
||||||
|
(some? transform)
|
||||||
(gpt/transform transform)
|
(gpt/transform transform)
|
||||||
|
|
||||||
|
(some? current-transform)
|
||||||
(gpt/transform current-transform))]
|
(gpt/transform current-transform))]
|
||||||
[(gpt/distance pc pw) (gpt/distance pc ph)])
|
[(gpt/distance pc pw) (gpt/distance pc ph)])
|
||||||
[width height])]
|
[width height])]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue