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.
Files changed (125) hide show
  1. package/dist/svg-path-commander.esm.js +2409 -2332
  2. package/dist/svg-path-commander.esm.min.js +2 -2
  3. package/dist/svg-path-commander.js +2413 -2339
  4. package/dist/svg-path-commander.min.js +2 -2
  5. package/package.json +5 -5
  6. package/src/convert/pathToAbsolute.js +7 -3
  7. package/src/convert/pathToCurve.js +4 -4
  8. package/src/convert/pathToRelative.js +10 -7
  9. package/src/convert/pathToString.js +4 -4
  10. package/src/math/epsilon.js +1 -1
  11. package/src/math/rotateVector.js +3 -2
  12. package/src/options/options.js +1 -2
  13. package/src/parser/finalizeSegment.js +14 -17
  14. package/src/parser/isArcCommand.js +1 -1
  15. package/src/parser/isDigit.js +1 -1
  16. package/src/parser/isDigitStart.js +1 -1
  17. package/src/parser/isPathCommand.js +2 -2
  18. package/src/parser/isSpace.js +5 -6
  19. package/src/parser/parsePathString.js +5 -5
  20. package/src/parser/{svgPathArray.js → pathParser.js} +3 -3
  21. package/src/parser/scanFlag.js +1 -1
  22. package/src/parser/scanParam.js +1 -1
  23. package/src/parser/scanSegment.js +1 -1
  24. package/src/parser/skipSpaces.js +1 -1
  25. package/src/process/arcToCubic.js +61 -72
  26. package/src/process/clonePath.js +4 -4
  27. package/src/process/fixArc.js +3 -1
  28. package/src/process/getSVGMatrix.js +8 -6
  29. package/src/process/lineToCubic.js +7 -5
  30. package/src/process/normalizePath.js +5 -4
  31. package/src/process/normalizeSegment.js +6 -6
  32. package/src/process/optimizePath.js +7 -4
  33. package/src/process/projection2d.js +2 -1
  34. package/src/process/quadToCubic.js +7 -7
  35. package/src/process/reverseCurve.js +5 -4
  36. package/src/process/reversePath.js +3 -3
  37. package/src/process/roundPath.js +30 -14
  38. package/src/process/segmentToCubic.js +12 -8
  39. package/src/process/shorthandToCubic.js +6 -6
  40. package/src/process/shorthandToQuad.js +6 -6
  41. package/src/process/splitCubic.js +2 -2
  42. package/src/process/splitPath.js +3 -3
  43. package/src/process/transformPath.js +12 -9
  44. package/src/svg-path-commander.js +32 -18
  45. package/src/util/getCubicSize.js +5 -3
  46. package/src/util/getDrawDirection.js +1 -1
  47. package/src/util/getPathArea.js +6 -4
  48. package/src/util/getPathBBox.js +16 -12
  49. package/src/util/getPathLength.js +3 -2
  50. package/src/util/getPointAtLength.js +6 -4
  51. package/src/util/getPointAtSegLength.js +9 -9
  52. package/src/util/getSegArcLength.js +2 -2
  53. package/src/util/getSegCubicLength.js +19 -11
  54. package/src/util/getSegLineLength.js +5 -5
  55. package/src/util/getSegQuadLength.js +8 -8
  56. package/src/util/isAbsoluteArray.js +3 -2
  57. package/src/util/isCurveArray.js +3 -2
  58. package/src/util/isNormalizedArray.js +2 -2
  59. package/src/util/isPathArray.js +1 -1
  60. package/src/util/isRelativeArray.js +2 -2
  61. package/src/util/isValidPath.js +2 -2
  62. package/src/util/shapeToPath.js +46 -28
  63. package/src/util/version.js +1 -1
  64. package/types/convert/pathToAbsolute.d.ts +1 -0
  65. package/types/convert/pathToCurve.d.ts +1 -0
  66. package/types/convert/pathToRelative.d.ts +1 -0
  67. package/types/convert/pathToString.d.ts +1 -0
  68. package/types/index.d.ts +149 -927
  69. package/types/math/epsilon.d.ts +2 -0
  70. package/types/math/midPoint.d.ts +1 -0
  71. package/types/math/rotateVector.d.ts +4 -0
  72. package/types/options/options.d.ts +6 -0
  73. package/types/parser/finalizeSegment.d.ts +1 -0
  74. package/types/parser/invalidPathValue.d.ts +2 -0
  75. package/types/parser/isArcCommand.d.ts +1 -0
  76. package/types/parser/isDigit.d.ts +1 -0
  77. package/types/parser/isDigitStart.d.ts +1 -0
  78. package/types/parser/isPathCommand.d.ts +1 -0
  79. package/types/parser/isSpace.d.ts +1 -0
  80. package/types/parser/paramsCount.d.ts +4 -0
  81. package/types/parser/parsePathString.d.ts +1 -0
  82. package/types/parser/pathParser.d.ts +12 -0
  83. package/types/parser/scanFlag.d.ts +1 -0
  84. package/types/parser/scanParam.d.ts +1 -0
  85. package/types/parser/scanSegment.d.ts +1 -0
  86. package/types/parser/skipSpaces.d.ts +1 -0
  87. package/types/process/arcToCubic.d.ts +1 -0
  88. package/types/process/clonePath.d.ts +1 -0
  89. package/types/process/fixArc.d.ts +1 -0
  90. package/types/process/getSVGMatrix.d.ts +2 -0
  91. package/types/process/lineToCubic.d.ts +1 -0
  92. package/types/process/normalizePath.d.ts +1 -0
  93. package/types/process/normalizeSegment.d.ts +1 -0
  94. package/types/process/optimizePath.d.ts +1 -0
  95. package/types/process/projection2d.d.ts +1 -0
  96. package/types/process/quadToCubic.d.ts +1 -0
  97. package/types/process/reverseCurve.d.ts +1 -0
  98. package/types/process/reversePath.d.ts +1 -0
  99. package/types/process/roundPath.d.ts +1 -0
  100. package/types/process/segmentToCubic.d.ts +1 -0
  101. package/types/process/shorthandToCubic.d.ts +4 -0
  102. package/types/process/shorthandToQuad.d.ts +4 -0
  103. package/types/process/splitPath.d.ts +1 -0
  104. package/types/process/transformEllipse.d.ts +5 -0
  105. package/types/process/transformPath.d.ts +1 -0
  106. package/types/svg-path-commander.d.ts +18 -0
  107. package/types/util/getCubicSize.d.ts +1 -0
  108. package/types/util/getDrawDirection.d.ts +1 -0
  109. package/types/util/getPathArea.d.ts +1 -0
  110. package/types/util/getPathBBox.d.ts +1 -0
  111. package/types/util/getPathLength.d.ts +1 -0
  112. package/types/util/getPointAtLength.d.ts +1 -0
  113. package/types/util/getPointAtSegLength.d.ts +4 -0
  114. package/types/util/getSegCubicLength.d.ts +1 -0
  115. package/types/util/isAbsoluteArray.d.ts +1 -0
  116. package/types/util/isCurveArray.d.ts +1 -0
  117. package/types/util/isNormalizedArray.d.ts +1 -0
  118. package/types/util/isPathArray.d.ts +1 -0
  119. package/types/util/isRelativeArray.d.ts +1 -0
  120. package/types/util/isValidPath.d.ts +1 -0
  121. package/types/util/shapeToPath.d.ts +6 -0
  122. package/types/util/util.d.ts +61 -0
  123. package/types/util/version.d.ts +2 -0
  124. package/src/index.js +0 -6
  125. 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.