@logicflow/core 1.1.8-alpha.0 → 1.1.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
|
@@ -140,7 +140,9 @@ declare class BaseEdgeModel implements IBaseModel {
|
|
|
140
140
|
setHitable(flag?: boolean): void;
|
|
141
141
|
setElementState(state: number, additionStateData?: AdditionData): void;
|
|
142
142
|
updateStartPoint(anchor: any): void;
|
|
143
|
+
moveStartPoint(deltaX: any, deltaY: any): void;
|
|
143
144
|
updateEndPoint(anchor: any): void;
|
|
145
|
+
moveEndPoint(deltaX: any, deltaY: any): void;
|
|
144
146
|
setZIndex(zindex?: number): void;
|
|
145
147
|
initPoints(): void;
|
|
146
148
|
updateAttributes(attributes: any): void;
|
|
@@ -34,8 +34,11 @@ export default class BezierEdgeModel extends BaseEdgeModel {
|
|
|
34
34
|
private getPath;
|
|
35
35
|
initPoints(): void;
|
|
36
36
|
updatePoints(): void;
|
|
37
|
+
updatePath(sNext: any, ePre: any): void;
|
|
37
38
|
updateStartPoint(anchor: any): void;
|
|
38
39
|
updateEndPoint(anchor: any): void;
|
|
40
|
+
moveStartPoint(deltaX: any, deltaY: any): void;
|
|
41
|
+
moveEndPoint(deltaX: any, deltaY: any): void;
|
|
39
42
|
updateAdjustAnchor(anchor: Point, type: string): void;
|
|
40
43
|
getAdjustStart(): any;
|
|
41
44
|
getAdjustEnd(): any;
|
|
@@ -31,7 +31,9 @@ export default class PolylineEdgeModel extends BaseEdgeModel {
|
|
|
31
31
|
initPoints(): void;
|
|
32
32
|
updatePoints(): void;
|
|
33
33
|
updateStartPoint(anchor: any): void;
|
|
34
|
+
moveStartPoint(deltaX: any, deltaY: any): void;
|
|
34
35
|
updateEndPoint(anchor: any): void;
|
|
36
|
+
moveEndPoint(deltaX: any, deltaY: any): void;
|
|
35
37
|
dragAppendStart(): void;
|
|
36
38
|
dragAppendSimple(appendInfo: any, dragInfo: any): {
|
|
37
39
|
start: any;
|
package/types/view/Anchor.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ declare class Anchor extends Component<IProps, IState> {
|
|
|
28
28
|
sourceRuleResults: Map<TargetNodeId, ConnectRuleResult>;
|
|
29
29
|
targetRuleResults: Map<TargetNodeId, ConnectRuleResult>;
|
|
30
30
|
dragHandler: StepDrag;
|
|
31
|
+
t: any;
|
|
31
32
|
constructor();
|
|
32
33
|
getAnchorShape(): h.JSX.Element;
|
|
33
34
|
onDragStart: ({ event }: {
|
|
@@ -38,6 +39,7 @@ declare class Anchor extends Component<IProps, IState> {
|
|
|
38
39
|
}) => void;
|
|
39
40
|
onDragEnd: (event: any) => void;
|
|
40
41
|
checkEnd: () => void;
|
|
42
|
+
moveAnchorEnd(endX: number, endY: number): void;
|
|
41
43
|
isShowLine(): boolean;
|
|
42
44
|
render(): h.JSX.Element;
|
|
43
45
|
}
|