--- layout: posts title: Api - Dogbone Class ---

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

  • new Dogbone(width: number, height: number, radius: number, style?: number, bottomless?: boolean): Dogbone
  • Create a dogbone from width, height, corner radius, style, and bottomless flag.

    Example:

    var d = new makerjs.models.Dogbone(50, 100, 5);
    

    Parameters

    • width: number

      Width of the rectangle.

    • height: number

      Height of the rectangle.

    • radius: number

      Corner radius.

    • Default value style: number = 0

      Optional corner style: 0 (default) for dogbone, 1 for vertical, -1 for horizontal.

    • Default value bottomless: boolean = false

      Optional flag to omit the bottom line and bottom corners (default false).

    Returns Dogbone

Properties

paths

paths: IPathMap

Generated using TypeDoc