Properties inspector
The Properties inspector shows the fields of whatever is selected. Every change runs as a command, so it undoes like any other edit.
Configure access
DocumentInspectorConfiguration hides fields or makes them read-only. A DocumentInspectorAddress names a destination, tab, group or property; overrides can also change a label, order or presentation.
dart
import 'package:vyuh_document_editor/vyuh_document_editor.dart';
import 'package:vyuh_document_editor/document_editor_workspace.dart'
show DocumentInspectorAccess, DocumentInspectorConfiguration;
final inspector = DocumentInspectorConfiguration(
defaultPropertyAccess: DocumentInspectorAccess.readOnly,
);
// Pass inspector to DocumentPropertiesWorkspace(configuration: inspector).
// For a property allow-list, set defaultPropertyAccess to hidden and provide
// overrides for stable DocumentInspectorAddress values in the registry.
// Unaddressed legacy fields are not filtered by defaultPropertyAccess.Pass the configuration to DocumentPropertiesWorkspace or DocumentPropertiesPanel. For an allow-list, set defaultPropertyAccess to hidden and override the addresses you allow. An override cannot widen its group's access, and the inspector never grants edit rights the schema or document protection deny.
A custom presentation builder receives the default control. Decorate it and keep its command.
Common properties first
Everyday fields (formatting, alignment, spacing, sizes, margins, cell formatting) are open. Advanced groups (pagination rules, section internals, floating anchors) start collapsed. Opening a group changes nothing in the document.
Graphic element properties
generatedGraphicLayoutProperties gives equations, Mermaid and diagrams their width, height, orientation and crop fields, all through the element's writeGeometry command.