feat(scene-editor): add persistent dockable tool workspaces
This commit is contained in:
+165
-17
@@ -85,7 +85,7 @@
|
||||
"nodedc-map-glass",
|
||||
"nodedc-material-rim"
|
||||
],
|
||||
"summary": "Matte application surfaces, the Engine V4 modal material and the light translucent surface used over Cesium imagery.",
|
||||
"summary": "Matte application surfaces, the Engine V4 modal material and the light translucent surface used over Cesium imagery. Scene overlays reuse V4 blur and tint with independent translucent density.",
|
||||
"anatomy": [
|
||||
"theme-provided surface",
|
||||
"modal tint",
|
||||
@@ -98,7 +98,8 @@
|
||||
"default",
|
||||
"strong",
|
||||
"soft",
|
||||
"map"
|
||||
"map",
|
||||
"scene"
|
||||
],
|
||||
"radiusVariants": [
|
||||
"card",
|
||||
@@ -112,7 +113,7 @@
|
||||
"Compact rails of canonical round actions use the pill radius; consumers do not recreate it with a local border radius.",
|
||||
"A material rim is a glass highlight, not a hard product-colored border.",
|
||||
"Nested surfaces must use a softer tone to avoid card-inside-card noise.",
|
||||
"GlassyMaterialSurface is restricted to modal Windows and the draggable Inspector.",
|
||||
"GlassMaterialSurface supports modal/Inspector floating material and explicit context=scene telemetry overlays over rendered imagery; ordinary panels remain matte. Optional material and radiusPx apply appearance to one instance without changing the global theme.",
|
||||
"MapGlassSurface is restricted to overlays over Cesium/map imagery and must match the map Toolbar translucency."
|
||||
]
|
||||
},
|
||||
@@ -308,7 +309,8 @@
|
||||
],
|
||||
"rules": [
|
||||
"Do not expose a browser-native color dialog as the product runtime UI.",
|
||||
"The palette owns choice geometry; the consumer owns color validation, persistence and domain reaction."
|
||||
"The palette owns choice geometry; the consumer owns color validation, persistence and domain reaction.",
|
||||
"HEX text keeps incomplete drafts; valid six-digit colors apply live, invalid drafts revert on blur/Escape, Enter commits; external undo updates the field."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -389,7 +391,8 @@
|
||||
"package": "@nodedc/ui-react",
|
||||
"exports": [
|
||||
"Window",
|
||||
"WindowFooterActions"
|
||||
"WindowFooterActions",
|
||||
"WindowRect"
|
||||
],
|
||||
"domPackage": "@nodedc/ui-dom",
|
||||
"domExports": [
|
||||
@@ -399,7 +402,7 @@
|
||||
"nodedc-overlay",
|
||||
"nodedc-window"
|
||||
],
|
||||
"summary": "Canonical controlled window for modal and right-side panel presentations, with optional headerActions beside close.",
|
||||
"summary": "Canonical controlled window with a move toggle between centered modal and draggable, resizable modeless presentation.",
|
||||
"behavior": [
|
||||
"portal to active fullscreen element or body",
|
||||
"focus entry",
|
||||
@@ -408,7 +411,8 @@
|
||||
"Escape close",
|
||||
"backdrop close policy",
|
||||
"modal-only body scroll lock",
|
||||
"optional bounded dragging for modeless inspectors"
|
||||
"optional bounded dragging for modeless inspectors",
|
||||
"move toggle: preserve mounted contents and current size; remove dimming, backdrop close, scroll lock and focus trap; header drag and eight invisible resize regions"
|
||||
],
|
||||
"rules": [
|
||||
"WindowFooterActions aligns modal actions to the trailing edge, including a footer with only one action group; actions wrap within narrow windows.",
|
||||
@@ -418,7 +422,12 @@
|
||||
"A right-side inspector is modeless by default: no dimming, no backdrop blur, no backdrop close, no focus trap and no body scroll lock.",
|
||||
"A draggable inspector moves by its header and remains clamped to the viewport.",
|
||||
"Closing a modeless inspector is never gated by autosave; preserve the draft, close immediately and report persistence failure through ToastStack.",
|
||||
"Operational copy inside Window uses component typography tokens; browser-default paragraph or heading sizes are forbidden."
|
||||
"Operational copy inside Window uses component typography tokens; browser-default paragraph or heading sizes are forbidden.",
|
||||
"Centered windows expose the move toggle by default; allowFloating opts a workflow out. Returning to modal restores canonical centered geometry; closing clears floating geometry.",
|
||||
"Floating header supports arrow-key movement and Shift+arrow resizing. Bounds stay inside the viewport. Resize affordances have no hover decoration.",
|
||||
"Inspectors inside a Window use its full available content width.",
|
||||
"End inspectors opt into resizable with an optional initialRect; existing eight edge geometry and keyboard resize are shared with floating windows.",
|
||||
"Application-owned rect restores modeless window geometry on reopen and external undo/import. onRectCommit reports one completed drag/resize or keyboard step; viewport fitting never overwrites saved geometry."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -696,7 +705,8 @@
|
||||
"exports": [
|
||||
"ApplicationShell",
|
||||
"ApplicationPanel",
|
||||
"useApplicationWorkspace"
|
||||
"useApplicationWorkspace",
|
||||
"useApplicationPanelFullscreen"
|
||||
],
|
||||
"domPackage": "@nodedc/ui-dom",
|
||||
"domExports": [
|
||||
@@ -722,14 +732,16 @@
|
||||
"expanded content replaces stage",
|
||||
"global utility actions remain in the panel header across sections",
|
||||
"mobile panels use the available viewport sequentially",
|
||||
"independent content scrolling"
|
||||
"independent content scrolling",
|
||||
"the outer stage boundary clips overflow without becoming a focus-scroll container"
|
||||
],
|
||||
"rules": [
|
||||
"The bottom Launcher service rail is product-specific and is not part of the general application template.",
|
||||
"Desktop page gap is 20 px and navigation width follows the Launcher 332–352 px range.",
|
||||
"Applications supply routes, profile data, stage media and panel content without changing shell geometry.",
|
||||
"Light panels use the SEO white surface and shadow tokens rather than a dark shell with inverted text.",
|
||||
"A layout-level save action belongs to ApplicationPanel.utilityActions and is never duplicated inside individual content cards."
|
||||
"A layout-level save action belongs to ApplicationPanel.utilityActions and is never duplicated inside individual content cards.",
|
||||
"ApplicationPanel allowFullscreen exposes an owned full-window context; the whole panel and its header move atomically, preserving the renderer and body-portaled inspectors."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -909,6 +921,7 @@
|
||||
"The card owns grouping geometry but not product form schemas.",
|
||||
"Use align=center for compact result or empty messages: center the content on both axes and omit an empty body. The default start layout remains unchanged.",
|
||||
"Section and empty-state titles use the compact md token; descriptions use sm. Page/window title sizes and browser heading defaults are forbidden inside cards.",
|
||||
"Unclassed paragraphs in the body, including nested layout groups, share Description typography as a compatibility safeguard. New explanatory copy must use Description; headings and controls retain their own typography.",
|
||||
"Use Switch for compact visibility/enable states; use Checker for the Engine inspector treatment.",
|
||||
"Switch keeps its track width beside wrapped labels. The checked thumb uses on-accent contrast; the unchecked track follows theme text instead of a fixed white tint."
|
||||
]
|
||||
@@ -992,7 +1005,8 @@
|
||||
"moveDockPanel",
|
||||
"resizeDockSplit",
|
||||
"dockRects",
|
||||
"dockPosition"
|
||||
"dockPosition",
|
||||
"dockMoveAtPoint"
|
||||
],
|
||||
"domContract": [
|
||||
"nodedc-dock-layout",
|
||||
@@ -1006,10 +1020,11 @@
|
||||
"empty source branches collapse",
|
||||
"6 px handle activation",
|
||||
"pointer-position hit testing",
|
||||
"outside and self drops cancel",
|
||||
"outside and local self drops cancel",
|
||||
"keyboard docking",
|
||||
"resizable splits",
|
||||
"focus preserves media hosts"
|
||||
"focus preserves media hosts",
|
||||
"four outer workspace edges wrap the remaining layout"
|
||||
],
|
||||
"rules": [
|
||||
"Applications persist the serializable tree and own panel content.",
|
||||
@@ -1018,7 +1033,8 @@
|
||||
"Space or Enter starts keyboard docking, Tab chooses the destination, arrows choose an edge, Home chooses swap, Enter commits and Escape cancels.",
|
||||
"Only the active drag paints a destination contour; no permanent decorative panel outlines.",
|
||||
"Panel minimumSize propagates through split ancestors, constrains pointer/keyboard resize and expands a scrollable canvas below the viewport limit; never clips content to satisfy a ratio.",
|
||||
"preferredSize applies only to an unsaved default layout; minimumSize always constrains nested splits and scroll canvas."
|
||||
"preferredSize applies only to an unsaved default layout; minimumSize always constrains nested splits and scroll canvas.",
|
||||
"The outer visible-workspace zone is 24 CSS px, capped at 8% per axis; it wins over local panel zones, including over the source. Shift+arrows select the same workspace edges. Preview and commit both apply panel minimum sizes; existing DockTree persistence is unchanged."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1051,7 +1067,10 @@
|
||||
"A transfer is accepted only when the dragged surface overlaps the destination by at least the consumer-defined threshold; Module Foundry uses 20 percent.",
|
||||
"Consumers own domain mutations while the package owns sensors, transforms, accessible drag attributes and geometry.",
|
||||
"Repeated page-template drops create distinct application page instances instead of consuming the source template.",
|
||||
"A reordered application page array is the single source of truth for both composition and navigation order."
|
||||
"A reordered application page array is the single source of truth for both composition and navigation order.",
|
||||
"Optional renderOverlay portals the drag preview above scroll clipping without moving source layout; cancellation clears it.",
|
||||
"Pointer drops report client coordinates for consumer-owned canvas hit testing; dropping on empty space never implies an object target.",
|
||||
"DraggableItem exposes activator attributes/listeners for whole-tile dragging without a separate handle; the same activation threshold distinguishes clicks from drags."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1168,7 +1187,8 @@
|
||||
],
|
||||
"summary": "Secondary explanatory copy matching SettingsCard descriptions.",
|
||||
"rules": [
|
||||
"Use the same inherited family, regular 400 weight, small font token, muted text token and 1.4 line height for explanatory paragraphs. Do not restyle per feature."
|
||||
"Use the same inherited family, regular 400 weight, small font token, muted text token and 1.4 line height for explanatory paragraphs. Do not restyle per feature.",
|
||||
"Use role=status for explanatory pending/result copy. SettingsCard applies the same contract to unclassed body paragraphs as a fallback, without changing headings or controls."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1211,6 +1231,134 @@
|
||||
"Labels rotate and foreshorten in the face plane; they never billboard"
|
||||
],
|
||||
"documentation": "../docs/NAVIGATION_CUBE.md"
|
||||
},
|
||||
{
|
||||
"id": "tree",
|
||||
"status": "baseline",
|
||||
"package": "@nodedc/ui-react",
|
||||
"exports": [
|
||||
"Tree",
|
||||
"TreeNode",
|
||||
"TreeProps"
|
||||
],
|
||||
"domContract": [
|
||||
"nodedc-tree",
|
||||
"nodedc-tree__row"
|
||||
],
|
||||
"summary": "Compact hierarchical outliner with single-line rows, selection, visibility and keyboard navigation.",
|
||||
"behavior": [
|
||||
"selection expands ancestors and scrolls only the tree container",
|
||||
"Arrow/Home/End navigation, disclosure and optional visibility actions",
|
||||
"long names ellipsize without growing row height",
|
||||
"filter retains matching ancestors"
|
||||
],
|
||||
"rules": [
|
||||
"Use for object hierarchies; no nested ResourceRow cards.",
|
||||
"Host owns model identity and visibility; the tree owns navigation presentation."
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "resizable-viewport",
|
||||
"status": "baseline",
|
||||
"package": "@nodedc/ui-react",
|
||||
"exports": [
|
||||
"ResizableViewport",
|
||||
"ResizableViewportProps"
|
||||
],
|
||||
"domContract": [
|
||||
"nodedc-resizable-viewport",
|
||||
"nodedc-resizable-viewport__grip"
|
||||
],
|
||||
"summary": "In-flow viewer with controlled height and two accessible bottom corner grips.",
|
||||
"anatomy": [
|
||||
"content",
|
||||
"bottom-left grip",
|
||||
"bottom-right grip"
|
||||
],
|
||||
"variants": [
|
||||
"height-only",
|
||||
"hidden-indicator"
|
||||
],
|
||||
"states": [
|
||||
"idle",
|
||||
"hover",
|
||||
"focus",
|
||||
"resizing"
|
||||
],
|
||||
"rules": [
|
||||
"The owner persists height per view; the component never writes application storage.",
|
||||
"Pointer capture isolates resizing from scene navigation. Up/Down resize, Shift accelerates, Home/End use limits.",
|
||||
"Only the viewport height changes; the page and browser retain their dimensions.",
|
||||
"resizeIndicator=false hides both glyphs and hover surfaces. Pointer resizing shows only the cursor; keyboard focus remains visible."
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "scene-annotation",
|
||||
"status": "baseline",
|
||||
"package": "@nodedc/ui-react",
|
||||
"exports": [
|
||||
"SceneAnnotation"
|
||||
],
|
||||
"domContract": [
|
||||
"nodedc-scene-annotation"
|
||||
],
|
||||
"summary": "Transparent interactive data label projected onto a real scene object.",
|
||||
"anatomy": [
|
||||
"canonical ghost button",
|
||||
"stacked label and data"
|
||||
],
|
||||
"states": [
|
||||
"idle",
|
||||
"hover",
|
||||
"selected",
|
||||
"keyboard-focus"
|
||||
],
|
||||
"rules": [
|
||||
"Renderer owns projection and offscreen/hidden-object clipping; the label does not infer measurements.",
|
||||
"Use canonical button keyboard and focus semantics, transparent resting surface, compact numeric typography."
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "editor-dock-layout",
|
||||
"status": "baseline",
|
||||
"package": "@nodedc/ui-react",
|
||||
"exports": [
|
||||
"EditorDockLayout",
|
||||
"EditorDockLayoutProps",
|
||||
"EditorDockTool",
|
||||
"EditorDockState",
|
||||
"EditorWorkspace",
|
||||
"EditorWorkspaceProps",
|
||||
"decodeEditorDock",
|
||||
"dockEditorTool",
|
||||
"editorDockTarget",
|
||||
"mergeEditorDockRatios"
|
||||
],
|
||||
"domContract": [
|
||||
"nodedc-editor-dock",
|
||||
"nodedc-editor-dock__tool",
|
||||
"nodedc-editor-workspace"
|
||||
],
|
||||
"summary": "Fixed primary scene with detachable docked tools and a separate editor window that restores the original view.",
|
||||
"behavior": [
|
||||
"four outer magnetic edges",
|
||||
"nested adjacent tool splits",
|
||||
"drag header to detach over primary",
|
||||
"invisible resize regions",
|
||||
"controlled JSON layout",
|
||||
"stable mounted renderer",
|
||||
"keyboard docking and cancellation",
|
||||
"fixed header outside docking bounds"
|
||||
],
|
||||
"rules": [
|
||||
"Applications own scene content, visibility and persisted layout; tools share one generic docking implementation.",
|
||||
"Primary content cannot detach or swap with a tool. Dropping in the primary center makes a tool floating.",
|
||||
"Outer 24 px has priority; additional magnets extend to 160 px horizontally and 96 px vertically, capped at 16% of the host.",
|
||||
"Header Enter/Space starts keyboard docking; arrows select edges, Shift+arrows the whole workspace, Tab cycles tools, Home floats, Escape cancels. Floating headers also support arrows and Shift+arrows for move/resize.",
|
||||
"Hidden tools retain their docking placement and remembered floating rectangle. Viewport clamps never overwrite preferred geometry.",
|
||||
"EditorWorkspace keeps one mounted portal host, moves it atomically when supported, and restores its original slot on return. It never changes the source-view layout.",
|
||||
"The fixed editor header is outside docking bounds. Back, edit completion and close return to the original view."
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user