Nutrient Web SDK
    Preparing search index...

    Type Alias TextAnnotationEditorState

    type TextAnnotationEditorState = {
        annotationId: string;
        backgroundColor: TextAnnotationEditorValueState<NutrientViewer.Color>;
        fontColor: TextAnnotationEditorValueState<NutrientViewer.Color>;
        fontFamily: TextAnnotationEditorValueState<string>;
        fontSize: TextAnnotationEditorValueState<number>;
        marks: {
            bold: TextAnnotationEditorMarkState;
            italic: TextAnnotationEditorMarkState;
            underline: TextAnnotationEditorMarkState;
        };
        selection: | {
            anchor: { offset: number; path: number[] };
            focus: { offset: number; path: number[] };
        }
        | null;
        selectionScope: TextAnnotationEditorSelectionScope;
    }
    Index

    Properties

    annotationId: string
    fontFamily: TextAnnotationEditorValueState<string>
    marks: {
        bold: TextAnnotationEditorMarkState;
        italic: TextAnnotationEditorMarkState;
        underline: TextAnnotationEditorMarkState;
    }
    selection:
        | {
            anchor: { offset: number; path: number[] };
            focus: { offset: number; path: number[] };
        }
        | null