react-cosmos-diagram 0.2.0 → 0.4.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/esm/components/Background/LinePath.d.ts +8 -0
- package/dist/esm/components/Background/LinePath.d.ts.map +1 -0
- package/dist/esm/components/Background/index.d.ts +9 -0
- package/dist/esm/components/Background/index.d.ts.map +1 -0
- package/dist/esm/components/Background/type.d.ts +6 -0
- package/dist/esm/components/Background/type.d.ts.map +1 -0
- package/dist/esm/components/Edges/Anchor.d.ts +2 -2
- package/dist/esm/components/Edges/Anchor.d.ts.map +1 -1
- package/dist/esm/components/Edges/EdgeWrapper/index.d.ts.map +1 -1
- package/dist/esm/components/Edges/EdgeWrapper/type.d.ts +3 -1
- package/dist/esm/components/Edges/EdgeWrapper/type.d.ts.map +1 -1
- package/dist/esm/components/Port/utils.d.ts +9 -1
- package/dist/esm/components/Port/utils.d.ts.map +1 -1
- package/dist/esm/components/ReactDiagramProvider/type.d.ts +5 -2
- package/dist/esm/components/ReactDiagramProvider/type.d.ts.map +1 -1
- package/dist/esm/components/SelectionBox/index.d.ts.map +1 -1
- package/dist/esm/components/StoreUpdater/index.d.ts +2 -2
- package/dist/esm/components/StoreUpdater/index.d.ts.map +1 -1
- package/dist/esm/container/ConnectionLineRenderer/ConnectionPath.d.ts +17 -0
- package/dist/esm/container/ConnectionLineRenderer/ConnectionPath.d.ts.map +1 -0
- package/dist/esm/container/ConnectionLineRenderer/index.d.ts +11 -0
- package/dist/esm/container/ConnectionLineRenderer/index.d.ts.map +1 -0
- package/dist/esm/container/ConnectionLineRenderer/type.d.ts +15 -0
- package/dist/esm/container/ConnectionLineRenderer/type.d.ts.map +1 -0
- package/dist/esm/container/DragSelection/index.d.ts +0 -3
- package/dist/esm/container/DragSelection/index.d.ts.map +1 -1
- package/dist/esm/container/EdgeRenderer/index.d.ts +2 -2
- package/dist/esm/container/EdgeRenderer/index.d.ts.map +1 -1
- package/dist/esm/container/EdgeRenderer/type.d.ts +3 -3
- package/dist/esm/container/EdgeRenderer/type.d.ts.map +1 -1
- package/dist/esm/container/NodeRenderer/index.d.ts.map +1 -1
- package/dist/esm/container/Pane/index.d.ts.map +1 -1
- package/dist/esm/container/ReactDiagram/DiagramView.d.ts +1 -1
- package/dist/esm/container/ReactDiagram/DiagramView.d.ts.map +1 -1
- package/dist/esm/container/ReactDiagram/index.d.ts +6 -4
- package/dist/esm/container/ReactDiagram/index.d.ts.map +1 -1
- package/dist/esm/hooks/useDrag/index.d.ts.map +1 -1
- package/dist/esm/hooks/useDrag/type.d.ts +3 -10
- package/dist/esm/hooks/useDrag/type.d.ts.map +1 -1
- package/dist/esm/hooks/useDrag/utils.d.ts +7 -6
- package/dist/esm/hooks/useDrag/utils.d.ts.map +1 -1
- package/dist/esm/hooks/useGetPointerPosition.d.ts +14 -2
- package/dist/esm/hooks/useGetPointerPosition.d.ts.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1597 -1548
- package/dist/esm/store/index.d.ts.map +1 -1
- package/dist/esm/store/initialState.d.ts.map +1 -1
- package/dist/esm/types/core.d.ts +7 -5
- package/dist/esm/types/core.d.ts.map +1 -1
- package/dist/esm/types/index.d.ts +2 -1
- package/dist/esm/types/index.d.ts.map +1 -1
- package/dist/style.css +12 -6
- package/dist/umd/components/Background/LinePath.d.ts +8 -0
- package/dist/umd/components/Background/LinePath.d.ts.map +1 -0
- package/dist/umd/components/Background/index.d.ts +9 -0
- package/dist/umd/components/Background/index.d.ts.map +1 -0
- package/dist/umd/components/Background/type.d.ts +6 -0
- package/dist/umd/components/Background/type.d.ts.map +1 -0
- package/dist/umd/components/Edges/Anchor.d.ts +2 -2
- package/dist/umd/components/Edges/Anchor.d.ts.map +1 -1
- package/dist/umd/components/Edges/EdgeWrapper/index.d.ts.map +1 -1
- package/dist/umd/components/Edges/EdgeWrapper/type.d.ts +3 -1
- package/dist/umd/components/Edges/EdgeWrapper/type.d.ts.map +1 -1
- package/dist/umd/components/Port/utils.d.ts +9 -1
- package/dist/umd/components/Port/utils.d.ts.map +1 -1
- package/dist/umd/components/ReactDiagramProvider/type.d.ts +5 -2
- package/dist/umd/components/ReactDiagramProvider/type.d.ts.map +1 -1
- package/dist/umd/components/SelectionBox/index.d.ts.map +1 -1
- package/dist/umd/components/StoreUpdater/index.d.ts +2 -2
- package/dist/umd/components/StoreUpdater/index.d.ts.map +1 -1
- package/dist/umd/container/ConnectionLineRenderer/ConnectionPath.d.ts +17 -0
- package/dist/umd/container/ConnectionLineRenderer/ConnectionPath.d.ts.map +1 -0
- package/dist/umd/container/ConnectionLineRenderer/index.d.ts +11 -0
- package/dist/umd/container/ConnectionLineRenderer/index.d.ts.map +1 -0
- package/dist/umd/container/ConnectionLineRenderer/type.d.ts +15 -0
- package/dist/umd/container/ConnectionLineRenderer/type.d.ts.map +1 -0
- package/dist/umd/container/DragSelection/index.d.ts +0 -3
- package/dist/umd/container/DragSelection/index.d.ts.map +1 -1
- package/dist/umd/container/EdgeRenderer/index.d.ts +2 -2
- package/dist/umd/container/EdgeRenderer/index.d.ts.map +1 -1
- package/dist/umd/container/EdgeRenderer/type.d.ts +3 -3
- package/dist/umd/container/EdgeRenderer/type.d.ts.map +1 -1
- package/dist/umd/container/NodeRenderer/index.d.ts.map +1 -1
- package/dist/umd/container/Pane/index.d.ts.map +1 -1
- package/dist/umd/container/ReactDiagram/DiagramView.d.ts +1 -1
- package/dist/umd/container/ReactDiagram/DiagramView.d.ts.map +1 -1
- package/dist/umd/container/ReactDiagram/index.d.ts +6 -4
- package/dist/umd/container/ReactDiagram/index.d.ts.map +1 -1
- package/dist/umd/hooks/useDrag/index.d.ts.map +1 -1
- package/dist/umd/hooks/useDrag/type.d.ts +3 -10
- package/dist/umd/hooks/useDrag/type.d.ts.map +1 -1
- package/dist/umd/hooks/useDrag/utils.d.ts +7 -6
- package/dist/umd/hooks/useDrag/utils.d.ts.map +1 -1
- package/dist/umd/hooks/useGetPointerPosition.d.ts +14 -2
- package/dist/umd/hooks/useGetPointerPosition.d.ts.map +1 -1
- package/dist/umd/index.d.ts +1 -0
- package/dist/umd/index.d.ts.map +1 -1
- package/dist/umd/index.js +2 -2
- package/dist/umd/store/index.d.ts.map +1 -1
- package/dist/umd/store/initialState.d.ts.map +1 -1
- package/dist/umd/types/core.d.ts +7 -5
- package/dist/umd/types/core.d.ts.map +1 -1
- package/dist/umd/types/index.d.ts +2 -1
- package/dist/umd/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/esm/components/ConnectionEdge/ConnectionPath.d.ts +0 -16
- package/dist/esm/components/ConnectionEdge/ConnectionPath.d.ts.map +0 -1
- package/dist/esm/components/ConnectionEdge/index.d.ts +0 -11
- package/dist/esm/components/ConnectionEdge/index.d.ts.map +0 -1
- package/dist/esm/components/ConnectionEdge/type.d.ts +0 -22
- package/dist/esm/components/ConnectionEdge/type.d.ts.map +0 -1
- package/dist/umd/components/ConnectionEdge/ConnectionPath.d.ts +0 -16
- package/dist/umd/components/ConnectionEdge/ConnectionPath.d.ts.map +0 -1
- package/dist/umd/components/ConnectionEdge/index.d.ts +0 -11
- package/dist/umd/components/ConnectionEdge/index.d.ts.map +0 -1
- package/dist/umd/components/ConnectionEdge/type.d.ts +0 -22
- package/dist/umd/components/ConnectionEdge/type.d.ts.map +0 -1
package/dist/umd/types/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CSSProperties, HTMLAttributes, MouseEvent as ReactMouseEvent } from 'react';
|
|
2
|
-
import { CoordinateExtent, GridStep, Viewport, Node, Edge, OnNodesChange, OnEdgesChange, OnConnect, OnConnectStart, OnConnectEnd, OnMove, OnError,
|
|
2
|
+
import { CoordinateExtent, GridStep, Viewport, Node, Edge, OnNodesChange, OnEdgesChange, OnConnect, OnConnectStart, OnConnectEnd, OnMove, OnError, ConnectionLineComponent } from '.';
|
|
3
3
|
import { NodeDragHandler } from '../hooks/useDrag/type';
|
|
4
4
|
import { KeyCode } from '../hooks/useGlobalKeyHandler';
|
|
5
5
|
import { NodeOrigin } from '../components/Node/utils';
|
|
@@ -13,16 +13,18 @@ export type ReactDiagramProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
13
13
|
disableKeyboardA11y?: boolean;
|
|
14
14
|
nodeExtent?: CoordinateExtent;
|
|
15
15
|
nodeOrigin?: NodeOrigin;
|
|
16
|
+
smoothStep?: boolean;
|
|
17
|
+
centerStep?: boolean;
|
|
16
18
|
gridStep?: GridStep;
|
|
17
19
|
elevateNodesOnSelect?: boolean;
|
|
18
20
|
nodes?: Node[];
|
|
19
21
|
nodeTypes?: NodeTypes;
|
|
20
22
|
edges?: Edge[];
|
|
21
23
|
edgeTypes?: EdgeTypes;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
edgeUpdaterRadius?: number;
|
|
25
|
+
ConnectionLineContainerStyle?: CSSProperties;
|
|
26
|
+
ConnectionLineComponent?: ConnectionLineComponent;
|
|
27
|
+
connectionRadius?: number;
|
|
26
28
|
onNodesChange?: OnNodesChange;
|
|
27
29
|
onNodeClick?: NodeMouseHandler;
|
|
28
30
|
onNodeDoubleClick?: NodeMouseHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../react-diagram/packages/src/types/core.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACT,aAAa,EACb,cAAc,EACd,UAAU,IAAI,eAAe,EAC/B,MAAM,OAAO,CAAC;AAEf,OAAO,EACJ,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,aAAa,EACb,aAAa,EACb,SAAS,EACT,cAAc,EACd,YAAY,EACZ,MAAM,EACN,OAAO,EACP,
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../react-diagram/packages/src/types/core.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAC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C,EAAE,YAAY,CAAC;IAE5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,QAAQ,CAAC;IAC3B,eAAe,CAAC,EAAE,gBAAgB,CAAC;IAEnC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC"}
|
|
@@ -4,5 +4,6 @@ export * from './core';
|
|
|
4
4
|
export * from '../hooks/useNodesEdgesState/type';
|
|
5
5
|
export * from '../components/Node/type';
|
|
6
6
|
export * from '../components/Edges/type';
|
|
7
|
-
export * from '../
|
|
7
|
+
export * from '../container/ConnectionLineRenderer/type';
|
|
8
|
+
export * from '../components/Background/type';
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../react-diagram/packages/src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AAEvB,cAAc,kCAAkC,CAAC;AAGjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../react-diagram/packages/src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AAEvB,cAAc,kCAAkC,CAAC;AAGjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0CAA0C,CAAC;AAQzD,cAAc,+BAA+B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { PortType } from '../Port/type';
|
|
3
|
-
import { ConnectionEdgeComponent, ConnectionEdgeType } from './type';
|
|
4
|
-
type ConnectionPathProps = {
|
|
5
|
-
style?: CSSProperties;
|
|
6
|
-
nodeId: string;
|
|
7
|
-
portType: PortType;
|
|
8
|
-
type?: ConnectionEdgeType;
|
|
9
|
-
Component?: ConnectionEdgeComponent;
|
|
10
|
-
};
|
|
11
|
-
declare function ConnectionPath({ style, nodeId, portType, type, Component, }: ConnectionPathProps): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
-
declare namespace ConnectionPath {
|
|
13
|
-
var displayName: string;
|
|
14
|
-
}
|
|
15
|
-
export default ConnectionPath;
|
|
16
|
-
//# sourceMappingURL=ConnectionPath.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionPath.d.ts","sourceRoot":"","sources":["../../react-diagram/packages/src/components/ConnectionEdge/ConnectionPath.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAe,MAAM,OAAO,CAAC;AAanD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAErE,KAAK,mBAAmB,GAAG;IACxB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACtC,CAAC;AASF,iBAAS,cAAc,CAAC,EACrB,KAAK,EACL,MAAM,EACN,QAAQ,EACR,IAAkC,EAClC,SAAS,GACX,EAAE,mBAAmB,kDAoFrB;kBA1FQ,cAAc;;;AA8FvB,eAAe,cAAc,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { ConnectionEdgeComponent, ConnectionEdgeType } from './type';
|
|
3
|
-
type ConnectionEdgeProps = {
|
|
4
|
-
containerStyle?: CSSProperties;
|
|
5
|
-
style?: CSSProperties;
|
|
6
|
-
type?: ConnectionEdgeType;
|
|
7
|
-
component?: ConnectionEdgeComponent;
|
|
8
|
-
};
|
|
9
|
-
declare function ConnectionEdge({ containerStyle, style, type, component, }: ConnectionEdgeProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
-
export default ConnectionEdge;
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../react-diagram/packages/src/components/ConnectionEdge/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAQtC,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAErE,KAAK,mBAAmB,GAAG;IACxB,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACtC,CAAC;AAQF,iBAAS,cAAc,CAAC,EACrB,cAAc,EACd,KAAK,EACL,IAAI,EACJ,SAAS,GACX,EAAE,mBAAmB,kDAkDrB;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ComponentType, CSSProperties } from 'react';
|
|
2
|
-
import { Node, Position } from '../../types';
|
|
3
|
-
import { PortElement } from '../Port/type';
|
|
4
|
-
export declare enum ConnectionEdgeType {
|
|
5
|
-
Straight = "straight",
|
|
6
|
-
Bezier = "bezier",
|
|
7
|
-
Step = "step"
|
|
8
|
-
}
|
|
9
|
-
export type ConnectionEdgeComponentProps = {
|
|
10
|
-
connectionEdgeStyle?: CSSProperties;
|
|
11
|
-
connectionEdgeType: ConnectionEdgeType;
|
|
12
|
-
fromNode?: Node;
|
|
13
|
-
fromPort?: PortElement;
|
|
14
|
-
fromX: number;
|
|
15
|
-
fromY: number;
|
|
16
|
-
toX: number;
|
|
17
|
-
toY: number;
|
|
18
|
-
fromPosition: Position;
|
|
19
|
-
toPosition: Position;
|
|
20
|
-
};
|
|
21
|
-
export type ConnectionEdgeComponent = ComponentType<ConnectionEdgeComponentProps>;
|
|
22
|
-
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../react-diagram/packages/src/components/ConnectionEdge/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,oBAAY,kBAAkB;IAC3B,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,IAAI,SAAS;CACf;AAED,MAAM,MAAM,4BAA4B,GAAG;IACxC,mBAAmB,CAAC,EAAE,aAAa,CAAC;IACpC,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,QAAQ,CAAC;IACvB,UAAU,EAAE,QAAQ,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAChC,aAAa,CAAC,4BAA4B,CAAC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { PortType } from '../Port/type';
|
|
3
|
-
import { ConnectionEdgeComponent, ConnectionEdgeType } from './type';
|
|
4
|
-
type ConnectionPathProps = {
|
|
5
|
-
style?: CSSProperties;
|
|
6
|
-
nodeId: string;
|
|
7
|
-
portType: PortType;
|
|
8
|
-
type?: ConnectionEdgeType;
|
|
9
|
-
Component?: ConnectionEdgeComponent;
|
|
10
|
-
};
|
|
11
|
-
declare function ConnectionPath({ style, nodeId, portType, type, Component, }: ConnectionPathProps): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
-
declare namespace ConnectionPath {
|
|
13
|
-
var displayName: string;
|
|
14
|
-
}
|
|
15
|
-
export default ConnectionPath;
|
|
16
|
-
//# sourceMappingURL=ConnectionPath.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionPath.d.ts","sourceRoot":"","sources":["../../react-diagram/packages/src/components/ConnectionEdge/ConnectionPath.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAe,MAAM,OAAO,CAAC;AAanD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAErE,KAAK,mBAAmB,GAAG;IACxB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACtC,CAAC;AASF,iBAAS,cAAc,CAAC,EACrB,KAAK,EACL,MAAM,EACN,QAAQ,EACR,IAAkC,EAClC,SAAS,GACX,EAAE,mBAAmB,kDAoFrB;kBA1FQ,cAAc;;;AA8FvB,eAAe,cAAc,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { ConnectionEdgeComponent, ConnectionEdgeType } from './type';
|
|
3
|
-
type ConnectionEdgeProps = {
|
|
4
|
-
containerStyle?: CSSProperties;
|
|
5
|
-
style?: CSSProperties;
|
|
6
|
-
type?: ConnectionEdgeType;
|
|
7
|
-
component?: ConnectionEdgeComponent;
|
|
8
|
-
};
|
|
9
|
-
declare function ConnectionEdge({ containerStyle, style, type, component, }: ConnectionEdgeProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
-
export default ConnectionEdge;
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../react-diagram/packages/src/components/ConnectionEdge/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAQtC,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAErE,KAAK,mBAAmB,GAAG;IACxB,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACtC,CAAC;AAQF,iBAAS,cAAc,CAAC,EACrB,cAAc,EACd,KAAK,EACL,IAAI,EACJ,SAAS,GACX,EAAE,mBAAmB,kDAkDrB;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ComponentType, CSSProperties } from 'react';
|
|
2
|
-
import { Node, Position } from '../../types';
|
|
3
|
-
import { PortElement } from '../Port/type';
|
|
4
|
-
export declare enum ConnectionEdgeType {
|
|
5
|
-
Straight = "straight",
|
|
6
|
-
Bezier = "bezier",
|
|
7
|
-
Step = "step"
|
|
8
|
-
}
|
|
9
|
-
export type ConnectionEdgeComponentProps = {
|
|
10
|
-
connectionEdgeStyle?: CSSProperties;
|
|
11
|
-
connectionEdgeType: ConnectionEdgeType;
|
|
12
|
-
fromNode?: Node;
|
|
13
|
-
fromPort?: PortElement;
|
|
14
|
-
fromX: number;
|
|
15
|
-
fromY: number;
|
|
16
|
-
toX: number;
|
|
17
|
-
toY: number;
|
|
18
|
-
fromPosition: Position;
|
|
19
|
-
toPosition: Position;
|
|
20
|
-
};
|
|
21
|
-
export type ConnectionEdgeComponent = ComponentType<ConnectionEdgeComponentProps>;
|
|
22
|
-
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../react-diagram/packages/src/components/ConnectionEdge/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,oBAAY,kBAAkB;IAC3B,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,IAAI,SAAS;CACf;AAED,MAAM,MAAM,4BAA4B,GAAG;IACxC,mBAAmB,CAAC,EAAE,aAAa,CAAC;IACpC,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,QAAQ,CAAC;IACvB,UAAU,EAAE,QAAQ,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAChC,aAAa,CAAC,4BAA4B,CAAC,CAAC"}
|