@logicflow/core 1.2.4 → 1.2.5
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/logic-flow.js +15 -39642
- package/dist/logic-flow.min.js +2 -2
- package/package.json +1 -1
- package/types/LogicFlow.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/model/GraphModel.d.ts +1 -0
- package/types/type/index.d.ts +7 -0
- package/types/util/mobx.d.ts +2 -0
- package/types/util/sampling.d.ts +7 -0
- package/types/view/edge/BaseEdge.d.ts +1 -0
- package/types/view/edge/BezierEdge.d.ts +1 -0
- package/types/view/edge/PolylineEdge.d.ts +1 -0
package/package.json
CHANGED
package/types/LogicFlow.d.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -10,4 +10,5 @@ export * from './model';
|
|
|
10
10
|
export * from './keyboard';
|
|
11
11
|
export * from './options';
|
|
12
12
|
export { ElementState, ModelType, ElementType, EventType } from './constant/constant';
|
|
13
|
+
export { formateAnchorConnectValidateData } from './util/node';
|
|
13
14
|
export default LogicFlow;
|
package/types/type/index.d.ts
CHANGED
|
@@ -25,6 +25,13 @@ import HtmlNodeModel from '../model/node/HtmlNodeModel';
|
|
|
25
25
|
import * as Options from '../options';
|
|
26
26
|
import { CommonTheme, EdgeTextTheme } from '../constant/DefaultTheme';
|
|
27
27
|
export declare type PointTuple = [number, number];
|
|
28
|
+
export declare type Vector = {
|
|
29
|
+
id?: string;
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
z: 0;
|
|
33
|
+
[key: string]: unknown;
|
|
34
|
+
};
|
|
28
35
|
export declare type Point = {
|
|
29
36
|
id?: string;
|
|
30
37
|
x: number;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Point, Vector } from '../type/index';
|
|
2
|
+
export declare function sampleCubic(p1: Point, cp1: Point, cp2: Point, p2: Point): {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
};
|
|
6
|
+
export declare function getTangentOfVector(v: Vector): number;
|
|
7
|
+
export declare function degrees(radians: number): number;
|