Nutrient Web SDK
    Preparing search index...

    Type Alias ColorPreset

    type ColorPreset = {
        color: NutrientViewer.Color | null;
        localization: { defaultMessage?: string; description?: string; id: string };
    }
    Index

    Properties

    Properties

    color: NutrientViewer.Color | null

    The Color represented by this preset. Eg: new NutrientViewer.Color({ r: 255, g: 139, b: 94 }).

    null means transparent.

    localization: { defaultMessage?: string; description?: string; id: string }

    Type Declaration

    • OptionaldefaultMessage?: string

      The default message of the preset color. Eg: 'Red'

    • Optionaldescription?: string

      The description of the preset color. Eg: 'Red color'

    • id: string

      The ID of the preset color. Eg: 'red'