NPM Package/docs/components/revision/api
API References
Technical reference for compare, align, and revision result events.
Call viewer.compare.compare(...) when both source files are already positioned correctly and you want the canvas to generate a visual diff.
Compare Method
Call viewer.compare.align(...) when the source files require interactive point matching or headless alignment before comparison.
Align Method
Both compare and align report through the same completion and error event listeners on viewer.compare.
- comparisonComplete: Fires when the compare or align workflow finishes successfully (or reaches the interactive align stage).
- comparisonError: Fires when the compare or align workflow fails.
Result Events
