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 - kit Namespace

Index

Functions

construct

  • Helper function to use the JavaScript "apply" function in conjunction with the "new" keyword.

    Parameters

    • ctor: IKit

      The constructor for the class which is an IKit.

    • args: any

      The array of parameters passed to the constructor.

    Returns IModel

    A new instance of the class, which implements the IModel interface.

getParameterValues

  • getParameterValues(ctor: IKit): any[]
  • Extract just the initial sample values from a kit.

    Parameters

    • ctor: IKit

      The constructor for the class which is an IKit.

    Returns any[]

    Array of the inital sample values provided in the metaParameters array.

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