iink-ts - v5.0.0
    Preparing search index...

    Variable BoxOpsConst

    BoxOps: {
        contains(box: TBox, child: TBox): boolean;
        containsPoint(box: TBox, point: TPoint): boolean;
        createFromBoxes(boxes: TBox[]): TBox;
        createFromPoints(points: TPoint[]): TBox;
        getCenter(box: TBox): TPoint;
        getCorners(box: TBox): TPoint[];
        getSide(box: TBox): TPoint[];
        getSides(box: TBox): TSegment[];
        getSnapPoints(box: TBox): TPoint[];
        isContained(box: TBox, wrapper: TBox): boolean;
        nearestBoundaryPoint(box: TBox, point: TPoint): TPoint;
        overlaps(box1: TBox, box2: TBox): boolean;
    } = ...

    Type Declaration

    • contains: function
      • Parameters

        Returns boolean

    • containsPoint: function
      • Parameters

        Returns boolean

    • createFromBoxes: function
      • Parameters

        Returns TBox

    • createFromPoints: function
      • Parameters

        Returns TBox

    • getCenter: function
      • Parameters

        Returns TPoint

    • getCorners: function
      • Parameters

        Returns TPoint[]

    • getSide: function
      • Parameters

        Returns TPoint[]

    • getSides: function
    • getSnapPoints: function
      • Parameters

        Returns TPoint[]

    • isContained: function
      • Parameters

        Returns boolean

    • nearestBoundaryPoint: function
      • Closest point on the box's boundary to the given point. If the point is outside, this is the clamp of the point onto the box. If the point is inside, this snaps to whichever of the 4 edges is nearest.

        Parameters

        Returns TPoint

    • overlaps: function
      • Parameters

        Returns boolean