Skip to main content
Version: Next

doSelectionRectAndRulerPathsIntersect

Callable

  • doSelectionRectAndRulerPathsIntersect(selectionRect: Rect2D, paths: Point2D[][], isAuxiliaryLineVisible: boolean): boolean

  • Tests whether a selection rectangle intersects ruler annotation paths.

    Ruler paths are checked by point containment and segment intersection. When the auxiliary line is visible, the implied triangle between ruler arms is also considered selectable.


    Parameters

    • selectionRect: Rect2D

      Axis-aligned selection rectangle.

    • paths: Point2D[][]

      Ruler paths represented as ordered point arrays.

    • isAuxiliaryLineVisible: boolean

      Whether the auxiliary triangle should be tested.

    Returns boolean

    True when the selection rectangle intersects the ruler geometry.