mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 04:06:14 +02:00
✨ Improvements over svg export
This commit is contained in:
parent
1210924562
commit
b2bde8d97e
3 changed files with 22 additions and 12 deletions
|
@ -4410,5 +4410,12 @@
|
||||||
"es" : "Pulsar para cerrar la ruta"
|
"es" : "Pulsar para cerrar la ruta"
|
||||||
},
|
},
|
||||||
"unused" : true
|
"unused" : true
|
||||||
}
|
},
|
||||||
|
|
||||||
|
"workspace.options.export.suffix": {
|
||||||
|
"translations" : {
|
||||||
|
"en" : "Suffix",
|
||||||
|
"es" : "Sufijo"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
[app.common.geom.shapes :as geom]
|
[app.common.geom.shapes :as geom]
|
||||||
[app.common.geom.point :as gpt]
|
[app.common.geom.point :as gpt]
|
||||||
[app.common.geom.matrix :as gmt]
|
[app.common.geom.matrix :as gmt]
|
||||||
|
[app.main.ui.context :as muc]
|
||||||
[app.main.exports :as exports]
|
[app.main.exports :as exports]
|
||||||
[app.main.repo :as repo]))
|
[app.main.repo :as repo]))
|
||||||
|
|
||||||
|
@ -65,17 +66,18 @@
|
||||||
#(exports/shape-wrapper-factory objects))
|
#(exports/shape-wrapper-factory objects))
|
||||||
]
|
]
|
||||||
|
|
||||||
[:svg {:id "screenshot"
|
[:& (mf/provider muc/embed-ctx) {:value true}
|
||||||
:view-box vbox
|
[:svg {:id "screenshot"
|
||||||
:width width
|
:view-box vbox
|
||||||
:height height
|
:width width
|
||||||
:version "1.1"
|
:height height
|
||||||
:xmlnsXlink "http://www.w3.org/1999/xlink"
|
:version "1.1"
|
||||||
:xmlns "http://www.w3.org/2000/svg"}
|
:xmlnsXlink "http://www.w3.org/1999/xlink"
|
||||||
(case (:type object)
|
:xmlns "http://www.w3.org/2000/svg"}
|
||||||
:frame [:& frame-wrapper {:shape object :view-box vbox}]
|
(case (:type object)
|
||||||
:group [:& group-wrapper {:shape object}]
|
:frame [:& frame-wrapper {:shape object :view-box vbox}]
|
||||||
[:& shape-wrapper {:shape object}])]))
|
:group [:& group-wrapper {:shape object}]
|
||||||
|
[:& shape-wrapper {:shape object}])]]))
|
||||||
|
|
||||||
(defn- adapt-root-frame
|
(defn- adapt-root-frame
|
||||||
[objects object-id]
|
[objects object-id]
|
||||||
|
|
|
@ -146,6 +146,7 @@
|
||||||
[:option {:value "4"} "4x"]
|
[:option {:value "4"} "4x"]
|
||||||
[:option {:value "6"} "6x"]]
|
[:option {:value "6"} "6x"]]
|
||||||
[:input.input-text {:value (:suffix export)
|
[:input.input-text {:value (:suffix export)
|
||||||
|
:placeholder (tr "workspace.options.export.suffix")
|
||||||
:on-change (partial on-suffix-change index)}]
|
:on-change (partial on-suffix-change index)}]
|
||||||
[:select.input-select {:value (name (:type export))
|
[:select.input-select {:value (name (:type export))
|
||||||
:on-change (partial on-type-change index)}
|
:on-change (partial on-type-change index)}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue