@inditextech/weave-sdk 3.8.2 → 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 +33 -23
- package/dist/sdk.node.js +33 -23
- package/dist/types.d.ts +18 -14
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +33 -23
- package/dist/types.js.map +1 -1
- package/package.json +2 -2
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
|
|
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.
|
|
22017
|
+
var version = "3.8.3-SNAPSHOT.214.1";
|
|
22012
22018
|
|
|
22013
22019
|
//#endregion
|
|
22014
22020
|
//#region src/managers/setup.ts
|
|
@@ -34422,14 +34428,15 @@ var WeaveImageToolAction = class extends WeaveAction {
|
|
|
34422
34428
|
const dragProperties = this.instance.getDragProperties();
|
|
34423
34429
|
if (dragProperties && dragId === WEAVE_IMAGE_TOOL_ACTION_NAME) {
|
|
34424
34430
|
this.instance.getStage().setPointersPositions(e);
|
|
34425
|
-
const
|
|
34426
|
-
if (!
|
|
34431
|
+
const { mousePoint, container } = this.instance.getMousePointer();
|
|
34432
|
+
if (!mousePoint) return;
|
|
34427
34433
|
this.instance.triggerAction(WEAVE_IMAGE_TOOL_ACTION_NAME, {
|
|
34428
34434
|
type: WEAVE_IMAGE_TOOL_UPLOAD_TYPE.IMAGE_URL,
|
|
34429
34435
|
image: dragProperties.imageURL,
|
|
34430
34436
|
...dragProperties.imageId ? { imageId: dragProperties.imageId } : {},
|
|
34431
34437
|
...dragProperties.forceMainContainer && { forceMainContainer: dragProperties.forceMainContainer },
|
|
34432
|
-
|
|
34438
|
+
container,
|
|
34439
|
+
position: mousePoint
|
|
34433
34440
|
});
|
|
34434
34441
|
}
|
|
34435
34442
|
});
|
|
@@ -34596,7 +34603,7 @@ var WeaveImageToolAction = class extends WeaveAction {
|
|
|
34596
34603
|
}
|
|
34597
34604
|
const { mousePoint, container } = this.instance.getMousePointer(position);
|
|
34598
34605
|
this.imageAction[nodeId].clickPoint = mousePoint;
|
|
34599
|
-
this.imageAction[nodeId].container = container;
|
|
34606
|
+
this.imageAction[nodeId].container = this.imageAction[nodeId].container ?? container;
|
|
34600
34607
|
const nodeHandler = this.instance.getNodeHandler("image");
|
|
34601
34608
|
const imageWidth = this.imageAction[nodeId].props.width ? this.imageAction[nodeId].props.width : imageSource?.width;
|
|
34602
34609
|
const imageHeight = this.imageAction[nodeId].props.height ? this.imageAction[nodeId].props.height : imageSource?.height;
|
|
@@ -34663,9 +34670,9 @@ var WeaveImageToolAction = class extends WeaveAction {
|
|
|
34663
34670
|
props: this.initProps(),
|
|
34664
34671
|
imageId: nodeId,
|
|
34665
34672
|
clickPoint: null,
|
|
34666
|
-
container: void 0,
|
|
34667
34673
|
imageFile: null,
|
|
34668
34674
|
imageURL: null,
|
|
34675
|
+
container: params?.container,
|
|
34669
34676
|
forceMainContainer: params?.forceMainContainer ?? false,
|
|
34670
34677
|
uploadType: null,
|
|
34671
34678
|
uploadImageFunction: null
|
|
@@ -34872,12 +34879,13 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
34872
34879
|
const dragProperties = this.instance.getDragProperties();
|
|
34873
34880
|
if (dragProperties && dragId === WEAVE_IMAGES_TOOL_ACTION_NAME) {
|
|
34874
34881
|
this.instance.getStage().setPointersPositions(e);
|
|
34875
|
-
const
|
|
34876
|
-
if (!
|
|
34882
|
+
const { mousePoint, container } = this.instance.getMousePointer();
|
|
34883
|
+
if (!mousePoint) return;
|
|
34877
34884
|
this.instance.triggerAction(WEAVE_IMAGES_TOOL_ACTION_NAME, {
|
|
34878
34885
|
type: WEAVE_IMAGES_TOOL_UPLOAD_TYPE.IMAGE_URL,
|
|
34879
34886
|
images: dragProperties.imagesURL,
|
|
34880
|
-
|
|
34887
|
+
container,
|
|
34888
|
+
position: mousePoint,
|
|
34881
34889
|
...dragProperties.forceMainContainer && { forceMainContainer: dragProperties.forceMainContainer }
|
|
34882
34890
|
});
|
|
34883
34891
|
}
|
|
@@ -35038,7 +35046,8 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35038
35046
|
stage.container().style.cursor = "default";
|
|
35039
35047
|
const { mousePoint, container } = this.instance.getMousePointer(position);
|
|
35040
35048
|
this.clickPoint = mousePoint;
|
|
35041
|
-
this.
|
|
35049
|
+
this.stageClickPoint = position ? position : stage.getRelativePointerPosition();
|
|
35050
|
+
this.container = this.container ?? container;
|
|
35042
35051
|
const originPoint = {
|
|
35043
35052
|
x: this.clickPoint?.x ?? 0,
|
|
35044
35053
|
y: this.clickPoint?.y ?? 0
|
|
@@ -35093,10 +35102,8 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35093
35102
|
},
|
|
35094
35103
|
uploadImageFunction: uploadImageFunctionInternal,
|
|
35095
35104
|
...imageId && { imageId },
|
|
35096
|
-
position:
|
|
35097
|
-
|
|
35098
|
-
y: position$1.y
|
|
35099
|
-
},
|
|
35105
|
+
position: position$1,
|
|
35106
|
+
container: this.container,
|
|
35100
35107
|
forceMainContainer: this.forceMainContainer,
|
|
35101
35108
|
nodeId: nodeId$1
|
|
35102
35109
|
}, true);
|
|
@@ -35130,10 +35137,8 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35130
35137
|
},
|
|
35131
35138
|
...imageId && { imageId },
|
|
35132
35139
|
...options && { options },
|
|
35133
|
-
position:
|
|
35134
|
-
|
|
35135
|
-
y: position$1.y
|
|
35136
|
-
},
|
|
35140
|
+
position: position$1,
|
|
35141
|
+
container: this.container,
|
|
35137
35142
|
forceMainContainer: this.forceMainContainer,
|
|
35138
35143
|
nodeId: nodeId$1
|
|
35139
35144
|
}, true);
|
|
@@ -35166,6 +35171,7 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35166
35171
|
const selectionPlugin = this.instance.getPlugin("nodesSelection");
|
|
35167
35172
|
if (selectionPlugin) selectionPlugin.setSelectedNodes([]);
|
|
35168
35173
|
if (params?.position) this.setState(WEAVE_IMAGES_TOOL_STATE.SELECTED_POSITION);
|
|
35174
|
+
if (params?.container) this.container = params.container;
|
|
35169
35175
|
this.nodesIds = [];
|
|
35170
35176
|
this.forceMainContainer = params.forceMainContainer ?? false;
|
|
35171
35177
|
if (params.type === WEAVE_IMAGES_TOOL_UPLOAD_TYPE.FILE) {
|
|
@@ -35221,6 +35227,7 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35221
35227
|
this.forceMainContainer = false;
|
|
35222
35228
|
this.initialCursor = null;
|
|
35223
35229
|
this.container = void 0;
|
|
35230
|
+
this.stageClickPoint = null;
|
|
35224
35231
|
this.clickPoint = null;
|
|
35225
35232
|
this.nodesIds = [];
|
|
35226
35233
|
this.toAdd = 0;
|
|
@@ -36983,11 +36990,13 @@ var WeaveVideoToolAction = class extends WeaveAction {
|
|
|
36983
36990
|
const dragProperties = this.instance.getDragProperties();
|
|
36984
36991
|
if (dragProperties && dragId === VIDEO_TOOL_ACTION_NAME) {
|
|
36985
36992
|
this.instance.getStage().setPointersPositions(e);
|
|
36986
|
-
const
|
|
36993
|
+
const { mousePoint, container } = this.instance.getMousePointer();
|
|
36994
|
+
if (!mousePoint) return;
|
|
36987
36995
|
this.instance.triggerAction(VIDEO_TOOL_ACTION_NAME, {
|
|
36988
36996
|
videoId: dragProperties.videoId,
|
|
36989
36997
|
videoParams: dragProperties.videoParams,
|
|
36990
|
-
|
|
36998
|
+
container,
|
|
36999
|
+
position: mousePoint
|
|
36991
37000
|
});
|
|
36992
37001
|
}
|
|
36993
37002
|
});
|
|
@@ -37038,7 +37047,7 @@ var WeaveVideoToolAction = class extends WeaveAction {
|
|
|
37038
37047
|
if (this.videoId && this.videoParams) {
|
|
37039
37048
|
const { mousePoint, container } = this.instance.getMousePointer(position);
|
|
37040
37049
|
this.clickPoint = mousePoint;
|
|
37041
|
-
this.container = container;
|
|
37050
|
+
this.container = this.container ?? container;
|
|
37042
37051
|
const nodeHandler = this.instance.getNodeHandler("video");
|
|
37043
37052
|
if (nodeHandler) {
|
|
37044
37053
|
const node = nodeHandler.create(this.videoId, {
|
|
@@ -37069,6 +37078,7 @@ var WeaveVideoToolAction = class extends WeaveAction {
|
|
|
37069
37078
|
this.cancelAction = cancelAction;
|
|
37070
37079
|
const selectionPlugin = this.instance.getPlugin("nodesSelection");
|
|
37071
37080
|
if (selectionPlugin) selectionPlugin.setSelectedNodes([]);
|
|
37081
|
+
this.container = params?.container;
|
|
37072
37082
|
this.forceMainContainer = params?.forceMainContainer ?? false;
|
|
37073
37083
|
if (params?.videoId) this.updateProps({ videoId: params.videoId });
|
|
37074
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
|
|
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.
|
|
22016
|
+
var version = "3.8.3-SNAPSHOT.214.1";
|
|
22011
22017
|
|
|
22012
22018
|
//#endregion
|
|
22013
22019
|
//#region src/managers/setup.ts
|
|
@@ -34421,14 +34427,15 @@ var WeaveImageToolAction = class extends WeaveAction {
|
|
|
34421
34427
|
const dragProperties = this.instance.getDragProperties();
|
|
34422
34428
|
if (dragProperties && dragId === WEAVE_IMAGE_TOOL_ACTION_NAME) {
|
|
34423
34429
|
this.instance.getStage().setPointersPositions(e);
|
|
34424
|
-
const
|
|
34425
|
-
if (!
|
|
34430
|
+
const { mousePoint, container } = this.instance.getMousePointer();
|
|
34431
|
+
if (!mousePoint) return;
|
|
34426
34432
|
this.instance.triggerAction(WEAVE_IMAGE_TOOL_ACTION_NAME, {
|
|
34427
34433
|
type: WEAVE_IMAGE_TOOL_UPLOAD_TYPE.IMAGE_URL,
|
|
34428
34434
|
image: dragProperties.imageURL,
|
|
34429
34435
|
...dragProperties.imageId ? { imageId: dragProperties.imageId } : {},
|
|
34430
34436
|
...dragProperties.forceMainContainer && { forceMainContainer: dragProperties.forceMainContainer },
|
|
34431
|
-
|
|
34437
|
+
container,
|
|
34438
|
+
position: mousePoint
|
|
34432
34439
|
});
|
|
34433
34440
|
}
|
|
34434
34441
|
});
|
|
@@ -34595,7 +34602,7 @@ var WeaveImageToolAction = class extends WeaveAction {
|
|
|
34595
34602
|
}
|
|
34596
34603
|
const { mousePoint, container } = this.instance.getMousePointer(position);
|
|
34597
34604
|
this.imageAction[nodeId].clickPoint = mousePoint;
|
|
34598
|
-
this.imageAction[nodeId].container = container;
|
|
34605
|
+
this.imageAction[nodeId].container = this.imageAction[nodeId].container ?? container;
|
|
34599
34606
|
const nodeHandler = this.instance.getNodeHandler("image");
|
|
34600
34607
|
const imageWidth = this.imageAction[nodeId].props.width ? this.imageAction[nodeId].props.width : imageSource?.width;
|
|
34601
34608
|
const imageHeight = this.imageAction[nodeId].props.height ? this.imageAction[nodeId].props.height : imageSource?.height;
|
|
@@ -34662,9 +34669,9 @@ var WeaveImageToolAction = class extends WeaveAction {
|
|
|
34662
34669
|
props: this.initProps(),
|
|
34663
34670
|
imageId: nodeId,
|
|
34664
34671
|
clickPoint: null,
|
|
34665
|
-
container: void 0,
|
|
34666
34672
|
imageFile: null,
|
|
34667
34673
|
imageURL: null,
|
|
34674
|
+
container: params?.container,
|
|
34668
34675
|
forceMainContainer: params?.forceMainContainer ?? false,
|
|
34669
34676
|
uploadType: null,
|
|
34670
34677
|
uploadImageFunction: null
|
|
@@ -34871,12 +34878,13 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
34871
34878
|
const dragProperties = this.instance.getDragProperties();
|
|
34872
34879
|
if (dragProperties && dragId === WEAVE_IMAGES_TOOL_ACTION_NAME) {
|
|
34873
34880
|
this.instance.getStage().setPointersPositions(e);
|
|
34874
|
-
const
|
|
34875
|
-
if (!
|
|
34881
|
+
const { mousePoint, container } = this.instance.getMousePointer();
|
|
34882
|
+
if (!mousePoint) return;
|
|
34876
34883
|
this.instance.triggerAction(WEAVE_IMAGES_TOOL_ACTION_NAME, {
|
|
34877
34884
|
type: WEAVE_IMAGES_TOOL_UPLOAD_TYPE.IMAGE_URL,
|
|
34878
34885
|
images: dragProperties.imagesURL,
|
|
34879
|
-
|
|
34886
|
+
container,
|
|
34887
|
+
position: mousePoint,
|
|
34880
34888
|
...dragProperties.forceMainContainer && { forceMainContainer: dragProperties.forceMainContainer }
|
|
34881
34889
|
});
|
|
34882
34890
|
}
|
|
@@ -35037,7 +35045,8 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35037
35045
|
stage.container().style.cursor = "default";
|
|
35038
35046
|
const { mousePoint, container } = this.instance.getMousePointer(position);
|
|
35039
35047
|
this.clickPoint = mousePoint;
|
|
35040
|
-
this.
|
|
35048
|
+
this.stageClickPoint = position ? position : stage.getRelativePointerPosition();
|
|
35049
|
+
this.container = this.container ?? container;
|
|
35041
35050
|
const originPoint = {
|
|
35042
35051
|
x: this.clickPoint?.x ?? 0,
|
|
35043
35052
|
y: this.clickPoint?.y ?? 0
|
|
@@ -35092,10 +35101,8 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35092
35101
|
},
|
|
35093
35102
|
uploadImageFunction: uploadImageFunctionInternal,
|
|
35094
35103
|
...imageId && { imageId },
|
|
35095
|
-
position:
|
|
35096
|
-
|
|
35097
|
-
y: position$1.y
|
|
35098
|
-
},
|
|
35104
|
+
position: position$1,
|
|
35105
|
+
container: this.container,
|
|
35099
35106
|
forceMainContainer: this.forceMainContainer,
|
|
35100
35107
|
nodeId: nodeId$1
|
|
35101
35108
|
}, true);
|
|
@@ -35129,10 +35136,8 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35129
35136
|
},
|
|
35130
35137
|
...imageId && { imageId },
|
|
35131
35138
|
...options && { options },
|
|
35132
|
-
position:
|
|
35133
|
-
|
|
35134
|
-
y: position$1.y
|
|
35135
|
-
},
|
|
35139
|
+
position: position$1,
|
|
35140
|
+
container: this.container,
|
|
35136
35141
|
forceMainContainer: this.forceMainContainer,
|
|
35137
35142
|
nodeId: nodeId$1
|
|
35138
35143
|
}, true);
|
|
@@ -35165,6 +35170,7 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35165
35170
|
const selectionPlugin = this.instance.getPlugin("nodesSelection");
|
|
35166
35171
|
if (selectionPlugin) selectionPlugin.setSelectedNodes([]);
|
|
35167
35172
|
if (params?.position) this.setState(WEAVE_IMAGES_TOOL_STATE.SELECTED_POSITION);
|
|
35173
|
+
if (params?.container) this.container = params.container;
|
|
35168
35174
|
this.nodesIds = [];
|
|
35169
35175
|
this.forceMainContainer = params.forceMainContainer ?? false;
|
|
35170
35176
|
if (params.type === WEAVE_IMAGES_TOOL_UPLOAD_TYPE.FILE) {
|
|
@@ -35220,6 +35226,7 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35220
35226
|
this.forceMainContainer = false;
|
|
35221
35227
|
this.initialCursor = null;
|
|
35222
35228
|
this.container = void 0;
|
|
35229
|
+
this.stageClickPoint = null;
|
|
35223
35230
|
this.clickPoint = null;
|
|
35224
35231
|
this.nodesIds = [];
|
|
35225
35232
|
this.toAdd = 0;
|
|
@@ -36982,11 +36989,13 @@ var WeaveVideoToolAction = class extends WeaveAction {
|
|
|
36982
36989
|
const dragProperties = this.instance.getDragProperties();
|
|
36983
36990
|
if (dragProperties && dragId === VIDEO_TOOL_ACTION_NAME) {
|
|
36984
36991
|
this.instance.getStage().setPointersPositions(e);
|
|
36985
|
-
const
|
|
36992
|
+
const { mousePoint, container } = this.instance.getMousePointer();
|
|
36993
|
+
if (!mousePoint) return;
|
|
36986
36994
|
this.instance.triggerAction(VIDEO_TOOL_ACTION_NAME, {
|
|
36987
36995
|
videoId: dragProperties.videoId,
|
|
36988
36996
|
videoParams: dragProperties.videoParams,
|
|
36989
|
-
|
|
36997
|
+
container,
|
|
36998
|
+
position: mousePoint
|
|
36990
36999
|
});
|
|
36991
37000
|
}
|
|
36992
37001
|
});
|
|
@@ -37037,7 +37046,7 @@ var WeaveVideoToolAction = class extends WeaveAction {
|
|
|
37037
37046
|
if (this.videoId && this.videoParams) {
|
|
37038
37047
|
const { mousePoint, container } = this.instance.getMousePointer(position);
|
|
37039
37048
|
this.clickPoint = mousePoint;
|
|
37040
|
-
this.container = container;
|
|
37049
|
+
this.container = this.container ?? container;
|
|
37041
37050
|
const nodeHandler = this.instance.getNodeHandler("video");
|
|
37042
37051
|
if (nodeHandler) {
|
|
37043
37052
|
const node = nodeHandler.create(this.videoId, {
|
|
@@ -37068,6 +37077,7 @@ var WeaveVideoToolAction = class extends WeaveAction {
|
|
|
37068
37077
|
this.cancelAction = cancelAction;
|
|
37069
37078
|
const selectionPlugin = this.instance.getPlugin("nodesSelection");
|
|
37070
37079
|
if (selectionPlugin) selectionPlugin.setSelectedNodes([]);
|
|
37080
|
+
this.container = params?.container;
|
|
37071
37081
|
this.forceMainContainer = params?.forceMainContainer ?? false;
|
|
37072
37082
|
if (params?.videoId) this.updateProps({ videoId: params.videoId });
|
|
37073
37083
|
if (params?.videoParams) {
|
package/dist/types.d.ts
CHANGED
|
@@ -5,15 +5,15 @@ import * as Y$1 from "yjs";
|
|
|
5
5
|
import * as Y from "yjs";
|
|
6
6
|
import { Doc } from "yjs";
|
|
7
7
|
import * as konva_lib_types8 from "konva/lib/types";
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
8
|
+
import * as konva_lib_types22 from "konva/lib/types";
|
|
9
|
+
import * as konva_lib_types23 from "konva/lib/types";
|
|
10
10
|
import { Vector2d } from "konva/lib/types";
|
|
11
|
+
import * as konva_lib_Node14 from "konva/lib/Node";
|
|
12
|
+
import * as konva_lib_Node15 from "konva/lib/Node";
|
|
13
|
+
import * as konva_lib_Node16 from "konva/lib/Node";
|
|
14
|
+
import * as konva_lib_Node17 from "konva/lib/Node";
|
|
11
15
|
import * as konva_lib_Node18 from "konva/lib/Node";
|
|
12
16
|
import * as konva_lib_Node19 from "konva/lib/Node";
|
|
13
|
-
import * as konva_lib_Node20 from "konva/lib/Node";
|
|
14
|
-
import * as konva_lib_Node21 from "konva/lib/Node";
|
|
15
|
-
import * as konva_lib_Node22 from "konva/lib/Node";
|
|
16
|
-
import * as konva_lib_Node23 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";
|
|
@@ -29,8 +29,8 @@ import { Stage, StageConfig } from "konva/lib/Stage";
|
|
|
29
29
|
import * as konva_lib_shapes_Transformer4 from "konva/lib/shapes/Transformer";
|
|
30
30
|
import { TransformerConfig } from "konva/lib/shapes/Transformer";
|
|
31
31
|
import * as konva_lib_shapes_Rect12 from "konva/lib/shapes/Rect";
|
|
32
|
-
import * as
|
|
33
|
-
import * as
|
|
32
|
+
import * as konva_lib_shapes_Line20 from "konva/lib/shapes/Line";
|
|
33
|
+
import * as konva_lib_shapes_Line21 from "konva/lib/shapes/Line";
|
|
34
34
|
import * as konva_lib_Layer13 from "konva/lib/Layer";
|
|
35
35
|
|
|
36
36
|
//#region src/stores/store.d.ts
|
|
@@ -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) =>
|
|
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():
|
|
975
|
-
isClone(node: Konva.Node):
|
|
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
|
|
|
@@ -2189,10 +2189,10 @@ declare class WeaveBaseLineTipManager {
|
|
|
2189
2189
|
render(instance: Konva.Group, point: WeaveStrokeSingleNodeTipSide): void;
|
|
2190
2190
|
update(instance: Konva.Group, point: WeaveStrokeSingleNodeTipSide): void;
|
|
2191
2191
|
protected getTip(instance: Konva.Group, point: WeaveStrokeSingleNodeTipSide): Konva.Node | undefined;
|
|
2192
|
-
protected getInternalLine(instance: Konva.Group):
|
|
2192
|
+
protected getInternalLine(instance: Konva.Group): konva_lib_shapes_Line21.Line<konva_lib_shapes_Line20.LineConfig> | undefined;
|
|
2193
2193
|
protected getLinePoints(instance: Konva.Group): {
|
|
2194
|
-
lineStartPoint:
|
|
2195
|
-
lineEndPoint:
|
|
2194
|
+
lineStartPoint: konva_lib_types22.Vector2d;
|
|
2195
|
+
lineEndPoint: konva_lib_types23.Vector2d;
|
|
2196
2196
|
};
|
|
2197
2197
|
}
|
|
2198
2198
|
|
|
@@ -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
|
};
|