()
| 17 | } |
| 18 | |
| 19 | export function usePointsNodeActions(): PointsNodeActions { |
| 20 | return useMemo( |
| 21 | () => ({ |
| 22 | setVisible: (v) => usePointCloudStore.getState().setShowPointCloud(v), |
| 23 | setSplatsVisible: (v) => usePointCloudStore.getState().setShowSplats(v), |
| 24 | setOpacity: (o) => usePointCloudStore.getState().setPointOpacity(o), |
| 25 | setSize: (s) => usePointCloudStore.getState().setPointSize(s), |
| 26 | setColorMode: (m) => usePointCloudStore.getState().setColorMode(m), |
| 27 | setMinTrackLength: (l) => usePointCloudStore.getState().setMinTrackLength(l), |
| 28 | setMaxReprojectionError: (e) => |
| 29 | usePointCloudStore.getState().setMaxReprojectionError(e ?? Infinity), |
| 30 | setThinning: (n) => usePointCloudStore.getState().setThinning(n), |
| 31 | setSelectedPointId: (id) => usePointCloudStore.getState().setSelectedPointId(id), |
| 32 | toggleVisible: () => usePointCloudStore.getState().togglePointCloud(), |
| 33 | toggleSplats: () => usePointCloudStore.getState().toggleSplats(), |
| 34 | }), |
| 35 | [] |
| 36 | ); |
| 37 | } |
no outgoing calls
no test coverage detected