@logicflow/core 1.2.17 → 1.2.18
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 +3 -3
- package/dist/logic-flow.min.js +3 -3
- package/dist/style/index.css +1 -0
- package/package.json +1 -1
- package/types/constant/DefaultTheme.d.ts +1 -0
- package/types/model/edge/BaseEdgeModel.d.ts +2 -2
- package/types/type/index.d.ts +2 -0
- package/types/util/drag.d.ts +1 -8
- package/types/view/node/BaseNode.d.ts +1 -1
package/dist/style/index.css
CHANGED
package/package.json
CHANGED
|
@@ -143,11 +143,11 @@ declare class BaseEdgeModel implements IBaseModel {
|
|
|
143
143
|
/**
|
|
144
144
|
* 内部方法,计算两个节点相连是起点位置
|
|
145
145
|
*/
|
|
146
|
-
getBeginAnchor(sourceNode: any, targetNode: any): Point;
|
|
146
|
+
getBeginAnchor(sourceNode: any, targetNode: any): Point | undefined;
|
|
147
147
|
/**
|
|
148
148
|
* 内部方法,计算两个节点相连是终点位置
|
|
149
149
|
*/
|
|
150
|
-
getEndAnchor(targetNode: any): Point;
|
|
150
|
+
getEndAnchor(targetNode: any): Point | undefined;
|
|
151
151
|
/**
|
|
152
152
|
* 获取当前边的properties
|
|
153
153
|
*/
|
package/types/type/index.d.ts
CHANGED
|
@@ -122,6 +122,7 @@ export declare type EdgeData = {
|
|
|
122
122
|
properties: Record<string, unknown>;
|
|
123
123
|
zIndex?: number;
|
|
124
124
|
pointsList?: Point[];
|
|
125
|
+
[key: string]: unknown;
|
|
125
126
|
};
|
|
126
127
|
export declare type EdgeAttribute = {
|
|
127
128
|
id: string;
|
|
@@ -242,6 +243,7 @@ export declare type TextStyle = {
|
|
|
242
243
|
fontSize?: number;
|
|
243
244
|
fontWeight?: string;
|
|
244
245
|
fontFamily?: string;
|
|
246
|
+
[key: string]: any;
|
|
245
247
|
};
|
|
246
248
|
export declare type NodeTextStyle = TextStyle & {
|
|
247
249
|
lineHeight?: number;
|
package/types/util/drag.d.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import EventEmitter from '../event/eventEmitter';
|
|
2
2
|
import { IBaseModel } from '../model';
|
|
3
|
-
declare function createDrag({ onDragStart, onDragging, onDragEnd, step, isStopPropagation, }: {
|
|
4
|
-
onDragStart?: (...args: any[]) => void;
|
|
5
|
-
onDragging?: (...args: any[]) => void;
|
|
6
|
-
onDragEnd?: (...args: any[]) => void;
|
|
7
|
-
step?: number;
|
|
8
|
-
isStopPropagation?: boolean;
|
|
9
|
-
}): (e: MouseEvent) => void;
|
|
10
3
|
declare class StepDrag {
|
|
11
4
|
onDragStart: Function;
|
|
12
5
|
onDragging: Function;
|
|
@@ -42,4 +35,4 @@ declare class StepDrag {
|
|
|
42
35
|
handleMouseUp: (e: MouseEvent) => void;
|
|
43
36
|
cancelDrag: () => void;
|
|
44
37
|
}
|
|
45
|
-
export {
|
|
38
|
+
export { StepDrag, };
|
|
@@ -47,7 +47,7 @@ export default abstract class BaseNode extends Component<IProps, IState> {
|
|
|
47
47
|
setHoverOFF: (ev: any) => void;
|
|
48
48
|
onMouseOut: (ev: any) => void;
|
|
49
49
|
/**
|
|
50
|
-
* 节点置顶,可以被某些不需要置顶的节点重写,如group节点。
|
|
50
|
+
* @overridable 支持重写, 节点置顶,可以被某些不需要置顶的节点重写,如group节点。
|
|
51
51
|
*/
|
|
52
52
|
toFront(): void;
|
|
53
53
|
render(): any;
|