Extends a function by assigning its prototype to that of another function (a superclass).
This method allows one to simulate class based inheritance in JavaScript. It is an advanced feature that can be ignored by most users.
The function that is extended will have a superclass property assigned to it that points to the superc parameter's prototype. The thisc parameter's prototype will point to a new instance of the superclass.
the function to extend
the function that will act as the super class. More specifically, the function that will serve as the prototype for the thisc parameter.
an object with methods declared that will override the given superc methods. This should be used if you wish to have some of the methods of the super class but not others.
Constructs a function that will interpolate between two values. The function takes a number between zero and one and returns an object that is the interpolation between the arguments.
The interpolate function is smart and tries to determine the best way to interpolate the values. It currently knows about numbers, Arrays, Objects, strings formatted as CSS lengths, colors, and SVG transform lists.
Adds an error listener that is called if there is an error loading thinkmap or if thinkmap is not supported.
the error that was thrown
Call the provided function when thinkmap is ready and all the DOM content has been loaded.
the function to call when the dom is ready
Creates a DOM Element selection by selecting an element matches the criteria
The selector can either be a string or an element.
the parent from which to make the selection. This is only used if the selector is a string. If no value is passed in, the window's document object serves as the parent
an element selection containing the DOM element that was selected.
thinkmap.select("#foo")
Selects all elements matching the given selector
The HTMLElement that will serve as the root element when using a string selector. If no node is specified, the window's document object serves as the parent.
returns a Selection
thinkmap.selectAll("div");
Creates a Setter/Getter function where if an argument is passed in, the property is set, else the current value is returned.
The property can be of any type from primitives to Objects and Arrays.
This is an advanced function that can be ignored by most users.
the object that holds the properties being get or set
the name of the property the function should be created for
the optional object that stores the get and set value of the property. This is used if the first parameter, the obj, cannot have its value overwritten such in the case of initial parameters or sealed objects.
the optional this argument used when calling getter values that are themselves function. This value is also returned when calling the setter method.