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 - importer Module

Index

Functions

fromSVGPathData

  • Create a model from SVG path data.

    Parameters

    • pathData: string

      SVG path data.

    • Default value options: ISVGImportOptions = {}

      ISVGImportOptions object.

    Returns IModel

    An IModel object.

parseNumericList

  • parseNumericList(s: string): number[]
  • Create a numeric array from a string of numbers. The numbers may be delimited by anything non-numeric.

    Example:

    var n = makerjs.importer.parseNumericList('5, 10, 15.20 25-30-35 4e1 .5');
    

    Parameters

    • s: string

      The string of numbers.

    Returns number[]

    Array of numbers.

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