svg-path-commander 1.0.0 → 1.0.1
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/README.md +3 -1
- package/dist/svg-path-commander.es5.js +361 -403
- package/dist/svg-path-commander.es5.min.js +2 -2
- package/dist/svg-path-commander.esm.js +352 -400
- package/dist/svg-path-commander.esm.min.js +2 -2
- package/dist/svg-path-commander.js +352 -400
- package/dist/svg-path-commander.min.js +2 -2
- package/package.json +10 -11
- package/src/convert/pathToAbsolute.js +1 -0
- package/src/convert/pathToCurve.js +1 -0
- package/src/convert/pathToRelative.js +7 -5
- package/src/parser/finalizeSegment.js +3 -16
- package/src/parser/isSpace.js +1 -0
- package/src/parser/parsePathString.js +8 -8
- package/src/parser/scanFlag.js +5 -5
- package/src/parser/scanParam.js +10 -7
- package/src/process/fixPath.js +1 -1
- package/src/process/getSVGMatrix.js +11 -12
- package/src/process/normalizePath.js +1 -8
- package/src/process/normalizeSegment.js +5 -10
- package/src/process/optimizePath.js +0 -4
- package/src/process/projection2d.js +6 -6
- package/src/process/reverseCurve.js +0 -1
- package/src/process/reversePath.js +0 -10
- package/src/process/roundPath.js +0 -1
- package/src/process/segmentToCubic.js +0 -5
- package/src/process/shortenSegment.js +4 -7
- package/src/process/splitCubic.js +0 -4
- package/src/process/transformPath.js +18 -39
- package/src/svg-path-commander.js +4 -5
- package/src/util/getPathArea.js +0 -2
- package/src/util/getPropertiesAtLength.js +1 -10
- package/src/util/getPropertiesAtPoint.js +3 -2
- package/src/util/getSegmentAtLength.js +4 -3
- package/src/util/getSegmentOfPoint.js +4 -3
- package/src/util/pathLengthFactory.js +5 -13
- package/src/util/segmentArcFactory.js +165 -37
- package/src/util/segmentCubicFactory.js +7 -8
- package/src/util/segmentLineFactory.js +4 -3
- package/src/util/segmentQuadFactory.js +10 -10
- package/src/util/shapeToPath.js +24 -13
- package/src/util/util.js +6 -0
- package/src/version.js +0 -1
- package/types/index.d.ts +1 -1
- package/types/svg-path-commander.d.ts +13 -13
- package/src/process/shorthandToCubic.js +0 -16
- package/src/process/shorthandToQuad.js +0 -16
- package/src/process/transformEllipse.js +0 -73
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# SVGPathCommander ](https://coveralls.io/github/thednp/svg-path-commander?branch=master)   [](https://github.com/thednp/svg-path-commander/actions/workflows/ci.yml)
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
@@ -184,6 +184,8 @@ For developer guidelines, and a complete list of static methods, head over to th
|
|
|
184
184
|
* Nicolas Debeissat for the inspiration on [svg3d](https://github.com/ndebeiss/svg3d)
|
|
185
185
|
* Mike Bostock for his awesome [closestPoint](https://bl.ocks.org/mbostock/8027637)
|
|
186
186
|
* James Halliday for his excelent [point-at-length](https://github.com/substack/point-at-length)
|
|
187
|
+
* Eric Eastwood for his excelent [svg-curve-lib](https://github.com/MadLittleMods/svg-curve-lib)
|
|
188
|
+
* PhET Interactive Simulations for their [kite](https://github.com/phetsims/kite)
|
|
187
189
|
|
|
188
190
|
# License
|
|
189
191
|
**SVGPathCommander** is released under [MIT Licence](https://github.com/thednp/svg-path-commander/blob/master/LICENSE).
|