@inweb/markup 26.3.2 → 26.3.3

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": "@inweb/markup",
3
- "version": "26.3.2",
3
+ "version": "26.3.3",
4
4
  "description": "JavaScript 2D markups",
5
5
  "homepage": "https://cloud.opendesign.com/docs/index.html",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -26,8 +26,8 @@
26
26
  "docs": "typedoc"
27
27
  },
28
28
  "dependencies": {
29
- "@inweb/eventemitter2": "~26.3.2",
30
- "@inweb/viewer-core": "~26.3.2"
29
+ "@inweb/eventemitter2": "~26.3.3",
30
+ "@inweb/viewer-core": "~26.3.3"
31
31
  },
32
32
  "devDependencies": {
33
33
  "konva": "^9.3.18"
@@ -34,7 +34,7 @@ export class KonvaArrow implements IMarkupArrow {
34
34
  }
35
35
 
36
36
  if (!params) params = {};
37
- if (!params.start) params.start = { x: 50, y: 50 };
37
+ if (!params.start) params.start = { x: 0, y: 0 };
38
38
  if (!params.end) params.end = { x: 100, y: 100 };
39
39
 
40
40
  this._ref = new Konva.Arrow({
@@ -11,7 +11,7 @@ export class KonvaCloud implements IMarkupCloud {
11
11
  }
12
12
 
13
13
  if (!params) params = {};
14
- if (!params.position) params.position = { x: 100, y: 100 };
14
+ if (!params.position) params.position = { x: 0, y: 0 };
15
15
 
16
16
  const arcRadius = 16;
17
17
 
@@ -11,7 +11,7 @@ export class KonvaEllipse implements IMarkupEllipse {
11
11
  }
12
12
 
13
13
  if (!params) params = {};
14
- if (!params.position) params.position = { x: 100, y: 100 };
14
+ if (!params.position) params.position = { x: 0, y: 0 };
15
15
  if (!params.radius) params.radius = { x: 25, y: 25 };
16
16
 
17
17
  this._ref = new Konva.Ellipse({
@@ -27,7 +27,7 @@ export class KonvaImage implements IMarkupImage {
27
27
  }
28
28
 
29
29
  if (!params) params = {};
30
- if (!params.position) params.position = { x: 50, y: 50 };
30
+ if (!params.position) params.position = { x: 0, y: 0 };
31
31
  if (!params.src || !params.src.startsWith(this.BASE64_HEADER_START)) params.src = this.BASE64_NOT_FOUND;
32
32
 
33
33
  this._canvasImage = new Image();
@@ -19,7 +19,7 @@ export class KonvaLine implements IMarkupLine {
19
19
  if (!params) params = {};
20
20
  if (!params.points)
21
21
  params.points = [
22
- { x: 50, y: 50 },
22
+ { x: 0, y: 0 },
23
23
  { x: 100, y: 100 },
24
24
  ];
25
25
 
@@ -11,7 +11,7 @@ export class KonvaRectangle implements IMarkupRectangle {
11
11
  }
12
12
 
13
13
  if (!params) params = {};
14
- if (!params.position) params.position = { x: 100, y: 100 };
14
+ if (!params.position) params.position = { x: 0, y: 0 };
15
15
 
16
16
  this._ref = new Konva.Rect({
17
17
  stroke: params.color ?? "#ff0000",
@@ -12,7 +12,7 @@ export class KonvaText implements IMarkupText {
12
12
  }
13
13
 
14
14
  if (!params) params = {};
15
- if (!params.position) params.position = { x: 100, y: 100 };
15
+ if (!params.position) params.position = { x: 0, y: 0 };
16
16
  if (!params.text) params.text = "default";
17
17
 
18
18
  this._ref = new Konva.Text({