MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / useGridNode

Function useGridNode

src/nodes/hooks/useGridNode.ts:5–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import type { GridNode } from '../types';
4
5export function useGridNode(): GridNode {
6 const showGrid = useUIStore((s) => s.showGrid);
7 const gridScale = useUIStore((s) => s.gridScale);
8
9 return useMemo<GridNode>(
10 () => ({
11 nodeType: 'grid',
12 visible: showGrid,
13 scale: gridScale,
14 }),
15 [showGrid, gridScale]
16 );
17}

Callers 3

SceneContentFunction · 0.90
nodes.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected