Creates a DiagramInspector bound to the given diagram view.
The host element that will contain the inspector.
The diagram view to observe and edit.
Optional inspector and adapter configuration.
ProtecteddiagramProtectedinspectorProtectedhostProtectedconfigProtectedreadonlyProtecteddefinitionsProtectedadaptersProtectedsyncingProtecteddataProtectedcellsClears inspector DOM and internal button references.
ProtectedregisterRegisters diagram-specific adapters in addition to the native ones.
ProtectedinitializeBuilds all static inspector sections and rows during construction.
ProtectedonForwards an adapter value change to the inspector apply pipeline.
The property definition that changed.
The new value emitted by the adapter.
ProtectedbindSubscribes to diagram-level events that should trigger an inspector refresh or row rebuild.
ProtectedunbindUnsubscribes all diagram-level event listeners attached by bindDiagramEvents.
ProtectedonHandles DIAGRAM_CHANGED_EVENT by refreshing displayed adapter values.
ProtectedonHandles selection and geometry change events by rebuilding volatile rows then refreshing.
ProtectedrefreshPushes the latest selection values into all adapter controls.
StaticregisterRegisters an adapter class under a given name for later resolution by adapter/type name.
Lookup key used in property definitions.
The adapter constructor to register.
ProtectedsyncEvaluates every row's isVisible() callback and toggles the 'is-hidden' CSS class on its label and value cells. Also hides sections whose every row is hidden. Subclasses may override to apply additional visibility rules.
StaticunregisterRemoves a previously registered adapter by name.
The lookup key of the adapter to remove.
StaticgetReturns the adapter class registered under a given name, or undefined if not found.
The lookup key.
The registered adapter class, or undefined.
Registers a property definition that can be rendered into a row.
ProtectedaddRegisters a property definition and immediately builds its row in the given grid. Stores the value cell for targeted updates by refresh().
ProtectedresolveDerives the overall selection state from the item count and value diversity.
Number of currently selected nodes.
Per-key value sets collected from the selection.
'none', 'single', or 'mixed'.
ProtectedapplyApplies selection-state CSS classes to the inspector host element.
The current selection state to reflect.
ProtectedreadReads a value from a flat or nested record using the registered adapter for the key. Falls back to dot-path traversal if no adapter is registered.
The source data record.
The property key, supporting dot-separated paths.
The resolved value, or undefined if not found.
ProtectedgetTraverses a dot-separated path inside a record and returns the leaf value.
The root record to traverse.
Dot-separated property path, e.g. 'shadowStyle.offset.x'.
The value at the path, or undefined if any segment is missing.
ProtectedaddAdds a value to a set while deduplicating object values by shallow first-level comparison.
ProtectedshallowCompares two objects using only first-level keys and values.
ProtectedvalueGenerates a stable token for first-level value comparison.
ProtectedbuildCreates a collapsible section element with a heading and a two-column property grid inside. Returns the section root and the inner grid so rows can be appended to it.
ProtectedbuildCreates and appends a label + control row into the given grid. Returns the value cell so callers can populate it with a specific control.
ProtectedremoveRemoves all rows marked as volatile from the given grid. Returns the removed keys so subclasses can clear any companion maps.
ProtectedbuildCreates the appropriate inspector adapter for the given property definition and mounts it into the value cell.
Diagram-specific inspector that wires editor sections to the active diagram selection.