Nutrient Web SDK

ReferenceTextComparisonDiffColors

Interface TextComparisonDiffColors

Configuration for customizing the colors used to highlight differences in text comparison.

Interface

Example

const diffColors = {
insertionColor: new NutrientViewer.Color({ r: 0, g: 128, b: 0 }),
insertionBackgroundColor: new NutrientViewer.Color({ r: 200, g: 255, b: 200 }),
deletionColor: new NutrientViewer.Color({ r: 255, g: 0, b: 0 }),
deletionBackgroundColor: new NutrientViewer.Color({ r: 255, g: 200, b: 200 }),
disabledColor: new NutrientViewer.Color({ r: 150, g: 150, b: 150 }),
disabledBackgroundColor: new NutrientViewer.Color({ r: 240, g: 240, b: 240 })
};

Properties

Background color for deletions

Text color for deletions

Background color for disabled annotations

Text color for disabled annotations

Background color for insertions

Text color for insertions