-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into apply-transform-shape
- Loading branch information
Showing
434 changed files
with
1,756 additions
and
1,515 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,5 @@ test/regression-diffs | |
test/cli/output | ||
coverage | ||
.DS_Store | ||
.vscode | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,111 @@ | ||
'use strict'; | ||
import presetDefault from '../plugins/preset-default.js'; | ||
import * as addAttributesToSVGElement from '../plugins/addAttributesToSVGElement.js'; | ||
import * as addClassesToSVGElement from '../plugins/addClassesToSVGElement.js'; | ||
import * as applyTransformsShapes from '../plugins/applyTransformsShapes.js'; | ||
import * as cleanupAttrs from '../plugins/cleanupAttrs.js'; | ||
import * as cleanupEnableBackground from '../plugins/cleanupEnableBackground.js'; | ||
import * as cleanupIds from '../plugins/cleanupIds.js'; | ||
import * as cleanupListOfValues from '../plugins/cleanupListOfValues.js'; | ||
import * as cleanupNumericValues from '../plugins/cleanupNumericValues.js'; | ||
import * as collapseGroups from '../plugins/collapseGroups.js'; | ||
import * as convertColors from '../plugins/convertColors.js'; | ||
import * as convertEllipseToCircle from '../plugins/convertEllipseToCircle.js'; | ||
import * as convertOneStopGradients from '../plugins/convertOneStopGradients.js'; | ||
import * as convertPathData from '../plugins/convertPathData.js'; | ||
import * as convertShapeToPath from '../plugins/convertShapeToPath.js'; | ||
import * as convertStyleToAttrs from '../plugins/convertStyleToAttrs.js'; | ||
import * as convertTransform from '../plugins/convertTransform.js'; | ||
import * as mergeStyles from '../plugins/mergeStyles.js'; | ||
import * as inlineStyles from '../plugins/inlineStyles.js'; | ||
import * as mergePaths from '../plugins/mergePaths.js'; | ||
import * as minifyStyles from '../plugins/minifyStyles.js'; | ||
import * as moveElemsAttrsToGroup from '../plugins/moveElemsAttrsToGroup.js'; | ||
import * as moveGroupAttrsToElems from '../plugins/moveGroupAttrsToElems.js'; | ||
import * as prefixIds from '../plugins/prefixIds.js'; | ||
import * as removeAttributesBySelector from '../plugins/removeAttributesBySelector.js'; | ||
import * as removeAttrs from '../plugins/removeAttrs.js'; | ||
import * as removeComments from '../plugins/removeComments.js'; | ||
import * as removeDesc from '../plugins/removeDesc.js'; | ||
import * as removeDimensions from '../plugins/removeDimensions.js'; | ||
import * as removeDoctype from '../plugins/removeDoctype.js'; | ||
import * as removeEditorsNSData from '../plugins/removeEditorsNSData.js'; | ||
import * as removeElementsByAttr from '../plugins/removeElementsByAttr.js'; | ||
import * as removeEmptyAttrs from '../plugins/removeEmptyAttrs.js'; | ||
import * as removeEmptyContainers from '../plugins/removeEmptyContainers.js'; | ||
import * as removeEmptyText from '../plugins/removeEmptyText.js'; | ||
import * as removeHiddenElems from '../plugins/removeHiddenElems.js'; | ||
import * as removeMetadata from '../plugins/removeMetadata.js'; | ||
import * as removeNonInheritableGroupAttrs from '../plugins/removeNonInheritableGroupAttrs.js'; | ||
import * as removeOffCanvasPaths from '../plugins/removeOffCanvasPaths.js'; | ||
import * as removeRasterImages from '../plugins/removeRasterImages.js'; | ||
import * as removeScriptElement from '../plugins/removeScriptElement.js'; | ||
import * as removeStyleElement from '../plugins/removeStyleElement.js'; | ||
import * as removeTitle from '../plugins/removeTitle.js'; | ||
import * as removeUnknownsAndDefaults from '../plugins/removeUnknownsAndDefaults.js'; | ||
import * as removeUnusedNS from '../plugins/removeUnusedNS.js'; | ||
import * as removeUselessDefs from '../plugins/removeUselessDefs.js'; | ||
import * as removeUselessStrokeAndFill from '../plugins/removeUselessStrokeAndFill.js'; | ||
import * as removeViewBox from '../plugins/removeViewBox.js'; | ||
import * as removeXlink from '../plugins/removeXlink.js'; | ||
import * as removeXMLNS from '../plugins/removeXMLNS.js'; | ||
import * as removeXMLProcInst from '../plugins/removeXMLProcInst.js'; | ||
import * as reusePaths from '../plugins/reusePaths.js'; | ||
import * as sortAttrs from '../plugins/sortAttrs.js'; | ||
import * as sortDefsChildren from '../plugins/sortDefsChildren.js'; | ||
|
||
exports.builtin = [ | ||
require('../plugins/preset-default.js'), | ||
require('../plugins/addAttributesToSVGElement.js'), | ||
require('../plugins/addClassesToSVGElement.js'), | ||
require('../plugins/applyTransformsShapes.js'), | ||
require('../plugins/cleanupAttrs.js'), | ||
require('../plugins/cleanupEnableBackground.js'), | ||
require('../plugins/cleanupIds.js'), | ||
require('../plugins/cleanupListOfValues.js'), | ||
require('../plugins/cleanupNumericValues.js'), | ||
require('../plugins/collapseGroups.js'), | ||
require('../plugins/convertColors.js'), | ||
require('../plugins/convertEllipseToCircle.js'), | ||
require('../plugins/convertOneStopGradients.js'), | ||
require('../plugins/convertPathData.js'), | ||
require('../plugins/convertShapeToPath.js'), | ||
require('../plugins/convertStyleToAttrs.js'), | ||
require('../plugins/convertTransform.js'), | ||
require('../plugins/mergeStyles.js'), | ||
require('../plugins/inlineStyles.js'), | ||
require('../plugins/mergePaths.js'), | ||
require('../plugins/minifyStyles.js'), | ||
require('../plugins/moveElemsAttrsToGroup.js'), | ||
require('../plugins/moveGroupAttrsToElems.js'), | ||
require('../plugins/prefixIds.js'), | ||
require('../plugins/removeAttributesBySelector.js'), | ||
require('../plugins/removeAttrs.js'), | ||
require('../plugins/removeComments.js'), | ||
require('../plugins/removeDesc.js'), | ||
require('../plugins/removeDimensions.js'), | ||
require('../plugins/removeDoctype.js'), | ||
require('../plugins/removeEditorsNSData.js'), | ||
require('../plugins/removeElementsByAttr.js'), | ||
require('../plugins/removeEmptyAttrs.js'), | ||
require('../plugins/removeEmptyContainers.js'), | ||
require('../plugins/removeEmptyText.js'), | ||
require('../plugins/removeHiddenElems.js'), | ||
require('../plugins/removeMetadata.js'), | ||
require('../plugins/removeNonInheritableGroupAttrs.js'), | ||
require('../plugins/removeOffCanvasPaths.js'), | ||
require('../plugins/removeRasterImages.js'), | ||
require('../plugins/removeScriptElement.js'), | ||
require('../plugins/removeStyleElement.js'), | ||
require('../plugins/removeTitle.js'), | ||
require('../plugins/removeUnknownsAndDefaults.js'), | ||
require('../plugins/removeUnusedNS.js'), | ||
require('../plugins/removeUselessDefs.js'), | ||
require('../plugins/removeUselessStrokeAndFill.js'), | ||
require('../plugins/removeViewBox.js'), | ||
require('../plugins/removeXlink.js'), | ||
require('../plugins/removeXMLNS.js'), | ||
require('../plugins/removeXMLProcInst.js'), | ||
require('../plugins/reusePaths.js'), | ||
require('../plugins/sortAttrs.js'), | ||
require('../plugins/sortDefsChildren.js'), | ||
export const builtin = [ | ||
presetDefault, | ||
addAttributesToSVGElement, | ||
addClassesToSVGElement, | ||
applyTransformsShapes, | ||
cleanupAttrs, | ||
cleanupEnableBackground, | ||
cleanupIds, | ||
cleanupListOfValues, | ||
cleanupNumericValues, | ||
collapseGroups, | ||
convertColors, | ||
convertEllipseToCircle, | ||
convertOneStopGradients, | ||
convertPathData, | ||
convertShapeToPath, | ||
convertStyleToAttrs, | ||
convertTransform, | ||
mergeStyles, | ||
inlineStyles, | ||
mergePaths, | ||
minifyStyles, | ||
moveElemsAttrsToGroup, | ||
moveGroupAttrsToElems, | ||
prefixIds, | ||
removeAttributesBySelector, | ||
removeAttrs, | ||
removeComments, | ||
removeDesc, | ||
removeDimensions, | ||
removeDoctype, | ||
removeEditorsNSData, | ||
removeElementsByAttr, | ||
removeEmptyAttrs, | ||
removeEmptyContainers, | ||
removeEmptyText, | ||
removeHiddenElems, | ||
removeMetadata, | ||
removeNonInheritableGroupAttrs, | ||
removeOffCanvasPaths, | ||
removeRasterImages, | ||
removeScriptElement, | ||
removeStyleElement, | ||
removeTitle, | ||
removeUnknownsAndDefaults, | ||
removeUnusedNS, | ||
removeUselessDefs, | ||
removeUselessStrokeAndFill, | ||
removeViewBox, | ||
removeXlink, | ||
removeXMLNS, | ||
removeXMLProcInst, | ||
reusePaths, | ||
sortAttrs, | ||
sortDefsChildren, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.