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

Function useAxesNodeActions

src/nodes/actions/axesActions.ts:13–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11}
12
13export function useAxesNodeActions(): AxesNodeActions {
14 return useMemo(
15 () => ({
16 setVisible: (v) => useUIStore.getState().setShowAxes(v),
17 setCoordinateSystem: (s) => useUIStore.getState().setAxesCoordinateSystem(s),
18 setScale: (s) => useUIStore.getState().setAxesScale(s),
19 setLabelMode: (m) => useUIStore.getState().setAxisLabelMode(m),
20 toggleVisible: () => useUIStore.getState().toggleAxes(),
21 }),
22 []
23 );
24}

Callers 4

nodes.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected