/docs/components/revision/api
API References
Technical reference for compare, align, and revision result events.
Send `compare` when both source files are already positioned correctly and you want the viewer to generate a visual diff.
Compare Payload
Send `align` when the source files require interactive point matching before or during comparison.
Align Payload
Both compare and align report through the same completion and error event types.
- comparisonComplete: Returned when the compare or align workflow finishes successfully.
- comparisonError: Returned when the compare or align workflow fails.
Result Events
