@lincle/react-interactive-shared 0.4.0-next.3 → 0.4.0-next.5
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/types.d.ts +8 -1
- package/package.json +4 -4
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ProvidersProps } from './Providers';
|
|
2
2
|
import { type EdgeNodeProps, type EdgeProps, type GraphProps as BaseGraphProps, type GridProps as BaseGridProps, type GridType, type Line, type NodeProps as BaseNodeProps } from '@lincle/react-shared';
|
|
3
|
-
import { type Dispatch, type ReactElement, type SetStateAction } from 'react';
|
|
3
|
+
import { type Dispatch, type PropsWithChildren, type ReactElement, type SetStateAction } from 'react';
|
|
4
4
|
export type Connection = {
|
|
5
5
|
line: Line;
|
|
6
6
|
source: EdgeNodeProps;
|
|
@@ -14,6 +14,13 @@ export type ConnectContextProps = {
|
|
|
14
14
|
setConnection?: (sourceId: string, connection?: Connection) => void;
|
|
15
15
|
setConnections?: Dispatch<SetStateAction<Connections>>;
|
|
16
16
|
};
|
|
17
|
+
export type ConnectionsProps = PropsWithChildren<{
|
|
18
|
+
readonly scale: number;
|
|
19
|
+
readonly translate: {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
};
|
|
23
|
+
}>;
|
|
17
24
|
export type ModeType = 'move' | 'pull' | 'select';
|
|
18
25
|
export type Mode = {
|
|
19
26
|
mode?: ModeType;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@lincle/react-interactive-shared",
|
|
3
3
|
"title": "lincle react interactive shared",
|
|
4
4
|
"license": "LGPL-3.0-or-later",
|
|
5
|
-
"version": "0.4.0-next.
|
|
5
|
+
"version": "0.4.0-next.5",
|
|
6
6
|
"private": false,
|
|
7
7
|
"description": "Shared interactive libraries for @lincle",
|
|
8
8
|
"author": "wallzero @wallzeroblog (http://wallzero.com)",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@types/jest": "^29.5.12",
|
|
54
54
|
"@types/lodash.debounce": "^4.0.9",
|
|
55
55
|
"@types/lodash.throttle": "^4.1.9",
|
|
56
|
-
"@types/node": "^
|
|
56
|
+
"@types/node": "^22.1.0",
|
|
57
57
|
"@types/react": "^18.3.3",
|
|
58
58
|
"@types/react-test-renderer": "^18.3.0",
|
|
59
59
|
"cross-env": "^7.0.3",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"rimraf": "^6.0.1"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@lincle/react-shared": "^0.4.0-next.
|
|
69
|
+
"@lincle/react-shared": "^0.4.0-next.5",
|
|
70
70
|
"lodash.throttle": "^4.1.1"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"acyclical graph",
|
|
86
86
|
"cyclical graph"
|
|
87
87
|
],
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "594612d2d666aee12a3543d46f327106870c8814"
|
|
89
89
|
}
|