Nutrient Web SDK
    Preparing search index...

    Type Alias AnnotationPresetCallback

    AnnotationPresetCallback: (
        currentAnnotationPresets: Record<AnnotationPresetID, AnnotationPreset>,
    ) => Record<AnnotationPresetID, AnnotationPreset>

    This callback can be used in the setAnnotationPresets() method to do atomic updates to the current annotation presets.

    Type Declaration

    Use ES2015 arrow functions and the update callback to reduce boilerplate

    instance.setAnnotationPresets(presets => {
    presets.custom = {
    strokeWidth: 10,
    };
    return presets;
    });