mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -05:00
🐛 Fix problem with imports
This commit is contained in:
parent
ae435f67a5
commit
f40ffacfbd
1 changed files with 1 additions and 3 deletions
|
@ -8,7 +8,6 @@
|
||||||
(:require
|
(:require
|
||||||
[app.common.colors :as cc]
|
[app.common.colors :as cc]
|
||||||
[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.svg.path :as svg.path]
|
[app.common.svg.path :as svg.path]
|
||||||
|
@ -236,11 +235,10 @@
|
||||||
|
|
||||||
(= type :frame)
|
(= type :frame)
|
||||||
(let [;; Old .penpot files doesn't have "g" nodes. They have a clipPath reference as a node attribute
|
(let [;; Old .penpot files doesn't have "g" nodes. They have a clipPath reference as a node attribute
|
||||||
to-url #(dm/str "url(#" % ")")
|
|
||||||
frame-clip-rect-node (->> (find-all-nodes node :defs)
|
frame-clip-rect-node (->> (find-all-nodes node :defs)
|
||||||
(mapcat #(find-all-nodes % :clipPath))
|
(mapcat #(find-all-nodes % :clipPath))
|
||||||
(filter #(= (to-url (:id (:attrs %))) (:clip-path node-attrs)))
|
|
||||||
(mapcat #(find-all-nodes % #{:rect :path}))
|
(mapcat #(find-all-nodes % #{:rect :path}))
|
||||||
|
(filter #(contains? (:attrs %) :width))
|
||||||
(first))
|
(first))
|
||||||
|
|
||||||
;; The nodes with the "frame-background" class can have some anidation depending on the strokes they have
|
;; The nodes with the "frame-background" class can have some anidation depending on the strokes they have
|
||||||
|
|
Loading…
Reference in a new issue