@inditextech/weave-sdk 3.8.3-SNAPSHOT.220.1 → 3.8.3-SNAPSHOT.222.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 +31 -23
- package/dist/sdk.node.js +31 -23
- package/dist/types.d.ts +17 -14
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +31 -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 && point === void 0) relativeMousePointer = containerAlt.getRelativePointerPosition() ?? relativeMousePointer;
|
|
21416
|
+
if (!containerAlt && point === void 0) {
|
|
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.3-SNAPSHOT.
|
|
22017
|
+
var version = "3.8.3-SNAPSHOT.222.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,7 @@ 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.container = container;
|
|
35049
|
+
this.container = this.container ?? container;
|
|
35042
35050
|
const originPoint = {
|
|
35043
35051
|
x: this.clickPoint?.x ?? 0,
|
|
35044
35052
|
y: this.clickPoint?.y ?? 0
|
|
@@ -35093,10 +35101,8 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35093
35101
|
},
|
|
35094
35102
|
uploadImageFunction: uploadImageFunctionInternal,
|
|
35095
35103
|
...imageId && { imageId },
|
|
35096
|
-
position:
|
|
35097
|
-
|
|
35098
|
-
y: position$1.y
|
|
35099
|
-
},
|
|
35104
|
+
position: position$1,
|
|
35105
|
+
container: this.container,
|
|
35100
35106
|
forceMainContainer: this.forceMainContainer,
|
|
35101
35107
|
nodeId: nodeId$1
|
|
35102
35108
|
}, true);
|
|
@@ -35130,10 +35136,8 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35130
35136
|
},
|
|
35131
35137
|
...imageId && { imageId },
|
|
35132
35138
|
...options && { options },
|
|
35133
|
-
position:
|
|
35134
|
-
|
|
35135
|
-
y: position$1.y
|
|
35136
|
-
},
|
|
35139
|
+
position: position$1,
|
|
35140
|
+
container: this.container,
|
|
35137
35141
|
forceMainContainer: this.forceMainContainer,
|
|
35138
35142
|
nodeId: nodeId$1
|
|
35139
35143
|
}, true);
|
|
@@ -35166,6 +35170,7 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35166
35170
|
const selectionPlugin = this.instance.getPlugin("nodesSelection");
|
|
35167
35171
|
if (selectionPlugin) selectionPlugin.setSelectedNodes([]);
|
|
35168
35172
|
if (params?.position) this.setState(WEAVE_IMAGES_TOOL_STATE.SELECTED_POSITION);
|
|
35173
|
+
if (params?.container) this.container = params.container;
|
|
35169
35174
|
this.nodesIds = [];
|
|
35170
35175
|
this.forceMainContainer = params.forceMainContainer ?? false;
|
|
35171
35176
|
if (params.type === WEAVE_IMAGES_TOOL_UPLOAD_TYPE.FILE) {
|
|
@@ -36983,11 +36988,13 @@ var WeaveVideoToolAction = class extends WeaveAction {
|
|
|
36983
36988
|
const dragProperties = this.instance.getDragProperties();
|
|
36984
36989
|
if (dragProperties && dragId === VIDEO_TOOL_ACTION_NAME) {
|
|
36985
36990
|
this.instance.getStage().setPointersPositions(e);
|
|
36986
|
-
const
|
|
36991
|
+
const { mousePoint, container } = this.instance.getMousePointer();
|
|
36992
|
+
if (!mousePoint) return;
|
|
36987
36993
|
this.instance.triggerAction(VIDEO_TOOL_ACTION_NAME, {
|
|
36988
36994
|
videoId: dragProperties.videoId,
|
|
36989
36995
|
videoParams: dragProperties.videoParams,
|
|
36990
|
-
|
|
36996
|
+
container,
|
|
36997
|
+
position: mousePoint
|
|
36991
36998
|
});
|
|
36992
36999
|
}
|
|
36993
37000
|
});
|
|
@@ -37038,7 +37045,7 @@ var WeaveVideoToolAction = class extends WeaveAction {
|
|
|
37038
37045
|
if (this.videoId && this.videoParams) {
|
|
37039
37046
|
const { mousePoint, container } = this.instance.getMousePointer(position);
|
|
37040
37047
|
this.clickPoint = mousePoint;
|
|
37041
|
-
this.container = container;
|
|
37048
|
+
this.container = this.container ?? container;
|
|
37042
37049
|
const nodeHandler = this.instance.getNodeHandler("video");
|
|
37043
37050
|
if (nodeHandler) {
|
|
37044
37051
|
const node = nodeHandler.create(this.videoId, {
|
|
@@ -37069,6 +37076,7 @@ var WeaveVideoToolAction = class extends WeaveAction {
|
|
|
37069
37076
|
this.cancelAction = cancelAction;
|
|
37070
37077
|
const selectionPlugin = this.instance.getPlugin("nodesSelection");
|
|
37071
37078
|
if (selectionPlugin) selectionPlugin.setSelectedNodes([]);
|
|
37079
|
+
this.container = params?.container;
|
|
37072
37080
|
this.forceMainContainer = params?.forceMainContainer ?? false;
|
|
37073
37081
|
if (params?.videoId) this.updateProps({ videoId: params.videoId });
|
|
37074
37082
|
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 && point === void 0) relativeMousePointer = containerAlt.getRelativePointerPosition() ?? relativeMousePointer;
|
|
21415
|
+
if (!containerAlt && point === void 0) {
|
|
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.3-SNAPSHOT.
|
|
22016
|
+
var version = "3.8.3-SNAPSHOT.222.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,7 @@ 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.container = container;
|
|
35048
|
+
this.container = this.container ?? container;
|
|
35041
35049
|
const originPoint = {
|
|
35042
35050
|
x: this.clickPoint?.x ?? 0,
|
|
35043
35051
|
y: this.clickPoint?.y ?? 0
|
|
@@ -35092,10 +35100,8 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35092
35100
|
},
|
|
35093
35101
|
uploadImageFunction: uploadImageFunctionInternal,
|
|
35094
35102
|
...imageId && { imageId },
|
|
35095
|
-
position:
|
|
35096
|
-
|
|
35097
|
-
y: position$1.y
|
|
35098
|
-
},
|
|
35103
|
+
position: position$1,
|
|
35104
|
+
container: this.container,
|
|
35099
35105
|
forceMainContainer: this.forceMainContainer,
|
|
35100
35106
|
nodeId: nodeId$1
|
|
35101
35107
|
}, true);
|
|
@@ -35129,10 +35135,8 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35129
35135
|
},
|
|
35130
35136
|
...imageId && { imageId },
|
|
35131
35137
|
...options && { options },
|
|
35132
|
-
position:
|
|
35133
|
-
|
|
35134
|
-
y: position$1.y
|
|
35135
|
-
},
|
|
35138
|
+
position: position$1,
|
|
35139
|
+
container: this.container,
|
|
35136
35140
|
forceMainContainer: this.forceMainContainer,
|
|
35137
35141
|
nodeId: nodeId$1
|
|
35138
35142
|
}, true);
|
|
@@ -35165,6 +35169,7 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35165
35169
|
const selectionPlugin = this.instance.getPlugin("nodesSelection");
|
|
35166
35170
|
if (selectionPlugin) selectionPlugin.setSelectedNodes([]);
|
|
35167
35171
|
if (params?.position) this.setState(WEAVE_IMAGES_TOOL_STATE.SELECTED_POSITION);
|
|
35172
|
+
if (params?.container) this.container = params.container;
|
|
35168
35173
|
this.nodesIds = [];
|
|
35169
35174
|
this.forceMainContainer = params.forceMainContainer ?? false;
|
|
35170
35175
|
if (params.type === WEAVE_IMAGES_TOOL_UPLOAD_TYPE.FILE) {
|
|
@@ -36982,11 +36987,13 @@ var WeaveVideoToolAction = class extends WeaveAction {
|
|
|
36982
36987
|
const dragProperties = this.instance.getDragProperties();
|
|
36983
36988
|
if (dragProperties && dragId === VIDEO_TOOL_ACTION_NAME) {
|
|
36984
36989
|
this.instance.getStage().setPointersPositions(e);
|
|
36985
|
-
const
|
|
36990
|
+
const { mousePoint, container } = this.instance.getMousePointer();
|
|
36991
|
+
if (!mousePoint) return;
|
|
36986
36992
|
this.instance.triggerAction(VIDEO_TOOL_ACTION_NAME, {
|
|
36987
36993
|
videoId: dragProperties.videoId,
|
|
36988
36994
|
videoParams: dragProperties.videoParams,
|
|
36989
|
-
|
|
36995
|
+
container,
|
|
36996
|
+
position: mousePoint
|
|
36990
36997
|
});
|
|
36991
36998
|
}
|
|
36992
36999
|
});
|
|
@@ -37037,7 +37044,7 @@ var WeaveVideoToolAction = class extends WeaveAction {
|
|
|
37037
37044
|
if (this.videoId && this.videoParams) {
|
|
37038
37045
|
const { mousePoint, container } = this.instance.getMousePointer(position);
|
|
37039
37046
|
this.clickPoint = mousePoint;
|
|
37040
|
-
this.container = container;
|
|
37047
|
+
this.container = this.container ?? container;
|
|
37041
37048
|
const nodeHandler = this.instance.getNodeHandler("video");
|
|
37042
37049
|
if (nodeHandler) {
|
|
37043
37050
|
const node = nodeHandler.create(this.videoId, {
|
|
@@ -37068,6 +37075,7 @@ var WeaveVideoToolAction = class extends WeaveAction {
|
|
|
37068
37075
|
this.cancelAction = cancelAction;
|
|
37069
37076
|
const selectionPlugin = this.instance.getPlugin("nodesSelection");
|
|
37070
37077
|
if (selectionPlugin) selectionPlugin.setSelectedNodes([]);
|
|
37078
|
+
this.container = params?.container;
|
|
37071
37079
|
this.forceMainContainer = params?.forceMainContainer ?? false;
|
|
37072
37080
|
if (params?.videoId) this.updateProps({ videoId: params.videoId });
|
|
37073
37081
|
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_types16 from "konva/lib/types";
|
|
9
|
+
import * as konva_lib_types17 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
|
+
import * as konva_lib_Node20 from "konva/lib/Node";
|
|
14
|
+
import * as konva_lib_Node21 from "konva/lib/Node";
|
|
11
15
|
import * as konva_lib_Node22 from "konva/lib/Node";
|
|
12
16
|
import * as konva_lib_Node23 from "konva/lib/Node";
|
|
13
|
-
import * as konva_lib_Node14 from "konva/lib/Node";
|
|
14
|
-
import * as konva_lib_Node15 from "konva/lib/Node";
|
|
15
|
-
import * as konva_lib_Node16 from "konva/lib/Node";
|
|
16
|
-
import * as konva_lib_Node17 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_Line14 from "konva/lib/shapes/Line";
|
|
33
|
+
import * as konva_lib_shapes_Line15 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_Node19.Node<konva_lib_Node18.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_Node21.Node<konva_lib_Node20.NodeConfig>[];
|
|
975
|
+
isClone(node: Konva.Node): konva_lib_Node23.Node<konva_lib_Node22.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_Line15.Line<konva_lib_shapes_Line14.LineConfig> | undefined;
|
|
2193
2193
|
protected getLinePoints(instance: Konva.Group): {
|
|
2194
|
-
lineStartPoint:
|
|
2195
|
-
lineEndPoint:
|
|
2194
|
+
lineStartPoint: konva_lib_types16.Vector2d;
|
|
2195
|
+
lineEndPoint: konva_lib_types17.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>;
|
|
@@ -4232,6 +4234,7 @@ type WeaveVideoToolDragParams = {
|
|
|
4232
4234
|
type WeaveVideoToolActionTriggerParams = {
|
|
4233
4235
|
videoId?: string;
|
|
4234
4236
|
videoParams?: WeaveVideoToolDragParams;
|
|
4237
|
+
container?: Konva.Layer | Konva.Group;
|
|
4235
4238
|
position?: Konva.Vector2d;
|
|
4236
4239
|
forceMainContainer?: boolean;
|
|
4237
4240
|
};
|