tuil
ReferencePackages@mwillbanks/tuil-editorAPI

EditorSnapshot

interface exported by @mwillbanks/tuil-editor.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-editor.

export interface EditorSnapshot {
  readonly document: EditorDocument;
  readonly selections: readonly EditorSelection[];
  readonly decorations: readonly EditorDecoration[];
  readonly diagnostics: readonly EditorDiagnostic[];
  readonly mode: EditorMode;
  readonly readOnly: boolean;
  readonly canUndo: boolean;
  readonly canRedo: boolean;
  readonly viewportAnchor?: EditorPosition;
}

Members

MemberTypeRequiredDescriptionRelated types
documentEditorDocumentYesThe document member uses the EditorDocument contract.EditorDocument
selectionsreadonly EditorSelection[]YesThe selections member uses the readonly EditorSelection[] contract.EditorSelection
decorationsreadonly EditorDecoration[]YesThe decorations member uses the readonly EditorDecoration[] contract.EditorDecoration
diagnosticsreadonly EditorDiagnostic[]YesThe diagnostics member uses the readonly EditorDiagnostic[] contract.EditorDiagnostic
modeEditorModeYesThe mode member uses the EditorMode contract.EditorMode
readOnlybooleanYesThe readOnly member uses the boolean contract.
canUndobooleanYesThe canUndo member uses the boolean contract.
canRedobooleanYesThe canRedo member uses the boolean contract.
viewportAnchorEditorPosition | undefinedNoThe viewportAnchor member uses the EditorPosition | undefined contract.EditorPosition

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-editor

On this page