@meta2d/core 1.1.12 → 1.1.13

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": "@meta2d/core",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "description": "@meta2d/core: Powerful, Beautiful, Simple, Open - Web-Based 2D At Its Best .",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1623,7 +1623,7 @@ export class Canvas {
1623
1623
  active: true,
1624
1624
  worldAnchors: [pt],
1625
1625
  ...options.linePresetStyle,
1626
- lineWidth: options.linePresetStyle.lineWidth ? options.linePresetStyle.lineWidth * scale : lineWidth * scale
1626
+ lineWidth: (options.linePresetStyle && options.linePresetStyle.lineWidth) ? options.linePresetStyle?.lineWidth * scale : lineWidth * scale
1627
1627
  },
1628
1628
  fromArrow: data.fromArrow || options.fromArrow,
1629
1629
  toArrow: data.toArrow || options.toArrow,