libavoid-js
    Preparing search index...

    Interface Avoid

    The initialised wasm module returned by AvoidLib.getInstance().

    Index
    • Moves every edge of a polygon (≥ 1 point) outwards by offset, or inwards for a negative offset. The points must be in clockwise order on screen (y pointing down), like the corners of a rectangle listed top-left, top-right, bottom-right, bottom-left; other orders give meaningless results.

      Parameters

      Returns Point[]

      libavoid: PolygonInterface::offsetPolygon.

    • The bounding rectangle of the points (≥ 1) as a 4-point polygon.

      Parameters

      Returns Point[]

      libavoid: PolygonInterface::boundingRectPolygon.

    • The bounding box of the points (≥ 1), grown by offset on every side.

      Parameters

      Returns Rect

      libavoid: PolygonInterface::offsetBoundingBox.

    ConnDirFlag: ConnDirFlagEnum
    ConnType: ConnTypeEnum
    RouterFlag: RouterFlagEnum
    RoutingOption: RoutingOptionEnum
    RoutingParameter: RoutingParameterEnum