mirror of
https://github.com/penpot/penpot.git
synced 2025-03-10 14:51:37 -05: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}
|
||||
(assoc :svg-viewbox (select-keys selrect [:x :y :width :height]))
|
||||
(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]}]
|
||||
(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',
|
||||
'minifyStyles',
|
||||
// 'convertStyleToAttrs'
|
||||
'cleanupIDs',
|
||||
// 'cleanupIDs',
|
||||
// 'prefixIds',
|
||||
// 'removeRasterImages',
|
||||
// 'removeUselessDefs',
|
||||
|
@ -43,7 +43,7 @@ const plugins = [
|
|||
'convertEllipseToCircle',
|
||||
// 'moveElemsAttrsToGroup',
|
||||
'moveGroupAttrsToElems',
|
||||
'collapseGroups',
|
||||
// 'collapseGroups',
|
||||
{'convertPathData': {
|
||||
'lineShorthands': false,
|
||||
'curveSmoothShorthands': false,
|
||||
|
|
Loading…
Add table
Reference in a new issue