Interface: TextComparisonDiffColors

NutrientViewer.TextComparisonDiffColors

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

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 })
};