mirror of
https://github.com/penpot/penpot.git
synced 2025-05-24 04:26:12 +02:00
🐛 Fix problems with imported svgs
This commit is contained in:
parent
a189dc8243
commit
49c2cb985c
3 changed files with 69 additions and 29 deletions
|
@ -35,8 +35,9 @@
|
|||
(map #(get childs %))
|
||||
(filter #(not (:hidden %)))
|
||||
(map #(stp/convert-to-path % childs))
|
||||
(mapv :content)
|
||||
(mapv pb/add-previous))]
|
||||
(map :content)
|
||||
(map pb/close-paths)
|
||||
(map pb/add-previous))]
|
||||
(pb/content-intersect-split content-a content-b))))]
|
||||
[:g.debug-bool
|
||||
[:g.shape-a
|
||||
|
@ -49,7 +50,7 @@
|
|||
(dissoc :fill-color :fill-opacity)
|
||||
(assoc :content content-b))
|
||||
:frame frame}]
|
||||
(for [{:keys [x y]} (gsp/content->points content-b)]
|
||||
(for [{:keys [x y]} (gsp/content->points (pb/close-paths content-b))]
|
||||
[:circle {:cx x
|
||||
:cy y
|
||||
:r 2.5
|
||||
|
@ -65,7 +66,7 @@
|
|||
(dissoc :fill-color :fill-opacity)
|
||||
(assoc :content content-a))
|
||||
:frame frame}]
|
||||
(for [{:keys [x y]} (gsp/content->points content-a)]
|
||||
(for [{:keys [x y]} (gsp/content->points (pb/close-paths content-a))]
|
||||
[:circle {:cx x
|
||||
:cy y
|
||||
:r 1.25
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue