@emasoft/svg-matrix 1.0.11 → 1.0.12
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 +222 -123
- package/package.json +1 -1
- package/src/flatten-pipeline.js +992 -0
- package/src/index.js +7 -2
- package/src/svg-parser.js +730 -0
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.12
|
|
9
9
|
* @license MIT
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
@@ -44,6 +44,8 @@ import * as UseSymbolResolver from './use-symbol-resolver.js';
|
|
|
44
44
|
import * as MarkerResolver from './marker-resolver.js';
|
|
45
45
|
import * as MeshGradient from './mesh-gradient.js';
|
|
46
46
|
import * as TextToPath from './text-to-path.js';
|
|
47
|
+
import * as SVGParser from './svg-parser.js';
|
|
48
|
+
import * as FlattenPipeline from './flatten-pipeline.js';
|
|
47
49
|
import { Logger, LogLevel, setLogLevel, getLogLevel as getLoggerLevel, enableFileLogging, disableFileLogging } from './logger.js';
|
|
48
50
|
|
|
49
51
|
// Set high-precision default (80 significant digits) on module load
|
|
@@ -55,7 +57,7 @@ Decimal.set({ precision: 80 });
|
|
|
55
57
|
* Library version
|
|
56
58
|
* @constant {string}
|
|
57
59
|
*/
|
|
58
|
-
export const VERSION = '1.0.
|
|
60
|
+
export const VERSION = '1.0.12';
|
|
59
61
|
|
|
60
62
|
/**
|
|
61
63
|
* Default precision for path output (decimal places)
|
|
@@ -89,6 +91,7 @@ export { SVGFlatten, BrowserVerify };
|
|
|
89
91
|
export { ClipPathResolver, MaskResolver, PatternResolver };
|
|
90
92
|
export { UseSymbolResolver, MarkerResolver };
|
|
91
93
|
export { MeshGradient, TextToPath };
|
|
94
|
+
export { SVGParser, FlattenPipeline };
|
|
92
95
|
|
|
93
96
|
// ============================================================================
|
|
94
97
|
// LOGGING: Configurable logging control
|
|
@@ -421,6 +424,8 @@ export default {
|
|
|
421
424
|
MarkerResolver,
|
|
422
425
|
MeshGradient,
|
|
423
426
|
TextToPath,
|
|
427
|
+
SVGParser,
|
|
428
|
+
FlattenPipeline,
|
|
424
429
|
|
|
425
430
|
// Logging
|
|
426
431
|
Logger,
|