svg-path-commander 0.1.10-alpha1 → 0.1.11-alpha1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/svg-path-commander.esm.js +2409 -2332
- package/dist/svg-path-commander.esm.min.js +2 -2
- package/dist/svg-path-commander.js +2413 -2339
- package/dist/svg-path-commander.min.js +2 -2
- package/package.json +5 -5
- package/src/convert/pathToAbsolute.js +7 -3
- package/src/convert/pathToCurve.js +4 -4
- package/src/convert/pathToRelative.js +10 -7
- package/src/convert/pathToString.js +4 -4
- package/src/math/epsilon.js +1 -1
- package/src/math/rotateVector.js +3 -2
- package/src/options/options.js +1 -2
- package/src/parser/finalizeSegment.js +14 -17
- package/src/parser/isArcCommand.js +1 -1
- package/src/parser/isDigit.js +1 -1
- package/src/parser/isDigitStart.js +1 -1
- package/src/parser/isPathCommand.js +2 -2
- package/src/parser/isSpace.js +5 -6
- package/src/parser/parsePathString.js +5 -5
- package/src/parser/{svgPathArray.js → pathParser.js} +3 -3
- package/src/parser/scanFlag.js +1 -1
- package/src/parser/scanParam.js +1 -1
- package/src/parser/scanSegment.js +1 -1
- package/src/parser/skipSpaces.js +1 -1
- package/src/process/arcToCubic.js +61 -72
- package/src/process/clonePath.js +4 -4
- package/src/process/fixArc.js +3 -1
- package/src/process/getSVGMatrix.js +8 -6
- package/src/process/lineToCubic.js +7 -5
- package/src/process/normalizePath.js +5 -4
- package/src/process/normalizeSegment.js +6 -6
- package/src/process/optimizePath.js +7 -4
- package/src/process/projection2d.js +2 -1
- package/src/process/quadToCubic.js +7 -7
- package/src/process/reverseCurve.js +5 -4
- package/src/process/reversePath.js +3 -3
- package/src/process/roundPath.js +30 -14
- package/src/process/segmentToCubic.js +12 -8
- package/src/process/shorthandToCubic.js +6 -6
- package/src/process/shorthandToQuad.js +6 -6
- package/src/process/splitCubic.js +2 -2
- package/src/process/splitPath.js +3 -3
- package/src/process/transformPath.js +12 -9
- package/src/svg-path-commander.js +32 -18
- package/src/util/getCubicSize.js +5 -3
- package/src/util/getDrawDirection.js +1 -1
- package/src/util/getPathArea.js +6 -4
- package/src/util/getPathBBox.js +16 -12
- package/src/util/getPathLength.js +3 -2
- package/src/util/getPointAtLength.js +6 -4
- package/src/util/getPointAtSegLength.js +9 -9
- package/src/util/getSegArcLength.js +2 -2
- package/src/util/getSegCubicLength.js +19 -11
- package/src/util/getSegLineLength.js +5 -5
- package/src/util/getSegQuadLength.js +8 -8
- package/src/util/isAbsoluteArray.js +3 -2
- package/src/util/isCurveArray.js +3 -2
- package/src/util/isNormalizedArray.js +2 -2
- package/src/util/isPathArray.js +1 -1
- package/src/util/isRelativeArray.js +2 -2
- package/src/util/isValidPath.js +2 -2
- package/src/util/shapeToPath.js +46 -28
- package/src/util/version.js +1 -1
- package/types/convert/pathToAbsolute.d.ts +1 -0
- package/types/convert/pathToCurve.d.ts +1 -0
- package/types/convert/pathToRelative.d.ts +1 -0
- package/types/convert/pathToString.d.ts +1 -0
- package/types/index.d.ts +149 -927
- package/types/math/epsilon.d.ts +2 -0
- package/types/math/midPoint.d.ts +1 -0
- package/types/math/rotateVector.d.ts +4 -0
- package/types/options/options.d.ts +6 -0
- package/types/parser/finalizeSegment.d.ts +1 -0
- package/types/parser/invalidPathValue.d.ts +2 -0
- package/types/parser/isArcCommand.d.ts +1 -0
- package/types/parser/isDigit.d.ts +1 -0
- package/types/parser/isDigitStart.d.ts +1 -0
- package/types/parser/isPathCommand.d.ts +1 -0
- package/types/parser/isSpace.d.ts +1 -0
- package/types/parser/paramsCount.d.ts +4 -0
- package/types/parser/parsePathString.d.ts +1 -0
- package/types/parser/pathParser.d.ts +12 -0
- package/types/parser/scanFlag.d.ts +1 -0
- package/types/parser/scanParam.d.ts +1 -0
- package/types/parser/scanSegment.d.ts +1 -0
- package/types/parser/skipSpaces.d.ts +1 -0
- package/types/process/arcToCubic.d.ts +1 -0
- package/types/process/clonePath.d.ts +1 -0
- package/types/process/fixArc.d.ts +1 -0
- package/types/process/getSVGMatrix.d.ts +2 -0
- package/types/process/lineToCubic.d.ts +1 -0
- package/types/process/normalizePath.d.ts +1 -0
- package/types/process/normalizeSegment.d.ts +1 -0
- package/types/process/optimizePath.d.ts +1 -0
- package/types/process/projection2d.d.ts +1 -0
- package/types/process/quadToCubic.d.ts +1 -0
- package/types/process/reverseCurve.d.ts +1 -0
- package/types/process/reversePath.d.ts +1 -0
- package/types/process/roundPath.d.ts +1 -0
- package/types/process/segmentToCubic.d.ts +1 -0
- package/types/process/shorthandToCubic.d.ts +4 -0
- package/types/process/shorthandToQuad.d.ts +4 -0
- package/types/process/splitPath.d.ts +1 -0
- package/types/process/transformEllipse.d.ts +5 -0
- package/types/process/transformPath.d.ts +1 -0
- package/types/svg-path-commander.d.ts +18 -0
- package/types/util/getCubicSize.d.ts +1 -0
- package/types/util/getDrawDirection.d.ts +1 -0
- package/types/util/getPathArea.d.ts +1 -0
- package/types/util/getPathBBox.d.ts +1 -0
- package/types/util/getPathLength.d.ts +1 -0
- package/types/util/getPointAtLength.d.ts +1 -0
- package/types/util/getPointAtSegLength.d.ts +4 -0
- package/types/util/getSegCubicLength.d.ts +1 -0
- package/types/util/isAbsoluteArray.d.ts +1 -0
- package/types/util/isCurveArray.d.ts +1 -0
- package/types/util/isNormalizedArray.d.ts +1 -0
- package/types/util/isPathArray.d.ts +1 -0
- package/types/util/isRelativeArray.d.ts +1 -0
- package/types/util/isValidPath.d.ts +1 -0
- package/types/util/shapeToPath.d.ts +6 -0
- package/types/util/util.d.ts +61 -0
- package/types/util/version.d.ts +2 -0
- package/src/index.js +0 -6
- package/types/types.d.ts +0 -69
There are too many changes on this page to be displayed.
The amount of changes on this page would crash your brower.
You can still verify the content by downloading the package file manually.