@logicflow/core 0.4.1-alpha.1 → 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.
Files changed (63) hide show
  1. package/README.md +171 -0
  2. package/dist/logic-flow-cjs.js +2 -0
  3. package/dist/logic-flow-cjs.js.LICENSE.txt +23 -0
  4. package/dist/logic-flow.js +2 -2
  5. package/dist/logic-flow.js.LICENSE.txt +23 -0
  6. package/dist/style/index.css +124 -8
  7. package/es/index.js +69 -0
  8. package/package.json +20 -5
  9. package/types/LogicFlow.d.ts +63 -19
  10. package/types/constant/DefaultTheme.d.ts +12 -0
  11. package/types/constant/constant.d.ts +13 -2
  12. package/types/event/eventEmitter.d.ts +8 -8
  13. package/types/model/BaseModel.d.ts +60 -1
  14. package/types/model/EditConfigModel.d.ts +74 -2
  15. package/types/model/GraphModel.d.ts +34 -6
  16. package/types/model/TransformModel.d.ts +16 -3
  17. package/types/model/edge/BaseEdgeModel.d.ts +19 -1
  18. package/types/model/edge/BezierEdgeModel.d.ts +11 -1
  19. package/types/model/edge/LineEdgeModel.d.ts +1 -1
  20. package/types/model/edge/PolylineEdgeModel.d.ts +19 -1
  21. package/types/model/node/BaseNodeModel.d.ts +71 -23
  22. package/types/model/node/CircleNodeModel.d.ts +5 -2
  23. package/types/model/node/HtmlNodeModel.d.ts +11 -0
  24. package/types/model/node/PolygonNodeModel.d.ts +5 -0
  25. package/types/model/node/index.d.ts +1 -0
  26. package/types/options.d.ts +79 -9
  27. package/types/tool/MultipleSelectTool.d.ts +2 -2
  28. package/types/tool/TextEditTool.d.ts +3 -4
  29. package/types/tool/index.d.ts +1 -0
  30. package/types/type/index.d.ts +74 -5
  31. package/types/util/drag.d.ts +2 -0
  32. package/types/util/edge.d.ts +2 -1
  33. package/types/util/graph.d.ts +4 -0
  34. package/types/util/node.d.ts +20 -2
  35. package/types/util/theme.d.ts +12 -0
  36. package/types/util/uuid.d.ts +5 -0
  37. package/types/util/zIndex.d.ts +2 -0
  38. package/types/view/Anchor.d.ts +6 -4
  39. package/types/view/Graph.d.ts +0 -4
  40. package/types/view/basic-shape/LinearGradient.d.ts +1 -0
  41. package/types/view/basic-shape/Polygon.d.ts +1 -9
  42. package/types/view/behavior/DnD.d.ts +1 -1
  43. package/types/view/edge/AdjustPoint.d.ts +43 -0
  44. package/types/view/edge/BaseEdge.d.ts +3 -1
  45. package/types/view/edge/PolylineEdge.d.ts +1 -0
  46. package/types/view/node/BaseNode.d.ts +11 -7
  47. package/types/view/node/CircleNode.d.ts +3 -1
  48. package/types/view/node/DiamondNode.d.ts +3 -1
  49. package/types/view/node/EllipseNode.d.ts +3 -1
  50. package/types/view/node/HtmlNode.d.ts +11 -0
  51. package/types/view/node/PolygonNode.d.ts +3 -1
  52. package/types/view/node/RectNode.d.ts +3 -1
  53. package/types/view/node/TextNode.d.ts +1 -0
  54. package/types/view/node/index.d.ts +2 -1
  55. package/types/view/overlay/CanvasOverlay.d.ts +30 -2
  56. package/types/view/overlay/Grid.d.ts +10 -0
  57. package/types/view/overlay/HtmlOverlay.d.ts +5 -46
  58. package/types/view/overlay/ModificationOverlay.d.ts +9 -0
  59. package/CHANGELOG.md +0 -415
  60. package/LICENSE +0 -433
  61. package/dist/style/background.css +0 -8
  62. package/dist/style/html-overlay.css +0 -33
  63. package/dist/style/tool.css +0 -29
@@ -25,7 +25,9 @@ export default class DiamondNode extends BaseNode {
25
25
  opacity: number;
26
26
  outlineColor: string;
27
27
  id: string;
28
- properties: {};
28
+ properties: {
29
+ [x: string]: any;
30
+ };
29
31
  type: string;
30
32
  x: number;
31
33
  y: number;
@@ -14,7 +14,9 @@ export default class EllipseNode extends BaseNode {
14
14
  opacity: number;
15
15
  outlineColor: string;
16
16
  id: string;
17
- properties: {};
17
+ properties: {
18
+ [x: string]: any;
19
+ };
18
20
  type: string;
19
21
  x: number;
20
22
  y: number;
@@ -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
+ }
@@ -25,7 +25,9 @@ export default class PolygonNode extends BaseNode {
25
25
  opacity: number;
26
26
  outlineColor: string;
27
27
  id: string;
28
- properties: {};
28
+ properties: {
29
+ [x: string]: any;
30
+ };
29
31
  type: string;
30
32
  x: number;
31
33
  y: number;
@@ -25,7 +25,9 @@ export default class RectNode extends BaseNode {
25
25
  opacity: number;
26
26
  outlineColor: string;
27
27
  id: string;
28
- properties: {};
28
+ properties: {
29
+ [x: string]: any;
30
+ };
29
31
  type: string;
30
32
  x: number;
31
33
  y: number;
@@ -1,5 +1,6 @@
1
1
  import { h } from 'preact';
2
2
  import BaseNode from './BaseNode';
3
3
  export default class TextNode extends BaseNode {
4
+ getBackgroud(): h.JSX.Element;
4
5
  getShape(): h.JSX.Element;
5
6
  }
@@ -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
- export { BaseNode, RectNode, CircleNode, PolygonNode, DiamondNode, EllipseNode, TextNode, };
8
+ import HtmlNode from './HtmlNode';
9
+ export { BaseNode, RectNode, CircleNode, PolygonNode, DiamondNode, EllipseNode, TextNode, HtmlNode, };
@@ -1,2 +1,30 @@
1
- declare const _default: any;
2
- export default _default;
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 const _default: {
14
- new (props?: {
15
- graphModel: GraphModel;
16
- } & IProps, context?: any): {
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;
@@ -0,0 +1,9 @@
1
+ import { h, Component } from 'preact';
2
+ import GraphModel from '../../model/GraphModel';
3
+ declare type IProps = {
4
+ graphModel: GraphModel;
5
+ };
6
+ export default class ModificationOverlay extends Component<IProps> {
7
+ render(): h.JSX.Element;
8
+ }
9
+ export {};
package/CHANGELOG.md DELETED
@@ -1,415 +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.4.1-alpha.1](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.4.0...@logicflow/core@0.4.1-alpha.1) (2021-05-12)
7
-
8
-
9
- ### Bug Fixes
10
-
11
- * ie11 transform no work ([95a069b](https://github.com/towersxu/logicflow/commit/95a069bb18faba2bd3efc849217ee4ce019fed23))
12
- * occasionally read isAllPass of undefined ([e413970](https://github.com/towersxu/logicflow/commit/e41397064f208c8f9daa76399397a69bdf4a133f))
13
- * **core:** export function in util ([24655f3](https://github.com/towersxu/logicflow/commit/24655f3f2d4d539925847e3ced47e16c503d6ebb))
14
- * **extension:** merge v0.4 ([3ce2a7c](https://github.com/towersxu/logicflow/commit/3ce2a7c13e02828c701b523135c0275011c592c8))
15
-
16
-
17
- ### Features
18
-
19
- * support class as extension ([e3c40d1](https://github.com/towersxu/logicflow/commit/e3c40d1e3e648b58597f33cb8330b42ce6d76079))
20
- * **extension:** rect node resize ([9d25526](https://github.com/towersxu/logicflow/commit/9d25526c8bdbf0a64ecf4b66d5b755e498ccc2cd))
21
-
22
-
23
-
24
-
25
-
26
- ## [0.4.1-alpha.0](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.4.0...@logicflow/core@0.4.1-alpha.0) (2021-05-06)
27
-
28
-
29
- ### Features
30
-
31
- * support class as extension ([e3c40d1](https://github.com/towersxu/logicflow/commit/e3c40d1e3e648b58597f33cb8330b42ce6d76079))
32
-
33
-
34
-
35
-
36
-
37
- # [0.4.0](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.6...@logicflow/core@0.4.0) (2021-04-30)
38
-
39
-
40
- ### Bug Fixes
41
-
42
- * save register API & add registerElement API ([53304b3](https://github.com/towersxu/logicflow/commit/53304b3c5ad7ad78cc1ae1a282879614f881cf80))
43
- * update registerElement API in extension ([7798dbb](https://github.com/towersxu/logicflow/commit/7798dbbeef4b4d021d02b5d21d55f81ef7161d1e))
44
-
45
-
46
- ### Features
47
-
48
- * register support config ([cae7c98](https://github.com/towersxu/logicflow/commit/cae7c9807eff77fcad9de2907c286c03b01b6aa9))
49
- * support ie11 ([902e813](https://github.com/towersxu/logicflow/commit/902e81394a2d5945d7ceecfee58875f57f938fc8))
50
-
51
-
52
-
53
-
54
-
55
- ## [0.3.6](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.4...@logicflow/core@0.3.6) (2021-04-29)
56
-
57
-
58
- ### Bug Fixes
59
-
60
- * add more warning ([12f4bb3](https://github.com/towersxu/logicflow/commit/12f4bb36e34733855aeb760a5874fedd09b411de))
61
- * change node type line ([31602bb](https://github.com/towersxu/logicflow/commit/31602bbbfb5282ef9b2d80d18c0a7492ed19f907))
62
-
63
-
64
- ### Features
65
-
66
- * add change nodetype ([15878a1](https://github.com/towersxu/logicflow/commit/15878a1c8be6f9117c925792c66dcdbfd1b0aa77))
67
- * **extension:** drop node in polyline ([94480ac](https://github.com/towersxu/logicflow/commit/94480ac5b2b8d989a2310a3b4c25e08abe9d10b6))
68
-
69
-
70
-
71
-
72
-
73
- ## [0.3.5](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.4...@logicflow/core@0.3.5) (2021-04-29)
74
-
75
-
76
- ### Bug Fixes
77
-
78
- * add more warning ([12f4bb3](https://github.com/towersxu/logicflow/commit/12f4bb36e34733855aeb760a5874fedd09b411de))
79
-
80
-
81
- ### Features
82
-
83
- * add change nodetype ([15878a1](https://github.com/towersxu/logicflow/commit/15878a1c8be6f9117c925792c66dcdbfd1b0aa77))
84
- * **extension:** drop node in polyline ([94480ac](https://github.com/towersxu/logicflow/commit/94480ac5b2b8d989a2310a3b4c25e08abe9d10b6))
85
-
86
-
87
-
88
-
89
-
90
- ## [0.3.4](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.3...@logicflow/core@0.3.4) (2021-04-22)
91
-
92
- **Note:** Version bump only for package @logicflow/core
93
-
94
-
95
-
96
-
97
-
98
- ## [0.3.3](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.2...@logicflow/core@0.3.3) (2021-04-21)
99
-
100
-
101
- ### Bug Fixes
102
-
103
- * avoid reObserver view ([996fd65](https://github.com/towersxu/logicflow/commit/996fd6515d78b5331b08fd84025a148b45026cd9))
104
- * drag text not allowed propagation ([9d6cc0c](https://github.com/towersxu/logicflow/commit/9d6cc0cc1c64fdc134e83f37794ca568ffbfca25))
105
- * types ([37491ca](https://github.com/towersxu/logicflow/commit/37491cab07d7712aa4b94326424af3ded5031f75))
106
-
107
-
108
-
109
-
110
-
111
- ## [0.3.2](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.1...@logicflow/core@0.3.2) (2021-04-20)
112
-
113
-
114
- ### Bug Fixes
115
-
116
- * show anchors when extend baseNode ([12bd0db](https://github.com/towersxu/logicflow/commit/12bd0db574b18b19aed8134b9e508f3c0a9ef6f4))
117
- * show anchors when extend baseNode ([d78d7df](https://github.com/towersxu/logicflow/commit/d78d7dfabbdea171a104a22b48ad6e8662230c21))
118
-
119
-
120
- ### Features
121
-
122
- * **core:** add clearData funcion in Logicflow ([2a5b345](https://github.com/towersxu/logicflow/commit/2a5b3450b88fd7d831bc25810726fa4de4255033))
123
-
124
-
125
-
126
-
127
-
128
- ## [0.3.1](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.0...@logicflow/core@0.3.1) (2021-04-19)
129
-
130
-
131
- ### Bug Fixes
132
-
133
- * delete useless code ([8680810](https://github.com/towersxu/logicflow/commit/8680810fdb6600994bcf3b94e11061dad176bc51))
134
- * format edge text value ([cc8aa22](https://github.com/towersxu/logicflow/commit/cc8aa224d158f547589a2e1f9e079d064df0b9e8))
135
-
136
-
137
-
138
-
139
-
140
- # [0.3.0](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.0-alpha.5...@logicflow/core@0.3.0) (2021-04-13)
141
-
142
-
143
- ### Bug Fixes
144
-
145
- * add hoverBackground ([aca87e6](https://github.com/towersxu/logicflow/commit/aca87e6feafb7c0745a192b110533fe96e27edc2))
146
- * anchor hover style not hide ([2ea9e54](https://github.com/towersxu/logicflow/commit/2ea9e54b5df5030388e2cfbaca39680a88a7387a))
147
- * edge updateText position ([e333787](https://github.com/towersxu/logicflow/commit/e3337878bed766eaab9345c9110e202cc477a56c))
148
- * invalid setTheme for rect size ([4ed7e1a](https://github.com/towersxu/logicflow/commit/4ed7e1af69ddf31956e454748da4ea5adcb03be6))
149
- * save input value when swich edit element ([972e4cd](https://github.com/towersxu/logicflow/commit/972e4cdaba7f7388fe59cb572ff598b976275c0b))
150
- * **all:** add rimraf ([c526ad8](https://github.com/towersxu/logicflow/commit/c526ad840b1e2620a3221d416f7a03e9c6d3583c))
151
- * **core:** fix the bug when drag edges ([36aed3a](https://github.com/towersxu/logicflow/commit/36aed3a455e9bfd04ad5a0b4aae294863184069c))
152
-
153
-
154
- ### Features
155
-
156
- * **extension:** curved-edge ([1731b10](https://github.com/towersxu/logicflow/commit/1731b10e3e65ccf226b48d4fb572d90d2ad10dec))
157
- * add the height field for hoverBackground and background ([4d38c8a](https://github.com/towersxu/logicflow/commit/4d38c8aadcd21e02f21f1b822c6a7832445b24bd))
158
- * add updateAttributes API ([3112b69](https://github.com/towersxu/logicflow/commit/3112b6917998f6cbb2e306b1862eb3e2c4bd8e8f))
159
- * added missing element tips ([71674cd](https://github.com/towersxu/logicflow/commit/71674cddc6096170fdc88d88b02a4d482f3c2f43))
160
- * support setting line of dashes for edges ([4f39909](https://github.com/towersxu/logicflow/commit/4f39909af2260ff0ea696dd2db04ee4e5713b4bc))
161
-
162
-
163
-
164
-
165
-
166
- # [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)
167
-
168
-
169
- ### Features
170
-
171
- * edge text support hover style ([ffc75d4](https://github.com/towersxu/logicflow/commit/ffc75d45e0ef42b9dbca1be489fa749186aa81b0))
172
-
173
-
174
-
175
-
176
-
177
- # [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)
178
-
179
-
180
- ### Bug Fixes
181
-
182
- * the text content misalignment caused by switching nodes ([38193f7](https://github.com/towersxu/logicflow/commit/38193f7a28cb004c18dc7717f854d83269bf4194))
183
- * **extension:** mini-map default disable control & selection-select ([297cecf](https://github.com/towersxu/logicflow/commit/297cecf4637ca7a045619a10cd9298feacc631ea))
184
-
185
-
186
-
187
-
188
-
189
- # [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)
190
-
191
-
192
- ### Bug Fixes
193
-
194
- * **extension:** mini-map default disable control & selection-select ([297cecf](https://github.com/towersxu/logicflow/commit/297cecf4637ca7a045619a10cd9298feacc631ea))
195
-
196
-
197
-
198
-
199
-
200
- # [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)
201
-
202
-
203
- ### Bug Fixes
204
-
205
- * minimap extension custom disabled plugin ([3768d14](https://github.com/towersxu/logicflow/commit/3768d149b6a72e4c251e287432b6070dcbfabce6))
206
- * move clone guard to shortcut ([c5643da](https://github.com/towersxu/logicflow/commit/c5643daa8ca7b2f905db81357444e5bba64a5ee7))
207
-
208
-
209
- ### Features
210
-
211
- * change cloneElements to addElements ([6c59d74](https://github.com/towersxu/logicflow/commit/6c59d749a53e5263f5cf630702453054347215f6))
212
-
213
-
214
-
215
-
216
-
217
- # [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)
218
-
219
-
220
- ### Bug Fixes
221
-
222
- * custom shortcut replace default shortcut ([791a4e2](https://github.com/didi/LogicFlow/commit/791a4e20134ef251073e528b897a6568a38ae57f))
223
- * vue reactive object side effect ([a2dc0f8](https://github.com/didi/LogicFlow/commit/a2dc0f86d920679df6a387985b36374c6c2aeb78))
224
-
225
-
226
- ### Features
227
-
228
- * add getSelectElements function ([d6b5a81](https://github.com/didi/LogicFlow/commit/d6b5a81a76ba59cac319cb01a3187caf0fb216ea))
229
-
230
-
231
-
232
-
233
-
234
- # [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)
235
-
236
-
237
- ### Bug Fixes
238
-
239
- * 🐛 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)
240
- * 🐛 the incorrect way of anchor choice ([4811f65](https://github.com/didi/LogicFlow/commit/4811f6522ee7a817220ed472b1eb972dad562630))
241
- * **core:** invalid style setting of snapline in setTheme function ([dc963d5](https://github.com/didi/LogicFlow/commit/dc963d5cb3480e2e469ce5cb46cc4fbf8975f73b))
242
- * **core:** remove outline in container & copy incomplete elements ([370bbf5](https://github.com/didi/LogicFlow/commit/370bbf578416be6199fa4d4d424cb55fdb5c844c))
243
- * **core:** select edge after mouseup event ([f24aafd](https://github.com/didi/LogicFlow/commit/f24aafdafbdb5ee3d9617df4600e71b70dda876e))
244
- * **core:** trigger the edge:click and edge:dbclick with mousedown and mouseup ([b267188](https://github.com/didi/LogicFlow/commit/b267188c712e4ab363c958c4327d219634582641))
245
-
246
-
247
- ### Features
248
-
249
- * 🎸 add anchorsOffset API ([f23317b](https://github.com/didi/LogicFlow/commit/f23317bf535222d3770ae39892071ca7d154df41))
250
- * add mini-map extension ([fa621da](https://github.com/didi/LogicFlow/commit/fa621daf2cc6a05cd5265bfe5245f5424f97ae7e))
251
- * custom active plugin & add updateText function ([c974e75](https://github.com/didi/LogicFlow/commit/c974e7521d8eb1395c9df63c5c5da8933e8a849a))
252
- * extension add destroy property ([23e59e5](https://github.com/didi/LogicFlow/commit/23e59e5902976fced92ad67ddd72f74938113c96))
253
- * resize node ([2bc595e](https://github.com/didi/LogicFlow/commit/2bc595eadea58e1597f730520b830efc41a0dac5))
254
- * **core:** add disable extension config & extension need name ([8bd9355](https://github.com/didi/LogicFlow/commit/8bd93555b7f82eb30a4813c986e3e642c86578fb))
255
- * **core:** add drap event ([746f5db](https://github.com/didi/LogicFlow/commit/746f5db4e5dcfd362f57524f2bfb40db2279030f))
256
-
257
-
258
-
259
-
260
-
261
- ## [0.2.9](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.2.8...@logicflow/core@0.2.9) (2021-03-10)
262
-
263
-
264
- ### Bug Fixes
265
-
266
- * 🐛 no dbclick event was triggered when textEdit is false ([f295def](https://github.com/didi/LogicFlow/commit/f295def99aae5f92394056066884faf8d2967495))
267
- * **core:** Fix the problem of invalid property settings in setProperties function ([3e28d4e](https://github.com/didi/LogicFlow/commit/3e28d4e8b0153830c8277bd81f0259374fa23b71))
268
-
269
-
270
-
271
-
272
-
273
- ## [0.2.8](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.2.7...@logicflow/core@0.2.8) (2021-03-05)
274
-
275
-
276
- ### Bug Fixes
277
-
278
- * **core:** Compatible with the data of the vue project ([4d94215](https://github.com/didi/LogicFlow/commit/4d9421522444915ddb5534836c93ccf0b199481d))
279
- * **core:** Fix the problem of invalid property settings in addNode and createEdge function ([54eb760](https://github.com/didi/LogicFlow/commit/54eb760b8e2d56fcc10ae1171427b275441e31c3))
280
- * **core:** Pick standardized data in the constructor function of nodeModel ([fc6f6d7](https://github.com/didi/LogicFlow/commit/fc6f6d74968425e272b805c76692469dad449f53))
281
- * 🐛 lack the outline style of edge ([babeaac](https://github.com/didi/LogicFlow/commit/babeaac2b6a4e9b864df0e740deddc9a6a21dfb9))
282
- * 🐛 the render err of diamond ([01c85bb](https://github.com/didi/LogicFlow/commit/01c85bbee091222c3772dbf6cc3de282d2f7d097))
283
-
284
-
285
-
286
-
287
-
288
- ## [0.2.7](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.2.6...@logicflow/core@0.2.7) (2021-03-01)
289
-
290
-
291
- ### Bug Fixes
292
-
293
- * 🐛 complete the type of nodes' common style ([971f63e](https://github.com/didi/LogicFlow/commit/971f63ec1b320f034263ab34e456eee970a3e06b))
294
- * **core:** get vue project responsive data error ([e03d277](https://github.com/didi/LogicFlow/commit/e03d277b6cca2836f53f104f5e999208439a5fe0))
295
-
296
-
297
-
298
-
299
-
300
- ## [0.2.6](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.2.4...@logicflow/core@0.2.6) (2021-03-01)
301
-
302
-
303
- ### Bug Fixes
304
-
305
- * **core:** immutable redo data ([7a5dac6](https://github.com/didi/LogicFlow/commit/7a5dac6d89b0b248a9055cacaa22dc423dc6c299))
306
- * **extension:** 🐛fix undo error when custom text position ([fc6e7d7](https://github.com/didi/LogicFlow/commit/fc6e7d767889e8bbdd542a3c8006e352a86121c4))
307
- * 🐛 add the type of diamond class ([90f70b5](https://github.com/didi/LogicFlow/commit/90f70b5dd378af9f7c6ee3abca0c2ebf5cb8e4b3))
308
-
309
-
310
- ### Features
311
-
312
- * new plugin Selection & example ([2e4b489](https://github.com/didi/LogicFlow/commit/2e4b48958dff21617b6f7b08c9840deac0a178f0))
313
- * **core:** add edit config update function ([695894c](https://github.com/didi/LogicFlow/commit/695894c4db9fa328d358be1d3917166b33aae990))
314
- * **core:** copy paste and delete multiple selected elements ([4a5be86](https://github.com/didi/LogicFlow/commit/4a5be86c63c90b7c1c88e08e9d084e708307a80d))
315
- * **core:** multiple elements drag moving ([a59065f](https://github.com/didi/LogicFlow/commit/a59065f7cebd745e2ba0e147c8356849384be9f9))
316
- * **core:** support use meta key select multiple element ([e137f9f](https://github.com/didi/LogicFlow/commit/e137f9fdbdb6bf3f85c3f7ac9323785e445844c8))
317
-
318
-
319
-
320
-
321
-
322
- ## [0.2.4](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.2.3...@logicflow/core@0.2.4) (2021-02-20)
323
-
324
-
325
- ### Bug Fixes
326
-
327
- * 🐛 fix error when moving edge ([9ac20c1](https://github.com/didi/LogicFlow/commit/9ac20c1c89a6909860e2de99eea2c333f2f4aa6c))
328
-
329
-
330
-
331
-
332
-
333
- ## [0.2.3](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.2.2...@logicflow/core@0.2.3) (2021-02-19)
334
-
335
-
336
- ### Bug Fixes
337
-
338
- * **core:** print error when double click edge ([a890ef7](https://github.com/didi/LogicFlow/commit/a890ef7f81e559ef16da505568b1ddb94c7eb365))
339
-
340
-
341
-
342
-
343
-
344
- ## [0.2.2](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.2.1...@logicflow/core@0.2.2) (2021-02-08)
345
-
346
-
347
- ### Bug Fixes
348
-
349
- * **core:** change the priority of events ([5373797](https://github.com/didi/LogicFlow/commit/53737978d109088a2aeac1b4492fcbd69d16ec35))
350
-
351
-
352
-
353
-
354
-
355
- ## [0.2.1](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.1.0...@logicflow/core@0.2.1) (2021-02-08)
356
-
357
-
358
- ### Bug Fixes
359
-
360
- * **core:** fix anchor error ([7a30f23](https://github.com/didi/LogicFlow/commit/7a30f238bda918be25caa6e9646846f379042b3c))
361
- * **core:** fix checking repeatedly verification rules ([f0efbf4](https://github.com/didi/LogicFlow/commit/f0efbf481eb254bdaf29fd25b29ee1ee495d439b))
362
- * **core:** fix textEdit deviation ([17db629](https://github.com/didi/LogicFlow/commit/17db629500d3887f26779440582c3ce3567bdab6))
363
- * **core:** move the tool overlay out of the graph ([fcc586d](https://github.com/didi/LogicFlow/commit/fcc586df6d9e8f5188fb6d87bdb86aa461950f98))
364
- * **core:** optimize anchor selection ([19d5fe8](https://github.com/didi/LogicFlow/commit/19d5fe8bd7b886656ce4ec96acbc7bbbdfff1ce4))
365
- * **core:** recovery ellipse size ([81e8ed3](https://github.com/didi/LogicFlow/commit/81e8ed396db0bc32c26a9961298ad4a535ed02ad))
366
- * Spelling errors EdgeConifg -> EdgeConfig and EdgeConfig Repeat Definitions in type/index.ts ([401dfb5](https://github.com/didi/LogicFlow/commit/401dfb533e860d03b60ddfc6d9a006900af38c35))
367
-
368
-
369
- ### Features
370
-
371
- * **core:** add getPointByClient API ([983fa91](https://github.com/didi/LogicFlow/commit/983fa91cc70426f113c397ed89d75add50e634ad))
372
- * **core:** add new configuration items ([66d562d](https://github.com/didi/LogicFlow/commit/66d562d90306c69d69f22823d174d11833cf70d0))
373
- * **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)
374
- * **core:** Add the select function for logicflow ([6ae0671](https://github.com/didi/LogicFlow/commit/6ae067153cd2608018fd3da76bd6d00a08da4b3a))
375
- * **core:** Create text for polyline at the double-click position ([ac7eeea](https://github.com/didi/LogicFlow/commit/ac7eeea0a3937350a4393500b24811352947fb49))
376
- * **core:** support open text edit by double click anchor ([690d1d1](https://github.com/didi/LogicFlow/commit/690d1d1648237c06580f51439ec67e4d07931774))
377
- * **core:** support setting hoverOutlineStrokeDash ([ad09324](https://github.com/didi/LogicFlow/commit/ad09324088cbb95d7bbe843cb4d745475cfeb92c))
378
- * **core:** v0.2.0 ([f11d143](https://github.com/didi/LogicFlow/commit/f11d143a998ca68887f08e6ccd98604f165cec8a))
379
- * **extension:** v0.2.0 ([ee67636](https://github.com/didi/LogicFlow/commit/ee676365b82d2d07d40cbc77e955eb3506690804))
380
- * 替换文件夹名称 ([9155d8a](https://github.com/didi/LogicFlow/commit/9155d8a7af3cd0aff983f8a036bd3ffafd0d4d56))
381
-
382
-
383
-
384
-
385
-
386
- # [0.2.0](https://github.com/didichuxing/LogicFlow/compare/@logicflow/core@0.1.0...@logicflow/core@0.2.0) (2021-02-01)
387
-
388
-
389
- ### Bug Fixes
390
-
391
- * Spelling errors EdgeConifg -> EdgeConfig and EdgeConfig Repeat Definitions in type/index.ts ([401dfb5](https://github.com/didichuxing/LogicFlow/commit/401dfb533e860d03b60ddfc6d9a006900af38c35))
392
- * **core:** fix anchor error ([7a30f23](https://github.com/didichuxing/LogicFlow/commit/7a30f238bda918be25caa6e9646846f379042b3c))
393
- * **core:** fix checking repeatedly verification rules ([f0efbf4](https://github.com/didichuxing/LogicFlow/commit/f0efbf481eb254bdaf29fd25b29ee1ee495d439b))
394
- * **core:** move the tool overlay out of the graph ([fcc586d](https://github.com/didichuxing/LogicFlow/commit/fcc586df6d9e8f5188fb6d87bdb86aa461950f98))
395
-
396
-
397
- ### Features
398
-
399
- * 替换文件夹名称 ([9155d8a](https://github.com/didichuxing/LogicFlow/commit/9155d8a7af3cd0aff983f8a036bd3ffafd0d4d56))
400
- * **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)
401
- * **core:** support open text edit by double click anchor ([690d1d1](https://github.com/didichuxing/LogicFlow/commit/690d1d1648237c06580f51439ec67e4d07931774))
402
- * **core:** v0.2.0 ([f11d143](https://github.com/didichuxing/LogicFlow/commit/f11d143a998ca68887f08e6ccd98604f165cec8a))
403
- * **extension:** v0.2.0 ([ee67636](https://github.com/didichuxing/LogicFlow/commit/ee676365b82d2d07d40cbc77e955eb3506690804))
404
-
405
-
406
-
407
-
408
-
409
- # 0.1.0 (2020-12-29)
410
-
411
-
412
- ### Features
413
-
414
- * init ([6ab4c32](https://github.com/didichuxing/LogicFlow/commit/6ab4c326063b9242010c89b6bf92885c3158e6b0))
415
- * 更改包名增加scope ([27be341](https://github.com/didichuxing/LogicFlow/commit/27be3410c70f959093f928c792cf40f038e8adcc))