mirror of
https://github.com/penpot/penpot.git
synced 2025-07-30 09:48:32 +02:00
🐛 Fix incorrect selrect calcultation from shape path
This commit is contained in:
parent
b05421755f
commit
dec622600d
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
||||||
(ns app.common.geom.shapes.path
|
(ns app.common.geom.shapes.path
|
||||||
(:require
|
(:require
|
||||||
[app.common.data :as d]
|
[app.common.data :as d]
|
||||||
|
[app.common.data.macros :as dm]
|
||||||
[app.common.geom.matrix :as gmt]
|
[app.common.geom.matrix :as gmt]
|
||||||
[app.common.geom.point :as gpt]
|
[app.common.geom.point :as gpt]
|
||||||
[app.common.geom.rect :as grc]
|
[app.common.geom.rect :as grc]
|
||||||
|
@ -975,7 +976,7 @@
|
||||||
flip-y (gmt/scale (gpt/point 1 -1))
|
flip-y (gmt/scale (gpt/point 1 -1))
|
||||||
:always (gmt/multiply (:transform-inverse shape (gmt/matrix))))
|
:always (gmt/multiply (:transform-inverse shape (gmt/matrix))))
|
||||||
|
|
||||||
center (or (gco/shape->center shape)
|
center (or (some-> (dm/get-prop shape :selrect) grc/rect->center)
|
||||||
(content-center content))
|
(content-center content))
|
||||||
|
|
||||||
base-content (transform-content
|
base-content (transform-content
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue