mirror of
https://github.com/penpot/penpot.git
synced 2025-02-15 11:38:24 -05:00
🐛 Fix transform text
This commit is contained in:
parent
f13c82da2a
commit
5d8982c734
1 changed files with 18 additions and 9 deletions
|
@ -49,17 +49,26 @@
|
||||||
|
|
||||||
[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)
|
||||||
(gpt/transform transform)
|
(some? transform)
|
||||||
(gpt/transform current-transform))
|
(gpt/transform transform)
|
||||||
|
|
||||||
pw (-> (gpt/point (+ x width) y)
|
(some? current-transform)
|
||||||
(gpt/transform transform)
|
(gpt/transform current-transform))
|
||||||
(gpt/transform current-transform))
|
|
||||||
|
|
||||||
ph (-> (gpt/point x (+ y height))
|
pw (cond-> (gpt/point (+ x width) y)
|
||||||
(gpt/transform transform)
|
(some? transform)
|
||||||
(gpt/transform current-transform))]
|
(gpt/transform transform)
|
||||||
|
|
||||||
|
(some? current-transform)
|
||||||
|
(gpt/transform current-transform))
|
||||||
|
|
||||||
|
ph (cond-> (gpt/point x (+ y height))
|
||||||
|
(some? transform)
|
||||||
|
(gpt/transform transform)
|
||||||
|
|
||||||
|
(some? 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
Reference in a new issue