A control point is a draggable two dimensional point.
Constructs a control at the position (x,y)
Class attribute for the root element.
Style for the root element.
The update function describes how this element should update itself
The controller manages the dependencies between elements. Every element is added to this controller upon creation.
This number uniquely identifes elements
Allows for the events attatched to elements to be disabled.
Gets the change in x position of this control.
Gets the change in y position of this control.
Returns the unique generated identifier associated with this element.
This function is called whenever the state of an input element changes. The default behavior of this function is to update the dependents of this element. WARNING: changing this function can have unintented side effects.
Updates the x position of the control. Gets the x position of the control.
Updates the y position of the control. Gets the y position of the control.
Constructs and appends an 'a' (link) within this element.
Declares this element dependent on the provided element(s).
Appends the element as a child within this element.
Removes all child elements from this element.
Constructs and appends a clipPath within this element
Modifying the transform function allows for the control to be constrained to a path or constrained to the region enclosed in a path.
Constrains the control to follow the path of the circle specified by the arguments. TODO: add a method to constrain the control to a path
Constrain this control to only move left and right along its current x position.
Constrain this control to only move up and down along its current y position.
Constrains the control to the box defined by the points (x1, y1) and (x2, y2). The first point defines the top-left corner of the box, the second the bottom-right corner of the box.
Returns true if this element contains the argument element.
Returns the bounding box of this element. Note, this is different from the getBoundingClientRect method since the bounding box is affected by the current viewPort.
If this element's root is not a SVGGraphics element as is the case for the marker, title, and more element, then null is returned instead of a DOMRect.
Handle when a user mouses down over a Control's handle. Stores the error in the user's click as well as stores which Control the user is clicking.
When a user mouses out of a control handle and when there is no active control, remove the "highlight" class from the event target.
Handle when a user touches over a Control's handle. Stores the error in the user's input as well as stores which Control the user is clicking.
Inserts the element before the first child within this element.
Removes this element from the DOM and from the Element controller.
Constructs and appends a text element within this element.
Moves the control to a new location
Updates all of the elements that depend on this element.
Clears the static data structures holding elements and resets the count.
Handles when a use mouses up over the window or ends their touch event.
Handles when the user moves their mouse over the window. If there is an active control, the control's position is updated.
When a user mouses over a control, add the class "highlight" to the control handle.
Moves the active control to the new (x,y) position.
Handles a touch move event. If there is an active control, the control's position is updated.
Generated using TypeDoc