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 - Arc Class

Class for arc path.

Hierarchy

  • Arc

Implements

Index

Constructors

Properties

Constructors

constructor

  • new Arc(origin: IPoint, radius: number, startAngle: number, endAngle: number): Arc
  • new Arc(pointA: IPoint, pointB: IPoint, radius: number, largeArc: boolean, clockwise: boolean): Arc
  • new Arc(pointA: IPoint, pointB: IPoint, clockwise?: boolean): Arc
  • new Arc(pointA: IPoint, pointB: IPoint, pointC: IPoint): Arc
  • Class for arc path, created from origin point, radius, start angle, and end angle.

    Parameters

    • origin: IPoint

      The center point of the arc.

    • radius: number

      The radius of the arc.

    • startAngle: number

      The start angle of the arc.

    • endAngle: number

      The end angle of the arc.

    Returns Arc

  • Class for arc path, created from 2 points, radius, large Arc flag, and clockwise flag.

    Parameters

    • pointA: IPoint

      First end point of the arc.

    • pointB: IPoint

      Second end point of the arc.

    • radius: number

      The radius of the arc.

    • largeArc: boolean

      Boolean flag to indicate clockwise direction.

    • clockwise: boolean

      Boolean flag to indicate clockwise direction.

    Returns Arc

  • Class for arc path, created from 2 points and optional boolean flag indicating clockwise.

    Parameters

    • pointA: IPoint

      First end point of the arc.

    • pointB: IPoint

      Second end point of the arc.

    • Optional clockwise: boolean

      Boolean flag to indicate clockwise direction.

    Returns Arc

  • Class for arc path, created from 3 points.

    Parameters

    • pointA: IPoint

      First end point of the arc.

    • pointB: IPoint

      Second end point of the arc.

    • pointC: IPoint

      Second end point of the arc.

    Returns Arc

Properties

endAngle

endAngle: number

origin

origin: IPoint

radius

radius: number

startAngle

startAngle: number

type

type: string

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