Files
NODEDC_DESIGN_GUIDELINE/docs/NAVIGATION_CUBE.md

16 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# NavigationCube
Owner-requested on 2026-10-21 for semantic editing. Reference: BIM Viewer `frontend/dcViewer.js` NavCube, size 100; Xeokit renderer coupling is replaced by a controlled SVG adapter, with no extra GPU context.
`quaternion` is camera-to-world, Y up; `onSelect([x,y,z])` points from target to camera. Six face centres, twelve edge directions and eight corner directions. Adjacent face regions share the same direction. The consumer preserves framing, projection and semantic data. The cube reflects free camera rotation. Projection is a separate explicit control. Top is +Y, front is +Z, right is +X; domain adapters convert coordinate conventions.
Visible hit regions have native tooltips, hover, keyboard focus, Enter/Space activation and disabled state. Face/edge strokes are structural. Tokens own colors. No motion or GPU loop in the component. Catalog controls section demonstrates the cube.
`add-point` is a centered circled plus, distinct from whole-element `plus`. Projection icons: `orthographic`, `perspective`.
Presentation props: `size` in CSS pixels (default 66), `face`, `text`, `edge`, `hover`, `hoverText`, `opacity`. Consumer preferences may persist these; omitted colors inherit theme tokens. Core exposes these under viewport settings → 3D-куб.
Face labels use the projected face-local right/up basis, including foreshortening and rotation; they never billboard towards the screen. `edgeOpacity` (0–1, default 1) independently controls structural grid/edge strokes without fading faces or labels.
`faceOpacity` (0–1, default 1) controls polygon fill only. It is independent of `edgeOpacity`, text and the legacy overall `opacity`; a transparent face remains a navigation target.