Creates a new zoom-to-box jig.
The view that will be zoomed
Starts the interactive jig operation.
This method initiates both the jig loop and the sampling process. It returns a promise that resolves when the jig operation completes or rejects if an error occurs.
Promise that resolves when the jig operation completes
Rejects the jig operation with an error.
This method should be called when the jig operation fails or is cancelled. It cleans up event listeners and rejects the underlying promise.
The reason for the rejection
Resolves the jig operation with the specified result.
This method should be called when the jig operation completes successfully. It cleans up event listeners and resolves the underlying promise.
The result to return from the jig operation
Handles the selection sampling and zooming operation.
This method gets the user's selection box and applies the zoom operation to fit that area in the view.
Promise that resolves when the zoom operation completes
Called during each update cycle to refresh the jig display.
This method should be overridden by subclasses to implement the visual update logic. It's called automatically by the jig loop whenever the display needs to be refreshed (typically on mouse movement).
Common update operations include:
Jig for handling zoom-to-box selection interaction.
This jig handles the user interaction for selecting a rectangular area to zoom to. It extends AcEdJig to provide interactive selection capabilities.
The jig allows users to:
Example