fabric.Point Class
Defined in:
Module: Classes
_common\_js\fabric\fabric.require.js:3906
Point class
Constructor
Methods
external:String#trim
()
Trims a string (removing whitespace from the beginning and the end)
(
-
element
-
eventName
-
handler
Adds an event listener to an element
Parameters:
-
element
HTMLElement -
eventName
String -
handler
Function
(
-
element
-
eventName
-
handler
Removes an event listener from an element
Parameters:
-
element
HTMLElement -
eventName
String -
handler
Function
(
Object
-
element
Returns offset for a given element
Parameters:
-
element
HTMLElementElement to get offset for
Returns:
Object:
Object with "left" and "top" properties
(
Array
static
-
attributeValue
Parses "transform" attribute, returning an array of values
Parameters:
-
attributeValue
StringString containing attribute value
Returns:
Array:
Array of 6 elements representing transformation matrix
(
static
-
doc
-
callback
-
[reviver]
Parses an SVG document, converts it to an array of corresponding fabric.* instances and passes them to a callback