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

Index

Variables

Private hasLib

hasLib: boolean

Private maxBezierArcspan

maxBezierArcspan: number

Private scratch

scratch: Bezier

Functions

Private BezierToSeed

Private bezierSeedFromArc

Private controlPointsForCircularCubic

  • controlPointsForCircularCubic(arc: IPathArc): IPoint[]

Private controlYForCircularCubic

  • controlYForCircularCubic(arcSpanInRadians: number): number

Private ensureBezierLib

  • ensureBezierLib(): void

Private getActualBezierRange

Private getArcs

  • getArcs(bc: BezierCurve, b: Bezier, accuracy: number, startT: number, endT: number, base: number): number

Private getChainBezierRange

Private getError

  • getError(b: Bezier, startT: number, endT: number, arc: IPathArc, arcReversed: boolean): number

Private getExtrema

  • getExtrema(b: Bezier): number[]

Private getIPoint

Private getLargestArc

Private getPoints

  • getPoints(arg: IPoint[] | number[] | string): IPoint[]

Private getScratch

Private seedToBezier

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