Assign the preview entity used by the jig.
The entity should be transient (not yet added to the model database).
End the jig and clear any transient preview state.
Should be called when the user finalizes input (mouse click or Enter) to prevent further updates and allow garbage collection.
Render the preview entity through the associated view.
Equivalent to AutoCAD’s worldDraw() — called after each update(value).
Update the preview entity based on incremental input.
This method replaces the older updatePoint() and now accepts any type T,
enabling use for point, distance, angle, or custom parameter updates.
This function performs the conceptual role of AutoCAD’s sampler():
the editor triggers this method whenever the user’s input changes.
If the preview entity implements:
onJigUpdate(value: T)
then it will be invoked here to recompute geometry.
Incremental value of type T describing new jig input.
Examples:
- world point
- radius/distance
- angle in radians
Preview jig for the distance measurement command.
Renders a live rubber-band line from the fixed first point to the current cursor position. The badge showing the live distance is rendered by the jig itself and is removed when the jig ends — it is intentionally short-lived and intrinsic to the interactive input UX.