mirror of
https://github.com/penpot/penpot.git
synced 2025-07-18 15:47:14 +02:00
🐛 Fix problem when moving svgs
This commit is contained in:
parent
6c4d757ecb
commit
744c60cdef
2 changed files with 9 additions and 7 deletions
|
@ -72,13 +72,6 @@
|
||||||
(and (some? shape)
|
(and (some? shape)
|
||||||
(= :bool (dm/get-prop shape :type))))
|
(= :bool (dm/get-prop shape :type))))
|
||||||
|
|
||||||
(defn group-like-shape?
|
|
||||||
([objects id]
|
|
||||||
(group-like-shape? (get objects id)))
|
|
||||||
([shape]
|
|
||||||
(or ^boolean (group-shape? shape)
|
|
||||||
^boolean (bool-shape? shape))))
|
|
||||||
|
|
||||||
(defn text-shape?
|
(defn text-shape?
|
||||||
[shape]
|
[shape]
|
||||||
(and (some? shape)
|
(and (some? shape)
|
||||||
|
@ -123,6 +116,14 @@
|
||||||
([shape]
|
([shape]
|
||||||
(d/not-empty? (:shapes shape))))
|
(d/not-empty? (:shapes shape))))
|
||||||
|
|
||||||
|
(defn group-like-shape?
|
||||||
|
([objects id]
|
||||||
|
(group-like-shape? (get objects id)))
|
||||||
|
([shape]
|
||||||
|
(or ^boolean (group-shape? shape)
|
||||||
|
^boolean (bool-shape? shape)
|
||||||
|
^boolean (and (svg-raw-shape? shape) (has-children? shape)))))
|
||||||
|
|
||||||
;; ---- ACCESSORS
|
;; ---- ACCESSORS
|
||||||
|
|
||||||
(defn get-children-ids
|
(defn get-children-ids
|
||||||
|
|
|
@ -64,6 +64,7 @@
|
||||||
font-size: $fs-10;
|
font-size: $fs-10;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
margin-inline-start: $s-4;
|
margin-inline-start: $s-4;
|
||||||
|
color: $df-primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
.attr-row {
|
.attr-row {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue