svg-path-simplify 0.4.2 → 0.4.3
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/CHANGELOG.md +10 -0
- package/README.md +6 -4
- package/dist/svg-path-simplify.esm.js +2139 -940
- package/dist/svg-path-simplify.esm.min.js +2 -2
- package/dist/svg-path-simplify.js +2139 -940
- package/dist/svg-path-simplify.min.js +2 -2
- package/dist/svg-path-simplify.pathdata.esm.js +127 -85
- package/dist/svg-path-simplify.pathdata.esm.min.js +2 -2
- package/docs/privacy-webapp.md +24 -0
- package/index.html +290 -152
- package/package.json +1 -1
- package/src/css_parse.js +317 -0
- package/src/detect_input.js +34 -4
- package/src/pathData_simplify_harmonize_cpts.js +77 -1
- package/src/pathSimplify-main.js +242 -269
- package/src/pathSimplify-presets.js +243 -0
- package/src/poly-fit-curve-schneider.js +14 -7
- package/src/simplify_poly_RC.js +102 -0
- package/src/simplify_poly_RDP.js +109 -1
- package/src/simplify_poly_radial_distance.js +3 -3
- package/src/string_helpers.js +130 -4
- package/src/svgii/geometry.js +182 -3
- package/src/svgii/geometry_length.js +237 -0
- package/src/svgii/pathData_convert.js +5 -1
- package/src/svgii/pathData_fix_directions.js +6 -0
- package/src/svgii/pathData_fromPoly.js +3 -3
- package/src/svgii/pathData_getLength.js +86 -0
- package/src/svgii/pathData_parse.js +2 -0
- package/src/svgii/pathData_parse_els.js +66 -68
- package/src/svgii/pathData_split_to_groups.js +168 -0
- package/src/svgii/pathData_stringify.js +26 -64
- package/src/svgii/pathData_toPolygon.js +3 -4
- package/src/svgii/poly_analyze.js +61 -0
- package/src/svgii/poly_normalize.js +11 -2
- package/src/svgii/poly_to_pathdata.js +85 -24
- package/src/svgii/rounding.js +8 -7
- package/src/svgii/svg_cleanup.js +374 -620
- package/src/svgii/svg_cleanup_convertPathLength.js +32 -0
- package/src/svgii/svg_cleanup_general_svg_atts.js +97 -0
- package/src/svgii/svg_cleanup_normalize_transforms.js +83 -0
- package/src/svgii/svg_cleanup_remove_els_and_atts.js +72 -0
- package/src/svgii/svg_cleanup_ungroup.js +36 -0
- package/src/svgii/svg_el_parse_style_props.js +65 -43
- package/src/svgii/svg_getElementLength.js +67 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
### Simplification
|
|
2
|
+
|
|
3
|
+
Enter your SVG pathData or complete file markup or upload SVG files.
|
|
4
|
+
|
|
5
|
+
All data is processed 100% client-side – no data is transferred or analyzed by any third-party service during simplification.
|
|
6
|
+
|
|
7
|
+
### Sharing and editing
|
|
8
|
+
|
|
9
|
+
* Codepen – sends your current data to [codepen.io](https://codepen.io) and creates a new pen for testing purposes
|
|
10
|
+
* Edit – sends data to [svg-path-editor](https://yqnn.github.io/svg-path-editor) for further path node editing
|
|
11
|
+
|
|
12
|
+
### External scripts
|
|
13
|
+
|
|
14
|
+
The webapp loads these external scripts from jsdelivr
|
|
15
|
+
|
|
16
|
+
* [linkedom](https://github.com/WebReflection/linkedom) – used for web worker based multi file processing
|
|
17
|
+
* [UZIP](https://github.com/photopea/UZIP.js) – for multifile zip exports
|
|
18
|
+
* [enhance-inputs](https://github.com/herrstrietzel/enhance-inputs) – used for GUI input styling and updating logic
|
|
19
|
+
|
|
20
|
+
### Local Storage
|
|
21
|
+
|
|
22
|
+
Your current settings as well as your input SVG data is stored in local Storage. This provides to apply the same settings to multiple files after reloads. You can delete this settings cache via the reset settings button.
|
|
23
|
+
|
|
24
|
+
You image data is never transferred to the github server.
|