@emasoft/svg-matrix 1.0.18 → 1.0.19
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/package.json +1 -1
- package/scripts/postinstall.js +6 -9
- package/src/index.js +2 -2
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -114,15 +114,12 @@ ${c.cyan}${B.v}${hr}${B.v}${c.reset}
|
|
|
114
114
|
${c.cyan}${B.v}${c.reset}${R('')}${c.cyan}${B.v}${c.reset}
|
|
115
115
|
${c.cyan}${B.v}${c.reset}${R(` ${c.yellow}CLI Commands:${c.reset}`)}${c.cyan}${B.v}${c.reset}
|
|
116
116
|
${c.cyan}${B.v}${c.reset}${R('')}${c.cyan}${B.v}${c.reset}
|
|
117
|
-
${c.cyan}${B.v}${c.reset}${R(` ${c.green}svg-matrix flatten${c.reset}
|
|
118
|
-
${c.cyan}${B.v}${c.reset}${R(`
|
|
117
|
+
${c.cyan}${B.v}${c.reset}${R(` ${c.green}svg-matrix flatten${c.reset} ${c.dim}Bake transforms into path coordinates${c.reset}`)}${c.cyan}${B.v}${c.reset}
|
|
118
|
+
${c.cyan}${B.v}${c.reset}${R(` ${c.green}svg-matrix convert${c.reset} ${c.dim}Convert shapes to <path> elements${c.reset}`)}${c.cyan}${B.v}${c.reset}
|
|
119
|
+
${c.cyan}${B.v}${c.reset}${R(` ${c.green}svg-matrix normalize${c.reset} ${c.dim}Convert paths to cubic Beziers${c.reset}`)}${c.cyan}${B.v}${c.reset}
|
|
120
|
+
${c.cyan}${B.v}${c.reset}${R(` ${c.green}svg-matrix info${c.reset} ${c.dim}Show SVG file information${c.reset}`)}${c.cyan}${B.v}${c.reset}
|
|
119
121
|
${c.cyan}${B.v}${c.reset}${R('')}${c.cyan}${B.v}${c.reset}
|
|
120
|
-
${c.cyan}${B.v}${c.reset}${R(` ${c.
|
|
121
|
-
${c.cyan}${B.v}${c.reset}${R(` ${c.dim}--precision N${c.reset} Output decimal places (default: 6)`)}${c.cyan}${B.v}${c.reset}
|
|
122
|
-
${c.cyan}${B.v}${c.reset}${R(` ${c.dim}--clip-segments N${c.reset} Polygon sampling for clips (default: 64)`)}${c.cyan}${B.v}${c.reset}
|
|
123
|
-
${c.cyan}${B.v}${c.reset}${R(` ${c.dim}--bezier-arcs N${c.reset} Bezier arcs for curves (default: 8)`)}${c.cyan}${B.v}${c.reset}
|
|
124
|
-
${c.cyan}${B.v}${c.reset}${R(` ${c.dim}--e2e-tolerance N${c.reset} Verification tolerance (default: 1e-10)`)}${c.cyan}${B.v}${c.reset}
|
|
125
|
-
${c.cyan}${B.v}${c.reset}${R(` ${c.dim}--verbose${c.reset} Show processing details`)}${c.cyan}${B.v}${c.reset}
|
|
122
|
+
${c.cyan}${B.v}${c.reset}${R(` ${c.dim}Run${c.reset} svg-matrix --help ${c.dim}or${c.reset} svg-matrix <cmd> --help`)}${c.cyan}${B.v}${c.reset}
|
|
126
123
|
${c.cyan}${B.v}${c.reset}${R('')}${c.cyan}${B.v}${c.reset}
|
|
127
124
|
${c.cyan}${B.v}${hr}${B.v}${c.reset}
|
|
128
125
|
${c.cyan}${B.v}${c.reset}${R('')}${c.cyan}${B.v}${c.reset}
|
|
@@ -137,7 +134,7 @@ ${c.cyan}${B.v}${c.reset}${R(` ${c.green}${B.dot} Transforms3D${c.reset} 3D af
|
|
|
137
134
|
${c.cyan}${B.v}${c.reset}${R('')}${c.cyan}${B.v}${c.reset}
|
|
138
135
|
${c.cyan}${B.v}${hr}${B.v}${c.reset}
|
|
139
136
|
${c.cyan}${B.v}${c.reset}${R('')}${c.cyan}${B.v}${c.reset}
|
|
140
|
-
${c.cyan}${B.v}${c.reset}${R(` ${c.yellow}New in v1.0.
|
|
137
|
+
${c.cyan}${B.v}${c.reset}${R(` ${c.yellow}New in v1.0.19:${c.reset}`)}${c.cyan}${B.v}${c.reset}
|
|
141
138
|
${c.cyan}${B.v}${c.reset}${R(` ${c.green}${B.dot}${c.reset} Enhanced CLI help: svg-matrix <command> --help`)}${c.cyan}${B.v}${c.reset}
|
|
142
139
|
${c.cyan}${B.v}${c.reset}${R(` ${c.green}${B.dot}${c.reset} High-precision Bezier circle/ellipse approximation`)}${c.cyan}${B.v}${c.reset}
|
|
143
140
|
${c.cyan}${B.v}${c.reset}${R(` ${c.green}${B.dot}${c.reset} E2E verification always enabled for precision`)}${c.cyan}${B.v}${c.reset}
|
package/src/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* SVG path conversion, and 2D/3D affine transformations using Decimal.js.
|
|
6
6
|
*
|
|
7
7
|
* @module @emasoft/svg-matrix
|
|
8
|
-
* @version 1.0.
|
|
8
|
+
* @version 1.0.19
|
|
9
9
|
* @license MIT
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
@@ -58,7 +58,7 @@ Decimal.set({ precision: 80 });
|
|
|
58
58
|
* Library version
|
|
59
59
|
* @constant {string}
|
|
60
60
|
*/
|
|
61
|
-
export const VERSION = '1.0.
|
|
61
|
+
export const VERSION = '1.0.19';
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* Default precision for path output (decimal places)
|