@logicflow/core 1.2.25 → 1.2.27
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/package.json
CHANGED
|
@@ -280,6 +280,13 @@ declare class GraphModel {
|
|
|
280
280
|
* @param eventType 新增节点事件类型,默认EventType.NODE_ADD, 在Dnd拖拽时,会传入EventType.NODE_DND_ADD
|
|
281
281
|
*/
|
|
282
282
|
addNode(nodeConfig: NodeConfig, eventType?: EventType, event?: MouseEvent): any;
|
|
283
|
+
/**
|
|
284
|
+
* 将node节点位置进行grid修正
|
|
285
|
+
* 同时处理node内文字的偏移量
|
|
286
|
+
* 返回一个位置修正过的复制节点NodeModel
|
|
287
|
+
* @param node
|
|
288
|
+
*/
|
|
289
|
+
getModelAfterSnapToGrid(node: NodeConfig): any;
|
|
283
290
|
/**
|
|
284
291
|
* 克隆节点
|
|
285
292
|
* @param nodeId 节点Id
|