@inweb/markup 26.9.7 → 26.9.9

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.9.7",
3
+ "version": "26.9.9",
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.9.7",
30
- "@inweb/viewer-core": "~26.9.7"
29
+ "@inweb/eventemitter2": "~26.9.9",
30
+ "@inweb/viewer-core": "~26.9.9"
31
31
  },
32
32
  "devDependencies": {
33
33
  "konva": "^9.3.18"
@@ -131,6 +131,12 @@ export class KonvaImage implements IMarkupImage {
131
131
  });
132
132
 
133
133
  this._ref.setAttr("wcsStart", this._worldTransformer.screenToWorld({ x: params.position.x, y: params.position.y }));
134
+ if (params.position2) {
135
+ this._ref.setAttr(
136
+ "wcsEnd",
137
+ this._worldTransformer.screenToWorld({ x: params.position2.x, y: params.position2.y })
138
+ );
139
+ }
134
140
 
135
141
  this._ref.on("transform", (e) => {
136
142
  const attrs = e.target.attrs;