@logicflow/core 1.0.0-alpha.7 → 1.0.0-alpha.8

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.0.0-alpha.7",
3
+ "version": "1.0.0-alpha.8",
4
4
  "description": "LogicFlow core, to quickly build flowchart editor",
5
5
  "main": "dist/logic-flow.js",
6
6
  "unpkg": "dist/logic-flow.js",
@@ -43,38 +43,22 @@ declare class BaseEdgeModel implements IBaseModel {
43
43
  initEdgeData(data: any): void;
44
44
  createId(): any;
45
45
  setAttributes(): void;
46
- getEdgeStyle(): {
47
- [x: string]: any;
48
- fill?: string;
49
- stroke?: string;
50
- strokeWidth?: number;
51
- };
52
- getTextStyle(): {
53
- [x: string]: any;
54
- overflowMode?: string;
55
- textWidth?: number;
56
- background?: {
57
- wrapPadding?: string;
58
- } & {
59
- width?: number;
60
- height?: number;
61
- radius?: number;
62
- } & import("../../constant/DefaultTheme").CommonTheme;
63
- hover?: import("../../constant/DefaultTheme").EdgeTextTheme;
64
- color?: string;
65
- fontSize?: number;
66
- fill?: string;
67
- stroke?: string;
68
- strokeWidth?: number;
69
- };
70
- get sourceNode(): import("..").BaseNodeModel;
71
- get targetNode(): import("..").BaseNodeModel;
72
- get textPosition(): Point;
46
+ getTextStyle(): import("../../constant/DefaultTheme").EdgeTextTheme;
47
+ getEdgeStyle(): import("../../constant/DefaultTheme").CommonTheme;
48
+ /**
49
+ * @overridable 支持重写
50
+ * 获取outline样式,重写可以定义此类型节点outline样式, 默认使用主题样式
51
+ * @returns 自定义outline样式
52
+ */
53
+ getOutlineStyle(): OutlineTheme;
73
54
  /**
74
55
  * @override 重新自定义文本位置
75
56
  * @returns 文本位置
76
57
  */
77
58
  getTextPosition(): Point;
59
+ get sourceNode(): import("..").BaseNodeModel;
60
+ get targetNode(): import("..").BaseNodeModel;
61
+ get textPosition(): Point;
78
62
  move(): void;
79
63
  getBeginAnchor(sourceNode: any, targetNode: any): Point;
80
64
  getEndAnchor(targetNode: any): Point;
@@ -82,12 +66,6 @@ declare class BaseEdgeModel implements IBaseModel {
82
66
  getData(): EdgeData;
83
67
  setProperty(key: any, val: any): void;
84
68
  setProperties(properties: any): void;
85
- /**
86
- * @overridable 支持重写
87
- * 获取outline样式,重写可以定义此类型节点outline样式, 默认使用主题样式
88
- * @returns 自定义outline样式
89
- */
90
- getOutlineStyle(): OutlineTheme;
91
69
  formatText(data: any): void;
92
70
  resetTextPosition(): void;
93
71
  moveText(deltaX: number, deltaY: number): void;
@@ -97,27 +97,17 @@ export default class BaseNodeModel implements IBaseNodeModel {
97
97
  * @returns 自定义节点样式
98
98
  */
99
99
  getNodeStyle(): ShapeStyleAttribute;
100
- getTextStyle(): {
101
- [x: string]: any;
102
- overflowMode?: string;
103
- background?: import("../../constant/DefaultTheme").RectTheme;
104
- color?: string;
105
- fontSize?: number;
106
- fill?: string;
107
- stroke?: string;
108
- strokeWidth?: number;
109
- };
100
+ getTextStyle(): import("../../constant/DefaultTheme").NodeTextTheme;
110
101
  /**
111
102
  * 获取节点锚点样式
112
103
  * @returns 自定义样式
113
104
  */
114
105
  getAnchorStyle(): Record<string, any>;
115
- getAnchorLineStyle(): {
116
- [x: string]: any;
117
- fill?: string;
118
- stroke?: string;
119
- strokeWidth?: number;
120
- };
106
+ /**
107
+ * 获取自定义锚点拖出样式
108
+ * @returns 自定义锚点拖出样式
109
+ */
110
+ getAnchorLineStyle(): import("../../constant/DefaultTheme").CommonTheme;
121
111
  /**
122
112
  * @overridable 支持重写
123
113
  * 获取outline样式,重写可以定义此类型节点outline样式, 默认使用主题样式