Element.add()⚓➭
Element.add()⚓➭
See Element.append.
-diff --git a/dist/reference.html b/dist/reference.html index 705386e..a64b81a 100644 --- a/dist/reference.html +++ b/dist/reference.html @@ -31,10 +31,10 @@
Inserts given element after the current one.
Returns: Element parent
-Animate given attributes of the element.
Returns: Element the element
-Appends given element to current one.
Returns: Element parent
-Inserts given element before the current one.
Returns: object Element
-Creates clone of the element and inserts it after the element.
Returns: Element the clone
-Adds or retrieves given value asociated with given key. See also Element.removeData
@@ -207,7 +207,7 @@ See also Element.removeDataReturns: object Element
-Returns bounding box descriptor for the given element.
Returns: object bounding box descriptor:
@@ -273,7 +273,7 @@ See also Element.removeData context for hover out handlerReturns: object Element
-Returns an array of animations element currently in
Returns: object in format
@@ -282,7 +282,7 @@ See also Element.removeDataInserts the element after the given one.
Returns: Element parent
-Inserts the element after the given one.
Returns: Element parent
-Creates <marker>
element from the current element.
To create a marker you have to specify the bounding rect and reference point:
Returns parent of the element
Returns: Element parent
-Creates <pattern>
element from the current element.
To create a pattern you have to specify the pattern rect:
Prepends given element to current one.
Returns: Element parent
-Removes element from the DOM
-Returns: Element removed element
+Removes value associated with an element by given key. If key is not provided, removes all the data of the element.
@@ -426,7 +427,7 @@ If key is not provided, removes all the data of the element. keyReturns: object Element
-Applies CSS selector with the element as a parent and returns the result as an Element.
Returns: Element result of query selection
-Applies CSS selector with the element as a parent and returns the result as a set or array of elements.
Returns: Set array result of query selection
-Stops all the animations of the current element.
Returns: Element the element
@@ -478,7 +479,7 @@ If key is not provided, removes all the data of the element. handler for the eventReturns: object Element
-Gets or sets transformation of the element
Returns: object Element
-Creates <use>
element linked to the current element.
Returns: Element <use>
element
See Element.select
-Returns: number y
See Paper.g
-Draws a polygon. See Paper.polyline
-Draws a rectangle.
@@ -1042,7 +1043,7 @@ var c = paper.rect(10, 10, 50, 50); // rectangle with rounded corners var c = paper.rect(40, 40, 50, 50, 10); -Returns SVG code of the Paper.
Returns: string SVG code of the Paper.
@@ -1094,7 +1095,7 @@ Returns matrix based on given parameters.Returns: object Matrix
-Simple implementation of Ajax.
Returns: XMLHttpRequest XMLHttpRequest (just in case)
-Creates DOM fragment from given list of elements or strings
Returns: boolean is given value is of given type
-Loads external SVG file as a Fragment. For more advanced AJAX see Savage.ajax.
Parses SVG fragment and converts it into Fragment.