MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / useGizmoNode

Function useGizmoNode

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

Source from the content-addressed store, hash-verified

3import type { GizmoNode } from '../types';
4
5export function useGizmoNode(): GizmoNode {
6 const showGizmo = useUIStore((s) => s.showGizmo);
7
8 return useMemo<GizmoNode>(
9 () => ({
10 nodeType: 'gizmo',
11 visible: showGizmo,
12 }),
13 [showGizmo]
14 );
15}

Callers 2

SceneContentFunction · 0.90
nodes.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected