svg-path-commander 1.0.0 → 1.0.3
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 +7 -1
- package/dist/svg-path-commander.es5.js +355 -432
- package/dist/svg-path-commander.es5.min.js +2 -2
- package/dist/svg-path-commander.esm.js +344 -428
- package/dist/svg-path-commander.esm.min.js +2 -2
- package/dist/svg-path-commander.js +344 -428
- package/dist/svg-path-commander.min.js +2 -2
- package/package.json +9 -11
- package/src/convert/pathToAbsolute.js +1 -0
- package/src/convert/pathToCurve.js +1 -0
- package/src/convert/pathToRelative.js +1 -16
- package/src/index.js +2 -0
- package/src/parser/finalizeSegment.js +3 -16
- package/src/parser/isSpace.js +1 -0
- package/src/parser/parsePathString.js +0 -11
- 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 +3 -13
- 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 +11 -9
- package/src/util/getPathArea.js +0 -2
- package/src/util/getPropertiesAtLength.js +1 -10
- package/src/util/getPropertiesAtPoint.js +2 -3
- package/src/util/getSegmentAtLength.js +1 -3
- package/src/util/getSegmentOfPoint.js +1 -3
- package/src/util/pathLengthFactory.js +7 -16
- 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/version.js +0 -1
- package/types/index.d.ts +1 -2
- 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,8 @@
|
|
|
1
|
-
# SVGPathCommander
|
|
1
|
+
# SVGPathCommander
|
|
2
|
+
[](https://coveralls.io/github/thednp/svg-path-commander)
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+
[](https://github.com/thednp/svg-path-commander/actions/workflows/ci.yml)
|
|
2
6
|
|
|
3
7
|

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