@inweb/markup 26.9.1 → 26.9.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.9.1",
3
+ "version": "26.9.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.9.1",
30
- "@inweb/viewer-core": "~26.9.1"
29
+ "@inweb/eventemitter2": "~26.9.3",
30
+ "@inweb/viewer-core": "~26.9.3"
31
31
  },
32
32
  "devDependencies": {
33
33
  "konva": "^9.3.18"
@@ -1035,7 +1035,7 @@ export class KonvaMarkup implements IMarkup {
1035
1035
  if (!text) return;
1036
1036
 
1037
1037
  // in case of edit - remove old Konva.Text object
1038
- this.getSelectedObjects().at(0)?.delete();
1038
+ this.getSelectedObjects().shift()?.delete();
1039
1039
 
1040
1040
  this.clearSelected();
1041
1041
  this.removeTextInput();
@@ -1181,7 +1181,7 @@ export class KonvaMarkup implements IMarkup {
1181
1181
  if (!position || !src) return;
1182
1182
 
1183
1183
  // in case of edit - remove old Image placeholder object
1184
- this.getSelectedObjects().at(0)?.delete();
1184
+ this.getSelectedObjects().shift()?.delete();
1185
1185
 
1186
1186
  this.clearSelected();
1187
1187
  this.removeImageInput();