Documentation

BezierPath.js

A refactored BezierPath class.

CubicBezierCurve.js

A refactored cubic bezier curve class.

Grid.js

A grid class with vertical and horizontal lines.
Note that the PlotBoilerplate already has a Grid instance member. The Grid is not meant to be added to the canvas as a drawable as it encapsulates more an abstract concept of the canvas rather than a drawable object.
Version:
  • 1.0.1
Author:
  • Ikaros Kappler
Source:

Requires

  • module:Vertex

Line.js

A line consists of two vertices a and b.

This is some refactored code from my 'Morley Triangle' test
https://github.com/IkarosKappler/morleys-trisector-theorem
Line
Version:
  • 2.0.4
Author:
  • Ikaros Kappler
Source:

Requires

  • module:Vertex

PBImage.js

A wrapper for image objects.
As native Image objects have only a position and with and height thei are not suitable for UI dragging interfaces.
Version:
  • 1.0.1
Author:
  • Ikaros Kappler
Source:

PlotBoilerplate.js

The main class of the PlotBoilerplate.

Polygon.js

A polygon class.
Polygon
Version:
  • 1.1.0
Author:
  • Ikaros Kappler
Source:

Requires

  • module:Vertex

Triangle.js

A triangle class for triangulations. The class was written for a Delaunay trinagulation demo so it might contain some strange and unexpected functions.
Triangle
Version:
  • 2.0.4
Author:
  • Ikaros Kappler
Source:

Requires

  • module:Vertex

Vector.js

A vector (Vertex,Vertex) is a line with a visible direction.

Vectors are drawn with an arrow at their end point.
The Vector class extends the Line class.
Vector
Version:
  • 1.1.0
Author:
  • Ikaros Kappler
Source:

Requires

  • module:Vertex,

VEllipse.js

An ellipse class based on two vertices [centerX,centerY] and [radiusX,radiusY].
Ellipses with a center and an x- and a y-axis (stored as a vertex).
Version:
  • 1.0.1
Author:
  • Ikaros Kappler
Source:

Requires

  • module:Vertex

Vertex.js

A vertex is a pair of two numbers.

It is used to identify a 2-dimensional point on the x-y-plane.
Vertex
Version:
  • 2.2.1
Author:
  • Ikaros Kappler
Source:

Requires

  • module:VertexAttr

VertexAttr.js

The VertexAttr is a helper class to wrap together additional attributes to vertices that do not belong to the 'standard canonical' vertex implementation.

This is some sort of 'userData' object, but the constructor uses a global model to obtain a (configurable) default attribute set to all instances.

VertexListeners.js

An event listeners wrapper. This is just a set of three listener queues (drag, dragStart, dragEnd) and their respective firing functions.