@logicflow/core 0.3.6 → 0.4.1-alpha.2
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/README.md +171 -0
- package/dist/logic-flow-cjs.js +2 -0
- package/dist/logic-flow-cjs.js.LICENSE.txt +23 -0
- package/dist/logic-flow.js +2 -2
- package/dist/logic-flow.js.LICENSE.txt +23 -0
- package/dist/style/index.css +124 -8
- package/es/index.js +69 -0
- package/package.json +22 -7
- package/types/LogicFlow.d.ts +74 -47
- package/types/constant/DefaultTheme.d.ts +12 -0
- package/types/constant/constant.d.ts +13 -2
- package/types/event/eventEmitter.d.ts +8 -8
- package/types/index.d.ts +5 -1
- package/types/model/BaseModel.d.ts +60 -1
- package/types/model/EditConfigModel.d.ts +74 -2
- package/types/model/GraphModel.d.ts +34 -6
- package/types/model/TransformModel.d.ts +16 -3
- package/types/model/edge/BaseEdgeModel.d.ts +19 -1
- package/types/model/edge/BezierEdgeModel.d.ts +11 -1
- package/types/model/edge/LineEdgeModel.d.ts +1 -1
- package/types/model/edge/PolylineEdgeModel.d.ts +23 -13
- package/types/model/node/BaseNodeModel.d.ts +71 -23
- package/types/model/node/CircleNodeModel.d.ts +5 -2
- package/types/model/node/HtmlNodeModel.d.ts +11 -0
- package/types/model/node/PolygonNodeModel.d.ts +5 -0
- package/types/model/node/index.d.ts +1 -0
- package/types/options.d.ts +80 -10
- package/types/tool/MultipleSelectTool.d.ts +2 -2
- package/types/tool/TextEditTool.d.ts +3 -4
- package/types/tool/index.d.ts +1 -0
- package/types/type/index.d.ts +87 -5
- package/types/util/drag.d.ts +2 -0
- package/types/util/edge.d.ts +2 -1
- package/types/util/graph.d.ts +4 -0
- package/types/util/index.d.ts +2 -0
- package/types/util/node.d.ts +20 -2
- package/types/util/theme.d.ts +12 -0
- package/types/util/uuid.d.ts +5 -0
- package/types/util/zIndex.d.ts +2 -0
- package/types/view/Anchor.d.ts +6 -4
- package/types/view/Graph.d.ts +0 -4
- package/types/view/basic-shape/LinearGradient.d.ts +1 -0
- package/types/view/basic-shape/Polygon.d.ts +1 -9
- package/types/view/behavior/DnD.d.ts +3 -1
- package/types/view/edge/AdjustPoint.d.ts +43 -0
- package/types/view/edge/BaseEdge.d.ts +3 -1
- package/types/view/edge/PolylineEdge.d.ts +1 -0
- package/types/view/node/BaseNode.d.ts +13 -8
- package/types/view/node/CircleNode.d.ts +3 -1
- package/types/view/node/DiamondNode.d.ts +3 -1
- package/types/view/node/EllipseNode.d.ts +3 -1
- package/types/view/node/HtmlNode.d.ts +11 -0
- package/types/view/node/PolygonNode.d.ts +3 -1
- package/types/view/node/RectNode.d.ts +3 -1
- package/types/view/node/TextNode.d.ts +1 -0
- package/types/view/node/index.d.ts +2 -1
- package/types/view/overlay/CanvasOverlay.d.ts +30 -2
- package/types/view/overlay/Grid.d.ts +10 -0
- package/types/view/overlay/HtmlOverlay.d.ts +5 -46
- package/types/view/overlay/ModificationOverlay.d.ts +9 -0
- package/types/view/overlay/OutlineOverlay.d.ts +1 -1
- package/CHANGELOG.md +0 -366
- package/LICENSE +0 -433
- package/dist/style/background.css +0 -8
- package/dist/style/html-overlay.css +0 -33
- package/dist/style/tool.css +0 -29
|
@@ -15,9 +15,8 @@ declare type Istate = {
|
|
|
15
15
|
export default abstract class BaseNode extends Component<IProps, Istate> {
|
|
16
16
|
static getModel(defaultModel: any): any;
|
|
17
17
|
stepDrag: StepDrag;
|
|
18
|
-
startTime: number;
|
|
19
|
-
preStartTime: number;
|
|
20
18
|
contextMenuTime: number;
|
|
19
|
+
startTime: number;
|
|
21
20
|
clickTimer: number;
|
|
22
21
|
constructor(props: any);
|
|
23
22
|
abstract getShape(): any;
|
|
@@ -43,7 +42,9 @@ export default abstract class BaseNode extends Component<IProps, Istate> {
|
|
|
43
42
|
opacity: number;
|
|
44
43
|
outlineColor: string;
|
|
45
44
|
id: string;
|
|
46
|
-
properties: {
|
|
45
|
+
properties: {
|
|
46
|
+
[x: string]: any;
|
|
47
|
+
};
|
|
47
48
|
type: string;
|
|
48
49
|
x: number;
|
|
49
50
|
y: number;
|
|
@@ -57,15 +58,14 @@ export default abstract class BaseNode extends Component<IProps, Istate> {
|
|
|
57
58
|
editable: boolean;
|
|
58
59
|
};
|
|
59
60
|
};
|
|
60
|
-
getProperties():
|
|
61
|
-
getAnchorStyle():
|
|
62
|
-
getAnchorHoverStyle():
|
|
63
|
-
getNewEdgeStyle():
|
|
61
|
+
getProperties(): Record<string, any>;
|
|
62
|
+
getAnchorStyle(): Record<string, any>;
|
|
63
|
+
getAnchorHoverStyle(): Record<string, any>;
|
|
64
|
+
getNewEdgeStyle(): Record<string, any>;
|
|
64
65
|
getAnchors(): h.JSX.Element[];
|
|
65
66
|
getTextStyle(): any;
|
|
66
67
|
getText(): "" | h.JSX.Element;
|
|
67
68
|
getStateClassName(): string;
|
|
68
|
-
onDragStart: () => void;
|
|
69
69
|
onDraging: ({ deltaX, deltaY }: {
|
|
70
70
|
deltaX: any;
|
|
71
71
|
deltaY: any;
|
|
@@ -76,6 +76,11 @@ export default abstract class BaseNode extends Component<IProps, Istate> {
|
|
|
76
76
|
handleMouseDown: (ev: MouseEvent) => void;
|
|
77
77
|
setHoverON: (ev: any) => void;
|
|
78
78
|
setHoverOFF: (ev: any) => void;
|
|
79
|
+
onMouseOut: (ev: any) => void;
|
|
80
|
+
/**
|
|
81
|
+
* 节点置顶,可以被某些不需要置顶的节点重写,如group节点。
|
|
82
|
+
*/
|
|
83
|
+
toFront(): void;
|
|
79
84
|
render(): any;
|
|
80
85
|
}
|
|
81
86
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { h } from 'preact';
|
|
2
|
+
import BaseNode from './BaseNode';
|
|
3
|
+
export default class HtmlNode extends BaseNode {
|
|
4
|
+
ref: HTMLElement;
|
|
5
|
+
setRef: (dom: any) => void;
|
|
6
|
+
get rootEl(): HTMLElement;
|
|
7
|
+
setHtml(rootEl: HTMLElement): void;
|
|
8
|
+
componentDidMount(): void;
|
|
9
|
+
componentDidUpdate(): void;
|
|
10
|
+
getShape(): h.JSX.Element;
|
|
11
|
+
}
|
|
@@ -5,4 +5,5 @@ import PolygonNode from './PolygonNode';
|
|
|
5
5
|
import DiamondNode from './DiamondNode';
|
|
6
6
|
import EllipseNode from './EllipseNode';
|
|
7
7
|
import TextNode from './TextNode';
|
|
8
|
-
|
|
8
|
+
import HtmlNode from './HtmlNode';
|
|
9
|
+
export { BaseNode, RectNode, CircleNode, PolygonNode, DiamondNode, EllipseNode, TextNode, HtmlNode, };
|
|
@@ -1,2 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { h, Component } from 'preact';
|
|
2
|
+
import GraphModel from '../../model/GraphModel';
|
|
3
|
+
import { StepDrag } from '../../util/drag';
|
|
4
|
+
import EventEmitter from '../../event/eventEmitter';
|
|
5
|
+
import Dnd from '../behavior/DnD';
|
|
6
|
+
declare type IProps = {
|
|
7
|
+
graphModel: GraphModel;
|
|
8
|
+
eventCenter: EventEmitter;
|
|
9
|
+
dnd: Dnd;
|
|
10
|
+
};
|
|
11
|
+
declare type Istate = {
|
|
12
|
+
isDraging: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare class CanvasOverlay extends Component<IProps, Istate> {
|
|
15
|
+
stepDrag: StepDrag;
|
|
16
|
+
stepScrollX: number;
|
|
17
|
+
stepScrollY: number;
|
|
18
|
+
constructor(props: IProps);
|
|
19
|
+
onDraging: ({ deltaX, deltaY }: {
|
|
20
|
+
deltaX: any;
|
|
21
|
+
deltaY: any;
|
|
22
|
+
}) => void;
|
|
23
|
+
onDragEnd: () => void;
|
|
24
|
+
zoomHandler: (ev: WheelEvent) => void;
|
|
25
|
+
clickHandler: (ev: MouseEvent) => void;
|
|
26
|
+
handleContextMenu: (ev: MouseEvent) => void;
|
|
27
|
+
mouseDownHandler: (ev: MouseEvent) => void;
|
|
28
|
+
render(): h.JSX.Element;
|
|
29
|
+
}
|
|
30
|
+
export default CanvasOverlay;
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { h, Component } from 'preact';
|
|
2
2
|
import GraphModel from '../../model/GraphModel';
|
|
3
3
|
export declare type GridOptions = {
|
|
4
|
+
/**
|
|
5
|
+
* 网格格子间距
|
|
6
|
+
*/
|
|
4
7
|
size?: number;
|
|
8
|
+
/**
|
|
9
|
+
* 网格是否可见
|
|
10
|
+
*/
|
|
5
11
|
visible?: boolean;
|
|
6
12
|
graphModel?: GraphModel;
|
|
13
|
+
/**
|
|
14
|
+
* 网格类型
|
|
15
|
+
* 'dot' || 'mesh'
|
|
16
|
+
*/
|
|
7
17
|
type?: string;
|
|
8
18
|
config?: {
|
|
9
19
|
color: string;
|
|
@@ -4,53 +4,12 @@
|
|
|
4
4
|
* 目前这里可以放文本。
|
|
5
5
|
* 之后可以考虑放图片,范围框等。
|
|
6
6
|
*/
|
|
7
|
-
import { h } from 'preact';
|
|
7
|
+
import { h, Component } from 'preact';
|
|
8
8
|
import GraphModel from '../../model/GraphModel';
|
|
9
|
-
import { GraphTransform } from '../../type';
|
|
10
9
|
declare type IProps = {
|
|
11
10
|
graphModel: GraphModel;
|
|
12
11
|
};
|
|
13
|
-
declare
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
getMatrixString(): GraphTransform;
|
|
18
|
-
render(): h.JSX.Element;
|
|
19
|
-
componentWillMount?(): void;
|
|
20
|
-
componentDidMount?(): void;
|
|
21
|
-
componentWillUnmount?(): void;
|
|
22
|
-
getChildContext?(): object;
|
|
23
|
-
componentWillReceiveProps?(nextProps: Readonly<{
|
|
24
|
-
graphModel: GraphModel;
|
|
25
|
-
} & IProps>, nextContext: any): void;
|
|
26
|
-
shouldComponentUpdate?(nextProps: Readonly<{
|
|
27
|
-
graphModel: GraphModel;
|
|
28
|
-
} & IProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
29
|
-
componentWillUpdate?(nextProps: Readonly<{
|
|
30
|
-
graphModel: GraphModel;
|
|
31
|
-
} & IProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
32
|
-
getSnapshotBeforeUpdate?(oldProps: Readonly<{
|
|
33
|
-
graphModel: GraphModel;
|
|
34
|
-
} & IProps>, oldState: Readonly<{}>): any;
|
|
35
|
-
componentDidUpdate?(previousProps: Readonly<{
|
|
36
|
-
graphModel: GraphModel;
|
|
37
|
-
} & IProps>, previousState: Readonly<{}>, snapshot: any): void;
|
|
38
|
-
componentDidCatch?(error: any, errorInfo: any): void;
|
|
39
|
-
state: Readonly<{}>;
|
|
40
|
-
props: import("preact").RenderableProps<{
|
|
41
|
-
graphModel: GraphModel;
|
|
42
|
-
} & IProps, any>;
|
|
43
|
-
context: any;
|
|
44
|
-
base?: Element | Text;
|
|
45
|
-
setState<K extends never>(state: Partial<{}> | ((prevState: Readonly<{}>, props: Readonly<{
|
|
46
|
-
graphModel: GraphModel;
|
|
47
|
-
} & IProps>) => Partial<{}> | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
|
|
48
|
-
forceUpdate(callback?: () => void): void;
|
|
49
|
-
};
|
|
50
|
-
displayName?: string;
|
|
51
|
-
defaultProps?: any;
|
|
52
|
-
contextType?: import("preact").Context<any>;
|
|
53
|
-
getDerivedStateFromProps?(props: object, state: object): object;
|
|
54
|
-
getDerivedStateFromError?(error: any): object;
|
|
55
|
-
};
|
|
56
|
-
export default _default;
|
|
12
|
+
declare class HtmlOverlay extends Component<IProps> {
|
|
13
|
+
render(): h.JSX.Element;
|
|
14
|
+
}
|
|
15
|
+
export default HtmlOverlay;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component, h } from 'preact';
|
|
2
|
-
import { LineEdgeModel } from '../../
|
|
2
|
+
import { LineEdgeModel } from '../../model';
|
|
3
3
|
import BezierEdgeModel from '../../model/edge/BezierEdgeModel';
|
|
4
4
|
import PolylineEdgeModel from '../../model/edge/PolylineEdgeModel';
|
|
5
5
|
import GraphModel from '../../model/GraphModel';
|
package/CHANGELOG.md
DELETED
|
@@ -1,366 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [0.3.6](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.4...@logicflow/core@0.3.6) (2021-04-29)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Bug Fixes
|
|
10
|
-
|
|
11
|
-
* add more warning ([12f4bb3](https://github.com/towersxu/logicflow/commit/12f4bb36e34733855aeb760a5874fedd09b411de))
|
|
12
|
-
* change node type line ([31602bb](https://github.com/towersxu/logicflow/commit/31602bbbfb5282ef9b2d80d18c0a7492ed19f907))
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
### Features
|
|
16
|
-
|
|
17
|
-
* add change nodetype ([15878a1](https://github.com/towersxu/logicflow/commit/15878a1c8be6f9117c925792c66dcdbfd1b0aa77))
|
|
18
|
-
* **extension:** drop node in polyline ([94480ac](https://github.com/towersxu/logicflow/commit/94480ac5b2b8d989a2310a3b4c25e08abe9d10b6))
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
## [0.3.5](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.4...@logicflow/core@0.3.5) (2021-04-29)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
### Bug Fixes
|
|
28
|
-
|
|
29
|
-
* add more warning ([12f4bb3](https://github.com/towersxu/logicflow/commit/12f4bb36e34733855aeb760a5874fedd09b411de))
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
### Features
|
|
33
|
-
|
|
34
|
-
* add change nodetype ([15878a1](https://github.com/towersxu/logicflow/commit/15878a1c8be6f9117c925792c66dcdbfd1b0aa77))
|
|
35
|
-
* **extension:** drop node in polyline ([94480ac](https://github.com/towersxu/logicflow/commit/94480ac5b2b8d989a2310a3b4c25e08abe9d10b6))
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## [0.3.4](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.3...@logicflow/core@0.3.4) (2021-04-22)
|
|
42
|
-
|
|
43
|
-
**Note:** Version bump only for package @logicflow/core
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
## [0.3.3](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.2...@logicflow/core@0.3.3) (2021-04-21)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
### Bug Fixes
|
|
53
|
-
|
|
54
|
-
* avoid reObserver view ([996fd65](https://github.com/towersxu/logicflow/commit/996fd6515d78b5331b08fd84025a148b45026cd9))
|
|
55
|
-
* drag text not allowed propagation ([9d6cc0c](https://github.com/towersxu/logicflow/commit/9d6cc0cc1c64fdc134e83f37794ca568ffbfca25))
|
|
56
|
-
* types ([37491ca](https://github.com/towersxu/logicflow/commit/37491cab07d7712aa4b94326424af3ded5031f75))
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
## [0.3.2](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.1...@logicflow/core@0.3.2) (2021-04-20)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
### Bug Fixes
|
|
66
|
-
|
|
67
|
-
* show anchors when extend baseNode ([12bd0db](https://github.com/towersxu/logicflow/commit/12bd0db574b18b19aed8134b9e508f3c0a9ef6f4))
|
|
68
|
-
* show anchors when extend baseNode ([d78d7df](https://github.com/towersxu/logicflow/commit/d78d7dfabbdea171a104a22b48ad6e8662230c21))
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
### Features
|
|
72
|
-
|
|
73
|
-
* **core:** add clearData funcion in Logicflow ([2a5b345](https://github.com/towersxu/logicflow/commit/2a5b3450b88fd7d831bc25810726fa4de4255033))
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
## [0.3.1](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.0...@logicflow/core@0.3.1) (2021-04-19)
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
### Bug Fixes
|
|
83
|
-
|
|
84
|
-
* delete useless code ([8680810](https://github.com/towersxu/logicflow/commit/8680810fdb6600994bcf3b94e11061dad176bc51))
|
|
85
|
-
* format edge text value ([cc8aa22](https://github.com/towersxu/logicflow/commit/cc8aa224d158f547589a2e1f9e079d064df0b9e8))
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
# [0.3.0](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.0-alpha.5...@logicflow/core@0.3.0) (2021-04-13)
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
### Bug Fixes
|
|
95
|
-
|
|
96
|
-
* add hoverBackground ([aca87e6](https://github.com/towersxu/logicflow/commit/aca87e6feafb7c0745a192b110533fe96e27edc2))
|
|
97
|
-
* anchor hover style not hide ([2ea9e54](https://github.com/towersxu/logicflow/commit/2ea9e54b5df5030388e2cfbaca39680a88a7387a))
|
|
98
|
-
* edge updateText position ([e333787](https://github.com/towersxu/logicflow/commit/e3337878bed766eaab9345c9110e202cc477a56c))
|
|
99
|
-
* invalid setTheme for rect size ([4ed7e1a](https://github.com/towersxu/logicflow/commit/4ed7e1af69ddf31956e454748da4ea5adcb03be6))
|
|
100
|
-
* save input value when swich edit element ([972e4cd](https://github.com/towersxu/logicflow/commit/972e4cdaba7f7388fe59cb572ff598b976275c0b))
|
|
101
|
-
* **all:** add rimraf ([c526ad8](https://github.com/towersxu/logicflow/commit/c526ad840b1e2620a3221d416f7a03e9c6d3583c))
|
|
102
|
-
* **core:** fix the bug when drag edges ([36aed3a](https://github.com/towersxu/logicflow/commit/36aed3a455e9bfd04ad5a0b4aae294863184069c))
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
### Features
|
|
106
|
-
|
|
107
|
-
* **extension:** curved-edge ([1731b10](https://github.com/towersxu/logicflow/commit/1731b10e3e65ccf226b48d4fb572d90d2ad10dec))
|
|
108
|
-
* add the height field for hoverBackground and background ([4d38c8a](https://github.com/towersxu/logicflow/commit/4d38c8aadcd21e02f21f1b822c6a7832445b24bd))
|
|
109
|
-
* add updateAttributes API ([3112b69](https://github.com/towersxu/logicflow/commit/3112b6917998f6cbb2e306b1862eb3e2c4bd8e8f))
|
|
110
|
-
* added missing element tips ([71674cd](https://github.com/towersxu/logicflow/commit/71674cddc6096170fdc88d88b02a4d482f3c2f43))
|
|
111
|
-
* support setting line of dashes for edges ([4f39909](https://github.com/towersxu/logicflow/commit/4f39909af2260ff0ea696dd2db04ee4e5713b4bc))
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
# [0.3.0-alpha.5](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.0-alpha.4...@logicflow/core@0.3.0-alpha.5) (2021-03-30)
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
### Features
|
|
121
|
-
|
|
122
|
-
* edge text support hover style ([ffc75d4](https://github.com/towersxu/logicflow/commit/ffc75d45e0ef42b9dbca1be489fa749186aa81b0))
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
# [0.3.0-alpha.4](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.0-alpha.2...@logicflow/core@0.3.0-alpha.4) (2021-03-24)
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
### Bug Fixes
|
|
132
|
-
|
|
133
|
-
* the text content misalignment caused by switching nodes ([38193f7](https://github.com/towersxu/logicflow/commit/38193f7a28cb004c18dc7717f854d83269bf4194))
|
|
134
|
-
* **extension:** mini-map default disable control & selection-select ([297cecf](https://github.com/towersxu/logicflow/commit/297cecf4637ca7a045619a10cd9298feacc631ea))
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
# [0.3.0-alpha.3](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.0-alpha.2...@logicflow/core@0.3.0-alpha.3) (2021-03-23)
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
### Bug Fixes
|
|
144
|
-
|
|
145
|
-
* **extension:** mini-map default disable control & selection-select ([297cecf](https://github.com/towersxu/logicflow/commit/297cecf4637ca7a045619a10cd9298feacc631ea))
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
# [0.3.0-alpha.2](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.0-alpha.1...@logicflow/core@0.3.0-alpha.2) (2021-03-22)
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
### Bug Fixes
|
|
155
|
-
|
|
156
|
-
* minimap extension custom disabled plugin ([3768d14](https://github.com/towersxu/logicflow/commit/3768d149b6a72e4c251e287432b6070dcbfabce6))
|
|
157
|
-
* move clone guard to shortcut ([c5643da](https://github.com/towersxu/logicflow/commit/c5643daa8ca7b2f905db81357444e5bba64a5ee7))
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
### Features
|
|
161
|
-
|
|
162
|
-
* change cloneElements to addElements ([6c59d74](https://github.com/towersxu/logicflow/commit/6c59d749a53e5263f5cf630702453054347215f6))
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
# [0.3.0-alpha.1](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.3.0-alpha.0...@logicflow/core@0.3.0-alpha.1) (2021-03-19)
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
### Bug Fixes
|
|
172
|
-
|
|
173
|
-
* custom shortcut replace default shortcut ([791a4e2](https://github.com/didi/LogicFlow/commit/791a4e20134ef251073e528b897a6568a38ae57f))
|
|
174
|
-
* vue reactive object side effect ([a2dc0f8](https://github.com/didi/LogicFlow/commit/a2dc0f86d920679df6a387985b36374c6c2aeb78))
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
### Features
|
|
178
|
-
|
|
179
|
-
* add getSelectElements function ([d6b5a81](https://github.com/didi/LogicFlow/commit/d6b5a81a76ba59cac319cb01a3187caf0fb216ea))
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
# [0.3.0-alpha.0](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.2.9...@logicflow/core@0.3.0-alpha.0) (2021-03-18)
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
### Bug Fixes
|
|
189
|
-
|
|
190
|
-
* 🐛 beforeClone is not be triggered by ctrl+v ([969ab8d](https://github.com/didi/LogicFlow/commit/969ab8d3e1f00bfaba2124389d5d48ce21c6f58f)), closes [#66](https://github.com/didi/LogicFlow/issues/66)
|
|
191
|
-
* 🐛 the incorrect way of anchor choice ([4811f65](https://github.com/didi/LogicFlow/commit/4811f6522ee7a817220ed472b1eb972dad562630))
|
|
192
|
-
* **core:** invalid style setting of snapline in setTheme function ([dc963d5](https://github.com/didi/LogicFlow/commit/dc963d5cb3480e2e469ce5cb46cc4fbf8975f73b))
|
|
193
|
-
* **core:** remove outline in container & copy incomplete elements ([370bbf5](https://github.com/didi/LogicFlow/commit/370bbf578416be6199fa4d4d424cb55fdb5c844c))
|
|
194
|
-
* **core:** select edge after mouseup event ([f24aafd](https://github.com/didi/LogicFlow/commit/f24aafdafbdb5ee3d9617df4600e71b70dda876e))
|
|
195
|
-
* **core:** trigger the edge:click and edge:dbclick with mousedown and mouseup ([b267188](https://github.com/didi/LogicFlow/commit/b267188c712e4ab363c958c4327d219634582641))
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
### Features
|
|
199
|
-
|
|
200
|
-
* 🎸 add anchorsOffset API ([f23317b](https://github.com/didi/LogicFlow/commit/f23317bf535222d3770ae39892071ca7d154df41))
|
|
201
|
-
* add mini-map extension ([fa621da](https://github.com/didi/LogicFlow/commit/fa621daf2cc6a05cd5265bfe5245f5424f97ae7e))
|
|
202
|
-
* custom active plugin & add updateText function ([c974e75](https://github.com/didi/LogicFlow/commit/c974e7521d8eb1395c9df63c5c5da8933e8a849a))
|
|
203
|
-
* extension add destroy property ([23e59e5](https://github.com/didi/LogicFlow/commit/23e59e5902976fced92ad67ddd72f74938113c96))
|
|
204
|
-
* resize node ([2bc595e](https://github.com/didi/LogicFlow/commit/2bc595eadea58e1597f730520b830efc41a0dac5))
|
|
205
|
-
* **core:** add disable extension config & extension need name ([8bd9355](https://github.com/didi/LogicFlow/commit/8bd93555b7f82eb30a4813c986e3e642c86578fb))
|
|
206
|
-
* **core:** add drap event ([746f5db](https://github.com/didi/LogicFlow/commit/746f5db4e5dcfd362f57524f2bfb40db2279030f))
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
## [0.2.9](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.2.8...@logicflow/core@0.2.9) (2021-03-10)
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
### Bug Fixes
|
|
216
|
-
|
|
217
|
-
* 🐛 no dbclick event was triggered when textEdit is false ([f295def](https://github.com/didi/LogicFlow/commit/f295def99aae5f92394056066884faf8d2967495))
|
|
218
|
-
* **core:** Fix the problem of invalid property settings in setProperties function ([3e28d4e](https://github.com/didi/LogicFlow/commit/3e28d4e8b0153830c8277bd81f0259374fa23b71))
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
## [0.2.8](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.2.7...@logicflow/core@0.2.8) (2021-03-05)
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
### Bug Fixes
|
|
228
|
-
|
|
229
|
-
* **core:** Compatible with the data of the vue project ([4d94215](https://github.com/didi/LogicFlow/commit/4d9421522444915ddb5534836c93ccf0b199481d))
|
|
230
|
-
* **core:** Fix the problem of invalid property settings in addNode and createEdge function ([54eb760](https://github.com/didi/LogicFlow/commit/54eb760b8e2d56fcc10ae1171427b275441e31c3))
|
|
231
|
-
* **core:** Pick standardized data in the constructor function of nodeModel ([fc6f6d7](https://github.com/didi/LogicFlow/commit/fc6f6d74968425e272b805c76692469dad449f53))
|
|
232
|
-
* 🐛 lack the outline style of edge ([babeaac](https://github.com/didi/LogicFlow/commit/babeaac2b6a4e9b864df0e740deddc9a6a21dfb9))
|
|
233
|
-
* 🐛 the render err of diamond ([01c85bb](https://github.com/didi/LogicFlow/commit/01c85bbee091222c3772dbf6cc3de282d2f7d097))
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
## [0.2.7](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.2.6...@logicflow/core@0.2.7) (2021-03-01)
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
### Bug Fixes
|
|
243
|
-
|
|
244
|
-
* 🐛 complete the type of nodes' common style ([971f63e](https://github.com/didi/LogicFlow/commit/971f63ec1b320f034263ab34e456eee970a3e06b))
|
|
245
|
-
* **core:** get vue project responsive data error ([e03d277](https://github.com/didi/LogicFlow/commit/e03d277b6cca2836f53f104f5e999208439a5fe0))
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
## [0.2.6](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.2.4...@logicflow/core@0.2.6) (2021-03-01)
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
### Bug Fixes
|
|
255
|
-
|
|
256
|
-
* **core:** immutable redo data ([7a5dac6](https://github.com/didi/LogicFlow/commit/7a5dac6d89b0b248a9055cacaa22dc423dc6c299))
|
|
257
|
-
* **extension:** 🐛fix undo error when custom text position ([fc6e7d7](https://github.com/didi/LogicFlow/commit/fc6e7d767889e8bbdd542a3c8006e352a86121c4))
|
|
258
|
-
* 🐛 add the type of diamond class ([90f70b5](https://github.com/didi/LogicFlow/commit/90f70b5dd378af9f7c6ee3abca0c2ebf5cb8e4b3))
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
### Features
|
|
262
|
-
|
|
263
|
-
* new plugin Selection & example ([2e4b489](https://github.com/didi/LogicFlow/commit/2e4b48958dff21617b6f7b08c9840deac0a178f0))
|
|
264
|
-
* **core:** add edit config update function ([695894c](https://github.com/didi/LogicFlow/commit/695894c4db9fa328d358be1d3917166b33aae990))
|
|
265
|
-
* **core:** copy paste and delete multiple selected elements ([4a5be86](https://github.com/didi/LogicFlow/commit/4a5be86c63c90b7c1c88e08e9d084e708307a80d))
|
|
266
|
-
* **core:** multiple elements drag moving ([a59065f](https://github.com/didi/LogicFlow/commit/a59065f7cebd745e2ba0e147c8356849384be9f9))
|
|
267
|
-
* **core:** support use meta key select multiple element ([e137f9f](https://github.com/didi/LogicFlow/commit/e137f9fdbdb6bf3f85c3f7ac9323785e445844c8))
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
## [0.2.4](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.2.3...@logicflow/core@0.2.4) (2021-02-20)
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
### Bug Fixes
|
|
277
|
-
|
|
278
|
-
* 🐛 fix error when moving edge ([9ac20c1](https://github.com/didi/LogicFlow/commit/9ac20c1c89a6909860e2de99eea2c333f2f4aa6c))
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
## [0.2.3](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.2.2...@logicflow/core@0.2.3) (2021-02-19)
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
### Bug Fixes
|
|
288
|
-
|
|
289
|
-
* **core:** print error when double click edge ([a890ef7](https://github.com/didi/LogicFlow/commit/a890ef7f81e559ef16da505568b1ddb94c7eb365))
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
## [0.2.2](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.2.1...@logicflow/core@0.2.2) (2021-02-08)
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
### Bug Fixes
|
|
299
|
-
|
|
300
|
-
* **core:** change the priority of events ([5373797](https://github.com/didi/LogicFlow/commit/53737978d109088a2aeac1b4492fcbd69d16ec35))
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
## [0.2.1](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.1.0...@logicflow/core@0.2.1) (2021-02-08)
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
### Bug Fixes
|
|
310
|
-
|
|
311
|
-
* **core:** fix anchor error ([7a30f23](https://github.com/didi/LogicFlow/commit/7a30f238bda918be25caa6e9646846f379042b3c))
|
|
312
|
-
* **core:** fix checking repeatedly verification rules ([f0efbf4](https://github.com/didi/LogicFlow/commit/f0efbf481eb254bdaf29fd25b29ee1ee495d439b))
|
|
313
|
-
* **core:** fix textEdit deviation ([17db629](https://github.com/didi/LogicFlow/commit/17db629500d3887f26779440582c3ce3567bdab6))
|
|
314
|
-
* **core:** move the tool overlay out of the graph ([fcc586d](https://github.com/didi/LogicFlow/commit/fcc586df6d9e8f5188fb6d87bdb86aa461950f98))
|
|
315
|
-
* **core:** optimize anchor selection ([19d5fe8](https://github.com/didi/LogicFlow/commit/19d5fe8bd7b886656ce4ec96acbc7bbbdfff1ce4))
|
|
316
|
-
* **core:** recovery ellipse size ([81e8ed3](https://github.com/didi/LogicFlow/commit/81e8ed396db0bc32c26a9961298ad4a535ed02ad))
|
|
317
|
-
* Spelling errors EdgeConifg -> EdgeConfig and EdgeConfig Repeat Definitions in type/index.ts ([401dfb5](https://github.com/didi/LogicFlow/commit/401dfb533e860d03b60ddfc6d9a006900af38c35))
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
### Features
|
|
321
|
-
|
|
322
|
-
* **core:** add getPointByClient API ([983fa91](https://github.com/didi/LogicFlow/commit/983fa91cc70426f113c397ed89d75add50e634ad))
|
|
323
|
-
* **core:** add new configuration items ([66d562d](https://github.com/didi/LogicFlow/commit/66d562d90306c69d69f22823d174d11833cf70d0))
|
|
324
|
-
* **core:** Add stroke-dasharray vlaue to outline of node & edge ([4cb1bca](https://github.com/didi/LogicFlow/commit/4cb1bca0f5090de035adda717b9bb509c79753d7)), closes [#12](https://github.com/didi/LogicFlow/issues/12)
|
|
325
|
-
* **core:** Add the select function for logicflow ([6ae0671](https://github.com/didi/LogicFlow/commit/6ae067153cd2608018fd3da76bd6d00a08da4b3a))
|
|
326
|
-
* **core:** Create text for polyline at the double-click position ([ac7eeea](https://github.com/didi/LogicFlow/commit/ac7eeea0a3937350a4393500b24811352947fb49))
|
|
327
|
-
* **core:** support open text edit by double click anchor ([690d1d1](https://github.com/didi/LogicFlow/commit/690d1d1648237c06580f51439ec67e4d07931774))
|
|
328
|
-
* **core:** support setting hoverOutlineStrokeDash ([ad09324](https://github.com/didi/LogicFlow/commit/ad09324088cbb95d7bbe843cb4d745475cfeb92c))
|
|
329
|
-
* **core:** v0.2.0 ([f11d143](https://github.com/didi/LogicFlow/commit/f11d143a998ca68887f08e6ccd98604f165cec8a))
|
|
330
|
-
* **extension:** v0.2.0 ([ee67636](https://github.com/didi/LogicFlow/commit/ee676365b82d2d07d40cbc77e955eb3506690804))
|
|
331
|
-
* 替换文件夹名称 ([9155d8a](https://github.com/didi/LogicFlow/commit/9155d8a7af3cd0aff983f8a036bd3ffafd0d4d56))
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
# [0.2.0](https://github.com/didichuxing/LogicFlow/compare/@logicflow/core@0.1.0...@logicflow/core@0.2.0) (2021-02-01)
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
### Bug Fixes
|
|
341
|
-
|
|
342
|
-
* Spelling errors EdgeConifg -> EdgeConfig and EdgeConfig Repeat Definitions in type/index.ts ([401dfb5](https://github.com/didichuxing/LogicFlow/commit/401dfb533e860d03b60ddfc6d9a006900af38c35))
|
|
343
|
-
* **core:** fix anchor error ([7a30f23](https://github.com/didichuxing/LogicFlow/commit/7a30f238bda918be25caa6e9646846f379042b3c))
|
|
344
|
-
* **core:** fix checking repeatedly verification rules ([f0efbf4](https://github.com/didichuxing/LogicFlow/commit/f0efbf481eb254bdaf29fd25b29ee1ee495d439b))
|
|
345
|
-
* **core:** move the tool overlay out of the graph ([fcc586d](https://github.com/didichuxing/LogicFlow/commit/fcc586df6d9e8f5188fb6d87bdb86aa461950f98))
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
### Features
|
|
349
|
-
|
|
350
|
-
* 替换文件夹名称 ([9155d8a](https://github.com/didichuxing/LogicFlow/commit/9155d8a7af3cd0aff983f8a036bd3ffafd0d4d56))
|
|
351
|
-
* **core:** Add stroke-dasharray vlaue to outline of node & edge ([4cb1bca](https://github.com/didichuxing/LogicFlow/commit/4cb1bca0f5090de035adda717b9bb509c79753d7)), closes [#12](https://github.com/didichuxing/LogicFlow/issues/12)
|
|
352
|
-
* **core:** support open text edit by double click anchor ([690d1d1](https://github.com/didichuxing/LogicFlow/commit/690d1d1648237c06580f51439ec67e4d07931774))
|
|
353
|
-
* **core:** v0.2.0 ([f11d143](https://github.com/didichuxing/LogicFlow/commit/f11d143a998ca68887f08e6ccd98604f165cec8a))
|
|
354
|
-
* **extension:** v0.2.0 ([ee67636](https://github.com/didichuxing/LogicFlow/commit/ee676365b82d2d07d40cbc77e955eb3506690804))
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
# 0.1.0 (2020-12-29)
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
### Features
|
|
364
|
-
|
|
365
|
-
* init ([6ab4c32](https://github.com/didichuxing/LogicFlow/commit/6ab4c326063b9242010c89b6bf92885c3158e6b0))
|
|
366
|
-
* 更改包名增加scope ([27be341](https://github.com/didichuxing/LogicFlow/commit/27be3410c70f959093f928c792cf40f038e8adcc))
|