Example
instance.setDocumentComparisonMode({
documentA: {
source: NutrientViewer.DocumentComparisonSourceType.USE_OPEN_DOCUMENT
},
documentB: {
source: NutrientViewer.DocumentComparisonSourceType.USE_FILE_DIALOG
},
autoCompare: false
});
Properties
boolean
Set to true to perform automatic comparison without manual alignment of both documents. Set to false to manually align them.
blendMode
Optional
| "normal"
| "multiply"
| "screen"
| "overlay"
| "darken"
| "lighten"
| "colorDodge"
| "colorBurn"
| "hardLight"
| "softLight"
| "difference"
| "exclusion"
Blend mode to be used for overlaying the two source documents when performing document comparison.
Default Value
"darken"strokeColors
Optional
Stroke colors to be used for the base and second documents strokes when overlaid for document comparison.
Default Value
{ documentA: new NutrientViewer.Color({ r: 245, g: 40, b: 27 }), documentB: new NutrientViewer.Color({ r: 49, g: 193, b: 255 }) }
Defines specific configuration options related to the document comparison feature. Passed when calling Instance#setDocumentComparisonMode.