@logicflow/core 1.1.6 → 1.1.7-alpha.0
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/style/index.css
CHANGED
package/package.json
CHANGED
package/types/view/Anchor.d.ts
CHANGED
|
@@ -3,9 +3,11 @@ import { StepDrag } from '../util/drag';
|
|
|
3
3
|
import BaseNodeModel, { ConnectRuleResult } from '../model/node/BaseNodeModel';
|
|
4
4
|
import GraphModel from '../model/GraphModel';
|
|
5
5
|
import { AnchorConfig } from '../type';
|
|
6
|
+
import { BaseNode } from './node';
|
|
6
7
|
declare type TargetNodeId = string;
|
|
7
8
|
interface IProps {
|
|
8
9
|
anchorData: AnchorConfig;
|
|
10
|
+
node: BaseNode;
|
|
9
11
|
style?: Record<string, any>;
|
|
10
12
|
hoverStyle?: Record<string, any>;
|
|
11
13
|
edgeStyle?: Record<string, any>;
|
|
@@ -27,7 +29,8 @@ declare class Anchor extends Component<IProps, IState> {
|
|
|
27
29
|
sourceRuleResults: Map<TargetNodeId, ConnectRuleResult>;
|
|
28
30
|
targetRuleResults: Map<TargetNodeId, ConnectRuleResult>;
|
|
29
31
|
dragHandler: StepDrag;
|
|
30
|
-
constructor(
|
|
32
|
+
constructor();
|
|
33
|
+
getAnchorShape(): h.JSX.Element;
|
|
31
34
|
onDragStart: ({ event }: {
|
|
32
35
|
event: any;
|
|
33
36
|
}) => void;
|
|
@@ -18,6 +18,7 @@ export default abstract class BaseNode extends Component<IProps, Istate> {
|
|
|
18
18
|
clickTimer: number;
|
|
19
19
|
constructor(props: any);
|
|
20
20
|
abstract getShape(): any;
|
|
21
|
+
getAnchorShape(anchorData: any): h.JSX.Element;
|
|
21
22
|
getAnchors(): h.JSX.Element[];
|
|
22
23
|
getText(): "" | h.JSX.Element;
|
|
23
24
|
getStateClassName(): string;
|