@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.
@@ -26,9 +26,7 @@
26
26
  .lf-node-not-allow {
27
27
  cursor: not-allowed;
28
28
  }
29
- .lf-node-not-allow .lf-basic-shape {
30
- fill: #f9dee5;
31
- }
29
+
32
30
  .lf-polyline-append-ns-resize {
33
31
  cursor: ns-resize;
34
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logicflow/core",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "LogicFlow core, to quickly build flowchart editor",
5
5
  "main": "dist/logic-flow.js",
6
6
  "unpkg": "dist/logic-flow.js",
@@ -73,6 +73,7 @@ export interface EditConfigInterface {
73
73
  * 页面编辑配置
74
74
  */
75
75
  export default class EditConfigModel {
76
+ isSilentMode: boolean;
76
77
  stopZoomGraph: boolean;
77
78
  stopScrollGraph: boolean;
78
79
  stopMoveGraph: boolean;
@@ -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
  * 初始化节点数据