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.

Hierarchy (View Summary)

Constructors

Accessors

Methods

Constructors

Accessors

Methods

  • 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.

    Parameters

    • p2: AcGeVector3dLike

      Incremental value of type T describing new jig input. Examples: - world point - radius/distance - angle in radians

    Returns void