@multiplatform.one/node-graph 10.8.0 → 10.9.1
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/node-graph",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.9.1",
|
|
4
4
|
"description": "Node graph editor — React Flow on web, Tamagui knob-aware nodes, an Expo DOM host on native",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"multiplatform",
|
|
@@ -91,16 +91,16 @@
|
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
93
|
"@dagrejs/dagre": "^3.1.1",
|
|
94
|
-
"@multiplatform.one/forms": "^10.
|
|
95
|
-
"@multiplatform.one/theme": "^10.
|
|
94
|
+
"@multiplatform.one/forms": "^10.9.1",
|
|
95
|
+
"@multiplatform.one/theme": "^10.9.1",
|
|
96
96
|
"@tamagui/web": "3.2.3",
|
|
97
97
|
"@xyflow/react": "^12.12.0",
|
|
98
98
|
"@xyflow/system": "0.0.83",
|
|
99
99
|
"tamagui": "3.2.3"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@multiplatform.one/config": "10.
|
|
103
|
-
"@multiplatform.one/test-utils": "10.
|
|
102
|
+
"@multiplatform.one/config": "10.9.1",
|
|
103
|
+
"@multiplatform.one/test-utils": "10.9.1",
|
|
104
104
|
"@tamagui/build": "3.2.3",
|
|
105
105
|
"@testing-library/react": "^16.3.3",
|
|
106
106
|
"@types/react-dom": "^19.3.0",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"vitest": "^4.1.12"
|
|
114
114
|
},
|
|
115
115
|
"peerDependencies": {
|
|
116
|
-
"@multiplatform.one/components": "^10.
|
|
116
|
+
"@multiplatform.one/components": "^10.9.1",
|
|
117
117
|
"expo": ">=55",
|
|
118
118
|
"expo-haptics": "*",
|
|
119
119
|
"react": "^19.1.0",
|
|
@@ -13,7 +13,7 @@ const edges: GraphLayoutEdge[] = ogdenLinks.map(([source, target], index) => ({
|
|
|
13
13
|
emphasis: index % 13 === 0,
|
|
14
14
|
}));
|
|
15
15
|
|
|
16
|
-
function Tile({ id }: { id: string }) {
|
|
16
|
+
function Tile({ id }: Readonly<{ id: string }>) {
|
|
17
17
|
return (
|
|
18
18
|
<Card flex={1} alignItems="center" justifyContent="center" testID={`graph-tile-${id}`}>
|
|
19
19
|
<SizableText size="$2" numberOfLines={2} textAlign="center">
|
|
@@ -166,13 +166,13 @@ function DotLayer({
|
|
|
166
166
|
scale,
|
|
167
167
|
x,
|
|
168
168
|
y,
|
|
169
|
-
}: {
|
|
169
|
+
}: Readonly<{
|
|
170
170
|
viewport: Extent;
|
|
171
171
|
dots: GraphDotsSpec;
|
|
172
172
|
scale: SharedValue<number>;
|
|
173
173
|
x: SharedValue<number>;
|
|
174
174
|
y: SharedValue<number>;
|
|
175
|
-
}) {
|
|
175
|
+
}>) {
|
|
176
176
|
const [drawn, setDrawn] = useState(() => scale.value);
|
|
177
177
|
const spaced = dotPitch(dots.pitch, drawn);
|
|
178
178
|
const step = spaced * drawn;
|