@meta2d/core 1.0.84 → 1.0.86

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.0.84",
3
+ "version": "1.0.86",
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",
@@ -1295,7 +1295,7 @@ export class Canvas {
1295
1295
  if (this.beforeAddPen && this.beforeAddPen(pen) != true) {
1296
1296
  continue;
1297
1297
  }
1298
- if (abs) {
1298
+ if (abs && !pen.parentId) {
1299
1299
  pen.x = pen.x * this.store.data.scale + this.store.data.origin.x;
1300
1300
  pen.y = pen.y * this.store.data.scale + this.store.data.origin.y;
1301
1301
  pen.width = pen.width * this.store.data.scale;
@@ -1514,10 +1514,12 @@ export class Canvas {
1514
1514
  active: true,
1515
1515
  worldAnchors: [pt],
1516
1516
  lineWidth: lineWidth * scale,
1517
+ ...options.linePresetStyle
1517
1518
  },
1518
1519
  fromArrow: data.fromArrow || options.fromArrow,
1519
1520
  toArrow: data.toArrow || options.toArrow,
1520
1521
  lineWidth,
1522
+ ...options.linePresetStyle
1521
1523
  };
1522
1524
  }
1523
1525
  onMouseDown = (e) => {
@@ -4097,6 +4099,9 @@ export class Canvas {
4097
4099
  }, 50);
4098
4100
  }
4099
4101
  initGlobalStyle() {
4102
+ if (this.store.options.themeOnlyCanvas || this.store.data.themeOnlyCanvas) {
4103
+ return;
4104
+ }
4100
4105
  const options = {};
4101
4106
  const data = {};
4102
4107
  const theme = {};