@inditextech/weave-sdk 3.8.3-SNAPSHOT.216.1 → 3.8.3-SNAPSHOT.220.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 +23 -31
- package/dist/sdk.node.js +23 -31
- package/dist/types.d.ts +12 -15
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +23 -31
- package/dist/types.js.map +1 -1
- package/package.json +2 -2
package/dist/sdk.js
CHANGED
|
@@ -21410,16 +21410,10 @@ 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();
|
|
21413
21414
|
const nodesSelection = this.instance.getPlugin("nodesSelection");
|
|
21414
21415
|
if (nodesSelection) nodesSelection.getTransformer().visible(false);
|
|
21415
|
-
|
|
21416
|
-
if (!containerAlt && point === void 0) {
|
|
21417
|
-
containerAlt = this.instance.getMainLayer();
|
|
21418
|
-
relativeMousePointer = containerAlt?.getRelativePointerPosition() ?? {
|
|
21419
|
-
x: 0,
|
|
21420
|
-
y: 0
|
|
21421
|
-
};
|
|
21422
|
-
}
|
|
21416
|
+
relativeMousePointer = containerAlt?.getRelativePointerPosition() ?? relativeMousePointer;
|
|
21423
21417
|
if (utilityLayer) utilityLayer.visible(true);
|
|
21424
21418
|
if (nodesSelection) nodesSelection.getTransformer().visible(true);
|
|
21425
21419
|
return {
|
|
@@ -22014,7 +22008,7 @@ var WeaveRegisterManager = class {
|
|
|
22014
22008
|
|
|
22015
22009
|
//#endregion
|
|
22016
22010
|
//#region package.json
|
|
22017
|
-
var version = "3.8.3-SNAPSHOT.
|
|
22011
|
+
var version = "3.8.3-SNAPSHOT.220.1";
|
|
22018
22012
|
|
|
22019
22013
|
//#endregion
|
|
22020
22014
|
//#region src/managers/setup.ts
|
|
@@ -34428,15 +34422,14 @@ var WeaveImageToolAction = class extends WeaveAction {
|
|
|
34428
34422
|
const dragProperties = this.instance.getDragProperties();
|
|
34429
34423
|
if (dragProperties && dragId === WEAVE_IMAGE_TOOL_ACTION_NAME) {
|
|
34430
34424
|
this.instance.getStage().setPointersPositions(e);
|
|
34431
|
-
const
|
|
34432
|
-
if (!
|
|
34425
|
+
const position = this.instance.getStage().getRelativePointerPosition();
|
|
34426
|
+
if (!position) return;
|
|
34433
34427
|
this.instance.triggerAction(WEAVE_IMAGE_TOOL_ACTION_NAME, {
|
|
34434
34428
|
type: WEAVE_IMAGE_TOOL_UPLOAD_TYPE.IMAGE_URL,
|
|
34435
34429
|
image: dragProperties.imageURL,
|
|
34436
34430
|
...dragProperties.imageId ? { imageId: dragProperties.imageId } : {},
|
|
34437
34431
|
...dragProperties.forceMainContainer && { forceMainContainer: dragProperties.forceMainContainer },
|
|
34438
|
-
|
|
34439
|
-
position: mousePoint
|
|
34432
|
+
position
|
|
34440
34433
|
});
|
|
34441
34434
|
}
|
|
34442
34435
|
});
|
|
@@ -34603,7 +34596,7 @@ var WeaveImageToolAction = class extends WeaveAction {
|
|
|
34603
34596
|
}
|
|
34604
34597
|
const { mousePoint, container } = this.instance.getMousePointer(position);
|
|
34605
34598
|
this.imageAction[nodeId].clickPoint = mousePoint;
|
|
34606
|
-
this.imageAction[nodeId].container =
|
|
34599
|
+
this.imageAction[nodeId].container = container;
|
|
34607
34600
|
const nodeHandler = this.instance.getNodeHandler("image");
|
|
34608
34601
|
const imageWidth = this.imageAction[nodeId].props.width ? this.imageAction[nodeId].props.width : imageSource?.width;
|
|
34609
34602
|
const imageHeight = this.imageAction[nodeId].props.height ? this.imageAction[nodeId].props.height : imageSource?.height;
|
|
@@ -34670,9 +34663,9 @@ var WeaveImageToolAction = class extends WeaveAction {
|
|
|
34670
34663
|
props: this.initProps(),
|
|
34671
34664
|
imageId: nodeId,
|
|
34672
34665
|
clickPoint: null,
|
|
34666
|
+
container: void 0,
|
|
34673
34667
|
imageFile: null,
|
|
34674
34668
|
imageURL: null,
|
|
34675
|
-
container: params?.container,
|
|
34676
34669
|
forceMainContainer: params?.forceMainContainer ?? false,
|
|
34677
34670
|
uploadType: null,
|
|
34678
34671
|
uploadImageFunction: null
|
|
@@ -34879,13 +34872,12 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
34879
34872
|
const dragProperties = this.instance.getDragProperties();
|
|
34880
34873
|
if (dragProperties && dragId === WEAVE_IMAGES_TOOL_ACTION_NAME) {
|
|
34881
34874
|
this.instance.getStage().setPointersPositions(e);
|
|
34882
|
-
const
|
|
34883
|
-
if (!
|
|
34875
|
+
const position = this.instance.getStage().getRelativePointerPosition();
|
|
34876
|
+
if (!position) return;
|
|
34884
34877
|
this.instance.triggerAction(WEAVE_IMAGES_TOOL_ACTION_NAME, {
|
|
34885
34878
|
type: WEAVE_IMAGES_TOOL_UPLOAD_TYPE.IMAGE_URL,
|
|
34886
34879
|
images: dragProperties.imagesURL,
|
|
34887
|
-
|
|
34888
|
-
position: mousePoint,
|
|
34880
|
+
position,
|
|
34889
34881
|
...dragProperties.forceMainContainer && { forceMainContainer: dragProperties.forceMainContainer }
|
|
34890
34882
|
});
|
|
34891
34883
|
}
|
|
@@ -35046,7 +35038,7 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35046
35038
|
stage.container().style.cursor = "default";
|
|
35047
35039
|
const { mousePoint, container } = this.instance.getMousePointer(position);
|
|
35048
35040
|
this.clickPoint = mousePoint;
|
|
35049
|
-
this.container =
|
|
35041
|
+
this.container = container;
|
|
35050
35042
|
const originPoint = {
|
|
35051
35043
|
x: this.clickPoint?.x ?? 0,
|
|
35052
35044
|
y: this.clickPoint?.y ?? 0
|
|
@@ -35101,8 +35093,10 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35101
35093
|
},
|
|
35102
35094
|
uploadImageFunction: uploadImageFunctionInternal,
|
|
35103
35095
|
...imageId && { imageId },
|
|
35104
|
-
position:
|
|
35105
|
-
|
|
35096
|
+
position: {
|
|
35097
|
+
x: position$1.x,
|
|
35098
|
+
y: position$1.y
|
|
35099
|
+
},
|
|
35106
35100
|
forceMainContainer: this.forceMainContainer,
|
|
35107
35101
|
nodeId: nodeId$1
|
|
35108
35102
|
}, true);
|
|
@@ -35136,8 +35130,10 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35136
35130
|
},
|
|
35137
35131
|
...imageId && { imageId },
|
|
35138
35132
|
...options && { options },
|
|
35139
|
-
position:
|
|
35140
|
-
|
|
35133
|
+
position: {
|
|
35134
|
+
x: position$1.x,
|
|
35135
|
+
y: position$1.y
|
|
35136
|
+
},
|
|
35141
35137
|
forceMainContainer: this.forceMainContainer,
|
|
35142
35138
|
nodeId: nodeId$1
|
|
35143
35139
|
}, true);
|
|
@@ -35170,7 +35166,6 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35170
35166
|
const selectionPlugin = this.instance.getPlugin("nodesSelection");
|
|
35171
35167
|
if (selectionPlugin) selectionPlugin.setSelectedNodes([]);
|
|
35172
35168
|
if (params?.position) this.setState(WEAVE_IMAGES_TOOL_STATE.SELECTED_POSITION);
|
|
35173
|
-
if (params?.container) this.container = params.container;
|
|
35174
35169
|
this.nodesIds = [];
|
|
35175
35170
|
this.forceMainContainer = params.forceMainContainer ?? false;
|
|
35176
35171
|
if (params.type === WEAVE_IMAGES_TOOL_UPLOAD_TYPE.FILE) {
|
|
@@ -36988,13 +36983,11 @@ var WeaveVideoToolAction = class extends WeaveAction {
|
|
|
36988
36983
|
const dragProperties = this.instance.getDragProperties();
|
|
36989
36984
|
if (dragProperties && dragId === VIDEO_TOOL_ACTION_NAME) {
|
|
36990
36985
|
this.instance.getStage().setPointersPositions(e);
|
|
36991
|
-
const
|
|
36992
|
-
if (!mousePoint) return;
|
|
36986
|
+
const position = this.instance.getStage().getRelativePointerPosition();
|
|
36993
36987
|
this.instance.triggerAction(VIDEO_TOOL_ACTION_NAME, {
|
|
36994
36988
|
videoId: dragProperties.videoId,
|
|
36995
36989
|
videoParams: dragProperties.videoParams,
|
|
36996
|
-
|
|
36997
|
-
position: mousePoint
|
|
36990
|
+
position
|
|
36998
36991
|
});
|
|
36999
36992
|
}
|
|
37000
36993
|
});
|
|
@@ -37045,7 +37038,7 @@ var WeaveVideoToolAction = class extends WeaveAction {
|
|
|
37045
37038
|
if (this.videoId && this.videoParams) {
|
|
37046
37039
|
const { mousePoint, container } = this.instance.getMousePointer(position);
|
|
37047
37040
|
this.clickPoint = mousePoint;
|
|
37048
|
-
this.container =
|
|
37041
|
+
this.container = container;
|
|
37049
37042
|
const nodeHandler = this.instance.getNodeHandler("video");
|
|
37050
37043
|
if (nodeHandler) {
|
|
37051
37044
|
const node = nodeHandler.create(this.videoId, {
|
|
@@ -37076,7 +37069,6 @@ var WeaveVideoToolAction = class extends WeaveAction {
|
|
|
37076
37069
|
this.cancelAction = cancelAction;
|
|
37077
37070
|
const selectionPlugin = this.instance.getPlugin("nodesSelection");
|
|
37078
37071
|
if (selectionPlugin) selectionPlugin.setSelectedNodes([]);
|
|
37079
|
-
this.container = params?.container;
|
|
37080
37072
|
this.forceMainContainer = params?.forceMainContainer ?? false;
|
|
37081
37073
|
if (params?.videoId) this.updateProps({ videoId: params.videoId });
|
|
37082
37074
|
if (params?.videoParams) {
|
package/dist/sdk.node.js
CHANGED
|
@@ -21409,16 +21409,10 @@ 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();
|
|
21412
21413
|
const nodesSelection = this.instance.getPlugin("nodesSelection");
|
|
21413
21414
|
if (nodesSelection) nodesSelection.getTransformer().visible(false);
|
|
21414
|
-
|
|
21415
|
-
if (!containerAlt && point === void 0) {
|
|
21416
|
-
containerAlt = this.instance.getMainLayer();
|
|
21417
|
-
relativeMousePointer = containerAlt?.getRelativePointerPosition() ?? {
|
|
21418
|
-
x: 0,
|
|
21419
|
-
y: 0
|
|
21420
|
-
};
|
|
21421
|
-
}
|
|
21415
|
+
relativeMousePointer = containerAlt?.getRelativePointerPosition() ?? relativeMousePointer;
|
|
21422
21416
|
if (utilityLayer) utilityLayer.visible(true);
|
|
21423
21417
|
if (nodesSelection) nodesSelection.getTransformer().visible(true);
|
|
21424
21418
|
return {
|
|
@@ -22013,7 +22007,7 @@ var WeaveRegisterManager = class {
|
|
|
22013
22007
|
|
|
22014
22008
|
//#endregion
|
|
22015
22009
|
//#region package.json
|
|
22016
|
-
var version = "3.8.3-SNAPSHOT.
|
|
22010
|
+
var version = "3.8.3-SNAPSHOT.220.1";
|
|
22017
22011
|
|
|
22018
22012
|
//#endregion
|
|
22019
22013
|
//#region src/managers/setup.ts
|
|
@@ -34427,15 +34421,14 @@ var WeaveImageToolAction = class extends WeaveAction {
|
|
|
34427
34421
|
const dragProperties = this.instance.getDragProperties();
|
|
34428
34422
|
if (dragProperties && dragId === WEAVE_IMAGE_TOOL_ACTION_NAME) {
|
|
34429
34423
|
this.instance.getStage().setPointersPositions(e);
|
|
34430
|
-
const
|
|
34431
|
-
if (!
|
|
34424
|
+
const position = this.instance.getStage().getRelativePointerPosition();
|
|
34425
|
+
if (!position) return;
|
|
34432
34426
|
this.instance.triggerAction(WEAVE_IMAGE_TOOL_ACTION_NAME, {
|
|
34433
34427
|
type: WEAVE_IMAGE_TOOL_UPLOAD_TYPE.IMAGE_URL,
|
|
34434
34428
|
image: dragProperties.imageURL,
|
|
34435
34429
|
...dragProperties.imageId ? { imageId: dragProperties.imageId } : {},
|
|
34436
34430
|
...dragProperties.forceMainContainer && { forceMainContainer: dragProperties.forceMainContainer },
|
|
34437
|
-
|
|
34438
|
-
position: mousePoint
|
|
34431
|
+
position
|
|
34439
34432
|
});
|
|
34440
34433
|
}
|
|
34441
34434
|
});
|
|
@@ -34602,7 +34595,7 @@ var WeaveImageToolAction = class extends WeaveAction {
|
|
|
34602
34595
|
}
|
|
34603
34596
|
const { mousePoint, container } = this.instance.getMousePointer(position);
|
|
34604
34597
|
this.imageAction[nodeId].clickPoint = mousePoint;
|
|
34605
|
-
this.imageAction[nodeId].container =
|
|
34598
|
+
this.imageAction[nodeId].container = container;
|
|
34606
34599
|
const nodeHandler = this.instance.getNodeHandler("image");
|
|
34607
34600
|
const imageWidth = this.imageAction[nodeId].props.width ? this.imageAction[nodeId].props.width : imageSource?.width;
|
|
34608
34601
|
const imageHeight = this.imageAction[nodeId].props.height ? this.imageAction[nodeId].props.height : imageSource?.height;
|
|
@@ -34669,9 +34662,9 @@ var WeaveImageToolAction = class extends WeaveAction {
|
|
|
34669
34662
|
props: this.initProps(),
|
|
34670
34663
|
imageId: nodeId,
|
|
34671
34664
|
clickPoint: null,
|
|
34665
|
+
container: void 0,
|
|
34672
34666
|
imageFile: null,
|
|
34673
34667
|
imageURL: null,
|
|
34674
|
-
container: params?.container,
|
|
34675
34668
|
forceMainContainer: params?.forceMainContainer ?? false,
|
|
34676
34669
|
uploadType: null,
|
|
34677
34670
|
uploadImageFunction: null
|
|
@@ -34878,13 +34871,12 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
34878
34871
|
const dragProperties = this.instance.getDragProperties();
|
|
34879
34872
|
if (dragProperties && dragId === WEAVE_IMAGES_TOOL_ACTION_NAME) {
|
|
34880
34873
|
this.instance.getStage().setPointersPositions(e);
|
|
34881
|
-
const
|
|
34882
|
-
if (!
|
|
34874
|
+
const position = this.instance.getStage().getRelativePointerPosition();
|
|
34875
|
+
if (!position) return;
|
|
34883
34876
|
this.instance.triggerAction(WEAVE_IMAGES_TOOL_ACTION_NAME, {
|
|
34884
34877
|
type: WEAVE_IMAGES_TOOL_UPLOAD_TYPE.IMAGE_URL,
|
|
34885
34878
|
images: dragProperties.imagesURL,
|
|
34886
|
-
|
|
34887
|
-
position: mousePoint,
|
|
34879
|
+
position,
|
|
34888
34880
|
...dragProperties.forceMainContainer && { forceMainContainer: dragProperties.forceMainContainer }
|
|
34889
34881
|
});
|
|
34890
34882
|
}
|
|
@@ -35045,7 +35037,7 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35045
35037
|
stage.container().style.cursor = "default";
|
|
35046
35038
|
const { mousePoint, container } = this.instance.getMousePointer(position);
|
|
35047
35039
|
this.clickPoint = mousePoint;
|
|
35048
|
-
this.container =
|
|
35040
|
+
this.container = container;
|
|
35049
35041
|
const originPoint = {
|
|
35050
35042
|
x: this.clickPoint?.x ?? 0,
|
|
35051
35043
|
y: this.clickPoint?.y ?? 0
|
|
@@ -35100,8 +35092,10 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35100
35092
|
},
|
|
35101
35093
|
uploadImageFunction: uploadImageFunctionInternal,
|
|
35102
35094
|
...imageId && { imageId },
|
|
35103
|
-
position:
|
|
35104
|
-
|
|
35095
|
+
position: {
|
|
35096
|
+
x: position$1.x,
|
|
35097
|
+
y: position$1.y
|
|
35098
|
+
},
|
|
35105
35099
|
forceMainContainer: this.forceMainContainer,
|
|
35106
35100
|
nodeId: nodeId$1
|
|
35107
35101
|
}, true);
|
|
@@ -35135,8 +35129,10 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35135
35129
|
},
|
|
35136
35130
|
...imageId && { imageId },
|
|
35137
35131
|
...options && { options },
|
|
35138
|
-
position:
|
|
35139
|
-
|
|
35132
|
+
position: {
|
|
35133
|
+
x: position$1.x,
|
|
35134
|
+
y: position$1.y
|
|
35135
|
+
},
|
|
35140
35136
|
forceMainContainer: this.forceMainContainer,
|
|
35141
35137
|
nodeId: nodeId$1
|
|
35142
35138
|
}, true);
|
|
@@ -35169,7 +35165,6 @@ var WeaveImagesToolAction = class extends WeaveAction {
|
|
|
35169
35165
|
const selectionPlugin = this.instance.getPlugin("nodesSelection");
|
|
35170
35166
|
if (selectionPlugin) selectionPlugin.setSelectedNodes([]);
|
|
35171
35167
|
if (params?.position) this.setState(WEAVE_IMAGES_TOOL_STATE.SELECTED_POSITION);
|
|
35172
|
-
if (params?.container) this.container = params.container;
|
|
35173
35168
|
this.nodesIds = [];
|
|
35174
35169
|
this.forceMainContainer = params.forceMainContainer ?? false;
|
|
35175
35170
|
if (params.type === WEAVE_IMAGES_TOOL_UPLOAD_TYPE.FILE) {
|
|
@@ -36987,13 +36982,11 @@ var WeaveVideoToolAction = class extends WeaveAction {
|
|
|
36987
36982
|
const dragProperties = this.instance.getDragProperties();
|
|
36988
36983
|
if (dragProperties && dragId === VIDEO_TOOL_ACTION_NAME) {
|
|
36989
36984
|
this.instance.getStage().setPointersPositions(e);
|
|
36990
|
-
const
|
|
36991
|
-
if (!mousePoint) return;
|
|
36985
|
+
const position = this.instance.getStage().getRelativePointerPosition();
|
|
36992
36986
|
this.instance.triggerAction(VIDEO_TOOL_ACTION_NAME, {
|
|
36993
36987
|
videoId: dragProperties.videoId,
|
|
36994
36988
|
videoParams: dragProperties.videoParams,
|
|
36995
|
-
|
|
36996
|
-
position: mousePoint
|
|
36989
|
+
position
|
|
36997
36990
|
});
|
|
36998
36991
|
}
|
|
36999
36992
|
});
|
|
@@ -37044,7 +37037,7 @@ var WeaveVideoToolAction = class extends WeaveAction {
|
|
|
37044
37037
|
if (this.videoId && this.videoParams) {
|
|
37045
37038
|
const { mousePoint, container } = this.instance.getMousePointer(position);
|
|
37046
37039
|
this.clickPoint = mousePoint;
|
|
37047
|
-
this.container =
|
|
37040
|
+
this.container = container;
|
|
37048
37041
|
const nodeHandler = this.instance.getNodeHandler("video");
|
|
37049
37042
|
if (nodeHandler) {
|
|
37050
37043
|
const node = nodeHandler.create(this.videoId, {
|
|
@@ -37075,7 +37068,6 @@ var WeaveVideoToolAction = class extends WeaveAction {
|
|
|
37075
37068
|
this.cancelAction = cancelAction;
|
|
37076
37069
|
const selectionPlugin = this.instance.getPlugin("nodesSelection");
|
|
37077
37070
|
if (selectionPlugin) selectionPlugin.setSelectedNodes([]);
|
|
37078
|
-
this.container = params?.container;
|
|
37079
37071
|
this.forceMainContainer = params?.forceMainContainer ?? false;
|
|
37080
37072
|
if (params?.videoId) this.updateProps({ videoId: params.videoId });
|
|
37081
37073
|
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_types20 from "konva/lib/types";
|
|
9
|
+
import * as konva_lib_types21 from "konva/lib/types";
|
|
10
10
|
import { Vector2d } from "konva/lib/types";
|
|
11
|
+
import * as konva_lib_Node22 from "konva/lib/Node";
|
|
12
|
+
import * as konva_lib_Node23 from "konva/lib/Node";
|
|
11
13
|
import * as konva_lib_Node14 from "konva/lib/Node";
|
|
12
14
|
import * as konva_lib_Node15 from "konva/lib/Node";
|
|
13
15
|
import * as konva_lib_Node16 from "konva/lib/Node";
|
|
14
16
|
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";
|
|
@@ -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_Line18 from "konva/lib/shapes/Line";
|
|
33
|
+
import * as konva_lib_shapes_Line19 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_Node23.Node<konva_lib_Node22.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_Node15.Node<konva_lib_Node14.NodeConfig>[];
|
|
975
|
+
isClone(node: Konva.Node): konva_lib_Node17.Node<konva_lib_Node16.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_Line19.Line<konva_lib_shapes_Line18.LineConfig> | undefined;
|
|
2193
2193
|
protected getLinePoints(instance: Konva.Group): {
|
|
2194
|
-
lineStartPoint:
|
|
2195
|
-
lineEndPoint:
|
|
2194
|
+
lineStartPoint: konva_lib_types20.Vector2d;
|
|
2195
|
+
lineEndPoint: konva_lib_types21.Vector2d;
|
|
2196
2196
|
};
|
|
2197
2197
|
}
|
|
2198
2198
|
|
|
@@ -3415,7 +3415,6 @@ type WeaveImageToolActionTriggerCommonParams = {
|
|
|
3415
3415
|
imageId?: string;
|
|
3416
3416
|
options?: ImageOptions;
|
|
3417
3417
|
position?: Konva.Vector2d;
|
|
3418
|
-
container?: Konva.Layer | Konva.Group;
|
|
3419
3418
|
forceMainContainer?: boolean;
|
|
3420
3419
|
};
|
|
3421
3420
|
type WeaveImageFile = {
|
|
@@ -3555,7 +3554,6 @@ type ImageInfo = {
|
|
|
3555
3554
|
};
|
|
3556
3555
|
type WeaveImagesToolActionTriggerCommonParams = {
|
|
3557
3556
|
position?: Vector2d;
|
|
3558
|
-
container?: Konva.Layer | Konva.Group;
|
|
3559
3557
|
forceMainContainer?: boolean;
|
|
3560
3558
|
};
|
|
3561
3559
|
type WeaveImagesToolActionInternalUploadFunction = () => Promise<void>;
|
|
@@ -4234,7 +4232,6 @@ type WeaveVideoToolDragParams = {
|
|
|
4234
4232
|
type WeaveVideoToolActionTriggerParams = {
|
|
4235
4233
|
videoId?: string;
|
|
4236
4234
|
videoParams?: WeaveVideoToolDragParams;
|
|
4237
|
-
container?: Konva.Layer | Konva.Group;
|
|
4238
4235
|
position?: Konva.Vector2d;
|
|
4239
4236
|
forceMainContainer?: boolean;
|
|
4240
4237
|
};
|