Nutrient Web SDK

v0.0.0-dev

ReferenceNutrientViewerOptionsTEXT_MARKUP_COLOR_PRESETS

Variable TEXT_MARKUP_COLOR_PRESETS

The list of colors to use in the text markup annotation toolbar.

Variable

Example

NutrientViewer.Options.TEXT_MARKUP_COLOR_PRESETS = [
{
color: new NutrientViewer.Color({ r: 255, g: 0, b: 0 }),
localization: {
id: "brightRed",
defaultMessage: "Bright Red"
}
},
{
color: new NutrientViewer.Color({ r: 0, g: 0, b: 180 }),
localization: {
id: "deepBlue",
defaultMessage: "Deep Blue"
}
}
]

Default Value

Black, Blue, Red, Green

TEXT_MARKUP_COLOR_PRESETS

The list of colors to use in the text markup annotation toolbar.

Example

NutrientViewer.Options.TEXT_MARKUP_COLOR_PRESETS = [
{
color: new NutrientViewer.Color({ r: 255, g: 0, b: 0 }),
localization: {
id: "brightRed",
defaultMessage: "Bright Red"
}
},
{
color: new NutrientViewer.Color({ r: 0, g: 0, b: 180 }),
localization: {
id: "deepBlue",
defaultMessage: "Deep Blue"
}
}
]

Default Value

Black, Blue, Red, Green