svg-path-simplify 0.3.0 → 0.3.5
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/.github/ISSUE_TEMPLATE/bug_report.yml +28 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +35 -0
- package/README.md +3 -1
- package/dist/svg-path-simplify.esm.js +2804 -2761
- package/dist/svg-path-simplify.esm.min.js +5 -7
- package/dist/svg-path-simplify.js +2804 -2761
- package/dist/svg-path-simplify.min.js +5 -7
- package/dist/svg-path-simplify.pathdata.esm.js +31 -2
- package/dist/svg-path-simplify.pathdata.esm.min.js +5 -5
- package/index.html +546 -203
- package/package.json +1 -1
- package/site.webmanifest +21 -0
- package/src/detect_input.js +30 -3
- package/src/pathSimplify-main.js +134 -67
- package/src/poly-fit-curve-schneider.js +266 -175
- package/src/simplify_poly_RDP.js +101 -1
- package/src/simplify_poly_radial_distance.js +85 -2
- package/src/svg_flatten_transforms.js +43 -0
- package/src/svgii/geometry.js +1 -0
- package/src/svgii/pathData_fromPoly.js +22 -7
- package/src/svgii/pathData_toPolygon.js +122 -230
- package/src/svgii/poly_analyze.js +114 -435
- package/src/svgii/poly_analyze_get_chunks.js +67 -0
- package/src/svgii/poly_normalize.js +51 -0
- package/src/svgii/poly_to_pathdata.js +51 -24
- package/src/svgii/rounding.js +36 -0
- package/src/svgii/svg-styles-getTransforms.js +43 -5
- package/src/svgii/svg-styles-to-attributes.js +81 -3
- package/src/svgii/svg_cleanup.js +21 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Report an issue with detailed information
|
|
3
|
+
title: "[Bug]: "
|
|
4
|
+
labels: ["bug"]
|
|
5
|
+
body:
|
|
6
|
+
- type: textarea
|
|
7
|
+
id: error-description
|
|
8
|
+
attributes:
|
|
9
|
+
label: Description of your error
|
|
10
|
+
description: Please describe what went wrong and what you expected instead.
|
|
11
|
+
placeholder: |
|
|
12
|
+
### Error/current behavior
|
|
13
|
+
|
|
14
|
+
### Expected behavior
|
|
15
|
+
|
|
16
|
+
validations:
|
|
17
|
+
required: true
|
|
18
|
+
|
|
19
|
+
- type: textarea
|
|
20
|
+
id: example-code
|
|
21
|
+
attributes:
|
|
22
|
+
label: Example code
|
|
23
|
+
description: Please provide a minimal reproducible example (e.g. SVG markup).
|
|
24
|
+
placeholder: |
|
|
25
|
+
svg markup or path data string
|
|
26
|
+
render: shell
|
|
27
|
+
validations:
|
|
28
|
+
required: false
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: Suggest an idea or improvement
|
|
3
|
+
title: "[Feature]: "
|
|
4
|
+
labels: ["enhancement"]
|
|
5
|
+
body:
|
|
6
|
+
- type: textarea
|
|
7
|
+
id: problem
|
|
8
|
+
attributes:
|
|
9
|
+
label: What problem does this solve?
|
|
10
|
+
description: Clearly describe the problem or limitation you're facing.
|
|
11
|
+
placeholder: |
|
|
12
|
+
I'm trying to...
|
|
13
|
+
But currently...
|
|
14
|
+
validations:
|
|
15
|
+
required: true
|
|
16
|
+
|
|
17
|
+
- type: textarea
|
|
18
|
+
id: solution
|
|
19
|
+
attributes:
|
|
20
|
+
label: Proposed solution
|
|
21
|
+
description: Describe the feature or behavior you would like to see.
|
|
22
|
+
placeholder: |
|
|
23
|
+
It would be great if...
|
|
24
|
+
validations:
|
|
25
|
+
required: true
|
|
26
|
+
|
|
27
|
+
- type: textarea
|
|
28
|
+
id: alternatives
|
|
29
|
+
attributes:
|
|
30
|
+
label: Alternatives considered
|
|
31
|
+
description: Have you considered any alternative solutions or workarounds?
|
|
32
|
+
placeholder: |
|
|
33
|
+
I also tried...
|
|
34
|
+
validations:
|
|
35
|
+
required: false
|
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ Unlike most existing approaches (e.g in graphic applications), it checks where s
|
|
|
50
50
|
+ [SVG scaling](#svg-scaling)
|
|
51
51
|
+ [SVG output optimizations](#svg-output-optimizations)
|
|
52
52
|
+ [SVG input normalization](#svg-input-normalization)
|
|
53
|
-
* [Lite version](#lite-version
|
|
53
|
+
* [Lite version](#lite-version--only-path-data)
|
|
54
54
|
* [Demos](#demos)
|
|
55
55
|
+ [Web app](#web-app)
|
|
56
56
|
+ [Demo files](#demo-files)
|
|
@@ -380,6 +380,8 @@ SVGs > 1 MB are most of the time not salvagable. At least if they contain 10K+ o
|
|
|
380
380
|
|
|
381
381
|
## Changelog, Updates and rollback
|
|
382
382
|
### Changelog
|
|
383
|
+
* 0.3.0 webapp adds support for multi file batch optimizations, web worker support, drawing direction fix option (for fill rules)
|
|
384
|
+
* 0.2.0 added features for polygon curve fitting
|
|
383
385
|
* 0.1.0 fixed node support for complete svg files
|
|
384
386
|
|
|
385
387
|
### Rollback
|