mirror of
https://github.com/penpot/penpot.git
synced 2025-03-11 23:31:21 -05:00
🐛 Fix export boards loses opacity
This commit is contained in:
parent
3d7f399a50
commit
46764a1e6e
3 changed files with 12 additions and 9 deletions
|
@ -32,6 +32,7 @@
|
|||
- Fix "Components visibility and opacity" [#4694](https://github.com/penpot/penpot/issues/4694)
|
||||
- Fix "Attribute overrides in copies are not exported in zip file" [Taiga #8072](https://tree.taiga.io/project/penpot/issue/8072)
|
||||
- Fix group not automatically selected in the Layers panel after creation [Taiga #8078](https://tree.taiga.io/project/penpot/issue/8078)
|
||||
- Fix export boards loses opacity [Taiga #7592](https://tree.taiga.io/project/penpot/issue/7592)
|
||||
|
||||
## 2.0.3
|
||||
|
||||
|
|
|
@ -278,7 +278,6 @@
|
|||
old-id (parser/get-id node)
|
||||
interactions (->> (parser/parse-interactions node)
|
||||
(mapv #(update % :destination resolve)))
|
||||
|
||||
data (-> (parser/parse-data type node)
|
||||
(resolve-data-ids type context)
|
||||
(cond-> (some? old-id)
|
||||
|
|
|
@ -248,6 +248,8 @@
|
|||
defs-nodes (flatten (map #(find-all-nodes % :defs) g-nodes))
|
||||
gg-nodes (flatten (map #(find-all-nodes % :g) g-nodes))
|
||||
|
||||
;; The first g node contains the opacity for frames
|
||||
main-g-node (first g-nodes)
|
||||
|
||||
rect-nodes (flatten [[(find-all-nodes node :rect)]
|
||||
(map #(find-all-nodes % #{:rect :path}) defs-nodes)
|
||||
|
@ -257,6 +259,7 @@
|
|||
(merge
|
||||
(add-attrs {} (:attrs frame-clip-rect-node))
|
||||
(add-attrs {} (:attrs svg-node))
|
||||
(add-attrs {} (:attrs main-g-node))
|
||||
node-attrs))
|
||||
|
||||
(= type :svg-raw)
|
||||
|
|
Loading…
Add table
Reference in a new issue