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 - ICascadePoint Interface

Hierarchy

Index

Properties

$initial

$initial: any

The initial context object of the cascade.

$reset

$reset: function

Use the $original as the $result.

Type declaration

    • (): this
    • Returns this

$result

$result: any

The current final value of the cascade.

Methods

add

  • Add two points together and return the result as a new point object.

    Parameters

    • b: IPoint

      Second point.

    • Optional subtract: boolean

      Optional boolean to subtract instead of add.

    Returns ICascadePoint

    this cascade container, this.$result will be A new point object.

average

clone

closest

  • From an array of points, find the closest point to a given reference point.

    Parameters

    • pointOptions: IPoint[]

      Array of points to choose from.

    Returns ICascadePoint

    this cascade container, this.$result will be The first closest point from the pointOptions.

distort

mirror

  • Create a clone of a point, mirrored on either or both x and y axes.

    Parameters

    • mirrorX: boolean

      Boolean to mirror on the x axis.

    • mirrorY: boolean

      Boolean to mirror on the y axis.

    Returns ICascadePoint

    this cascade container, this.$result will be Mirrored point.

rotate

rounded

scale

subtract

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