mirror of
https://github.com/penpot/penpot.git
synced 2025-07-24 06:27:14 +02:00
🐛 Some fixes to SVG imports
This commit is contained in:
parent
3301148da6
commit
61c111d5ae
9 changed files with 162 additions and 74 deletions
|
@ -415,11 +415,11 @@
|
|||
"application/pdf" "pdf"
|
||||
nil))
|
||||
|
||||
(defn set-attribute [^js node ^string attr value]
|
||||
(defn set-attribute! [^js node ^string attr value]
|
||||
(when (some? node)
|
||||
(.setAttribute node attr value)))
|
||||
|
||||
(defn remove-attribute [^js node ^string attr]
|
||||
(defn remove-attribute! [^js node ^string attr]
|
||||
(when (some? node)
|
||||
(.removeAttribute node attr)))
|
||||
|
||||
|
|
|
@ -715,7 +715,8 @@
|
|||
(gmt/matrix)
|
||||
|
||||
;; Paths doesn't have transform so we have to transform its gradients
|
||||
(if (= :path (:type shape))
|
||||
(if (or (= :path (:type shape))
|
||||
(= :group (:type shape)))
|
||||
(gsh/transform-matrix shape)
|
||||
(gmt/matrix))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue