Skip to main content

Module sidebar

Module sidebar 

Source
Expand description

The sidebar: one docked activity bar down the left edge, and the one panel it opens floating over the diagram (docs/cad-ui-spec.md §8).

Four sections, one address each for everything that is not editing: Diagrams, Parts and History at the top of the bar, Settings at its foot. Pressing a section opens its panel; pressing the open one shuts it. The panel is glass over the diagram — it never reflows the canvas, so the toolbar never moves — and only working dismisses it: a press on the diagram, a tool pick, or Escape. Nothing inside it ever closes it.

Which section is open is the shell’s, not the kernel’s: the session has no opinion about what is being browsed.

Re-exports§

pub use ActivityBar_completions::Component::ActivityBar;
pub use SidebarPanel_completions::Component::SidebarPanel;

Structs§

ActivityBarProps
Properties for the ActivityBar component.
ActivityProps 🔒
Properties for the Activity component.
SidebarPanelProps
Properties for the SidebarPanel component.

Enums§

Section
One place on the activity bar.

Constants§

CELL 🔒
A section’s cell on the bar, and the same cell while its panel is open.
OPEN 🔒
PANEL 🔒
The panel: floating glass beside the bar, shadowed and rounded like the toolbar it never displaces.

Functions§

Activity 🔒
Props
ActivityBar
The bar: docked chrome, so flat — no shadow, square corners.
SidebarPanel
The open section’s panel.
covers 🔒
What the panel covers of the diagram: everything from the canvas’s left edge to its own right, since the sliver beside it is no room a framing may use. A shut panel covers nothing, so the diagram gets its left edge back the moment it closes.