svg-path-simplify 0.3.4 → 0.3.6
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/dist/svg-path-simplify.esm.js +4104 -3481
- package/dist/svg-path-simplify.esm.min.js +2 -8
- package/dist/svg-path-simplify.js +4105 -3480
- package/dist/svg-path-simplify.min.js +2 -8
- package/dist/svg-path-simplify.pathdata.esm.js +1090 -1039
- package/dist/svg-path-simplify.pathdata.esm.min.js +2 -8
- package/index.html +493 -116
- package/package.json +1 -1
- package/site.webmanifest +21 -0
- package/src/constants.js +3 -1
- package/src/index.js +7 -1
- package/src/pathData_simplify_cubic.js +1 -10
- package/src/pathSimplify-main.js +71 -28
- package/src/pathSimplify-only-pathdata.js +2 -2
- package/src/svg-getAttributes.js +13 -0
- package/src/svg_flatten_transforms.js +43 -0
- package/src/svg_getViewbox.js +23 -11
- package/src/svg_rootSVG.js +9 -0
- package/src/svgii/convert_colors.js +98 -0
- package/src/svgii/convert_units.js +144 -0
- package/src/svgii/geometry.js +24 -4
- package/src/svgii/geometry_bbox.js +2 -1
- package/src/svgii/geometry_bbox_element.js +46 -0
- package/src/svgii/pathData_analyze.js +1 -1
- package/src/svgii/pathData_convert.js +143 -29
- package/src/svgii/pathData_parse.js +2 -99
- package/src/svgii/pathData_parse_els.js +198 -125
- package/src/svgii/pathData_simplify_refineCorners.js +72 -43
- package/src/svgii/pathData_stringify.js +6 -5
- package/src/svgii/poly_normalize.js +21 -1
- package/src/svgii/rounding.js +36 -5
- package/src/svgii/svg-styles-getTransforms.js +43 -5
- package/src/svgii/svg-styles-to-attributes-const.js +8 -3
- package/src/svgii/svg-styles-to-attributes.js +106 -9
- package/src/svgii/svg_cleanup.js +291 -35
- package/src/svgii/svg_el_parse_style_props.js +423 -0
- package/src/svgii/stringify.js +0 -103
|
@@ -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
|