@svgedit/svgcanvas 7.4.1 → 7.4.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@svgedit/svgcanvas",
3
- "version": "7.4.1",
3
+ "version": "7.4.2",
4
4
  "description": "SVG Canvas",
5
5
  "main": "dist/svgcanvas.js",
6
6
  "types": "svgcanvas.d.ts",
package/svgcanvas.js CHANGED
@@ -201,7 +201,9 @@ class SvgCanvas {
201
201
  this.curConfig.initFill.color,
202
202
  fill_paint: null,
203
203
  fill_opacity: this.curConfig.initFill.opacity,
204
- stroke: `#${this.curConfig.initStroke.color}`,
204
+ stroke:
205
+ (this.curConfig.initStroke.color === 'none' ? '' : '#') +
206
+ this.curConfig.initStroke.color,
205
207
  stroke_paint: null,
206
208
  stroke_opacity: this.curConfig.initStroke.opacity,
207
209
  stroke_width: this.curConfig.initStroke.width,