@mx-sose-front/mx-sose-graph 1.1.5 → 1.1.7
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/index.d.ts +16 -3
- package/dist/index.esm.js +637 -564
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/constants/edgeShapeKeys.ts +4 -2
- package/src/constants/index.ts +306 -295
- package/src/render/shape-renderer.ts +13 -6
- package/src/store/graphStore.ts +24 -42
- package/src/utils/contextMenuUtils.ts +40 -9
- package/src/utils/graphDragService.ts +10 -9
- package/src/utils/shapeOps/shapeOps.ts +35 -7
package/dist/index.d.ts
CHANGED
|
@@ -107,10 +107,23 @@ export declare class ContextMenuUtils {
|
|
|
107
107
|
*/
|
|
108
108
|
static getCopiedShapes(): any[];
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
111
|
-
|
|
110
|
+
* 检查剪贴板是否有内容
|
|
111
|
+
*/
|
|
112
|
+
static hasClipboardContent(): boolean;
|
|
113
|
+
/**
|
|
114
|
+
* 清空剪贴板(粘贴完成后调用)
|
|
115
|
+
*/
|
|
116
|
+
static clearClipboard(): void;
|
|
117
|
+
/**
|
|
118
|
+
* 清除剪切状态(只清除SVG遮盖层,不清除剪贴板数据)
|
|
119
|
+
* 当点击空白处时调用
|
|
112
120
|
*/
|
|
113
121
|
static clearCutState(): void;
|
|
122
|
+
/**
|
|
123
|
+
* 完全清除剪切状态和剪贴板数据
|
|
124
|
+
* 当需要完全重置时调用(如按ESC取消操作)
|
|
125
|
+
*/
|
|
126
|
+
static clearAll(): void;
|
|
114
127
|
/**
|
|
115
128
|
* 收集图元及其所有子图元的 ID
|
|
116
129
|
* @param shapes 要收集的图元数组
|
|
@@ -124,7 +137,7 @@ export declare class ContextMenuUtils {
|
|
|
124
137
|
/**
|
|
125
138
|
* 处理粘贴
|
|
126
139
|
*/
|
|
127
|
-
static handlePaste(
|
|
140
|
+
static handlePaste(_target?: any): void;
|
|
128
141
|
/**
|
|
129
142
|
* 处理剪切
|
|
130
143
|
*/
|