@logicflow/core 1.1.0-alpha.4 → 1.1.0

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logicflow/core",
3
- "version": "1.1.0-alpha.4",
3
+ "version": "1.1.0",
4
4
  "description": "LogicFlow core, to quickly build flowchart editor",
5
5
  "main": "dist/logic-flow.js",
6
6
  "unpkg": "dist/logic-flow.js",
@@ -1,12 +1,13 @@
1
1
  import BaseNode from '../model/node/BaseNodeModel';
2
2
  import { Point, Direction, NodeConfig, AnchorConfig } from '../type';
3
+ import { GraphModel } from '..';
3
4
  export declare const getAnchors: (data: any) => Point[];
4
5
  declare type NodeContaint = {
5
6
  node: BaseNode;
6
7
  anchorIndex: number;
7
8
  anchor: AnchorConfig;
8
9
  };
9
- export declare const targetNodeInfo: (position: Point, nodes: BaseNode[]) => NodeContaint;
10
+ export declare const targetNodeInfo: (position: Point, graphModel: GraphModel) => NodeContaint;
10
11
  export declare const distance: (x1: number, y1: number, x2: number, y2: number) => number;
11
12
  export declare const isInNode: (position: Point, node: BaseNode) => boolean;
12
13
  export declare const isInNodeBbox: (position: Point, node: any) => boolean;