mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 02:12:53 +02:00
✨ Changed config for svgclean
This commit is contained in:
parent
19febde547
commit
23d531a664
4 changed files with 5 additions and 5 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -151,7 +151,7 @@
|
||||||
:points points}
|
:points points}
|
||||||
(assoc :svg-viewbox (select-keys selrect [:x :y :width :height]))
|
(assoc :svg-viewbox (select-keys selrect [:x :y :width :height]))
|
||||||
(assoc :svg-attrs (dissoc attrs :d :transform))
|
(assoc :svg-attrs (dissoc attrs :d :transform))
|
||||||
(gsh/translate-to-frame svg-data))))
|
#_(gsh/translate-to-frame svg-data))))
|
||||||
|
|
||||||
(defn create-group [name frame-id svg-data {:keys [attrs]}]
|
(defn create-group [name frame-id svg-data {:keys [attrs]}]
|
||||||
(let [{:keys [x y width height]} svg-data]
|
(let [{:keys [x y width height]} svg-data]
|
||||||
|
|
4
vendor/svgclean/main.js
vendored
4
vendor/svgclean/main.js
vendored
|
@ -25,7 +25,7 @@ const plugins = [
|
||||||
'inlineStyles',
|
'inlineStyles',
|
||||||
'minifyStyles',
|
'minifyStyles',
|
||||||
// 'convertStyleToAttrs'
|
// 'convertStyleToAttrs'
|
||||||
'cleanupIDs',
|
// 'cleanupIDs',
|
||||||
// 'prefixIds',
|
// 'prefixIds',
|
||||||
// 'removeRasterImages',
|
// 'removeRasterImages',
|
||||||
// 'removeUselessDefs',
|
// 'removeUselessDefs',
|
||||||
|
@ -43,7 +43,7 @@ const plugins = [
|
||||||
'convertEllipseToCircle',
|
'convertEllipseToCircle',
|
||||||
// 'moveElemsAttrsToGroup',
|
// 'moveElemsAttrsToGroup',
|
||||||
'moveGroupAttrsToElems',
|
'moveGroupAttrsToElems',
|
||||||
'collapseGroups',
|
// 'collapseGroups',
|
||||||
{'convertPathData': {
|
{'convertPathData': {
|
||||||
'lineShorthands': false,
|
'lineShorthands': false,
|
||||||
'curveSmoothShorthands': false,
|
'curveSmoothShorthands': false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue