OptionalcapturecaptureIndicatorTemplate (since 2.5.10): a chart's studies with their
panes and scales, for createTemplate. The widget's indicator picker reads
it through the store it is given, so the widget tier never loads this tier
on its own. Without it the picker saves the plain study list.
Optionaloptions: WorkspaceOperationOptionsOptionaloptions: WorkspaceOperationOptionsOptionaloptions: WorkspaceOperationOptionsRecord the active layout and the recent list. It restores nothing: the caller applies the document.
Optionaloptions: WorkspaceOpenOptionsOptionalplanplanIndicatorTemplateState (since 2.5.10), for the same reason. The
picker offers saved templates only when the store has it: applying one
without a plan could lose the chart's panes and scales.
Optionaloptions: IndicatorTemplateApplyOptionsOptionaloptions: WorkspaceOperationOptionsOptionaloptions: WorkspaceOperationOptionsOptionaloptions: WorkspaceOperationOptionsOptionaloptions: WorkspaceOperationOptionsStore the autosave preference. It starts no timer: the control that holds a layout saves it.
Optionaloptions: WorkspaceOperationOptionsCalled with a detached copy of the catalog after each change this store commits, before that change's promise resolves: a control learns the revision its next change is checked against here. Returns the unsubscribe.
What a layouts control calls, and nothing more.
WorkspaceRepositoryimplements it, withimportDocumentandexportDocumentbesides; a host that keeps layouts on its own server can implement it directly. The widget tier takes this contract as a type, so a widget host loads the workspace tier only when it passes one.A change given
expectedRevisionis refused with an error namedWorkspaceConflictErrorunless the catalog is at that revision, and a change that commits moves the catalog forward by exactly one revision.