@emasoft/svg-matrix 1.1.0 → 1.2.0
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/bin/svg-matrix.js +7 -6
- package/bin/svgm.js +109 -40
- package/dist/svg-matrix.min.js +7 -7
- package/dist/svg-toolbox.min.js +148 -228
- package/dist/svgm.min.js +152 -232
- package/dist/version.json +5 -5
- package/package.json +1 -1
- package/scripts/postinstall.js +72 -41
- package/scripts/test-postinstall.js +18 -16
- package/scripts/version-sync.js +78 -60
- package/src/animation-optimization.js +190 -98
- package/src/animation-references.js +11 -3
- package/src/arc-length.js +23 -20
- package/src/bezier-analysis.js +9 -13
- package/src/bezier-intersections.js +18 -4
- package/src/browser-verify.js +35 -8
- package/src/clip-path-resolver.js +285 -114
- package/src/convert-path-data.js +20 -8
- package/src/css-specificity.js +33 -9
- package/src/douglas-peucker.js +272 -141
- package/src/geometry-to-path.js +79 -22
- package/src/gjk-collision.js +287 -126
- package/src/index.js +56 -21
- package/src/inkscape-support.js +122 -101
- package/src/logger.js +43 -27
- package/src/marker-resolver.js +201 -121
- package/src/mask-resolver.js +231 -98
- package/src/matrix.js +9 -5
- package/src/mesh-gradient.js +22 -14
- package/src/off-canvas-detection.js +53 -17
- package/src/path-optimization.js +356 -171
- package/src/path-simplification.js +671 -256
- package/src/pattern-resolver.js +1 -3
- package/src/polygon-clip.js +396 -78
- package/src/svg-boolean-ops.js +90 -23
- package/src/svg-collections.js +1546 -667
- package/src/svg-flatten.js +152 -38
- package/src/svg-matrix-lib.js +2 -2
- package/src/svg-parser.js +5 -1
- package/src/svg-rendering-context.js +3 -1
- package/src/svg-toolbox-lib.js +2 -2
- package/src/svg-toolbox.js +99 -457
- package/src/svg-validation-data.js +513 -345
- package/src/svg2-polyfills.js +156 -93
- package/src/svgm-lib.js +8 -4
- package/src/transform-optimization.js +168 -51
- package/src/transforms2d.js +73 -40
- package/src/transforms3d.js +34 -27
- package/src/use-symbol-resolver.js +175 -76
- package/src/vector.js +80 -44
- package/src/vendor/inkscape-hatch-polyfill.js +143 -108
- package/src/vendor/inkscape-hatch-polyfill.min.js +291 -1
- package/src/vendor/inkscape-mesh-polyfill.js +953 -766
- package/src/vendor/inkscape-mesh-polyfill.min.js +896 -1
- package/src/verification.js +3 -4
package/src/verification.js
CHANGED
|
@@ -807,7 +807,8 @@ export function verifyRectToPath(x, y, width, height, pathData) {
|
|
|
807
807
|
valid: false,
|
|
808
808
|
error: new Decimal(Infinity),
|
|
809
809
|
tolerance,
|
|
810
|
-
message:
|
|
810
|
+
message:
|
|
811
|
+
"Rectangle parameters (x, y, width, height) cannot be null or undefined",
|
|
811
812
|
};
|
|
812
813
|
}
|
|
813
814
|
if (typeof pathData !== "string") {
|
|
@@ -1130,9 +1131,7 @@ function isPointOnSegment(point, segStart, segEnd) {
|
|
|
1130
1131
|
throw new Error("Invalid point parameter: must have x and y properties");
|
|
1131
1132
|
}
|
|
1132
1133
|
if (!segStart || segStart.x == null || segStart.y == null) {
|
|
1133
|
-
throw new Error(
|
|
1134
|
-
"Invalid segStart parameter: must have x and y properties",
|
|
1135
|
-
);
|
|
1134
|
+
throw new Error("Invalid segStart parameter: must have x and y properties");
|
|
1136
1135
|
}
|
|
1137
1136
|
if (!segEnd || segEnd.x == null || segEnd.y == null) {
|
|
1138
1137
|
throw new Error("Invalid segEnd parameter: must have x and y properties");
|