mirror of
https://github.com/penpot/penpot.git
synced 2025-02-02 04:19:08 -05:00
🐛 Fix problem with opacity in imported SVG's
This commit is contained in:
parent
cc469b116d
commit
5856e3cc03
2 changed files with 7 additions and 3 deletions
|
@ -76,6 +76,7 @@
|
||||||
- Fix precision for wrap in flex [Taiga #5072](https://tree.taiga.io/project/penpot/issue/5072)
|
- Fix precision for wrap in flex [Taiga #5072](https://tree.taiga.io/project/penpot/issue/5072)
|
||||||
- Fix relative position overlay positioning [Taiga #5092](https://tree.taiga.io/project/penpot/issue/5092)
|
- Fix relative position overlay positioning [Taiga #5092](https://tree.taiga.io/project/penpot/issue/5092)
|
||||||
- Fix hide grid keyboard shortcut [Github #3071](https://github.com/penpot/penpot/pull/3071)
|
- Fix hide grid keyboard shortcut [Github #3071](https://github.com/penpot/penpot/pull/3071)
|
||||||
|
- Fix problem with opacity in imported SVG's [Taiga #4923](https://tree.taiga.io/project/penpot/issue/4923)
|
||||||
|
|
||||||
### :heart: Community contributions by (Thank you!)
|
### :heart: Community contributions by (Thank you!)
|
||||||
- To @ondrejkonec: for contributing to the code with:
|
- To @ondrejkonec: for contributing to the code with:
|
||||||
|
|
|
@ -164,11 +164,13 @@
|
||||||
(cond-> shape
|
(cond-> shape
|
||||||
(get-in shape [:svg-attrs :opacity])
|
(get-in shape [:svg-attrs :opacity])
|
||||||
(-> (update :svg-attrs dissoc :opacity)
|
(-> (update :svg-attrs dissoc :opacity)
|
||||||
(assoc :opacity (get-in shape [:svg-attrs :opacity])))
|
(assoc :opacity (-> (get-in shape [:svg-attrs :opacity])
|
||||||
|
(d/parse-double))))
|
||||||
|
|
||||||
(get-in shape [:svg-attrs :style :opacity])
|
(get-in shape [:svg-attrs :style :opacity])
|
||||||
(-> (update-in [:svg-attrs :style] dissoc :opacity)
|
(-> (update-in [:svg-attrs :style] dissoc :opacity)
|
||||||
(assoc :opacity (get-in shape [:svg-attrs :style :opacity])))
|
(assoc :opacity (-> (get-in shape [:svg-attrs :style :opacity])
|
||||||
|
(d/parse-double))))
|
||||||
|
|
||||||
|
|
||||||
(get-in shape [:svg-attrs :mix-blend-mode])
|
(get-in shape [:svg-attrs :mix-blend-mode])
|
||||||
|
@ -410,7 +412,8 @@
|
||||||
(assoc :strokes [])
|
(assoc :strokes [])
|
||||||
(assoc :svg-defs (select-keys (:defs svg-data) references))
|
(assoc :svg-defs (select-keys (:defs svg-data) references))
|
||||||
(setup-fill)
|
(setup-fill)
|
||||||
(setup-stroke))
|
(setup-stroke)
|
||||||
|
(setup-opacity))
|
||||||
|
|
||||||
shape (cond-> shape
|
shape (cond-> shape
|
||||||
hidden (assoc :hidden true))
|
hidden (assoc :hidden true))
|
||||||
|
|
Loading…
Add table
Reference in a new issue