@logicflow/core 1.1.3 → 1.1.4
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/style/index.css
CHANGED
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@ import { ModelType, ElementType } from '../../constant/constant';
|
|
|
3
3
|
import { AdditionData, NodeData, NodeConfig, NodeMoveRule, Bounds, AnchorConfig, PointAnchor, AnchorsOffsetItem, ShapeStyleAttribute } from '../../type';
|
|
4
4
|
import GraphModel from '../GraphModel';
|
|
5
5
|
import { IBaseModel } from '../BaseModel';
|
|
6
|
+
import { BaseEdgeModel } from '../edge';
|
|
6
7
|
export declare type ConnectRule = {
|
|
7
8
|
message: string;
|
|
8
9
|
validate: (source?: BaseNodeModel, target?: BaseNodeModel, sourceAnchor?: AnchorConfig, targetAnchor?: AnchorConfig) => boolean;
|
|
@@ -58,6 +59,14 @@ export default class BaseNodeModel implements IBaseNodeModel {
|
|
|
58
59
|
hasSetSourceRules: boolean;
|
|
59
60
|
[propName: string]: any;
|
|
60
61
|
constructor(data: NodeConfig, graphModel: GraphModel);
|
|
62
|
+
get incoming(): {
|
|
63
|
+
nodes: BaseNodeModel[];
|
|
64
|
+
edges: BaseEdgeModel[];
|
|
65
|
+
};
|
|
66
|
+
get outgoing(): {
|
|
67
|
+
nodes: BaseNodeModel[];
|
|
68
|
+
edges: BaseEdgeModel[];
|
|
69
|
+
};
|
|
61
70
|
/**
|
|
62
71
|
* @overridable 可以重写
|
|
63
72
|
* 初始化节点数据
|