Nutrient Web SDK
    Preparing search index...

    Type Alias TextMarkupAnnotationsNamespace

    type TextMarkupAnnotationsNamespace = {
        createFromCurrentTextSelection: (
            type: TextMarkupAnnotationType,
        ) => NutrientViewer.Immutable.List<TextMarkupAnnotationsUnion>;
        getColorPresets: () => {
            highlight: { presets: ColorPreset[]; showColorPicker: boolean };
            markup: { presets: ColorPreset[]; showColorPicker: boolean };
        };
    }
    Index

    Properties

    createFromCurrentTextSelection: (
        type: TextMarkupAnnotationType,
    ) => NutrientViewer.Immutable.List<TextMarkupAnnotationsUnion>

    Creates markup annotations from the current text selection. Produces one annotation per page the selection spans and clears the text selection afterwards.

    getColorPresets: () => {
        highlight: { presets: ColorPreset[]; showColorPicker: boolean };
        markup: { presets: ColorPreset[]; showColorPicker: boolean };
    }

    Returns the resolved color presets for markup annotations, separated by type (highlight and markup).