You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note**: the following is taken from the [upstream repository](https://github.com/jgraph/svg2xml)
59
+
55
60
The left file system defines what files or folders you want to convert. The right one, defines the destination.
56
61
57
62
If you select one file, a single stencil XML file will be generated for just that one stencil.
@@ -79,11 +84,19 @@ If you want to reduce the size, with some compromise to precision, use rounding.
79
84
80
85
## `xml2js`
81
86
82
-
**DISCLAIMER**: this tool is at its early stage and misses a lot of features. See the GitHub issues (create one for
83
-
any questions and prior submitting a Pull Request for discussions). It is mainly developed to provide the foundation for `svg2js`
87
+
**DISCLAIMER**: this tool is at its early stage and misses a lot of features. See the [GitHub issues](https://github.com/process-analytics/mxgraph-svg2shape/issues)
88
+
(create one for any questions and prior submitting a Pull Request for discussions). It is mainly developed to provide the foundation for `svg2js`
89
+
and won't probably never support the whole mxGraph stencil format.
90
+
84
91
92
+
**GOAL**:
93
+
- translate an XML mxGraph stencil definition into a set of corresponding javascript calls for an easy integration in JS programs
94
+
- the stencil definition and the JavaScript functions are very close; the names are almost the same but the arguments order is not the same
95
+
(have a look at `curveTo` for instance). So the tool can save you a lot of time and avoid mistakes (you would get strange painting) compared to manual
**GOAL**: translate an XML mxGraph stencil definition into a set of corresponding javascript calls for an easy integration in JS programs
87
100
88
101
### Run
89
102
@@ -109,7 +122,11 @@ canvas.fillAndStroke();
109
122
110
123
## `svg2js`
111
124
112
-
**GOAL**: convert an SVG file into a set of `mxGraph` javascript commands, by calling `svg2xml` then `xml2js`
125
+
**GOAL**:
126
+
- convert an SVG file into a set of `mxGraph` javascript commands, by calling `svg2xml` then `xml2js`
127
+
- this is the fastest and safest way to integrate SVG into `mxGraph` shapes. That's the way used by [bpmn-visualization](https://github.com/process-analytics/bpmn-visualization-js)
0 commit comments