MCPcopy
hub / github.com/pascalorg/editor / handleLevelClick

Function handleLevelClick

packages/editor/src/components/viewer-overlay.tsx:281–284  ·  view source on GitHub ↗
(levelId: LevelNode['id'])

Source from the content-addressed store, hash-verified

279 )
280
281 const handleLevelClick = (levelId: LevelNode['id']) => {
282 // When switching levels, deselect zone and items
283 useViewer.getState().setSelection({ levelId })
284 }
285
286 const handleBreadcrumbClick = (depth: 'root' | 'building' | 'level' | 'zone') => {
287 switch (depth) {

Callers 1

ViewerOverlayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…