Documentation

js/BezierPath.js

A refactored BezierPath class.

js/Bounds.js

A bounds class with min and max values.
A simple bounds class implementing IBounds.
Version:
  • 1.0.0
Author:
  • Ikaros Kappler
Source:

Requires

  • module:XYCoords,

js/Circle.js

A simple circle: center point and radius.
A simple circle class: center point and radius.
Version:
  • 1.0.1
Author:
  • Ikaros Kappler
Source:

Requires

  • module:Vertex,

js/CubicBezierCurve.js

A refactored cubic bezier curve class.

js/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

js/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.1.2
Author:
  • Ikaros Kappler
Source:

Requires

  • module:Vertex

js/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.2
Author:
  • Ikaros Kappler
Source:

Requires

  • module:Vertex,

js/PlotBoilerplate.js

The main class of the PlotBoilerplate.

js/Polygon.js

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

Requires

  • module:Vertex

js/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.
A simple triangle class: three vertices.
Version:
  • 2.3.0
Author:
  • Ikaros Kappler
Source:

Requires

  • module:Vertex,

js/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.2.1
Author:
  • Ikaros Kappler
Source:

Requires

  • module:Vertex,

js/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

js/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.3.1
Author:
  • Ikaros Kappler
Source:

Requires

  • module:VertexAttr

js/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.

js/VertexListeners.js

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