@inweb/markup 26.3.2 → 26.4.0

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.
@@ -63,8 +63,8 @@ class KonvaLine {
63
63
  }
64
64
  if (!params) params = {};
65
65
  if (!params.points) params.points = [ {
66
- x: 50,
67
- y: 50
66
+ x: 0,
67
+ y: 0
68
68
  }, {
69
69
  x: 100,
70
70
  y: 100
@@ -172,8 +172,8 @@ class KonvaText {
172
172
  }
173
173
  if (!params) params = {};
174
174
  if (!params.position) params.position = {
175
- x: 100,
176
- y: 100
175
+ x: 0,
176
+ y: 0
177
177
  };
178
178
  if (!params.text) params.text = "default";
179
179
  this._ref = new Konva.Text({
@@ -279,8 +279,8 @@ class KonvaRectangle {
279
279
  }
280
280
  if (!params) params = {};
281
281
  if (!params.position) params.position = {
282
- x: 100,
283
- y: 100
282
+ x: 0,
283
+ y: 0
284
284
  };
285
285
  this._ref = new Konva.Rect({
286
286
  stroke: (_a = params.color) !== null && _a !== undefined ? _a : "#ff0000",
@@ -393,8 +393,8 @@ class KonvaEllipse {
393
393
  }
394
394
  if (!params) params = {};
395
395
  if (!params.position) params.position = {
396
- x: 100,
397
- y: 100
396
+ x: 0,
397
+ y: 0
398
398
  };
399
399
  if (!params.radius) params.radius = {
400
400
  x: 25,
@@ -523,8 +523,8 @@ class KonvaArrow {
523
523
  }
524
524
  if (!params) params = {};
525
525
  if (!params.start) params.start = {
526
- x: 50,
527
- y: 50
526
+ x: 0,
527
+ y: 0
528
528
  };
529
529
  if (!params.end) params.end = {
530
530
  x: 100,
@@ -639,8 +639,8 @@ class KonvaImage {
639
639
  }
640
640
  if (!params) params = {};
641
641
  if (!params.position) params.position = {
642
- x: 50,
643
- y: 50
642
+ x: 0,
643
+ y: 0
644
644
  };
645
645
  if (!params.src || !params.src.startsWith(this.BASE64_HEADER_START)) params.src = this.BASE64_NOT_FOUND;
646
646
  this._canvasImage = new Image;
@@ -776,8 +776,8 @@ class KonvaCloud {
776
776
  }
777
777
  if (!params) params = {};
778
778
  if (!params.position) params.position = {
779
- x: 100,
780
- y: 100
779
+ x: 0,
780
+ y: 0
781
781
  };
782
782
  const arcRadius = 16;
783
783
  this._ref = new Konva.Shape({