@inditextech/weave-sdk 3.8.1 → 3.8.3-SNAPSHOT.214.1

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/dist/sdk.js CHANGED
@@ -21410,10 +21410,16 @@ var WeaveTargetingManager = class {
21410
21410
  const utilityLayer = this.instance.getUtilityLayer();
21411
21411
  if (utilityLayer) utilityLayer.visible(false);
21412
21412
  let containerAlt = containerOverCursor(this.instance, [], relativeMousePointer);
21413
- if (!containerAlt) containerAlt = this.instance.getMainLayer();
21414
21413
  const nodesSelection = this.instance.getPlugin("nodesSelection");
21415
21414
  if (nodesSelection) nodesSelection.getTransformer().visible(false);
21416
- relativeMousePointer = containerAlt?.getRelativePointerPosition() ?? relativeMousePointer;
21415
+ if (containerAlt && typeof point === "undefined") relativeMousePointer = containerAlt.getRelativePointerPosition() ?? relativeMousePointer;
21416
+ if (!containerAlt && typeof point === "undefined") {
21417
+ containerAlt = this.instance.getMainLayer();
21418
+ relativeMousePointer = containerAlt?.getRelativePointerPosition() ?? {
21419
+ x: 0,
21420
+ y: 0
21421
+ };
21422
+ }
21417
21423
  if (utilityLayer) utilityLayer.visible(true);
21418
21424
  if (nodesSelection) nodesSelection.getTransformer().visible(true);
21419
21425
  return {
@@ -22008,7 +22014,7 @@ var WeaveRegisterManager = class {
22008
22014
 
22009
22015
  //#endregion
22010
22016
  //#region package.json
22011
- var version = "3.8.1";
22017
+ var version = "3.8.3-SNAPSHOT.214.1";
22012
22018
 
22013
22019
  //#endregion
22014
22020
  //#region src/managers/setup.ts
@@ -26853,7 +26859,11 @@ var WeaveImageNode = class extends WeaveNode {
26853
26859
  onUpdate(nodeInstance, nextProps) {
26854
26860
  const id = nodeInstance.getAttrs().id;
26855
26861
  const node = nodeInstance;
26856
- nodeInstance.setAttrs({ ...nextProps });
26862
+ nodeInstance.setAttrs({
26863
+ ...nextProps,
26864
+ ...nextProps.cropInfo ? { cropInfo: nextProps.cropInfo } : { cropInfo: void 0 },
26865
+ ...nextProps.cropSize ? { cropSize: nextProps.cropSize } : { cropSize: void 0 }
26866
+ });
26857
26867
  const imagePlaceholder = node.findOne(`#${id}-placeholder`);
26858
26868
  const internalImage = node.findOne(`#${id}-image`);
26859
26869
  const nodeAttrs = node.getAttrs();
@@ -34418,14 +34428,15 @@ var WeaveImageToolAction = class extends WeaveAction {
34418
34428
  const dragProperties = this.instance.getDragProperties();
34419
34429
  if (dragProperties && dragId === WEAVE_IMAGE_TOOL_ACTION_NAME) {
34420
34430
  this.instance.getStage().setPointersPositions(e);
34421
- const position = this.instance.getStage().getRelativePointerPosition();
34422
- if (!position) return;
34431
+ const { mousePoint, container } = this.instance.getMousePointer();
34432
+ if (!mousePoint) return;
34423
34433
  this.instance.triggerAction(WEAVE_IMAGE_TOOL_ACTION_NAME, {
34424
34434
  type: WEAVE_IMAGE_TOOL_UPLOAD_TYPE.IMAGE_URL,
34425
34435
  image: dragProperties.imageURL,
34426
34436
  ...dragProperties.imageId ? { imageId: dragProperties.imageId } : {},
34427
34437
  ...dragProperties.forceMainContainer && { forceMainContainer: dragProperties.forceMainContainer },
34428
- position
34438
+ container,
34439
+ position: mousePoint
34429
34440
  });
34430
34441
  }
34431
34442
  });
@@ -34592,7 +34603,7 @@ var WeaveImageToolAction = class extends WeaveAction {
34592
34603
  }
34593
34604
  const { mousePoint, container } = this.instance.getMousePointer(position);
34594
34605
  this.imageAction[nodeId].clickPoint = mousePoint;
34595
- this.imageAction[nodeId].container = container;
34606
+ this.imageAction[nodeId].container = this.imageAction[nodeId].container ?? container;
34596
34607
  const nodeHandler = this.instance.getNodeHandler("image");
34597
34608
  const imageWidth = this.imageAction[nodeId].props.width ? this.imageAction[nodeId].props.width : imageSource?.width;
34598
34609
  const imageHeight = this.imageAction[nodeId].props.height ? this.imageAction[nodeId].props.height : imageSource?.height;
@@ -34659,9 +34670,9 @@ var WeaveImageToolAction = class extends WeaveAction {
34659
34670
  props: this.initProps(),
34660
34671
  imageId: nodeId,
34661
34672
  clickPoint: null,
34662
- container: void 0,
34663
34673
  imageFile: null,
34664
34674
  imageURL: null,
34675
+ container: params?.container,
34665
34676
  forceMainContainer: params?.forceMainContainer ?? false,
34666
34677
  uploadType: null,
34667
34678
  uploadImageFunction: null
@@ -34868,12 +34879,13 @@ var WeaveImagesToolAction = class extends WeaveAction {
34868
34879
  const dragProperties = this.instance.getDragProperties();
34869
34880
  if (dragProperties && dragId === WEAVE_IMAGES_TOOL_ACTION_NAME) {
34870
34881
  this.instance.getStage().setPointersPositions(e);
34871
- const position = this.instance.getStage().getRelativePointerPosition();
34872
- if (!position) return;
34882
+ const { mousePoint, container } = this.instance.getMousePointer();
34883
+ if (!mousePoint) return;
34873
34884
  this.instance.triggerAction(WEAVE_IMAGES_TOOL_ACTION_NAME, {
34874
34885
  type: WEAVE_IMAGES_TOOL_UPLOAD_TYPE.IMAGE_URL,
34875
34886
  images: dragProperties.imagesURL,
34876
- position,
34887
+ container,
34888
+ position: mousePoint,
34877
34889
  ...dragProperties.forceMainContainer && { forceMainContainer: dragProperties.forceMainContainer }
34878
34890
  });
34879
34891
  }
@@ -35034,7 +35046,8 @@ var WeaveImagesToolAction = class extends WeaveAction {
35034
35046
  stage.container().style.cursor = "default";
35035
35047
  const { mousePoint, container } = this.instance.getMousePointer(position);
35036
35048
  this.clickPoint = mousePoint;
35037
- this.container = container;
35049
+ this.stageClickPoint = position ? position : stage.getRelativePointerPosition();
35050
+ this.container = this.container ?? container;
35038
35051
  const originPoint = {
35039
35052
  x: this.clickPoint?.x ?? 0,
35040
35053
  y: this.clickPoint?.y ?? 0
@@ -35089,10 +35102,8 @@ var WeaveImagesToolAction = class extends WeaveAction {
35089
35102
  },
35090
35103
  uploadImageFunction: uploadImageFunctionInternal,
35091
35104
  ...imageId && { imageId },
35092
- position: {
35093
- x: position$1.x,
35094
- y: position$1.y
35095
- },
35105
+ position: position$1,
35106
+ container: this.container,
35096
35107
  forceMainContainer: this.forceMainContainer,
35097
35108
  nodeId: nodeId$1
35098
35109
  }, true);
@@ -35126,10 +35137,8 @@ var WeaveImagesToolAction = class extends WeaveAction {
35126
35137
  },
35127
35138
  ...imageId && { imageId },
35128
35139
  ...options && { options },
35129
- position: {
35130
- x: position$1.x,
35131
- y: position$1.y
35132
- },
35140
+ position: position$1,
35141
+ container: this.container,
35133
35142
  forceMainContainer: this.forceMainContainer,
35134
35143
  nodeId: nodeId$1
35135
35144
  }, true);
@@ -35162,6 +35171,7 @@ var WeaveImagesToolAction = class extends WeaveAction {
35162
35171
  const selectionPlugin = this.instance.getPlugin("nodesSelection");
35163
35172
  if (selectionPlugin) selectionPlugin.setSelectedNodes([]);
35164
35173
  if (params?.position) this.setState(WEAVE_IMAGES_TOOL_STATE.SELECTED_POSITION);
35174
+ if (params?.container) this.container = params.container;
35165
35175
  this.nodesIds = [];
35166
35176
  this.forceMainContainer = params.forceMainContainer ?? false;
35167
35177
  if (params.type === WEAVE_IMAGES_TOOL_UPLOAD_TYPE.FILE) {
@@ -35217,6 +35227,7 @@ var WeaveImagesToolAction = class extends WeaveAction {
35217
35227
  this.forceMainContainer = false;
35218
35228
  this.initialCursor = null;
35219
35229
  this.container = void 0;
35230
+ this.stageClickPoint = null;
35220
35231
  this.clickPoint = null;
35221
35232
  this.nodesIds = [];
35222
35233
  this.toAdd = 0;
@@ -36979,11 +36990,13 @@ var WeaveVideoToolAction = class extends WeaveAction {
36979
36990
  const dragProperties = this.instance.getDragProperties();
36980
36991
  if (dragProperties && dragId === VIDEO_TOOL_ACTION_NAME) {
36981
36992
  this.instance.getStage().setPointersPositions(e);
36982
- const position = this.instance.getStage().getRelativePointerPosition();
36993
+ const { mousePoint, container } = this.instance.getMousePointer();
36994
+ if (!mousePoint) return;
36983
36995
  this.instance.triggerAction(VIDEO_TOOL_ACTION_NAME, {
36984
36996
  videoId: dragProperties.videoId,
36985
36997
  videoParams: dragProperties.videoParams,
36986
- position
36998
+ container,
36999
+ position: mousePoint
36987
37000
  });
36988
37001
  }
36989
37002
  });
@@ -37034,7 +37047,7 @@ var WeaveVideoToolAction = class extends WeaveAction {
37034
37047
  if (this.videoId && this.videoParams) {
37035
37048
  const { mousePoint, container } = this.instance.getMousePointer(position);
37036
37049
  this.clickPoint = mousePoint;
37037
- this.container = container;
37050
+ this.container = this.container ?? container;
37038
37051
  const nodeHandler = this.instance.getNodeHandler("video");
37039
37052
  if (nodeHandler) {
37040
37053
  const node = nodeHandler.create(this.videoId, {
@@ -37065,6 +37078,7 @@ var WeaveVideoToolAction = class extends WeaveAction {
37065
37078
  this.cancelAction = cancelAction;
37066
37079
  const selectionPlugin = this.instance.getPlugin("nodesSelection");
37067
37080
  if (selectionPlugin) selectionPlugin.setSelectedNodes([]);
37081
+ this.container = params?.container;
37068
37082
  this.forceMainContainer = params?.forceMainContainer ?? false;
37069
37083
  if (params?.videoId) this.updateProps({ videoId: params.videoId });
37070
37084
  if (params?.videoParams) {
package/dist/sdk.node.js CHANGED
@@ -21409,10 +21409,16 @@ var WeaveTargetingManager = class {
21409
21409
  const utilityLayer = this.instance.getUtilityLayer();
21410
21410
  if (utilityLayer) utilityLayer.visible(false);
21411
21411
  let containerAlt = containerOverCursor(this.instance, [], relativeMousePointer);
21412
- if (!containerAlt) containerAlt = this.instance.getMainLayer();
21413
21412
  const nodesSelection = this.instance.getPlugin("nodesSelection");
21414
21413
  if (nodesSelection) nodesSelection.getTransformer().visible(false);
21415
- relativeMousePointer = containerAlt?.getRelativePointerPosition() ?? relativeMousePointer;
21414
+ if (containerAlt && typeof point === "undefined") relativeMousePointer = containerAlt.getRelativePointerPosition() ?? relativeMousePointer;
21415
+ if (!containerAlt && typeof point === "undefined") {
21416
+ containerAlt = this.instance.getMainLayer();
21417
+ relativeMousePointer = containerAlt?.getRelativePointerPosition() ?? {
21418
+ x: 0,
21419
+ y: 0
21420
+ };
21421
+ }
21416
21422
  if (utilityLayer) utilityLayer.visible(true);
21417
21423
  if (nodesSelection) nodesSelection.getTransformer().visible(true);
21418
21424
  return {
@@ -22007,7 +22013,7 @@ var WeaveRegisterManager = class {
22007
22013
 
22008
22014
  //#endregion
22009
22015
  //#region package.json
22010
- var version = "3.8.1";
22016
+ var version = "3.8.3-SNAPSHOT.214.1";
22011
22017
 
22012
22018
  //#endregion
22013
22019
  //#region src/managers/setup.ts
@@ -26852,7 +26858,11 @@ var WeaveImageNode = class extends WeaveNode {
26852
26858
  onUpdate(nodeInstance, nextProps) {
26853
26859
  const id = nodeInstance.getAttrs().id;
26854
26860
  const node = nodeInstance;
26855
- nodeInstance.setAttrs({ ...nextProps });
26861
+ nodeInstance.setAttrs({
26862
+ ...nextProps,
26863
+ ...nextProps.cropInfo ? { cropInfo: nextProps.cropInfo } : { cropInfo: void 0 },
26864
+ ...nextProps.cropSize ? { cropSize: nextProps.cropSize } : { cropSize: void 0 }
26865
+ });
26856
26866
  const imagePlaceholder = node.findOne(`#${id}-placeholder`);
26857
26867
  const internalImage = node.findOne(`#${id}-image`);
26858
26868
  const nodeAttrs = node.getAttrs();
@@ -34417,14 +34427,15 @@ var WeaveImageToolAction = class extends WeaveAction {
34417
34427
  const dragProperties = this.instance.getDragProperties();
34418
34428
  if (dragProperties && dragId === WEAVE_IMAGE_TOOL_ACTION_NAME) {
34419
34429
  this.instance.getStage().setPointersPositions(e);
34420
- const position = this.instance.getStage().getRelativePointerPosition();
34421
- if (!position) return;
34430
+ const { mousePoint, container } = this.instance.getMousePointer();
34431
+ if (!mousePoint) return;
34422
34432
  this.instance.triggerAction(WEAVE_IMAGE_TOOL_ACTION_NAME, {
34423
34433
  type: WEAVE_IMAGE_TOOL_UPLOAD_TYPE.IMAGE_URL,
34424
34434
  image: dragProperties.imageURL,
34425
34435
  ...dragProperties.imageId ? { imageId: dragProperties.imageId } : {},
34426
34436
  ...dragProperties.forceMainContainer && { forceMainContainer: dragProperties.forceMainContainer },
34427
- position
34437
+ container,
34438
+ position: mousePoint
34428
34439
  });
34429
34440
  }
34430
34441
  });
@@ -34591,7 +34602,7 @@ var WeaveImageToolAction = class extends WeaveAction {
34591
34602
  }
34592
34603
  const { mousePoint, container } = this.instance.getMousePointer(position);
34593
34604
  this.imageAction[nodeId].clickPoint = mousePoint;
34594
- this.imageAction[nodeId].container = container;
34605
+ this.imageAction[nodeId].container = this.imageAction[nodeId].container ?? container;
34595
34606
  const nodeHandler = this.instance.getNodeHandler("image");
34596
34607
  const imageWidth = this.imageAction[nodeId].props.width ? this.imageAction[nodeId].props.width : imageSource?.width;
34597
34608
  const imageHeight = this.imageAction[nodeId].props.height ? this.imageAction[nodeId].props.height : imageSource?.height;
@@ -34658,9 +34669,9 @@ var WeaveImageToolAction = class extends WeaveAction {
34658
34669
  props: this.initProps(),
34659
34670
  imageId: nodeId,
34660
34671
  clickPoint: null,
34661
- container: void 0,
34662
34672
  imageFile: null,
34663
34673
  imageURL: null,
34674
+ container: params?.container,
34664
34675
  forceMainContainer: params?.forceMainContainer ?? false,
34665
34676
  uploadType: null,
34666
34677
  uploadImageFunction: null
@@ -34867,12 +34878,13 @@ var WeaveImagesToolAction = class extends WeaveAction {
34867
34878
  const dragProperties = this.instance.getDragProperties();
34868
34879
  if (dragProperties && dragId === WEAVE_IMAGES_TOOL_ACTION_NAME) {
34869
34880
  this.instance.getStage().setPointersPositions(e);
34870
- const position = this.instance.getStage().getRelativePointerPosition();
34871
- if (!position) return;
34881
+ const { mousePoint, container } = this.instance.getMousePointer();
34882
+ if (!mousePoint) return;
34872
34883
  this.instance.triggerAction(WEAVE_IMAGES_TOOL_ACTION_NAME, {
34873
34884
  type: WEAVE_IMAGES_TOOL_UPLOAD_TYPE.IMAGE_URL,
34874
34885
  images: dragProperties.imagesURL,
34875
- position,
34886
+ container,
34887
+ position: mousePoint,
34876
34888
  ...dragProperties.forceMainContainer && { forceMainContainer: dragProperties.forceMainContainer }
34877
34889
  });
34878
34890
  }
@@ -35033,7 +35045,8 @@ var WeaveImagesToolAction = class extends WeaveAction {
35033
35045
  stage.container().style.cursor = "default";
35034
35046
  const { mousePoint, container } = this.instance.getMousePointer(position);
35035
35047
  this.clickPoint = mousePoint;
35036
- this.container = container;
35048
+ this.stageClickPoint = position ? position : stage.getRelativePointerPosition();
35049
+ this.container = this.container ?? container;
35037
35050
  const originPoint = {
35038
35051
  x: this.clickPoint?.x ?? 0,
35039
35052
  y: this.clickPoint?.y ?? 0
@@ -35088,10 +35101,8 @@ var WeaveImagesToolAction = class extends WeaveAction {
35088
35101
  },
35089
35102
  uploadImageFunction: uploadImageFunctionInternal,
35090
35103
  ...imageId && { imageId },
35091
- position: {
35092
- x: position$1.x,
35093
- y: position$1.y
35094
- },
35104
+ position: position$1,
35105
+ container: this.container,
35095
35106
  forceMainContainer: this.forceMainContainer,
35096
35107
  nodeId: nodeId$1
35097
35108
  }, true);
@@ -35125,10 +35136,8 @@ var WeaveImagesToolAction = class extends WeaveAction {
35125
35136
  },
35126
35137
  ...imageId && { imageId },
35127
35138
  ...options && { options },
35128
- position: {
35129
- x: position$1.x,
35130
- y: position$1.y
35131
- },
35139
+ position: position$1,
35140
+ container: this.container,
35132
35141
  forceMainContainer: this.forceMainContainer,
35133
35142
  nodeId: nodeId$1
35134
35143
  }, true);
@@ -35161,6 +35170,7 @@ var WeaveImagesToolAction = class extends WeaveAction {
35161
35170
  const selectionPlugin = this.instance.getPlugin("nodesSelection");
35162
35171
  if (selectionPlugin) selectionPlugin.setSelectedNodes([]);
35163
35172
  if (params?.position) this.setState(WEAVE_IMAGES_TOOL_STATE.SELECTED_POSITION);
35173
+ if (params?.container) this.container = params.container;
35164
35174
  this.nodesIds = [];
35165
35175
  this.forceMainContainer = params.forceMainContainer ?? false;
35166
35176
  if (params.type === WEAVE_IMAGES_TOOL_UPLOAD_TYPE.FILE) {
@@ -35216,6 +35226,7 @@ var WeaveImagesToolAction = class extends WeaveAction {
35216
35226
  this.forceMainContainer = false;
35217
35227
  this.initialCursor = null;
35218
35228
  this.container = void 0;
35229
+ this.stageClickPoint = null;
35219
35230
  this.clickPoint = null;
35220
35231
  this.nodesIds = [];
35221
35232
  this.toAdd = 0;
@@ -36978,11 +36989,13 @@ var WeaveVideoToolAction = class extends WeaveAction {
36978
36989
  const dragProperties = this.instance.getDragProperties();
36979
36990
  if (dragProperties && dragId === VIDEO_TOOL_ACTION_NAME) {
36980
36991
  this.instance.getStage().setPointersPositions(e);
36981
- const position = this.instance.getStage().getRelativePointerPosition();
36992
+ const { mousePoint, container } = this.instance.getMousePointer();
36993
+ if (!mousePoint) return;
36982
36994
  this.instance.triggerAction(VIDEO_TOOL_ACTION_NAME, {
36983
36995
  videoId: dragProperties.videoId,
36984
36996
  videoParams: dragProperties.videoParams,
36985
- position
36997
+ container,
36998
+ position: mousePoint
36986
36999
  });
36987
37000
  }
36988
37001
  });
@@ -37033,7 +37046,7 @@ var WeaveVideoToolAction = class extends WeaveAction {
37033
37046
  if (this.videoId && this.videoParams) {
37034
37047
  const { mousePoint, container } = this.instance.getMousePointer(position);
37035
37048
  this.clickPoint = mousePoint;
37036
- this.container = container;
37049
+ this.container = this.container ?? container;
37037
37050
  const nodeHandler = this.instance.getNodeHandler("video");
37038
37051
  if (nodeHandler) {
37039
37052
  const node = nodeHandler.create(this.videoId, {
@@ -37064,6 +37077,7 @@ var WeaveVideoToolAction = class extends WeaveAction {
37064
37077
  this.cancelAction = cancelAction;
37065
37078
  const selectionPlugin = this.instance.getPlugin("nodesSelection");
37066
37079
  if (selectionPlugin) selectionPlugin.setSelectedNodes([]);
37080
+ this.container = params?.container;
37067
37081
  this.forceMainContainer = params?.forceMainContainer ?? false;
37068
37082
  if (params?.videoId) this.updateProps({ videoId: params.videoId });
37069
37083
  if (params?.videoParams) {
package/dist/types.d.ts CHANGED
@@ -8,12 +8,12 @@ import * as konva_lib_types8 from "konva/lib/types";
8
8
  import * as konva_lib_types22 from "konva/lib/types";
9
9
  import * as konva_lib_types23 from "konva/lib/types";
10
10
  import { Vector2d } from "konva/lib/types";
11
- import * as konva_lib_Node18 from "konva/lib/Node";
12
- import * as konva_lib_Node19 from "konva/lib/Node";
13
11
  import * as konva_lib_Node14 from "konva/lib/Node";
14
12
  import * as konva_lib_Node15 from "konva/lib/Node";
15
13
  import * as konva_lib_Node16 from "konva/lib/Node";
16
14
  import * as konva_lib_Node17 from "konva/lib/Node";
15
+ import * as konva_lib_Node18 from "konva/lib/Node";
16
+ import * as konva_lib_Node19 from "konva/lib/Node";
17
17
  import * as konva_lib_Node0 from "konva/lib/Node";
18
18
  import * as konva_lib_Node1 from "konva/lib/Node";
19
19
  import * as konva_lib_Node2 from "konva/lib/Node";
@@ -952,7 +952,7 @@ declare class WeaveTargetingManager {
952
952
  nodeIntersectsContainerElement(node: Konva.Node | Konva.Transformer, actualLayer?: Konva.Layer | Konva.Group): Konva.Node | undefined;
953
953
  getMousePointer(point?: Konva.Vector2d): WeaveMousePointInfo;
954
954
  getMousePointerRelativeToContainer(container: Konva.Node | Konva.Layer): WeaveMousePointInfoSimple;
955
- getRealSelectedNode: (nodeTarget: Konva.Node) => konva_lib_Node19.Node<konva_lib_Node18.NodeConfig>;
955
+ getRealSelectedNode: (nodeTarget: Konva.Node) => konva_lib_Node15.Node<konva_lib_Node14.NodeConfig>;
956
956
  }
957
957
 
958
958
  //#endregion
@@ -971,8 +971,8 @@ declare class WeaveCloningManager {
971
971
  cloneNode(targetNode: Konva.Node): Konva.Node | undefined;
972
972
  addClone(node: Konva.Node): void;
973
973
  removeClone(node: Konva.Node): void;
974
- getClones(): konva_lib_Node15.Node<konva_lib_Node14.NodeConfig>[];
975
- isClone(node: Konva.Node): konva_lib_Node17.Node<konva_lib_Node16.NodeConfig> | undefined;
974
+ getClones(): konva_lib_Node17.Node<konva_lib_Node16.NodeConfig>[];
975
+ isClone(node: Konva.Node): konva_lib_Node19.Node<konva_lib_Node18.NodeConfig> | undefined;
976
976
  cleanupClones(): void;
977
977
  }
978
978
 
@@ -3415,6 +3415,7 @@ type WeaveImageToolActionTriggerCommonParams = {
3415
3415
  imageId?: string;
3416
3416
  options?: ImageOptions;
3417
3417
  position?: Konva.Vector2d;
3418
+ container?: Konva.Layer | Konva.Group;
3418
3419
  forceMainContainer?: boolean;
3419
3420
  };
3420
3421
  type WeaveImageFile = {
@@ -3554,6 +3555,7 @@ type ImageInfo = {
3554
3555
  };
3555
3556
  type WeaveImagesToolActionTriggerCommonParams = {
3556
3557
  position?: Vector2d;
3558
+ container?: Konva.Layer | Konva.Group;
3557
3559
  forceMainContainer?: boolean;
3558
3560
  };
3559
3561
  type WeaveImagesToolActionInternalUploadFunction = () => Promise<void>;
@@ -3636,6 +3638,7 @@ declare class WeaveImagesToolAction extends WeaveAction {
3636
3638
  protected imagesFile: WeaveImagesFile[];
3637
3639
  protected imagesURL: WeaveImagesURL[];
3638
3640
  protected preloadImgs: Record<string, HTMLImageElement>;
3641
+ protected stageClickPoint: Vector2d | null;
3639
3642
  protected clickPoint: Vector2d | null;
3640
3643
  protected forceMainContainer: boolean;
3641
3644
  protected cancelAction: () => void;
@@ -4232,6 +4235,7 @@ type WeaveVideoToolDragParams = {
4232
4235
  type WeaveVideoToolActionTriggerParams = {
4233
4236
  videoId?: string;
4234
4237
  videoParams?: WeaveVideoToolDragParams;
4238
+ container?: Konva.Layer | Konva.Group;
4235
4239
  position?: Konva.Vector2d;
4236
4240
  forceMainContainer?: boolean;
4237
4241
  };