Maker.js, a Microsoft Garage project, is a JavaScript library for creating and sharing modular line drawings for CNC and laser cutters.

View project on GitHub Star

Api - Dogbone Class

Hierarchy

  • Dogbone

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

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc