File Index
-fabric.js
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)- HTML template: Codeview 1.1.1 +
-
+
+
+
+
+
File Index
++ +
src/circle.class.js
--
+
-
-
fabric.js
- - - --
-
-
-
-
-
-
-
- -
-
src/circle.class.js
- - - --
-
-
-
-
-
-
-
- -
-
src/color.class.js
- - - --
-
-
-
-
-
-
-
- -
-
src/element.class.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/ellipse.class.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/group.class.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/image.class.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/intersection.class.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/line.class.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/object.class.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/parser.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/path.class.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/path_group.class.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/point.class.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/polygon.class.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/polyline.class.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/rect.class.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/scout.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/text.class.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/triangle.class.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/util.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/util/dom_event.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/util/dom_misc.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/util/dom_request.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/util/dom_style.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/util/lang_array.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/util/lang_class.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/util/lang_function.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/util/lang_object.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/util/lang_string.js
- - - --
-
-
-
-
-
-
-
-
- -
-
src/util/misc.js
- - - --
-
-
-
-
-
-
-
-
-
-
-
+ +
src/color.class.js
+ +-
+
+
+
+
+
+ +
src/element.class.js
+ +-
+
+
+
+
+
+ +
src/ellipse.class.js
+ +-
+
+
+
+
+
+ +
src/group.class.js
+ +-
+
+
+
+
+
+ +
src/image.class.js
+ +-
+
+
+
+
+
+ +
src/intersection.class.js
+ +-
+
+
+
+
+
+ +
src/line.class.js
+ +-
+
+
+
+
+
+ +
src/object.class.js
+ +-
+
+
+
+
+
+ +
src/parser.js
+ +-
+
+
+
+
+
+ +
src/path.class.js
+ +-
+
+
+
+
+
+ +
src/path_group.class.js
+ +-
+
+
+
+
+
+ +
src/point.class.js
+ +-
+
+
+
+
+
+ +
src/polygon.class.js
+ +-
+
+
+
+
+
+ +
src/polyline.class.js
+ +-
+
+
+
+
+
+ +
src/rect.class.js
+ +-
+
+
+
+
+
+ +
src/scout.js
+ +-
+
+
+
+
+
+ +
src/text.class.js
+ +-
+
+
+
+
+
+ +
src/triangle.class.js
+ +-
+
+
+
+
+
+ +
src/util.js
+ +-
+
+
+
+
+
+ +
src/util/dom_event.js
+ +-
+
+
+
+
+
+ +
src/util/dom_misc.js
+ +-
+
+
+
+
+
+ +
src/util/dom_request.js
+ +-
+
+
+
+
+
+ +
src/util/dom_style.js
+ +-
+
+
+
+
+
+ +
src/util/lang_array.js
+ +-
+
+
+
+
+
+ +
src/util/lang_class.js
+ +-
+
+
+
+
+
+ +
src/util/lang_function.js
+ +-
+
+
+
+
+
+ +
src/util/lang_object.js
+ +-
+
+
+
+
+
+ +
src/util/lang_string.js
+ +-
+
+
+
+
+
+ +
src/util/misc.js
+ +-
+
+
+
+
+
+ + +
Classes
- ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
- HTML template: Codeview 1.1.1 -
Class Index
+Class Index
+ + +_global_
--
-
-
-
-
_global_
- -
-
- -
-
Array
- -
-
- -
-
fabric.Circle
-Circle
-
-
- -
-
fabric.Color
-Color
-
-
- -
-
fabric.Element
-fabric.Element
-
-
- -
-
fabric.Element#cache
- -
-
- -
-
fabric.Ellipse
-Ellipse
-
-
- -
-
fabric.Group
-Group
-
-
- -
-
fabric.Image
-Image
-
-
- -
-
fabric.Intersection
-Intersection
-
-
- -
-
fabric.Line
-Line
-
-
- -
-
fabric.Object
-Object
-
-
- -
-
fabric.Path
-Path
-
-
- -
-
fabric.PathGroup
-PathGroup
-
-
- -
-
fabric.Point
- -
-
- -
-
fabric.Polygon
-Polygon
-
-
- -
-
fabric.Polyline
-Polyline
-
-
- -
-
fabric.Rect
-Rect
-
-
- -
-
fabric.Text
-Text
-
-
- -
-
fabric.Triangle
-Triangle
-
-
- -
-
fabric.util
- -
-
- -
-
fabric.util.array
- -
-
- -
-
fabric.util.object
-fabric.util.object
-
-
- -
-
fabric.util.string
- -
-
- -
-
Function
- -
-
- -
-
String
- -
-
-
+ +
Array
+ ++ +
fabric
+ ++ +
fabric.Circle
+ Circle ++ +
fabric.Color
+ Color ++ +
fabric.Element
+ fabric.Element ++ +
fabric.Element#cache
+ ++ +
fabric.Ellipse
+ Ellipse ++ +
fabric.Group
+ Group ++ +
fabric.Image
+ Image ++ +
fabric.Intersection
+ Intersection ++ +
fabric.Line
+ Line ++ +
fabric.Object
+ Object ++ +
fabric.Path
+ Path ++ +
fabric.PathGroup
+ PathGroup ++ +
fabric.Point
+ ++ +
fabric.Polygon
+ Polygon ++ +
fabric.Polyline
+ Polyline ++ +
fabric.Rect
+ Rect ++ +
fabric.Text
+ Text ++ +
fabric.Triangle
+ Triangle ++ +
fabric.util
+ ++ +
fabric.util.array
+ ++ +
fabric.util.object
+ fabric.util.object ++ +
fabric.util.string
+ ++ +
Function
+ ++ +
String
+ ++ + +
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Built-In Namespace Array +
- -+ + -
- HTML template: Codeview 1.1.1 -
+ + + + + + + + + + + + + + +
| Method Attributes | +Method Name and Description | +
|---|---|
| + |
+ every(fn, context)
+
+
+ |
+
| + |
+ filter(fn, context)
+
+
+ |
+
| + |
+ forEach(fn, context)
+
+
+ |
+
| + |
+ indexOf(value, from)
+
+
+ |
+
| + |
+ map(fn, context)
+
+
+ |
+
| + |
+ reduce(fn)
+
+
+ |
+
| + |
+ some(fn, context)
+
+
+ |
+
| Method Attributes | -Method Name and Description | -
|---|---|
| - |
- every(fn, context)
-
-
- |
-
| - |
- filter(fn, context)
-
-
- |
-
| - |
- forEach(fn, context)
-
-
- |
-
| - |
- indexOf(value, from)
-
-
- |
-
| - |
- map(fn, context)
-
-
- |
-
| - |
- reduce(fn)
-
-
- |
-
| - |
- some(fn, context)
-
-
- |
-
- Defined in: lang_array.js. - - - -
-
-
- Parameters: - -
- - fn - - - - -
- - context - - - - -
- Defined in: lang_array.js. - - - -
-
-
- Parameters: - -
- - fn - - - - -
- - context - - - - -
- Defined in: lang_array.js. - - - -
-
-
- Parameters: - -
- - fn - - - - -
- - context - - - - -
- Defined in: lang_array.js. - - - -
-
-
- Parameters: - -
- - value - - - - -
- - from - - - - -
- Defined in: lang_array.js. - - - -
-
-
- Parameters: - -
- - fn - - - - -
- - context - - - - -
- Defined in: lang_array.js. - - - -
-
-
- Parameters: - -
- - fn - - - - -
- Defined in: lang_array.js. - - - -
-
-
- Parameters: - -
- - fn - - - - -
- - context - - - - -
+ Defined in: lang_array.js. + + +
-
+
- Parameters: + +
- + fn + + + + +
- + context + + + + +
+ +
+ Defined in: lang_array.js. + + +
-
+
- Parameters: + +
- + fn + + + + +
- + context + + + + +
- + +
+ Defined in: lang_array.js. + + +
-
+
- Parameters: + +
- + fn + + + + +
- + context + + + + +
-
+ Defined in: lang_array.js. + + +
-
+
- Parameters: + +
- + value + + + + +
- + from + + + + +
+ + +
+ Defined in: lang_array.js. + + +
-
+
- Parameters: + +
- + fn + + + + +
- + context + + + + +
+ + +
+ Defined in: lang_array.js. + + +
-
+
- Parameters: + +
- + fn + + + + +
+ + +
+ Defined in: lang_array.js. + + +
-
+
- Parameters: + +
- + fn + + + + +
- + context + + + + +
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Built-In Namespace Function +
- -+ + -
- HTML template: Codeview 1.1.1 -
+ + + + + + + + + + + + + + +
| Method Attributes | +Method Name and Description | +
|---|
| Method Attributes | -Method Name and Description | -
|---|---|
| - |
- bind(thisArg)
-
- Cross-browser approximation of ES5 Function.prototype.bind (not fully spec conforming)
- |
-
- Defined in: lang_function.js. - - - -
-
-
- Parameters: - -
- - {Object} thisArg - - -
- Object to bind function to - -
- - {Any[]} ... - Optional - -
- Values to pass to a bound function - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Function} - - - - - - -
- See: - -
- Function#bind on MDN - - - -
+ Defined in: lang_function.js. + + +
-
+
- Parameters: + +
- + {Object} thisArg + + +
- Object to bind function to + +
- + {Any[]} ... + Optional + +
- Values to pass to a bound function + +
-
+
- Returns: + +
- {Function} + +
-
+
- See: + +
- Function#bind on MDN + +
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Built-In Namespace String +
- -+ + -
- HTML template: Codeview 1.1.1 -
+ + + + + + + + + + + + + + +
| Method Attributes | +Method Name and Description | +
|---|
| Method Attributes | -Method Name and Description | -
|---|---|
| - |
- trim()
-
- Trims a string (removing whitespace from the beginning and the end)
- |
-
- Defined in: lang_string.js. - - - -
+ Defined in: lang_string.js. + + +
-
+
- See: + +
- String#trim on MDN + +
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Built-In Namespace _global_ +
- -+ + -
- HTML template: Codeview 1.1.1 -
- - Built-In Namespace _global_ -
- -- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Class fabric.Circle +
+ + +
+
+
Extends
+ fabric.Object.
+
+
+ Circle
+
+
+
Defined in: circle.class.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ fabric.Circle()
+
+
+ |
+
| Field Attributes | +Field Name and Description | +
|---|---|
| <static> | +
+
+ fabric.Circle.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Circle.fromElement`)
+ |
+
| + |
+
+ type
+
+
+ |
+
-
+
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties +
| Method Attributes | +Method Name and Description | +
|---|---|
| + |
+ complexity()
+
+ Returns complexity of an instance
+ |
+
| <static> | +
+ fabric.Circle.fromElement(element, options)
+
+ Returns fabric.Circle instance from an SVG element
+ |
+
| <static> | +
+ fabric.Circle.fromObject(object)
+
+ Returns fabric.Circle instance from an object representation
+ |
+
| + |
+ initialize(options)
+
+ Constructor
+ |
+
| + |
+ toObject()
+
+ Returns object representation of an instance
+ |
+
-
+
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform +
- HTML template: Codeview 1.1.1 -
+ + +
-
+
- Returns: + +
- {Number} complexity of this instance + +
+ + +
-
+
- Parameters: + +
- + element + + +
- {SVGElement} element to parse + +
- + options + + +
- {Object} options object + +
-
+
- Throws: + +
- + {Error} + +
- If value of `r` attribute is missing or invalid + +
-
+
- Returns: + +
- {Object} instance of fabric.Circle + +
+ + +
-
+
- Parameters: + +
- + {Object} object + + +
- Object to create an instance from + +
-
+
- Returns: + +
- {Object} Instance of fabric.Circle + +
+ + +
-
+
- Parameters: + +
- + {Object} options + Optional + +
- Options object + +
-
+
- Returns: + +
- {fabric.Circle} thisArg + +
+ + +
-
+
- Returns: + +
- {Object} object representation of an instance + +
- - Class fabric .Circle -
- -- Circle -
- - - --
-
-
-
-
- Defined in: circle.class.js - - -
- Extends - fabric.Object - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - |
-
- fabric.Circle()
-
-
- |
-
| Field Attributes | -Field Name and Description | -
|---|---|
| <static> | -
-
- fabric.Circle.ATTRIBUTE_NAMES
-
- List of attribute names to account for when parsing SVG element (used by `fabric.Circle.fromElement`)
- |
-
| - |
-
- type
-
-
- |
-
-
-
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties -
| Method Attributes | -Method Name and Description | -
|---|---|
| - |
- complexity()
-
- Returns complexity of an instance
- |
-
| <static> | -
- fabric.Circle.fromElement(element, options)
-
- Returns fabric.Circle instance from an SVG element
- |
-
| <static> | -
- fabric.Circle.fromObject(object)
-
- Returns fabric.Circle instance from an object representation
- |
-
| - |
- initialize(options)
-
- Constructor
- |
-
| - |
- toObject()
-
- Returns object representation of an instance
- |
-
-
-
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Number} complexity of this instance - - - - - - - -
-
-
- Parameters: - -
- - element - - -
- {SVGElement} element to parse - -
- - options - - -
- {Object} options object - -
-
-
-
-
-
-
-
-
- Throws: - -
- - {Error} - -
- If value of `r` attribute is missing or invalid - - - - -
- Returns: - -
- {Object} instance of fabric.Circle - - - - - - - -
-
-
- Parameters: - -
- - {Object} object - - -
- Object to create an instance from - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} Instance of fabric.Circle - - - - - - - -
-
-
- Parameters: - -
- - {Object} options - Optional - -
- Options object - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Circle} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} object representation of an instance - - - - - - - -
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Class fabric.Color +
+ + +
+
+
+
+ Color
+
+
+
Defined in: color.class.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ fabric.Color(color)
+
+ The purpose of fabric.Color is to abstract and encapsulate common color operations;
+fabric.Color is a constructor and creates instances of fabric.Color objects.
+ |
+
| Field Attributes | +Field Name and Description | +
|---|---|
| <static> | +
+
+ fabric.Color.reHex
+
+ Regex matching color in HEX format (ex: #FF5555, 010155, aff)
+ |
+
| <static> | +
+
+ fabric.Color.reRGBa
+
+ Regex matching color in RGB or RGBA formats (ex: rgb(0, 0, 0), rgb(255, 100, 10, 0.5), rgb(1,1,1))
+ |
+
| Method Attributes | +Method Name and Description | +
|---|---|
| <static> | +
+ fabric.Color.fromHex(color)
+
+ Returns new color object, when given a color in HEX format
+ |
+
| <static> | +
+ fabric.Color.fromRgb(color)
+
+ Returns new color object, when given a color in RGB format
+ |
+
| <static> | +
+ fabric.Color.fromRgba(color)
+
+ Returns new color object, when given a color in RGBA format
+ |
+
| <static> | +
+ fabric.Color.fromSource(source)
+
+ Returns new color object, when given color in array representation (ex: [200, 100, 100, 0.5])
+ |
+
| + |
+ getAlpha()
+
+ Gets value of alpha channel for this color
+ |
+
| + |
+ getSource()
+
+ Returns source of this color (where source is an array representation; ex: [200, 200, 100, 1])
+ |
+
| + |
+ overlayWith(otherColor)
+
+ Overlays color with another color
+ |
+
| + |
+ setAlpha(0-1)
+
+ Sets value of alpha channel for this color
+ |
+
| + |
+ setSource(source)
+
+ Sets source of this color (where source is an array representation; ex: [200, 200, 100, 1])
+ |
+
| <static> | +
+ fabric.Color.sourceFromHex(color)
+
+ Returns array represenatation (ex: [100, 100, 200, 1]) of a color that's in HEX format
+ |
+
| <static> | +
+ fabric.Color.sourceFromRgb(color)
+
+ Returns array represenatation (ex: [100, 100, 200, 1]) of a color that's in RGB or RGBA format
+ |
+
| + |
+ toBlackWhite(threshold)
+
+ Transforms color to its black and white representation
+ |
+
| + |
+ toGrayscale()
+
+ Transforms color to its grayscale representation
+ |
+
| + |
+ toHex()
+
+ Returns color represenation in HEX format
+ |
+
| + |
+ toRgb()
+
+ Returns color represenation in RGB format
+ |
+
| + |
+ toRgba()
+
+ Returns color represenation in RGBA format
+ |
+
-
+
- Parameters: + +
- + {String} color + + +
- (optional) in hex or rgb(a) format + +
- HTML template: Codeview 1.1.1 -
+ + +
-
+
- Parameters: + +
- + color + + + + +
-
+
- Returns: + +
- {fabric.Color} + +
+ + +
-
+
- Parameters: + +
- + {String} color + + +
- ex: rgb(0-255,0-255,0-255) + +
-
+
- Returns: + +
- {fabric.Color} + +
+ + +
-
+
- Parameters: + +
- + {String} color + + + + +
-
+
- Returns: + +
- {fabric.Color} + +
+ + +
-
+
- Parameters: + +
- + source + + + + +
-
+
- Returns: + +
- {fabric.Color} + +
+ + +
-
+
- Returns: + +
- {Number} 0-1 + +
+ + +
-
+
- Returns: + +
- {Array} + +
+ + +
-
+
- Parameters: + +
- + {String|fabric.Color} otherColor + + + + +
-
+
- Returns: + +
- {fabric.Color} thisArg + +
+ + +
-
+
- Parameters: + +
- + {Number} 0-1 + + + + +
-
+
- Returns: + +
- {fabric.Color} thisArg + +
+ + +
-
+
- Parameters: + +
- + {Array} source + + + + +
+ + +
-
+
- Parameters: + +
- + {String} color + + +
- ex: FF5555 + +
-
+
- Returns: + +
- {Array} source + +
+ + +
-
+
- Parameters: + +
- + {String} color + + +
- ex: rgb(0-255,0-255,0-255) + +
-
+
- Returns: + +
- {Array} source + +
+ + +
-
+
- Parameters: + +
- + threshold + + + + +
-
+
- Returns: + +
- {fabric.Color} thisArg + +
+ + +
-
+
- Returns: + +
- {fabric.Color} thisArg + +
+ + +
-
+
- Returns: + +
- {String} ex: FF5555 + +
+ + +
-
+
- Returns: + +
- {String} ex: rgb(0-255,0-255,0-255) + +
+ + +
-
+
- Returns: + +
- {String} ex: rgba(0-255,0-255,0-255,0-1) + +
- - Class fabric .Color -
- -- Color -
- - - --
-
-
-
-
- Defined in: color.class.js - - - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - |
-
- fabric.Color(color)
-
- The purpose of fabric.Color is to abstract and encapsulate common color operations;
-fabric.Color is a constructor and creates instances of fabric.Color objects.
- |
-
| Field Attributes | -Field Name and Description | -
|---|---|
| <static> | -
-
- fabric.Color.reHex
-
- Regex matching color in HEX format (ex: #FF5555, 010155, aff)
- |
-
| <static> | -
-
- fabric.Color.reRGBa
-
- Regex matching color in RGB or RGBA formats (ex: rgb(0, 0, 0), rgb(255, 100, 10, 0.5), rgb(1,1,1))
- |
-
| Method Attributes | -Method Name and Description | -
|---|---|
| <static> | -
- fabric.Color.fromHex(color)
-
- Returns new color object, when given a color in HEX format
- |
-
| <static> | -
- fabric.Color.fromRgb(color)
-
- Returns new color object, when given a color in RGB format
- |
-
| <static> | -
- fabric.Color.fromRgba(color)
-
- Returns new color object, when given a color in RGBA format
- |
-
| <static> | -
- fabric.Color.fromSource(source)
-
- Returns new color object, when given color in array representation (ex: [200, 100, 100, 0.5])
- |
-
| - |
- getAlpha()
-
- Gets value of alpha channel for this color
- |
-
| - |
- getSource()
-
- Returns source of this color (where source is an array representation; ex: [200, 200, 100, 1])
- |
-
| - |
- overlayWith(otherColor)
-
- Overlays color with another color
- |
-
| - |
- setAlpha(0-1)
-
- Sets value of alpha channel for this color
- |
-
| - |
- setSource(source)
-
- Sets source of this color (where source is an array representation; ex: [200, 200, 100, 1])
- |
-
| <static> | -
- fabric.Color.sourceFromHex(color)
-
- Returns array represenatation (ex: [100, 100, 200, 1]) of a color that's in HEX format
- |
-
| <static> | -
- fabric.Color.sourceFromRgb(color)
-
- Returns array represenatation (ex: [100, 100, 200, 1]) of a color that's in RGB or RGBA format
- |
-
| - |
- toBlackWhite(threshold)
-
- Transforms color to its black and white representation
- |
-
| - |
- toGrayscale()
-
- Transforms color to its grayscale representation
- |
-
| - |
- toHex()
-
- Returns color represenation in HEX format
- |
-
| - |
- toRgb()
-
- Returns color represenation in RGB format
- |
-
| - |
- toRgba()
-
- Returns color represenation in RGBA format
- |
-
-
-
- Parameters: - -
- - {String} color - - -
- (optional) in hex or rgb(a) format - -
-
-
- Parameters: - -
- - color - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Color} - - - - - - - -
-
-
- Parameters: - -
- - {String} color - - -
- ex: rgb(0-255,0-255,0-255) - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Color} - - - - - - - -
-
-
- Parameters: - -
- - {String} color - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Color} - - - - - - - -
-
-
- Parameters: - -
- - source - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Color} - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Number} 0-1 - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Array} - - - - - - - -
-
-
- Parameters: - -
- - {String|fabric.Color} otherColor - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Color} thisArg - - - - - - - -
-
-
- Parameters: - -
- - {Number} 0-1 - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Color} thisArg - - - - - - - -
-
-
- Parameters: - -
- - {Array} source - - - - -
-
-
- Parameters: - -
- - {String} color - - -
- ex: FF5555 - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Array} source - - - - - - - -
-
-
- Parameters: - -
- - {String} color - - -
- ex: rgb(0-255,0-255,0-255) - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Array} source - - - - - - - -
-
-
- Parameters: - -
- - threshold - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Color} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Color} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {String} ex: FF5555 - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {String} ex: rgb(0-255,0-255,0-255) - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {String} ex: rgba(0-255,0-255,0-255,0-1) - - - - - - - -
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Namespace fabric.Element#cache +
+ + +
+
+
+
+
+
+
+
Defined in: element.class.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ Used for caching SVG documents (loaded via `fabric.Element#loadSVGFromURL`)
+ |
+
| Method Attributes | +Method Name and Description | +
|---|---|
| <static> | +
+ fabric.Element#cache.get(url, callback)
+
+
+ |
+
| <static> | +
+ fabric.Element#cache.has(name, callback)
+
+
+ |
+
| <static> | +
+ fabric.Element#cache.set(url, object)
+
+
+ |
+
- HTML template: Codeview 1.1.1 -
+ + +
+ + +
-
+
- Parameters: + +
- + {String} url + + + + +
- + {Object} object + + + + +
- - Namespace fabric .Element#cache -
- -- -
- - - --
-
-
-
-
- Defined in: element.class.js - - - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - | - - - | -
| Method Attributes | -Method Name and Description | -
|---|---|
| <static> | -
- fabric.Element#cache.get(url, callback)
-
-
- |
-
| <static> | -
- fabric.Element#cache.has(name, callback)
-
-
- |
-
| <static> | -
- fabric.Element#cache.set(url, object)
-
-
- |
-
-
-
- Parameters: - -
- - {String} url - - - - -
- - {Object} object - - - - -
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Class fabric.Element +
+ + +
+
+
+
+ fabric.Element
+
+
+
Defined in: element.class.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ fabric.Element(el, options)
+
+
+ |
+
| Field Attributes | +Field Name and Description | +
|---|---|
| + |
+
+ backgroundColor
+
+ Background color of this canvas instance
+ |
+
| <constant> | +
+
+ CANVAS_HEIGHT
+
+
+ |
+
| <constant> | +
+
+ CANVAS_WIDTH
+
+
+ |
+
| <static> | +
+
+ fabric.Element.EMPTY_JSON
+
+
+ |
+
| + |
+
+ freeDrawingColor
+
+ Color of the line used in free drawing mode
+ |
+
| + |
+
+ Width of a line used in free drawing mode
+ |
+
| + | + + + | +
| + |
+
+ Color of the border of selection (usually slightly darker than color of selection itself)
+ |
+
| + |
+
+ selectionColor
+
+ Color of selection
+ |
+
| + |
+
+ Width of a line used in selection
+ |
+
| + |
+
+ Indicates whether images loaded via `fabric.Element#loadImageFromUrl` should be cached
+ |
+
| Method Attributes | +Method Name and Description | +
|---|---|
| + |
+ add()
+
+ Adds objects to canvas, then renders canvas;
+Objects should be instances of (or inherit from) fabric.Object
+ |
+
| + |
+ bringForward(object)
+
+ Moves an object one level up in stack of drawn objects
+ |
+
| + |
+ bringToFront(object)
+
+ Moves an object to the top of the stack of drawn objects
+ |
+
| + |
+ calcOffset()
+
+ Calculates canvas element offset relative to the document
+This method is also attached as "resize" event handler of window
+ |
+
| + |
+ centerObjectH(object)
+
+ Centers object horizontally.
+ |
+
| + |
+ centerObjectV(object)
+
+ Centers object vertically.
+ |
+
| + |
+ clear()
+
+ Clears all contexts (background, main, top) of an instance
+ |
+
| + |
+ clearContext(context)
+
+ Clears specified context of canvas element
+ |
+
| + |
+ clone(callback)
+
+ Clones canvas instance
+ |
+
| + |
+ complexity()
+
+ Returns number representation of an instance complexity
+ |
+
| + |
+ containsPoint(e, target)
+
+ Applies one implementation of 'point inside polygon' algorithm
+ |
+
| + |
+ deactivateAll()
+
+ Deactivates all objects by calling their setActive(false)
+ |
+
| + |
+
+ Deactivates all objects and dispatches appropriate events
+ |
+
| + |
+ dispose()
+
+ Clears a canvas element and removes all event handlers.
+ |
+
| + |
+ findTarget(e, skipGroup)
+
+ Method that determines what object we are clicking on
+ |
+
| + |
+ fxCenterObjectH(object, callbacks)
+
+ Centers object horizontally with animation.
+ |
+
| + |
+ fxCenterObjectV(object, callbacks)
+
+ Centers object vertically with animation.
+ |
+
| + |
+ fxRemove(object, callback)
+
+ Same as `fabric.Element#remove` but animated
+ |
+
| + |
+ fxStraightenObject(object)
+
+ Same as `fabric.Element#straightenObject`, but animated
+ |
+
| + |
+ getActiveGroup()
+
+ Returns currently active group
+ |
+
| + |
+ getActiveObject()
+
+ Returns currently active object
+ |
+
| + |
+ getCenter()
+
+ Returns coordinates of a center of canvas.
+ |
+
| + |
+ getContext()
+
+ Returns topmost canvas context
+ |
+
| + |
+ getElement()
+
+ Returns <canvas> element corresponding to this instance
+ |
+
| + |
+ getHeight()
+
+ Returns canvas height
+ |
+
| + |
+ getObjects()
+
+ Returns an array of objects this instance has
+ |
+
| + |
+ getPointer(e)
+
+ Returns pointer coordinates relative to canvas.
+ |
+
| + |
+ getWidth()
+
+ Returns canvas width
+ |
+
| + |
+ insertAt(object, index)
+
+ Inserts an object to canvas at specified index and renders canvas.
+ |
+
| + |
+ isEmpty()
+
+ Returns true if canvas contains no objects
+ |
+
| + |
+ item(index)
+
+ Returns object at specified index
+ |
+
| + |
+ loadFromDatalessJSON(json, callback)
+
+ Populates canvas with data from the specified dataless JSON
+JSON format must conform to the one of `fabric.Element#toDatalessJSON`
+ |
+
| + |
+ loadFromJSON(json, callback)
+
+ Populates canvas with data from the specified JSON
+JSON format must conform to the one of `fabric.Element#toJSON`
+ |
+
| + |
+ loadImageFromURL(url, callback)
+
+ Loads an image from URL, creates an instance of fabric.Image and passes it to a callback
+ |
+
| + |
+ loadSVGFromURL(url, callback)
+
+ Takes url corresponding to an SVG document, and parses it to a set of objects
+ |
+
| + |
+ onBeforeScaleRotate(target)
+
+ Callback; invoked right before object is about to be scaled/rotated
+ |
+
| + |
+ onFpsUpdate(fps)
+
+ Callback; invoked on every redraw of canvas and is being passed a number indicating current fps
+ |
+
| + |
+ remove(object)
+
+ Removes an object from canvas and returns it
+ |
+
| + |
+
+ Removes currently active group
+ |
+
| + |
+
+ Removes currently active object
+ |
+
| + |
+ renderAll(allOnTop)
+
+ Renders both the top canvas and the secondary container canvas.
+ |
+
| + |
+ renderTop()
+
+ Method to render only the top canvas.
+ |
+
| + |
+ sendBackwards(object)
+
+ Moves an object one level down in stack of drawn objects
+ |
+
| + |
+ sendToBack(object)
+
+ Moves an object to the bottom of the stack of drawn objects
+ |
+
| + |
+ setActiveGroup(group)
+
+ Sets active group to a speicified one
+ |
+
| + |
+ setActiveObject(object)
+
+ Sets given object as active
+ |
+
| + |
+ setDimensions(dimensions)
+
+ Sets dimensions (width, height) of this canvas instance
+ |
+
| + |
+ setHeight(height)
+
+ Sets height of this canvas instance
+ |
+
| + |
+ setOverlayImage(url, callback)
+
+ Sets overlay image for this canvas
+ |
+
| + |
+ setWidth(width)
+
+ Sets width of this canvas instance
+ |
+
| + |
+ straightenObject(object)
+
+ Straightens object, then rerenders canvas
+ |
+
| <static> | +
+ fabric.Element.supports(methodName)
+
+ Provides a way to check support of some of the canvas methods
+(either those of HTMLCanvasElement itself, or rendering context)
+ |
+
| + |
+ toDatalessJSON()
+
+ Returs dataless JSON representation of canvas
+ |
+
| + |
+ toDatalessObject()
+
+ Returns dataless object representation of canvas
+ |
+
| + |
+ toDataURL(format)
+
+ Exports canvas element to a dataurl image.
+ |
+
| + |
+ toDataURLWithMultiplier(format, multiplier)
+
+ Exports canvas element to a dataurl image (allowing to change image size via multiplier).
+ |
+
| <static> | +
+ fabric.Element.toGrayscale(canvasEl)
+
+ Takes <canvas> element and transforms its data in such way that it becomes grayscale
+ |
+
| + |
+ toJSON()
+
+ Returs JSON representation of canvas
+ |
+
| + |
+ toObject()
+
+ Returns object representation of canvas
+ |
+
| + |
+ toString()
+
+ Returns a string representation of an instance
+ |
+
-
+
- Parameters: + +
- + {HTMLElement | String} el + + +
- <canvas> element to initialize instance on + +
- + {Object} options + Optional + +
- Options object + +
- HTML template: Codeview 1.1.1 -
+
+
+
+ {String}
+ backgroundColor
- Class fabric .Element
-
-
-
- fabric.Element
-
-
-
-
-
-
-
-
- - Defined in: element.class.js
-
-
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Element(el, options)
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
- <static>
-
-
- fabric.Element.ATTRIBUTE_NAMES
-
-
-
-
-
-
-
-
-
- backgroundColor
-
-
-
-
-
-
- <constant>
-
-
- CANVAS_HEIGHT
-
-
-
-
-
-
- <constant>
-
-
- CANVAS_WIDTH
-
-
-
-
-
-
- <static>
-
-
- fabric.Element.EMPTY_JSON
-
-
-
-
-
-
-
-
-
- freeDrawingColor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- selectionColor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- add()
-
- Adds objects to canvas, then renders canvas;
-Objects should be instances of (or inherit from) fabric.Object
-
-
-
-
-
-
- bringForward(object)
-
- Moves an object one level up in stack of drawn objects
-
-
-
-
-
-
- bringToFront(object)
-
- Moves an object to the top of the stack of drawn objects
-
-
-
-
-
-
- calcOffset()
-
- Calculates canvas element offset relative to the document
-This method is also attached as "resize" event handler of window
-
-
-
-
-
-
- centerObjectH(object)
-
- Centers object horizontally.
-
-
-
-
-
-
- centerObjectV(object)
-
- Centers object vertically.
-
-
-
-
-
-
- clear()
-
- Clears all contexts (background, main, top) of an instance
-
-
-
-
-
-
- clearContext(context)
-
- Clears specified context of canvas element
-
-
-
-
-
-
- clone(callback)
-
- Clones canvas instance
-
-
-
-
-
-
- complexity()
-
- Returns number representation of an instance complexity
-
-
-
-
-
-
- containsPoint(e, target)
-
- Applies one implementation of 'point inside polygon' algorithm
-
-
-
-
-
-
- deactivateAll()
-
- Deactivates all objects by calling their setActive(false)
-
-
-
-
-
-
-
- Deactivates all objects and dispatches appropriate events
-
-
-
-
-
-
- dispose()
-
- Clears a canvas element and removes all event handlers.
-
-
-
-
-
-
- findTarget(e, skipGroup)
-
- Method that determines what object we are clicking on
-
-
-
-
-
-
- fxCenterObjectH(object, callbacks)
-
- Centers object horizontally with animation.
-
-
-
-
-
-
- fxCenterObjectV(object, callbacks)
-
- Centers object vertically with animation.
-
-
-
-
-
-
- fxRemove(object, callback)
-
- Same as `fabric.Element#remove` but animated
-
-
-
-
-
-
- fxStraightenObject(object)
-
- Same as `fabric.Element#straightenObject`, but animated
-
-
-
-
-
-
- getActiveGroup()
-
- Returns currently active group
-
-
-
-
-
-
- getActiveObject()
-
- Returns currently active object
-
-
-
-
-
-
- getCenter()
-
- Returns coordinates of a center of canvas.
-
-
-
-
-
-
- getContext()
-
- Returns topmost canvas context
-
-
-
-
-
-
- getElement()
-
- Returns <canvas> element corresponding to this instance
-
-
-
-
-
-
- getHeight()
-
- Returns canvas height
-
-
-
-
-
-
- getObjects()
-
- Returns an array of objects this instance has
-
-
-
-
-
-
- getPointer(e)
-
- Returns pointer coordinates relative to canvas.
-
-
-
-
-
-
- getWidth()
-
- Returns canvas width
-
-
-
-
-
-
- insertAt(object, index)
-
- Inserts an object to canvas at specified index and renders canvas.
-
-
-
-
-
-
- isEmpty()
-
- Returns true if canvas contains no objects
-
-
-
-
-
-
- item(index)
-
- Returns object at specified index
-
-
-
-
-
-
- loadFromDatalessJSON(json, callback)
-
- Populates canvas with data from the specified dataless JSON
-JSON format must conform to the one of `fabric.Element#toDatalessJSON`
-
-
-
-
-
-
- loadFromJSON(json, callback)
-
- Populates canvas with data from the specified JSON
-JSON format must conform to the one of `fabric.Element#toJSON`
-
-
-
-
-
-
- loadImageFromURL(url, callback)
-
- Loads an image from URL
-
-
-
-
-
-
- loadSVGFromURL(url, callback)
-
- Takes url corresponding to an SVG document, and parses it to a set of objects
-
-
-
-
-
-
- onBeforeScaleRotate(target)
-
- Callback; invoked right before object is about to be scaled/rotated
-
-
-
-
-
-
- onFpsUpdate(fps)
-
- Callback; invoked on every redraw of canvas and is being passed a number indicating current fps
-
-
-
-
-
-
- remove(object)
-
- Removes an object from canvas and returns it
-
-
-
-
-
-
-
- Removes currently active group
-
-
-
-
-
-
-
- Removes currently active object
-
-
-
-
-
-
- renderAll(allOnTop)
-
- Renders both the top canvas and the secondary container canvas.
-
-
-
-
-
-
- renderTop()
-
- Method to render only the top canvas.
-
-
-
-
-
-
- sendBackwards(object)
-
- Moves an object one level down in stack of drawn objects
-
-
-
-
-
-
- sendToBack(object)
-
- Moves an object to the bottom of the stack of drawn objects
-
-
-
-
-
-
- setActiveGroup(group)
-
- Sets active group to a speicified one
-
-
-
-
-
-
- setActiveObject(object)
-
- Sets given object as active
-
-
-
-
-
-
- setDimensions(dimensions)
-
- Sets dimensions (width, height) of this canvas instance
-
-
-
-
-
-
- setHeight(height)
-
- Sets height of this canvas instance
-
-
-
-
-
-
- setOverlayImage(url, callback)
-
- Sets overlay image for this canvas
-
-
-
-
-
-
- setWidth(width)
-
- Sets width of this canvas instance
-
-
-
-
-
-
- straightenObject(object)
-
- Straightens object, then rerenders canvas
-
-
-
-
- <static>
-
- fabric.Element.supports(methodName)
-
- Provides a way to check support of some of the canvas methods
-(either those of HTMLCanvasElement itself, or rendering context)
-
-
-
-
-
-
- toDatalessJSON()
-
- Returs dataless JSON representation of canvas
-
-
-
-
-
-
- toDatalessObject()
-
- Returns dataless object representation of canvas
-
-
-
-
-
-
- toDataURL(format)
-
- Exports canvas element to a dataurl image.
-
-
-
-
-
-
- toDataURLWithMultiplier(format, multiplier)
-
- Exports canvas element to a dataurl image (allowing to change image size via multiplier).
-
-
-
-
- <static>
-
- fabric.Element.toGrayscale(canvasEl)
-
- Takes <canvas> element and transforms its data in such way that it becomes grayscale
-
-
-
-
-
-
- toJSON()
-
- Returs JSON representation of canvas
-
-
-
-
-
-
- toObject()
-
- Returns object representation of canvas
-
-
-
-
-
-
- toString()
-
- Returns a string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class Detail
-
-
-
- fabric.Element(el, options)
-
-
-
-
-
-
-
-
+
+ Background color of this canvas instance
+
-
-
- - Parameters:
-
- -
- {HTMLElement | String} el
-
-
- - <canvas> element to initialize instance on
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Element.ATTRIBUTE_NAMES
-
-
-
-
-
-
- Defined in: line.class.js.
-
-
-
-
-
-
-
-
-
-
-
-
-
- - See:
-
- - http://www.w3.org/TR/SVG/shapes.html#LineElement
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- backgroundColor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <constant>
-
-
- {Number}
-
- CANVAS_HEIGHT
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <constant>
-
-
- {Number}
-
- CANVAS_WIDTH
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- freeDrawingColor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- freeDrawingLineWidth
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- includeDefaultValues
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- selectionBorderColor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- selectionColor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- selectionLineWidth
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- shouldCacheImages
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ <constant>
+
+ {Number}
+ CANVAS_HEIGHT
+
-
+
+
+
+
+
+
+
-
+
+
+
+
+
+
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- add()
-
-
-
- Adds objects to canvas, then renders canvas;
+
+ <constant>
+
+ {Number}
+ CANVAS_WIDTH
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {String}
+ fabric.Element.EMPTY_JSON
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ freeDrawingColor
+
+
+
+ Color of the line used in free drawing mode
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ freeDrawingLineWidth
+
+
+
+ Width of a line used in free drawing mode
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ includeDefaultValues
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ selectionBorderColor
+
+
+
+ Color of the border of selection (usually slightly darker than color of selection itself)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ selectionColor
+
+
+
+ Color of selection
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ selectionLineWidth
+
+
+
+ Width of a line used in selection
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ shouldCacheImages
+
+
+
+ Indicates whether images loaded via `fabric.Element#loadImageFromUrl` should be cached
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {fabric.Element}
+ add()
+
+
+
+ Adds objects to canvas, then renders canvas;
Objects should be instances of (or inherit from) fabric.Object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- bringForward(object)
-
-
-
- Moves an object one level up in stack of drawn objects
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {fabric.Object} Object to send
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- bringToFront(object)
-
-
-
- Moves an object to the top of the stack of drawn objects
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {fabric.Object} Object to send
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- calcOffset()
-
-
-
- Calculates canvas element offset relative to the document
-This method is also attached as "resize" event handler of window
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- centerObjectH(object)
-
-
-
- Centers object horizontally.
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Object} object
-
-
- - Object to center
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- centerObjectV(object)
-
-
-
- Centers object vertically.
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Object} object
-
-
- - Object to center
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- clear()
-
-
-
- Clears all contexts (background, main, top) of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- clearContext(context)
-
-
-
- Clears specified context of canvas element
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- context
-
-
- - {Object} ctx context to clear
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- clone(callback)
-
-
-
- Clones canvas instance
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} callback
- Optional
-
- - Expects `onBeforeClone` and `onAfterClone` functions
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} Clone of this instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns number representation of an instance complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- containsPoint(e, target)
-
-
-
- Applies one implementation of 'point inside polygon' algorithm
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- e
-
-
- - { Event } event object
-
- -
- target
-
-
- - { fabric.Object } object to test against
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if point contains within area of given object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- deactivateAll()
-
-
-
- Deactivates all objects by calling their setActive(false)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- deactivateAllWithDispatch()
-
-
-
- Deactivates all objects and dispatches appropriate events
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- dispose()
-
-
-
- Clears a canvas element and removes all event handlers.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- findTarget(e, skipGroup)
-
-
-
- Method that determines what object we are clicking on
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Event} e
-
-
- - mouse event
-
- -
- {Boolean} skipGroup
-
-
- - when true, group is skipped and only objects are traversed through
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- fxCenterObjectH(object, callbacks)
-
-
-
- Centers object horizontally with animation.
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Object} object
-
-
- - Object to center
-
- -
- {Object} callbacks
- Optional
-
- - Callbacks object with optional "onComplete" and/or "onChange" properties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- fxCenterObjectV(object, callbacks)
-
-
-
- Centers object vertically with animation.
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Object} object
-
-
- - Object to center
-
- -
- {Object} callbacks
- Optional
-
- - Callbacks object with optional "onComplete" and/or "onChange" properties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- fxRemove(object, callback)
-
-
-
- Same as `fabric.Element#remove` but animated
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Object} object
-
-
- - Object to remove
-
- -
- {Function} callback
-
-
- - Callback, invoked on effect completion
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- fxStraightenObject(object)
-
-
-
- Same as `fabric.Element#straightenObject`, but animated
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Object} object
-
-
- - Object to straighten
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Group}
-
- getActiveGroup()
-
-
-
- Returns currently active group
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} Current group
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- getActiveObject()
-
-
-
- Returns currently active object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} active object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- getCenter()
-
-
-
- Returns coordinates of a center of canvas.
-Returned value is an object with top and left properties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object with "top" and "left" number values
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {CanvasRenderingContext2D}
-
- getContext()
-
-
-
- Returns topmost canvas context
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {CanvasRenderingContext2D}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {HTMLCanvasElement}
-
- getElement()
-
-
-
- Returns <canvas> element corresponding to this instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLCanvasElement}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- getHeight()
-
-
-
- Returns canvas height
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Array}
-
- getObjects()
-
-
-
- Returns an array of objects this instance has
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Array}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- getPointer(e)
-
-
-
- Returns pointer coordinates relative to canvas.
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- e
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object with "x" and "y" number values
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- getWidth()
-
-
-
- Returns canvas width
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- insertAt(object, index)
-
-
-
- Inserts an object to canvas at specified index and renders canvas.
-An object should be an instance of (or inherit from) fabric.Object
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {Object} Object to insert
-
- -
- index
-
-
- - {Number} index to insert object at
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- isEmpty()
-
-
-
- Returns true if canvas contains no objects
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if canvas is empty
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- item(index)
-
-
-
- Returns object at specified index
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} index
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- loadFromDatalessJSON(json, callback)
-
-
-
- Populates canvas with data from the specified dataless JSON
-JSON format must conform to the one of `fabric.Element#toDatalessJSON`
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} json
-
-
- - JSON string
-
- -
- {Function} callback
-
-
- - Callback, invoked when json is parsed
- and corresponding objects (e.g: fabric.Image)
- are initialized
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- loadFromJSON(json, callback)
-
-
-
- Populates canvas with data from the specified JSON
-JSON format must conform to the one of `fabric.Element#toJSON`
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} json
-
-
- - JSON string
-
- -
- {Function} callback
-
-
- - Callback, invoked when json is parsed
- and corresponding objects (e.g: fabric.Image)
- are initialized
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- loadImageFromURL(url, callback)
-
-
-
- Loads an image from URL
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- url
-
-
- - {String} url of image to load
-
- -
- callback
-
-
- - {Function} calback, invoked when image is loaded
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- loadSVGFromURL(url, callback)
-
-
-
- Takes url corresponding to an SVG document, and parses it to a set of objects
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- onBeforeScaleRotate(target)
-
-
-
- Callback; invoked right before object is about to be scaled/rotated
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Object} target
-
-
- - Object that's about to be scaled/rotated
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- onFpsUpdate(fps)
-
-
-
- Callback; invoked on every redraw of canvas and is being passed a number indicating current fps
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} fps
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- remove(object)
-
-
-
- Removes an object from canvas and returns it
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {Object} Object to remove
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} removed object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- removeActiveGroup()
-
-
-
- Removes currently active group
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- removeActiveObject()
-
-
-
- Removes currently active object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- renderAll(allOnTop)
-
-
-
- Renders both the top canvas and the secondary container canvas.
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- allOnTop
-
-
- - {Boolean} optional Whether we want to force all images to be rendered on the top canvas
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- renderTop()
-
-
-
- Method to render only the top canvas.
-Also used to render the group selection box.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- sendBackwards(object)
-
-
-
- Moves an object one level down in stack of drawn objects
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {fabric.Object} Object to send
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- sendToBack(object)
-
-
-
- Moves an object to the bottom of the stack of drawn objects
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {fabric.Object} Object to send to back
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- setActiveGroup(group)
-
-
-
- Sets active group to a speicified one
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Group} group
-
-
- - Group to set as a current one
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- setActiveObject(object)
-
-
-
- Sets given object as active
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {fabric.Object} Object to set as an active one
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- setDimensions(dimensions)
-
-
-
- Sets dimensions (width, height) of this canvas instance
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} dimensions
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- setHeight(height)
-
-
-
- Sets height of this canvas instance
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} height
-
-
- - value to set height to
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- setOverlayImage(url, callback)
-
-
-
- Sets overlay image for this canvas
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} url
-
-
- - url of an image to set background to
-
- -
- {Function} callback
-
-
- - callback to invoke when image is loaded and set as an overlay one
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- setWidth(width)
-
-
-
- Sets width of this canvas instance
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} width
-
-
- - value to set width to
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Element}
-
- straightenObject(object)
-
-
-
- Straightens object, then rerenders canvas
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Object} object
-
-
- - Object to straighten
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Element} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {Boolean | null}
-
- fabric.Element.supports(methodName)
-
-
-
- Provides a way to check support of some of the canvas methods
-(either those of HTMLCanvasElement itself, or rendering context)
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- methodName
-
-
- - {String} Method to check support for;
- Could be one of "getImageData" or "toDataURL"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean | null} `true` if method is supported (or at least exists),
- `null` if canvas element or context can not be initialized
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toDatalessJSON()
-
-
-
- Returs dataless JSON representation of canvas
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} json string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toDatalessObject()
-
-
-
- Returns dataless object representation of canvas
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toDataURL(format)
-
-
-
- Exports canvas element to a dataurl image.
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} format
-
-
- - the format of the output image. Either "jpeg" or "png".
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toDataURLWithMultiplier(format, multiplier)
-
-
-
- Exports canvas element to a dataurl image (allowing to change image size via multiplier).
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} format
-
-
- - (png|jpeg)
-
- -
- {Number} multiplier
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Element.toGrayscale(canvasEl)
-
-
-
- Takes <canvas> element and transforms its data in such way that it becomes grayscale
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLCanvasElement} canvasEl
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toJSON()
-
-
-
- Returs JSON representation of canvas
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} json string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns object representation of canvas
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns a string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ bringForward(object)
+
+
+
+ Moves an object one level up in stack of drawn objects
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+ - {fabric.Object} Object to send
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
-
+
+
+
+ {fabric.Element}
+ bringToFront(object)
+
+
+
+ Moves an object to the top of the stack of drawn objects
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+ - {fabric.Object} Object to send
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
-
+
+
+
+ {fabric.Element}
+ calcOffset()
+
+
+
+ Calculates canvas element offset relative to the document
+This method is also attached as "resize" event handler of window
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} instance
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ centerObjectH(object)
+
+
+
+ Centers object horizontally.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Object} object
+
+
+ - Object to center
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ centerObjectV(object)
+
+
+
+ Centers object vertically.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Object} object
+
+
+ - Object to center
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ clear()
+
+
+
+ Clears all contexts (background, main, top) of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ clearContext(context)
+
+
+
+ Clears specified context of canvas element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ context
+
+
+ - {Object} ctx context to clear
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ clone(callback)
+
+
+
+ Clones canvas instance
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} callback
+ Optional
+
+ - Expects `onBeforeClone` and `onAfterClone` functions
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} Clone of this instance
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns number representation of an instance complexity
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ containsPoint(e, target)
+
+
+
+ Applies one implementation of 'point inside polygon' algorithm
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ e
+
+
+ - { Event } event object
+
+ -
+ target
+
+
+ - { fabric.Object } object to test against
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if point contains within area of given object
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ deactivateAll()
+
+
+
+ Deactivates all objects by calling their setActive(false)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ deactivateAllWithDispatch()
+
+
+
+ Deactivates all objects and dispatches appropriate events
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ dispose()
+
+
+
+ Clears a canvas element and removes all event handlers.
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ findTarget(e, skipGroup)
+
+
+
+ Method that determines what object we are clicking on
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Event} e
+
+
+ - mouse event
+
+ -
+ {Boolean} skipGroup
+
+
+ - when true, group is skipped and only objects are traversed through
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ fxCenterObjectH(object, callbacks)
+
+
+
+ Centers object horizontally with animation.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Object} object
+
+
+ - Object to center
+
+ -
+ {Object} callbacks
+ Optional
+
+ - Callbacks object with optional "onComplete" and/or "onChange" properties
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ fxCenterObjectV(object, callbacks)
+
+
+
+ Centers object vertically with animation.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Object} object
+
+
+ - Object to center
+
+ -
+ {Object} callbacks
+ Optional
+
+ - Callbacks object with optional "onComplete" and/or "onChange" properties
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ fxRemove(object, callback)
+
+
+
+ Same as `fabric.Element#remove` but animated
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Object} object
+
+
+ - Object to remove
+
+ -
+ {Function} callback
+
+
+ - Callback, invoked on effect completion
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ fxStraightenObject(object)
+
+
+
+ Same as `fabric.Element#straightenObject`, but animated
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Object} object
+
+
+ - Object to straighten
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Group}
+ getActiveGroup()
+
+
+
+ Returns currently active group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Group} Current group
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ getActiveObject()
+
+
+
+ Returns currently active object
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} active object
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ getCenter()
+
+
+
+ Returns coordinates of a center of canvas.
+Returned value is an object with top and left properties
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object with "top" and "left" number values
+
+
+
+
+
+
+
+
+
+
+
+ {CanvasRenderingContext2D}
+ getContext()
+
+
+
+ Returns topmost canvas context
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {CanvasRenderingContext2D}
+
+
+
+
+
+
+
+
+
+
+
+ {HTMLCanvasElement}
+ getElement()
+
+
+
+ Returns <canvas> element corresponding to this instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLCanvasElement}
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ getHeight()
+
+
+
+ Returns canvas height
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number}
+
+
+
+
+
+
+
+
+
+
+
+ {Array}
+ getObjects()
+
+
+
+ Returns an array of objects this instance has
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array}
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ getPointer(e)
+
+
+
+ Returns pointer coordinates relative to canvas.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ e
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object with "x" and "y" number values
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ getWidth()
+
+
+
+ Returns canvas width
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number}
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ insertAt(object, index)
+
+
+
+ Inserts an object to canvas at specified index and renders canvas.
+An object should be an instance of (or inherit from) fabric.Object
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+ - {Object} Object to insert
+
+ -
+ index
+
+
+ - {Number} index to insert object at
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} instance
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ isEmpty()
+
+
+
+ Returns true if canvas contains no objects
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if canvas is empty
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ item(index)
+
+
+
+ Returns object at specified index
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} index
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object}
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ loadFromDatalessJSON(json, callback)
+
+
+
+ Populates canvas with data from the specified dataless JSON
+JSON format must conform to the one of `fabric.Element#toDatalessJSON`
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} json
+
+
+ - JSON string
+
+ -
+ {Function} callback
+
+
+ - Callback, invoked when json is parsed
+ and corresponding objects (e.g: fabric.Image)
+ are initialized
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} instance
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ loadFromJSON(json, callback)
+
+
+
+ Populates canvas with data from the specified JSON
+JSON format must conform to the one of `fabric.Element#toJSON`
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} json
+
+
+ - JSON string
+
+ -
+ {Function} callback
+
+
+ - Callback, invoked when json is parsed
+ and corresponding objects (e.g: fabric.Image)
+ are initialized
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} instance
+
+
+
+
+
+
+
+
+
+
+
+
+ loadImageFromURL(url, callback)
+
+
+
+ Loads an image from URL, creates an instance of fabric.Image and passes it to a callback
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ url
+
+
+ - {String} url of image to load
+
+ -
+ callback
+
+
+ - {Function} calback, invoked when image is loaded
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ loadSVGFromURL(url, callback)
+
+
+
+ Takes url corresponding to an SVG document, and parses it to a set of objects
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ onBeforeScaleRotate(target)
+
+
+
+ Callback; invoked right before object is about to be scaled/rotated
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Object} target
+
+
+ - Object that's about to be scaled/rotated
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ onFpsUpdate(fps)
+
+
+
+ Callback; invoked on every redraw of canvas and is being passed a number indicating current fps
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} fps
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ remove(object)
+
+
+
+ Removes an object from canvas and returns it
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+ - {Object} Object to remove
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} removed object
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ removeActiveGroup()
+
+
+
+ Removes currently active group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ removeActiveObject()
+
+
+
+ Removes currently active object
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ renderAll(allOnTop)
+
+
+
+ Renders both the top canvas and the secondary container canvas.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ allOnTop
+
+
+ - {Boolean} optional Whether we want to force all images to be rendered on the top canvas
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} instance
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ renderTop()
+
+
+
+ Method to render only the top canvas.
+Also used to render the group selection box.
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ sendBackwards(object)
+
+
+
+ Moves an object one level down in stack of drawn objects
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+ - {fabric.Object} Object to send
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ sendToBack(object)
+
+
+
+ Moves an object to the bottom of the stack of drawn objects
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+ - {fabric.Object} Object to send to back
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ setActiveGroup(group)
+
+
+
+ Sets active group to a speicified one
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Group} group
+
+
+ - Group to set as a current one
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ setActiveObject(object)
+
+
+
+ Sets given object as active
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+ - {fabric.Object} Object to set as an active one
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ setDimensions(dimensions)
+
+
+
+ Sets dimensions (width, height) of this canvas instance
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} dimensions
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ setHeight(height)
+
+
+
+ Sets height of this canvas instance
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} height
+
+
+ - value to set height to
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} instance
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ setOverlayImage(url, callback)
+
+
+
+ Sets overlay image for this canvas
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} url
+
+
+ - url of an image to set background to
+
+ -
+ {Function} callback
+
+
+ - callback to invoke when image is loaded and set as an overlay one
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ setWidth(width)
+
+
+
+ Sets width of this canvas instance
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} width
+
+
+ - value to set width to
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} instance
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Element}
+ straightenObject(object)
+
+
+
+ Straightens object, then rerenders canvas
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Object} object
+
+
+ - Object to straighten
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Element} thisArg
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Boolean | null}
+ fabric.Element.supports(methodName)
+
+
+
+ Provides a way to check support of some of the canvas methods
+(either those of HTMLCanvasElement itself, or rendering context)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ methodName
+
+
+ - {String} Method to check support for;
+ Could be one of "getImageData" or "toDataURL"
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean | null} `true` if method is supported (or at least exists),
+ `null` if canvas element or context can not be initialized
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toDatalessJSON()
+
+
+
+ Returs dataless JSON representation of canvas
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} json string
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toDatalessObject()
+
+
+
+ Returns dataless object representation of canvas
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object}
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toDataURL(format)
+
+
+
+ Exports canvas element to a dataurl image.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} format
+
+
+ - the format of the output image. Either "jpeg" or "png".
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String}
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toDataURLWithMultiplier(format, multiplier)
+
+
+
+ Exports canvas element to a dataurl image (allowing to change image size via multiplier).
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} format
+
+
+ - (png|jpeg)
+
+ -
+ {Number} multiplier
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String}
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Element.toGrayscale(canvasEl)
+
+
+
+ Takes <canvas> element and transforms its data in such way that it becomes grayscale
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLCanvasElement} canvasEl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toJSON()
+
+
+
+ Returs JSON representation of canvas
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} json string
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of canvas
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object}
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns a string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:47 GMT-0400 (EDT)
+
diff --git a/docs/symbols/fabric.Ellipse.html b/docs/symbols/fabric.Ellipse.html
index 4f2a7c3e..56b9e3aa 100644
--- a/docs/symbols/fabric.Ellipse.html
+++ b/docs/symbols/fabric.Ellipse.html
@@ -1,4 +1,5 @@
-
+
@@ -6,701 +7,767 @@
JsDoc Reference - fabric.Ellipse
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Ellipse
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Ellipse
+
+
+
Defined in: ellipse.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Ellipse()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Ellipse.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Ellipse.fromElement`)
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns complexity of an instance
+
+
+
+
+ <static>
+
+ fabric.Ellipse.fromElement(element, options)
+
+ Returns fabric.Ellipse instance from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Ellipse.fromObject(object)
+
+ Returns fabric.Ellipse instance from an object representation
+
+
+
+
+
+
+ initialize(options)
+
+ Constructor
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+ Renders this instance on a given context
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Ellipse.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Ellipse.fromElement`)
+
+
+
+
+
+
+
+
+
+
+ - See:
+
+ - http://www.w3.org/TR/SVG/shapes.html#EllipseElement
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Ellipse}
+ fabric.Ellipse.fromElement(element, options)
+
+
+
+ Returns fabric.Ellipse instance from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - Element to parse
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Ellipse}
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Ellipse}
+ fabric.Ellipse.fromObject(object)
+
+
+
+ Returns fabric.Ellipse instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+ - Object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Ellipse}
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ initialize(options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+
+
+ Renders this instance on a given context
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ ctx
+
+
+ - {CanvasRenderingContext2D} context to render on
+
+ -
+ noTransform
+
+
+ - {Boolean} context is not transformed when set to true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Ellipse
-
-
-
- Ellipse
-
-
-
-
-
-
-
-
- - Defined in: ellipse.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Ellipse()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
-
-
-
-
-
- <static>
-
- fabric.Ellipse.fromElement(element, options)
-
- Returns fabric.Ellipse instance from an SVG element
-
-
-
-
- <static>
-
- fabric.Ellipse.fromObject(object)
-
- Returns fabric.Ellipse instance from an object representation
-
-
-
-
-
-
- initialize(options)
-
- Constructor
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
-
-
-
-
-
- toObject()
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Returns fabric.Ellipse instance from an SVG element
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {SVGElement} element
-
-
- - Element to parse
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Ellipse}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Returns fabric.Ellipse instance from an object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
- - Object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Ellipse}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- initialize(options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- ctx
-
-
- - {CanvasRenderingContext2D} context to render on
-
- -
- noTransform
-
-
- - {Boolean} context is not transformed when set to true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:47 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Group.html b/docs/symbols/fabric.Group.html
index c82a45d4..9a264754 100644
--- a/docs/symbols/fabric.Group.html
+++ b/docs/symbols/fabric.Group.html
@@ -1,4 +1,5 @@
-
+
@@ -6,1701 +7,1470 @@
JsDoc Reference - fabric.Group
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Group
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Group
+
+
+
Defined in: group.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Group()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+
+ Activates (makes active) all group objects
+
+
+
+
+
+
+ add(object)
+
+ Adds an object to a group; Then recalculates group's dimension, position.
+
+
+
+
+
+
+ complexity()
+
+ Returns complexity of an instance
+
+
+
+
+
+
+ contains(object)
+
+ Returns true if a group contains an object
+
+
+
+
+
+
+ containsPoint(point)
+
+ Checks if point is contained within the group
+
+
+
+
+
+
+ destroy()
+
+ Destroys a group (restoring state of its objects)
+
+
+
+
+
+
+ forEachObject(callback, context)
+
+ Executes given function for each object in this group
+
+
+
+
+ <static>
+
+ fabric.Group.fromObject(object, options)
+
+ Returns fabric.Group instance from an object representation
+
+
+
+
+
+
+ getObjects()
+
+ Returns an array of all objects in this group
+
+
+
+
+
+
+ hasMoved()
+
+ Checks whether this group was moved (since `saveCoords` was called last)
+
+
+
+
+
+
+ initialize(objects, options)
+
+ Constructor
+
+
+
+
+
+
+ item(index)
+
+ Returns object from the group at the specified index
+
+
+
+
+
+
+ remove(object)
+
+ Removes an object from a group; Then recalculates group's dimension, position.
+
+
+
+
+
+
+ render(ctx)
+
+ Renders instance on a given context
+
+
+
+
+
+
+ saveCoords()
+
+ Saves coordinates of this instance (to be used together with `hasMoved`)
+
+
+
+
+
+
+ set(name, value)
+
+ Sets property to a given value
+
+
+
+
+
+
+ setActive(value)
+
+ Activates (makes active) all group objects
+
+
+
+
+
+
+ setObjectsCoords()
+
+ Sets coordinates of all group objects
+
+
+
+
+
+
+ size()
+
+ Returns a size of a group (i.e: length of an array containing its objects)
+
+
+
+
+
+
+ toGrayscale()
+
+ Makes all of this group's objects grayscale (i.e.
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+ toString()
+
+ Returns string represenation of a group
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toJSON, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
-
-
-
-
-
-
+
+
+
+ {String}
+ type
- Class fabric .Group
-
-
-
- Group
-
-
-
-
-
-
-
-
- - Defined in: group.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Group()
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
-
- Activates (makes active) all group objects
-
-
-
-
-
-
- add(object)
-
- Adds an object to a group; Then recalculates group's dimension, position.
-
-
-
-
-
-
- complexity()
-
- Returns complexity of an instance
-
-
-
-
-
-
- contains(object)
-
- Returns true if a group contains an object
-
-
-
-
-
-
- containsPoint(point)
-
-
-
-
-
-
-
-
- destroy()
-
- Destroys a group (restoring state of its objects)
-
-
-
-
-
-
- forEachObject(callback, context)
-
-
-
-
-
-
- <static>
-
- fabric.Group.fromObject(object, options)
-
-
-
-
-
-
-
-
- getObjects()
-
- Returns an array of all objects in this group
-
-
-
-
-
-
- hasMoved()
-
-
-
-
-
-
-
-
- initialize(objects, options)
-
- Constructor
-
-
-
-
-
-
- item(index)
-
- Returns object from the group at the specified index
-
-
-
-
-
-
- remove(object)
-
- Removes an object from a group; Then recalculates group's dimension, position.
-
-
-
-
-
-
- render(ctx)
-
- Renders instance on a given context
-
-
-
-
-
-
- saveCoords()
-
-
-
-
-
-
-
-
- set(name, value)
-
- Sets property to a given value
-
-
-
-
-
-
- setActive(value)
-
- Activates (makes active) all group objects
-
-
-
-
-
-
- setObjectsCoords()
-
- Sets coordinates of all group objects
-
-
-
-
-
-
- size()
-
- Returns a size of a group (i.e: length of an array containing its objects)
-
-
-
-
-
-
- toGrayscale()
-
-
-
-
-
-
-
-
- toObject()
-
- Returns object representation of an instance
-
-
-
-
-
-
- toString()
-
- Returns string represenation of a group
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toJSON, transform
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ Method Detail
+
-
-
+
+
+
+ {fabric.Group}
+ activateAllObjects()
+
+
+ Activates (makes active) all group objects
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Group} thisArg
+
+
+
+
+
+
+
+
+
+
+ {fabric.Group}
+ add(object)
+
+
+
+ Adds an object to a group; Then recalculates group's dimension, position.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Group} thisArg
+
+
+
+
+
-
+
-
-
-
- Method Detail
-
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+ - {Number} complexity
-
-
-
-
-
-
-
- {fabric.Group}
-
- activateAllObjects()
-
-
-
- Activates (makes active) all group objects
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} thisArg
-
-
-
-
-
-
-
-
-
+
+
+
+
-
+
+
+
+
+
+ {Boolean}
+ contains(object)
+
+
+
+ Returns true if a group contains an object
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
+ -
+ {Object} object
-
-
- {fabric.Group}
-
- add(object)
-
-
-
- Adds an object to a group; Then recalculates group's dimension, position.
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} thisArg
-
-
-
-
-
-
-
-
-
+
+ - Object to check against
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} `true` if group contains an object
+
+
+
+
+
-
+
+
+
+
+
+ {Boolean}
+ containsPoint(point)
+
+
+
+ Checks if point is contained within the group
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
+ -
+ {fabric.Point} point
-
-
- {Number}
-
- complexity()
-
-
-
- Returns complexity of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
+
+ - point with `x` and `y` properties
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if point is contained within group
+
+
+
+
+
-
+
+
+
+
+
+ {fabric.Group}
+ destroy()
+
+
+
+ Destroys a group (restoring state of its objects)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
-
-
-
-
-
-
-
- {Boolean}
-
- contains(object)
-
-
-
- Returns true if a group contains an object
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
- - Object to check against
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} `true` if group contains an object
-
-
-
-
-
-
-
-
-
+ - {fabric.Group} thisArg
+
+
+
+
+
-
+
+
+
+
+
+ {fabric.Group}
+ forEachObject(callback, context)
+
+
+
+ Executes given function for each object in this group
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
+ -
+ {Function} callback
-
-
- {Boolean}
-
- containsPoint(point)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} point
-
-
- - point with `x` and `y` properties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if point is contained within group
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Group}
-
- destroy()
-
-
-
- Destroys a group (restoring state of its objects)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Group}
-
- forEachObject(callback, context)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Function} callback
-
-
- - Callback invoked with current object as first argument,
+
+
- Callback invoked with current object as first argument,
index - as second and an array of all objects - as third.
Iteration happens in reverse order (for performance reasons).
Callback is invoked in a context of Global Object (e.g. `window`)
when no `context` argument is given
-
- -
- {Object} context
-
-
- - Context (aka thisObject)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
+ -
+ {Object} context
- {fabric.Group}
-
- fabric.Group.fromObject(object, options)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {Object} object to create a group from
-
- -
- options
-
-
- - {Object} options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} an instance of fabric.Group
-
-
-
-
-
-
-
-
-
-
-
+
+ - Context (aka thisObject)
-
-
-
-
-
-
-
- {Array}
-
- getObjects()
-
-
-
- Returns an array of all objects in this group
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Array} group objects
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ - Returns:
-
-
-
-
-
-
-
- {Boolean}
-
- hasMoved()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if an object was moved (since fabric.Group#saveCoords was called)
-
-
-
-
-
-
-
-
-
-
-
+ - {fabric.Group} thisArg
-
-
-
-
-
-
-
- {Object}
-
- initialize(objects, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} objects
-
-
- - Group objects
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} thisArg
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- item(index)
-
-
-
- Returns object from the group at the specified index
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- index
-
-
- - {Number} index of item to get
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Group}
-
- remove(object)
-
-
-
- Removes an object from a group; Then recalculates group's dimension, position.
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx)
-
-
-
- Renders instance on a given context
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - context to render instance on
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Group}
-
- saveCoords()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Group}
-
- set(name, value)
-
-
-
- Sets property to a given value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Group}
-
- setActive(value)
-
-
-
- Activates (makes active) all group objects
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Boolean} value
-
-
- - `true` to activate object, `false` otherwise
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Group}
-
- setObjectsCoords()
-
-
-
- Sets coordinates of all group objects
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- size()
-
-
-
- Returns a size of a group (i.e: length of an array containing its objects)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} Group size
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toGrayscale()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns string represenation of a group
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String}
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ <static>
+
+ {fabric.Group}
+ fabric.Group.fromObject(object, options)
+
+
+ Returns fabric.Group instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+ - {Object} object to create a group from
+
+ -
+ options
+
+
+ - {Object} options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Group} an instance of fabric.Group
+
+
+
+
+
+
+
+
+
+
+ {Array}
+ getObjects()
+
+
+
+ Returns an array of all objects in this group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} group objects
+
+
+
+
+
+
+
-
+
+
+
+ {Boolean}
+ hasMoved()
+
+
+
+ Checks whether this group was moved (since `saveCoords` was called last)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if an object was moved (since fabric.Group#saveCoords was called)
+
+
+
+
+
+
+
-
+
+
+
+ {Object}
+ initialize(objects, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} objects
+
+
+ - Group objects
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ item(index)
+
+
+
+ Returns object from the group at the specified index
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ index
+
+
+ - {Number} index of item to get
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object}
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Group}
+ remove(object)
+
+
+
+ Removes an object from a group; Then recalculates group's dimension, position.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Group} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx)
+
+
+
+ Renders instance on a given context
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - context to render instance on
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Group}
+ saveCoords()
+
+
+
+ Saves coordinates of this instance (to be used together with `hasMoved`)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Group} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Group}
+ set(name, value)
+
+
+
+ Sets property to a given value
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Group} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Group}
+ setActive(value)
+
+
+
+ Activates (makes active) all group objects
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Boolean} value
+
+
+ - `true` to activate object, `false` otherwise
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Group} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Group}
+ setObjectsCoords()
+
+
+
+ Sets coordinates of all group objects
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Group} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ size()
+
+
+
+ Returns a size of a group (i.e: length of an array containing its objects)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} Group size
+
+
+
+
+
+
+
+
+
+
+
+
+ toGrayscale()
+
+
+
+ Makes all of this group's objects grayscale (i.e. calling `toGrayscale` on them)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns string represenation of a group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:47 GMT-0400 (EDT)
+
diff --git a/docs/symbols/fabric.Image.html b/docs/symbols/fabric.Image.html
index c00323b7..c286d70c 100644
--- a/docs/symbols/fabric.Image.html
+++ b/docs/symbols/fabric.Image.html
@@ -1,4 +1,5 @@
-
+
@@ -6,1421 +7,1372 @@
JsDoc Reference - fabric.Image
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Image
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Image
+
+
+
Defined in: image.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Image()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+
+
+
+ active
+
+
+
+
+
+
+
+
+
+ bordervisibility
+
+
+
+
+
+
+
+
+
+ cornervisibility
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Image.CSS_CANVAS
+
+ Default CSS class name for canvas
+
+
+
+
+
+
+
+ maxheight
+
+
+
+
+
+
+
+
+
+ maxwidth
+
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ clone(callback)
+
+ Returns a clone of an instance
+
+
+
+
+
+
+ complexity()
+
+ Returns complexity of an instance
+
+
+
+
+ <static>
+
+ fabric.Image.fromObject(object, callback)
+
+ Creates an instance of fabric.Image from its object representation
+
+
+
+
+ <static>
+
+ fabric.Image.fromURL(url, callback, imgOptions)
+
+ Creates an instance of fabric.Image from an URL string
+
+
+
+
+
+
+ getElement()
+
+ Returns image element which this instance if based on
+
+
+
+
+
+
+ getNormalizedSize(oImg, maxwidth, maxheight)
+
+ Resizes an image depending on whether maxwidth and maxheight are set up;
+Width and height have to mantain the same proportion in the final image as it was in the initial one.
+
+
+
+
+
+
+ getOriginalSize()
+
+ Returns original size of an image
+
+
+
+
+
+
+ getSrc()
+
+ Returns source of an image
+
+
+
+
+
+
+ initialize(element, options)
+
+ Constructor
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+ Renders image on a specified context
+
+
+
+
+
+
+ setBorderVisibility(visible)
+
+ Sets border visibility
+
+
+
+
+
+
+ setCornersVisibility(visible)
+
+ Sets corner visibility
+
+
+
+
+
+
+ setElement(element)
+
+ Sets image element for this instance to a specified one
+
+
+
+
+
+
+ toGrayscale(callback)
+
+ Makes image grayscale
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+ toString()
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toJSON, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
-
-
-
-
-
-
+
+
+
+ {Boolean}
+ active
- Class fabric .Image
-
-
-
- Image
-
-
-
-
-
-
-
-
- - Defined in: image.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Image()
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- active
-
-
-
-
-
-
-
-
-
- bordervisibility
-
-
-
-
-
-
-
-
-
- cornervisibility
-
-
-
-
-
-
- <static>
-
-
- fabric.Image.CSS_CANVAS
-
- Default CSS class name for canvas
-
-
-
-
-
-
-
- maxheight
-
-
-
-
-
-
-
-
-
- maxwidth
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- clone(callback)
-
- Returns a clone of an instance
-
-
-
-
-
-
- complexity()
-
- Returns complexity of an instance
-
-
-
-
- <static>
-
- fabric.Image.fromObject(object, callback)
-
- Creates an instance of fabric.Image from its object representation
-
-
-
-
- <static>
-
- fabric.Image.fromURL(url, callback, imgOptions)
-
- Creates an instance of fabric.Image from an URL string
-
-
-
-
-
-
- getElement()
-
- Returns image element which this instance if based on
-
-
-
-
-
-
- getNormalizedSize(oImg, maxwidth, maxheight)
-
- Resizes an image depending on whether maxwidth and maxheight are set up;
-Width and height have to mantain the same proportion in the final image as it was in the initial one.
-
-
-
-
-
-
- getOriginalSize()
-
- Returns original size of an image
-
-
-
-
-
-
- getSrc()
-
- Returns source of an image
-
-
-
-
-
-
- initialize(element, options)
-
- Constructor
-
-
-
-
-
-
- render(ctx, noTransform)
-
- Renders image on a specified context
-
-
-
-
-
-
- setBorderVisibility(visible)
-
- Sets border visibility
-
-
-
-
-
-
- setCornersVisibility(visible)
-
- Sets corner visibility
-
-
-
-
-
-
- setElement(element)
-
- Sets image element for this instance to a specified one
-
-
-
-
-
-
- toGrayscale(callback)
-
- Makes image grayscale
-
-
-
-
-
-
- toObject()
-
- Returns object representation of an instance
-
-
-
-
-
-
- toString()
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toJSON, transform
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- active
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- bordervisibility
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- cornervisibility
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Default CSS class name for canvas
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- maxheight
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- maxwidth
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ {Boolean}
+ bordervisibility
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ cornervisibility
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
- clone(callback)
-
-
-
- Returns a clone of an instance
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Function} callback
-
-
- - Callback is invoked with a clone as a first argument
-
-
-
-
-
+
+ <static>
+
+ {String}
+ fabric.Image.CSS_CANVAS
+
+
+
+ Default CSS class name for canvas
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns complexity of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Image.fromObject(object, callback)
-
-
-
- Creates an instance of fabric.Image from its object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {Object}
-
- -
- callback
-
-
- - {Function} optional
-
-
-
-
-
+
+
+
+
+
+ {Number}
+ maxheight
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Image.fromURL(url, callback, imgOptions)
-
-
-
- Creates an instance of fabric.Image from an URL string
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} url
-
-
- - URL to create an image from
-
- -
- {Function} callback
- Optional
-
- - Callback to invoke when image is created (newly created image is passed as a first argument)
-
- -
- {Object} imgOptions
- Optional
-
- - Options object
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
- {HTMLImageElement}
-
- getElement()
-
-
-
- Returns image element which this instance if based on
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLImageElement} image element
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ {Number}
+ maxwidth
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+
+ clone(callback)
+
+
+
+ Returns a clone of an instance
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
+ -
+ {Function} callback
-
+
+ - Callback is invoked with a clone as a first argument
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Image.fromObject(object, callback)
+
+
+
+ Creates an instance of fabric.Image from its object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+ - {Object}
+
+ -
+ callback
+
+ - {Function} optional
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Image.fromURL(url, callback, imgOptions)
+
+
+
+ Creates an instance of fabric.Image from an URL string
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} url
- getNormalizedSize(oImg, maxwidth, maxheight)
-
-
-
- Resizes an image depending on whether maxwidth and maxheight are set up;
+
+ - URL to create an image from
+
+ -
+ {Function} callback
+ Optional
+
+ - Callback to invoke when image is created (newly created image is passed as a first argument)
+
+ -
+ {Object} imgOptions
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {HTMLImageElement}
+ getElement()
+
+
+
+ Returns image element which this instance if based on
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLImageElement} image element
+
+
+
+
+
+
+
+
+
+
+
+
+ getNormalizedSize(oImg, maxwidth, maxheight)
+
+
+
+ Resizes an image depending on whether maxwidth and maxheight are set up;
Width and height have to mantain the same proportion in the final image as it was in the initial one.
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} oImg
-
-
-
-
- -
- {Number} maxwidth
-
-
- - maximum width of the image (in px)
-
- -
- {Number} maxheight
-
-
- - maximum height of the image (in px)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- getOriginalSize()
-
-
-
- Returns original size of an image
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object with "width" and "height" properties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- getSrc()
-
-
-
- Returns source of an image
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} Source of an image
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- initialize(element, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLImageElement | String} element
-
-
- - Image element
-
- -
- {Object} options
-
-
- - optional
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
- Renders image on a specified context
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - Context to render on
-
- -
- noTransform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setBorderVisibility(visible)
-
-
-
- Sets border visibility
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Boolean} visible
-
-
- - When true, border is set to be visible
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setCornersVisibility(visible)
-
-
-
- Sets corner visibility
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Boolean} visible
-
-
- - When true, corners are set to be visible
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Image}
-
- setElement(element)
-
-
-
- Sets image element for this instance to a specified one
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLImageElement} element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Image} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toGrayscale(callback)
-
-
-
- Makes image grayscale
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Function} callback
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} Object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} String representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} oImg
+
+
+
+
+ -
+ {Number} maxwidth
+
+
+ - maximum width of the image (in px)
+
+ -
+ {Number} maxheight
+
+
+ - maximum height of the image (in px)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ getOriginalSize()
+
+
+
+ Returns original size of an image
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object with "width" and "height" properties
+
+
+
+
+
+
+
-
+
+
+
+ {String}
+ getSrc()
+
+
+
+ Returns source of an image
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} Source of an image
+
+
+
+
+
+
+
-
+
+
+
+
+ initialize(element, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLImageElement | String} element
+
+
+ - Image element
+
+ -
+ {Object} options
+
+
+ - optional
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+
+
+ Renders image on a specified context
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - Context to render on
+
+ -
+ noTransform
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setBorderVisibility(visible)
+
+
+
+ Sets border visibility
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Boolean} visible
+
+
+ - When true, border is set to be visible
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setCornersVisibility(visible)
+
+
+
+ Sets corner visibility
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Boolean} visible
+
+
+ - When true, corners are set to be visible
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Image}
+ setElement(element)
+
+
+
+ Sets image element for this instance to a specified one
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLImageElement} element
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Image} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ toGrayscale(callback)
+
+
+
+ Makes image grayscale
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Function} callback
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} String representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:47 GMT-0400 (EDT)
+
diff --git a/docs/symbols/fabric.Intersection.html b/docs/symbols/fabric.Intersection.html
index b85d7a6a..5de00d02 100644
--- a/docs/symbols/fabric.Intersection.html
+++ b/docs/symbols/fabric.Intersection.html
@@ -1,4 +1,5 @@
-
+
@@ -6,635 +7,742 @@
JsDoc Reference - fabric.Intersection
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Intersection
+
+
+
+
+
+
+
+ Intersection
+
+
+
Defined in: intersection.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Intersection(status)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ appendPoint(status)
+
+
+
+
+
+
+
+
+ appendPoints(status)
+
+
+
+
+
+
+
+
+ init(status)
+
+
+
+
+
+
+ <static>
+
+ fabric.Intersection.intersectLineLine(a1, a2, b1, b2)
+
+
+
+
+
+
+ <static>
+
+ fabric.Intersection.intersectLinePolygon(a1, a2, points)
+
+
+
+
+
+
+ <static>
+
+ fabric.Intersection.intersectPolygonPolygon(points1, points2)
+
+
+
+
+
+
+ <static>
+
+ fabric.Intersection.intersectPolygonRectangle(points, r1, r2)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Class Detail
+
+
+
+ fabric.Intersection(status)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ status
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+
+
+
+ appendPoint(status)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} status
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ appendPoints(status)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} status
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ init(status)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} status
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Intersection.intersectLineLine(a1, a2, b1, b2)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ a1
+
+
+
+
+ -
+ a2
+
+
+
+
+ -
+ b1
+
+
+
+
+ -
+ b2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Intersection.intersectLinePolygon(a1, a2, points)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ a1
+
+
+
+
+ -
+ a2
+
+
+
+
+ -
+ points
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Intersection.intersectPolygonPolygon(points1, points2)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ points1
+
+
+
+
+ -
+ points2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Intersection.intersectPolygonRectangle(points, r1, r2)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ points
+
+
+
+
+ -
+ r1
+
+
+
+
+ -
+ r2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Intersection
-
-
-
- Intersection
-
-
-
-
-
-
-
-
- - Defined in: intersection.class.js
-
-
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Intersection(status)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- appendPoint(status)
-
-
-
-
-
-
-
-
- appendPoints(status)
-
-
-
-
-
-
-
-
- init(status)
-
-
-
-
-
-
- <static>
-
- fabric.Intersection.intersectLineLine(a1, a2, b1, b2)
-
-
-
-
-
-
- <static>
-
- fabric.Intersection.intersectLinePolygon(a1, a2, points)
-
-
-
-
-
-
- <static>
-
- fabric.Intersection.intersectPolygonPolygon(points1, points2)
-
-
-
-
-
-
- <static>
-
- fabric.Intersection.intersectPolygonRectangle(points, r1, r2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
- appendPoint(status)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} status
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- appendPoints(status)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} status
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- init(status)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} status
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Intersection.intersectLineLine(a1, a2, b1, b2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- a1
-
-
-
-
- -
- a2
-
-
-
-
- -
- b1
-
-
-
-
- -
- b2
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Intersection.intersectLinePolygon(a1, a2, points)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- a1
-
-
-
-
- -
- a2
-
-
-
-
- -
- points
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Intersection.intersectPolygonPolygon(points1, points2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- points1
-
-
-
-
- -
- points2
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Intersection.intersectPolygonRectangle(points, r1, r2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- points
-
-
-
-
- -
- r1
-
-
-
-
- -
- r2
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:47 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Line.html b/docs/symbols/fabric.Line.html
index 057c01fa..49abddaf 100644
--- a/docs/symbols/fabric.Line.html
+++ b/docs/symbols/fabric.Line.html
@@ -1,4 +1,5 @@
-
+
@@ -6,653 +7,722 @@
JsDoc Reference - fabric.Line
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Line
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Line
+
+
+
Defined in: line.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Line()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Line.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Line.fromElement`)
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns complexity of an instance
+
+
+
+
+ <static>
+
+ fabric.Line.fromElement(element, options)
+
+ Returns fabric.Line instance from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Line.fromObject(object)
+
+ Returns fabric.Line instance from an object representation
+
+
+
+
+
+
+ initialize(points, options)
+
+ Constructor
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Line.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Line.fromElement`)
+
+
+
+
+
+
+
+
+
+
+ - See:
+
+ - http://www.w3.org/TR/SVG/shapes.html#LineElement
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Line}
+ fabric.Line.fromElement(element, options)
+
+
+
+ Returns fabric.Line instance from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - Element to parse
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Line} instance of fabric.Line
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Line}
+ fabric.Line.fromObject(object)
+
+
+
+ Returns fabric.Line instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+ - Object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Line} instance of fabric.Line
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Line}
+ initialize(points, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} points
+
+
+ - Array of points
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Line} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Line
-
-
-
- Line
-
-
-
-
-
-
-
-
- - Defined in: line.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Line()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
-
-
-
-
-
- <static>
-
- fabric.Line.fromElement(element, options)
-
-
-
-
-
-
- <static>
-
- fabric.Line.fromObject(object)
-
-
-
-
-
-
-
-
- initialize(points, options)
-
- Constructor
-
-
-
-
-
-
- toObject()
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {SVGElement} element
-
-
- - Element to parse
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Line} instance of fabric.Line
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
- - Object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Line} instance of fabric.Line
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Line}
-
- initialize(points, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} points
-
-
- - Array of points
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Line} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:47 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Object.html b/docs/symbols/fabric.Object.html
index d8f62d85..7b013810 100644
--- a/docs/symbols/fabric.Object.html
+++ b/docs/symbols/fabric.Object.html
@@ -1,4 +1,5 @@
-
+
@@ -6,3123 +7,2617 @@
JsDoc Reference - fabric.Object
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Object
+
+
+
+
+
+
+
+ Object
+
+
+
Defined in: object.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Object()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <constant>
+
+
+ FX_DURATION
+
+
+
+
+
+
+ <constant>
+
+
+ FX_TRANSITION
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <constant>
+
+
+ MIN_SCALE_LIMIT
+
+
+
+
+
+
+ <constant>
+
+
+
+
+
+
+
+
+
+
+ options
+
+
+
+
+
+
+
+
+
+ rotate
+
+
+
+
+
+
+
+
+
+ stateProperties
+
+ List of properties to consider when checking if state of an object is changed (fabric.Object#hasStateChanged);
+as well as for history (undo/redo) purposes
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ callSuper(methodName)
+
+
+
+
+
+
+
+
+ clone(options)
+
+ Clones an instance
+
+
+
+
+
+
+ cloneAsImage(callback)
+
+ Creates an instance of fabric.Image out of an object
+
+
+
+
+
+
+ complexity()
+
+
+
+
+
+
+
+
+ drawBorders(ctx)
+
+ Draws borders of an object's bounding box.
+
+
+
+
+
+
+ drawCorners(ctx)
+
+ Draws corners of an object's bounding box.
+
+
+
+
+
+
+ fxRemove(callbacks)
+
+
+
+
+
+
+
+
+ fxStraighten(callbacks)
+
+
+
+
+
+
+
+
+ get(property)
+
+ Basic getter
+
+
+
+
+
+
+ getAngle()
+
+ Returns object's angle value
+
+
+
+
+
+
+ getCenter()
+
+
+
+
+
+
+
+
+ getHeight()
+
+ Returns height of an object
+
+
+
+
+
+
+ getWidth()
+
+ Returns width of an object
+
+
+
+
+
+
+ hasStateChanged()
+
+
+
+
+
+
+
+
+ initialize(options)
+
+ Constructor
+
+
+
+
+
+
+ intersectsWithObject(other)
+
+ Returns true if object intersects with another object
+
+
+
+
+
+
+ intersectsWithRect(selectionTL, selectionBR)
+
+ Returns true if object intersects with an area formed by 2 points
+
+
+
+
+
+
+ isActive()
+
+ Returns true if an object is in its active state
+
+
+
+
+
+
+ isContainedWithinRect(selectionTL, selectionBR)
+
+ Returns true if object is fully contained within area formed by 2 points
+
+
+
+
+
+
+ isType(type)
+
+
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+
+
+
+
+
+
+
+ saveState()
+
+
+
+
+
+
+
+
+ scale(value)
+
+ Scales an object (equally by x and y)
+
+
+
+
+
+
+ scaleToHeight(value)
+
+ Scales an object to a given height (scaling by x/y equally)
+
+
+
+
+
+
+ scaleToWidth(value)
+
+ Scales an object to a given width (scaling by x/y equally)
+
+
+
+
+
+
+ set(property, value)
+
+ Basic setter
+
+
+
+
+
+
+ setActive(active)
+
+ Sets state of an object - `true` makes it active, `false` - inactive
+
+
+
+
+
+
+ setAngle(value)
+
+ Sets object's angle
+
+
+
+
+
+
+ setCoords()
+
+ Sets corner position coordinates based on current angle, width and height.
+
+
+
+
+
+
+ setOpacity(value)
+
+ Sets object opacity
+
+
+
+
+
+
+ setOptions(options)
+
+
+
+
+
+
+
+
+ setSourcePath(value)
+
+
+
+
+
+
+
+
+ straighten()
+
+
+
+
+
+
+
+
+ toDatalessObject()
+
+ Returns (dataless) object representation of an instance
+
+
+
+
+
+
+ toDataURL()
+
+ Converts an object into a data-url-like string
+
+
+
+
+
+
+ toggle(property)
+
+ Toggles specified property from `true` to `false` or from `false` to `true`
+
+
+
+
+
+
+ toGrayscale()
+
+ Makes object's color grayscale
+
+
+
+
+
+
+ toJSON()
+
+ Returns a JSON representation of an instance
+
+
+
+
+
+
+ toObject()
+
+ Returns an object representation of an instance
+
+
+
+
+
+
+ toString()
+
+ Returns a string representation of an instance
+
+
+
+
+
+
+ transform(ctx)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
-
-
-
-
-
-
+
+ <constant>
+
+ {Number}
+ FX_DURATION
- Class fabric .Object
-
-
-
- Object
-
-
-
-
-
-
-
-
- - Defined in: object.class.js
-
-
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Object()
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
- <constant>
-
-
- FX_DURATION
-
-
-
-
-
-
- <constant>
-
-
- FX_TRANSITION
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <constant>
-
-
- MIN_SCALE_LIMIT
-
-
-
-
-
-
- <constant>
-
-
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-
-
-
-
- rotate
-
-
-
-
-
-
-
-
-
- stateProperties
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- callSuper(methodName)
-
-
-
-
-
-
-
-
- clone(options)
-
- Clones an instance
-
-
-
-
-
-
- cloneAsImage(callback)
-
- Creates an instance of fabric.Image out of an object
-
-
-
-
-
-
- complexity()
-
-
-
-
-
-
-
-
- drawBorders(ctx)
-
- Draws borders of an object's bounding box.
-
-
-
-
-
-
- drawCorners(ctx)
-
- Draws corners of an object's bounding box.
-
-
-
-
-
-
- fxRemove(callbacks)
-
-
-
-
-
-
-
-
- fxStraighten(callbacks)
-
-
-
-
-
-
-
-
- get(property)
-
- Basic getter
-
-
-
-
-
-
- getAngle()
-
- Returns object's angle value
-
-
-
-
-
-
- getCenter()
-
-
-
-
-
-
-
-
- getHeight()
-
- Returns height of an object
-
-
-
-
-
-
- getWidth()
-
- Returns width of an object
-
-
-
-
-
-
- hasStateChanged()
-
-
-
-
-
-
-
-
- initialize(options)
-
- Constructor
-
-
-
-
-
-
- intersectsWithObject(other)
-
- Returns true if object intersects with another object
-
-
-
-
-
-
- intersectsWithRect(selectionTL, selectionBR)
-
- Returns true if object intersects with an area formed by 2 points
-
-
-
-
-
-
- isActive()
-
- Returns true if an object is in its active state
-
-
-
-
-
-
- isContainedWithinRect(selectionTL, selectionBR)
-
- Returns true if object is fully contained within area formed by 2 points
-
-
-
-
-
-
- isType(type)
-
-
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
-
-
-
-
-
- saveState()
-
-
-
-
-
-
-
-
- scale(value)
-
- Scales an object (equally by x and y)
-
-
-
-
-
-
- scaleToHeight(value)
-
- Scales an object to a given height (scaling by x/y equally)
-
-
-
-
-
-
- scaleToWidth(value)
-
- Scales an object to a given width (scaling by x/y equally)
-
-
-
-
-
-
- set(property, value)
-
- Basic setter
-
-
-
-
-
-
- setActive(active)
-
- Sets state of an object - `true` makes it active, `false` - inactive
-
-
-
-
-
-
- setAngle(value)
-
- Sets object's angle
-
-
-
-
-
-
- setCoords()
-
- Sets corner position coordinates based on current angle, width and height.
-
-
-
-
-
-
- setOpacity(value)
-
- Sets object opacity
-
-
-
-
-
-
- setOptions(options)
-
-
-
-
-
-
-
-
- setSourcePath(value)
-
-
-
-
-
-
-
-
- straighten()
-
-
-
-
-
-
-
-
- toDatalessObject()
-
-
-
-
-
-
-
-
- toDataURL()
-
- Converts an object into a data-url-like string
-
-
-
-
-
-
- toggle(property)
-
- Toggles specified property from `true` to `false` or from `false` to `true`
-
-
-
-
-
-
- toGrayscale()
-
- Makes object's color grayscale
-
-
-
-
-
-
- toJSON()
-
- Returns a JSON representation of an instance
-
-
-
-
-
-
- toObject()
-
- Returns an object representation of an instance
-
-
-
-
-
-
- toString()
-
- Returns a string representation of an instance
-
-
-
-
-
-
- transform(ctx)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
- <constant>
-
-
- {Number}
-
- FX_DURATION
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <constant>
-
-
- {String}
-
- FX_TRANSITION
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- includeDefaultValues
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <constant>
-
-
- {Number}
-
- MIN_SCALE_LIMIT
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <constant>
-
-
- {Number}
-
- NUM_FRACTION_DIGITS
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- options
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- rotate
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Array}
-
- stateProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ <constant>
+
+ {String}
+ FX_TRANSITION
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ includeDefaultValues
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
- callSuper(methodName)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} methodName
-
-
-
-
-
-
-
-
+
+ <constant>
+
+ {Number}
+ MIN_SCALE_LIMIT
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- clone(options)
-
-
-
- Clones an instance
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} options
-
-
- - object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} clone of an instance
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- cloneAsImage(callback)
-
-
-
- Creates an instance of fabric.Image out of an object
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- callback
-
-
- - {Function} callback, invoked with an instance as a first argument
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
+
+
+
+ <constant>
+
+ {Number}
+ NUM_FRACTION_DIGITS
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number}
-
-
-
-
-
-
-
-
-
+
+
+
+
-
+
+
+
+
+
+ {Object}
+ options
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rotate
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Array}
+ stateProperties
+
+
+
+ List of properties to consider when checking if state of an object is changed (fabric.Object#hasStateChanged);
+as well as for history (undo/redo) purposes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+
+ callSuper(methodName)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
+ -
+ {String} methodName
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ clone(options)
+
+
+
+ Clones an instance
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} options
- {fabric.Object}
+
+ - object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} clone of an instance
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ cloneAsImage(callback)
+
+
+
+ Creates an instance of fabric.Image out of an object
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ callback
- drawBorders(ctx)
-
-
-
- Draws borders of an object's bounding box.
+
+ - {Function} callback, invoked with an instance as a first argument
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number}
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ drawBorders(ctx)
+
+
+
+ Draws borders of an object's bounding box.
Requires public properties: width, height
Requires public options: padding, borderColor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - Context to draw on
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
+ -
+ {CanvasRenderingContext2D} ctx
-
-
- {fabric.Object}
-
- drawCorners(ctx)
-
-
-
- Draws corners of an object's bounding box.
+
+ - Context to draw on
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ drawCorners(ctx)
+
+
+
+ Draws corners of an object's bounding box.
Requires public properties: width, height, scaleX, scaleY
Requires public options: cornersize, padding
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - Context to draw on
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- fxRemove(callbacks)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} callbacks
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- fxStraighten(callbacks)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} callbacks
-
-
- - - onComplete: invoked on completion
- - onChange: invoked on every step of animation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Any}
-
- get(property)
-
-
-
- Basic getter
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Any} property
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Any} value of a property
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- getAngle()
-
-
-
- Returns object's angle value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} angle value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- getCenter()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object with `x`, `y` properties corresponding to path center coordinates
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- getHeight()
-
-
-
- Returns height of an object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} height value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- getWidth()
-
-
-
- Returns width of an object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} width value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- hasStateChanged()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if instance' state has changed
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- initialize(options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- intersectsWithObject(other)
-
-
-
- Returns true if object intersects with another object
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} other
-
-
- - Object to test
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- intersectsWithRect(selectionTL, selectionBR)
-
-
-
- Returns true if object intersects with an area formed by 2 points
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} selectionTL
-
-
-
-
- -
- {Object} selectionBR
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- isActive()
-
-
-
- Returns true if an object is in its active state
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if an object is in its active state
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- isContainedWithinRect(selectionTL, selectionBR)
-
-
-
- Returns true if object is fully contained within area formed by 2 points
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} selectionTL
-
-
-
-
- -
- {Object} selectionBR
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- isType(type)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- type
-
-
- - {String} type to check against
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if specified type is identical to the type of instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - context to render on
-
- -
- {Boolean} noTransform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- saveState()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- scale(value)
-
-
-
- Scales an object (equally by x and y)
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} scale factor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- scaleToHeight(value)
-
-
-
- Scales an object to a given height (scaling by x/y equally)
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} new height value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- scaleToWidth(value)
-
-
-
- Scales an object to a given width (scaling by x/y equally)
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} new width value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- set(property, value)
-
-
-
- Basic setter
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Any} property
-
-
-
-
- -
- {Any} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- setActive(active)
-
-
-
- Sets state of an object - `true` makes it active, `false` - inactive
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Boolean} active
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- setAngle(value)
-
-
-
- Sets object's angle
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} angle value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setCoords()
-
-
-
- Sets corner position coordinates based on current angle, width and height.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- setOpacity(value)
-
-
-
- Sets object opacity
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} value 0-1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setOptions(options)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} options
- Optional
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- setSourcePath(value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- straighten()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toDatalessObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toDataURL()
-
-
-
- Converts an object into a data-url-like string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} string of data
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- toggle(property)
-
-
-
- Toggles specified property from `true` to `false` or from `false` to `true`
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} property
-
-
- - property to toggle
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- toGrayscale()
-
-
-
- Makes object's color grayscale
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toJSON()
-
-
-
- Returns a JSON representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} json
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns an object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns a string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- transform(ctx)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - Context
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - Context to draw on
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ fxRemove(callbacks)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} callbacks
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
-
+
+
+
+ {fabric.Object}
+ fxStraighten(callbacks)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} callbacks
+
+
+ - - onComplete: invoked on completion
+ - onChange: invoked on every step of animation
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
-
+
+
+
+ {Any}
+ get(property)
+
+
+
+ Basic getter
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Any} property
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Any} value of a property
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ getAngle()
+
+
+
+ Returns object's angle value
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} angle value
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ getCenter()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object with `x`, `y` properties corresponding to path center coordinates
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ getHeight()
+
+
+
+ Returns height of an object
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} height value
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ getWidth()
+
+
+
+ Returns width of an object
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} width value
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ hasStateChanged()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if instance' state has changed
+
+
+
+
+
+
+
+
+
+
+
+
+ initialize(options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ intersectsWithObject(other)
+
+
+
+ Returns true if object intersects with another object
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} other
+
+
+ - Object to test
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean}
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ intersectsWithRect(selectionTL, selectionBR)
+
+
+
+ Returns true if object intersects with an area formed by 2 points
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} selectionTL
+
+
+
+
+ -
+ {Object} selectionBR
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean}
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ isActive()
+
+
+
+ Returns true if an object is in its active state
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if an object is in its active state
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ isContainedWithinRect(selectionTL, selectionBR)
+
+
+
+ Returns true if object is fully contained within area formed by 2 points
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} selectionTL
+
+
+
+
+ -
+ {Object} selectionBR
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean}
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ isType(type)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ type
+
+
+ - {String} type to check against
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if specified type is identical to the type of instance
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - context to render on
+
+ -
+ {Boolean} noTransform
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ saveState()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ scale(value)
+
+
+
+ Scales an object (equally by x and y)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} scale factor
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ scaleToHeight(value)
+
+
+
+ Scales an object to a given height (scaling by x/y equally)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} new height value
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ scaleToWidth(value)
+
+
+
+ Scales an object to a given width (scaling by x/y equally)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} new width value
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ set(property, value)
+
+
+
+ Basic setter
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Any} property
+
+
+
+
+ -
+ {Any} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ setActive(active)
+
+
+
+ Sets state of an object - `true` makes it active, `false` - inactive
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Boolean} active
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ setAngle(value)
+
+
+
+ Sets object's angle
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} angle value
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ setCoords()
+
+
+
+ Sets corner position coordinates based on current angle, width and height.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ setOpacity(value)
+
+
+
+ Sets object opacity
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} value 0-1
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ setOptions(options)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} options
+ Optional
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ setSourcePath(value)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ straighten()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ toDatalessObject()
+
+
+
+ Returns (dataless) object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toDataURL()
+
+
+
+ Converts an object into a data-url-like string
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} string of data
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ toggle(property)
+
+
+
+ Toggles specified property from `true` to `false` or from `false` to `true`
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} property
+
+
+ - property to toggle
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ toGrayscale()
+
+
+
+ Makes object's color grayscale
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toJSON()
+
+
+
+ Returns a JSON representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} json
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns an object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object}
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns a string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String}
+
+
+
+
+
+
+
+
+
+
+
+
+ transform(ctx)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - Context
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
+
diff --git a/docs/symbols/fabric.Path.html b/docs/symbols/fabric.Path.html
index 748720e7..1963caf1 100644
--- a/docs/symbols/fabric.Path.html
+++ b/docs/symbols/fabric.Path.html
@@ -1,4 +1,5 @@
-
+
@@ -6,856 +7,848 @@
JsDoc Reference - fabric.Path
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Path
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Path
+
+
+
Defined in: path.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Path()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Path.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Path.fromElement`)
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns number representation of an instance complexity
+
+
+
+
+ <static>
+
+ fabric.Path.fromElement(element, options)
+
+ Creates an instance of fabric.Path from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Path.fromObject(object)
+
+ Creates an instance of fabric.Path from an object
+
+
+
+
+
+
+ initialize(path, options)
+
+ Constructor
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+ Renders path on a specified context
+
+
+
+
+
+
+ toDatalessObject()
+
+ Returns dataless object representation of an instance
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+ toString()
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toGrayscale, toJSON, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Path.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Path.fromElement`)
+
+
+
+
+
+
+
+
+
+
+ - See:
+
+ - http://www.w3.org/TR/SVG/paths.html#PathElement
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns number representation of an instance complexity
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Path}
+ fabric.Path.fromElement(element, options)
+
+
+
+ Creates an instance of fabric.Path from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - to parse
+
+ -
+ {Object} options
+
+
+ - object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Path} Instance of fabric.Path
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Path}
+ fabric.Path.fromObject(object)
+
+
+
+ Creates an instance of fabric.Path from an object
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Path} Instance of fabric.Path
+
+
+
+
+
+
+
+
+
+
+
+
+ initialize(path, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array|String} path
+
+
+ - Path data (sequence of coordinates and corresponding "command" tokens)
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+
+
+ Renders path on a specified context
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - context to render path on
+
+ -
+ {Boolean} noTransform
+
+
+ - When true, context is not transformed
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toDatalessObject()
+
+
+
+ Returns dataless object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object}
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object}
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Path
-
-
-
- Path
-
-
-
-
-
-
-
-
- - Defined in: path.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Path()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns number representation of an instance complexity
-
-
-
-
- <static>
-
- fabric.Path.fromElement(element, options)
-
- Creates an instance of fabric.Path from an SVG element
-
-
-
-
- <static>
-
- fabric.Path.fromObject(object)
-
- Creates an instance of fabric.Path from an object
-
-
-
-
-
-
- initialize(path, options)
-
- Constructor
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
-
-
-
-
-
- set(prop, value)
-
-
-
-
-
-
-
-
- toDatalessObject()
-
-
-
-
-
-
-
-
- toObject()
-
-
-
-
-
-
-
-
- toString()
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toGrayscale, toJSON, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns number representation of an instance complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Creates an instance of fabric.Path from an SVG element
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {SVGElement} element
-
-
- - to parse
-
- -
- {Object} options
-
-
- - object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Path} Instance of fabric.Path
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Creates an instance of fabric.Path from an object
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Path} Instance of fabric.Path
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- initialize(path, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array|String} path
-
-
- - Path data (sequence of coordinates and corresponding "command" tokens)
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- ctx
-
-
-
-
- -
- noTransform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- set(prop, value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- prop
-
-
-
-
- -
- value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toDatalessObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.PathGroup.html b/docs/symbols/fabric.PathGroup.html
index 871da9c4..6a8db8ff 100644
--- a/docs/symbols/fabric.PathGroup.html
+++ b/docs/symbols/fabric.PathGroup.html
@@ -1,4 +1,5 @@
-
+
@@ -6,1063 +7,965 @@
JsDoc Reference - fabric.PathGroup
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.PathGroup
+
+
+
+
+
+
Extends
+ fabric.Path.
+
+
+ PathGroup
+
+
+
Defined in: path_group.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.PathGroup()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns number representation of object's complexity
+
+
+
+
+ <static>
+
+ fabric.PathGroup.fromObject(object)
+
+ Creates fabric.Triangle instance from an object representation
+
+
+
+
+
+
+ getObjects()
+
+ Returns all paths in this path group
+
+
+
+
+
+
+ initialize(paths, options)
+
+ Constructor
+
+
+
+
+
+
+ isSameColor()
+
+ Returns true if all paths in this group are of same color
+
+
+
+
+
+
+ render(ctx)
+
+ Renders this group on a specified context
+
+
+
+
+
+
+ set(prop, value)
+
+ Sets certain property to a certain value
+
+
+
+
+
+
+ toDatalessObject()
+
+ Returns dataless object representation of this path group
+
+
+
+
+
+
+ toGrayscale()
+
+ Makes path group grayscale
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of this path group
+
+
+
+
+
+
+ toString()
+
+ Returns a string representation of this path group
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toJSON, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+
+
+ {Boolean}
+ forceFillOverwrite
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns number representation of object's complexity
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.PathGroup}
+ fabric.PathGroup.fromObject(object)
+
+
+
+ Creates fabric.Triangle instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.PathGroup}
+
+
+
+
+
+
+
+
+
+
+
+ {Array}
+ getObjects()
+
+
+
+ Returns all paths in this path group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} array of path objects included in this path group
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.PathGroup}
+ initialize(paths, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} paths
+
+
+
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.PathGroup} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ isSameColor()
+
+
+
+ Returns true if all paths in this group are of same color
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if all paths are of the same color (`fill`)
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx)
+
+
+
+ Renders this group on a specified context
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - Context to render this instance on
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.PathGroup}
+ set(prop, value)
+
+
+
+ Sets certain property to a certain value
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} prop
+
+
+
+
+ -
+ {Any} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.PathGroup} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toDatalessObject()
+
+
+
+ Returns dataless object representation of this path group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} dataless object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.PathGroup}
+ toGrayscale()
+
+
+
+ Makes path group grayscale
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.PathGroup} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of this path group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns a string representation of this path group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} string representation of an object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .PathGroup
-
-
-
- PathGroup
-
-
-
-
-
-
-
-
- - Defined in: path_group.class.js
-
-
- - Extends
- fabric.Path
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.PathGroup()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns number representation of object's complexity
-
-
-
-
- <static>
-
- fabric.PathGroup.fromObject(object)
-
-
-
-
-
-
-
-
- getObjects()
-
-
-
-
-
-
-
-
- initialize(paths, options)
-
- Constructor
-
-
-
-
-
-
- initProperties()
-
-
-
-
-
-
-
-
- isSameColor()
-
-
-
-
-
-
-
-
- render(ctx)
-
-
-
-
-
-
-
-
- set(prop, value)
-
-
-
-
-
-
-
-
- toDatalessObject()
-
-
-
-
-
-
-
-
- toGrayscale()
-
- Makes path group grayscale
-
-
-
-
-
-
- toObject()
-
-
-
-
-
-
-
-
- toString()
-
- Returns a string representation of an object
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toJSON, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- forceFillOverwrite
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns number representation of object's complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.PathGroup}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Array}
-
- getObjects()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Array} array of path objects included in this path group
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.PathGroup}
-
- initialize(paths, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} paths
-
-
-
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.PathGroup} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- initProperties()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- isSameColor()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if all paths are of the same color (`fill`)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- ctx
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.PathGroup}
-
- set(prop, value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} prop
-
-
-
-
- -
- {Any} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.PathGroup} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toDatalessObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} dataless object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.PathGroup}
-
- toGrayscale()
-
-
-
- Makes path group grayscale
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.PathGroup} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns a string representation of an object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} string representation of an object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Point.html b/docs/symbols/fabric.Point.html
index 3c4da482..e726eccb 100644
--- a/docs/symbols/fabric.Point.html
+++ b/docs/symbols/fabric.Point.html
@@ -1,4 +1,5 @@
-
+
@@ -6,1642 +7,1610 @@
JsDoc Reference - fabric.Point
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Point
+
+
+
+
+
+
+
+
+
+
+
Defined in: point.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Point(x, y)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ add(that)
+
+
+
+
+
+
+
+
+ addEquals(that)
+
+
+
+
+
+
+
+
+ distanceFrom(that)
+
+
+
+
+
+
+
+
+ divide(scalar)
+
+
+
+
+
+
+
+
+ divideEquals(scalar)
+
+
+
+
+
+
+
+
+ eq(that)
+
+
+
+
+
+
+
+
+ gt(that)
+
+
+
+
+
+
+
+
+ gte(that)
+
+
+
+
+
+
+
+
+ init(x, y)
+
+
+
+
+
+
+
+
+ lerp(that, t)
+
+
+
+
+
+
+
+
+ lt(that)
+
+
+
+
+
+
+
+
+ lte(that)
+
+
+
+
+
+
+
+
+ max(that)
+
+
+
+
+
+
+
+
+ min(that)
+
+
+
+
+
+
+
+
+ multiply(scalar)
+
+
+
+
+
+
+
+
+ multiplyEquals(scalar)
+
+
+
+
+
+
+
+
+ scalarAdd(scalar)
+
+
+
+
+
+
+
+
+ scalarAddEquals(scalar, thisArg)
+
+
+
+
+
+
+
+
+ scalarSubtract(scalar)
+
+
+
+
+
+
+
+
+ scalarSubtractEquals(scalar)
+
+
+
+
+
+
+
+
+ setFromPoint(that)
+
+
+
+
+
+
+
+
+ setXY(x, y)
+
+
+
+
+
+
+
+
+ subtract(that)
+
+
+
+
+
+
+
+
+ subtractEquals(that)
+
+
+
+
+
+
+
+
+ swap(that)
+
+
+
+
+
+
+
+
+ toString()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Class Detail
+
+
+
+ fabric.Point(x, y)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} x
+
+
+
+
+ -
+ {Number} y
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} thisArg
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+
+
+ {fabric.Point}
+ add(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Point} that
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} new Point instance with added values
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Point}
+ addEquals(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Point} that
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ distanceFrom(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ divide(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ divideEquals(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ eq(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ gt(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ gte(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ init(x, y)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} x
+
+
+
+
+ -
+ {Number} y
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ lerp(that, t)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+ -
+ t
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ lt(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ lte(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ max(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ min(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ multiply(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ multiplyEquals(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Point}
+ scalarAdd(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} scalar
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} new Point with added value
+
+
+
+
+
+
+
+
+
+
+
+
+ scalarAddEquals(scalar, thisArg)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} scalar
+
+
+
+
+ -
+ {fabric.Point} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ scalarSubtract(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ scalarSubtractEquals(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setFromPoint(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setXY(x, y)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ x
+
+
+
+
+ -
+ y
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Point}
+ subtract(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Point} that
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} new Point object with subtracted values
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Point}
+ subtractEquals(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Point} that
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ swap(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ toString()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Point
-
-
-
-
-
-
-
-
-
-
-
-
- - Defined in: point.class.js
-
-
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Point(x, y)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- add(that)
-
-
-
-
-
-
-
-
- addEquals(that)
-
-
-
-
-
-
-
-
- distanceFrom(that)
-
-
-
-
-
-
-
-
- divide(scalar)
-
-
-
-
-
-
-
-
- divideEquals(scalar)
-
-
-
-
-
-
-
-
- eq(that)
-
-
-
-
-
-
-
-
- gt(that)
-
-
-
-
-
-
-
-
- gte(that)
-
-
-
-
-
-
-
-
- init(x, y)
-
-
-
-
-
-
-
-
- lerp(that, t)
-
-
-
-
-
-
-
-
- lt(that)
-
-
-
-
-
-
-
-
- lte(that)
-
-
-
-
-
-
-
-
- max(that)
-
-
-
-
-
-
-
-
- min(that)
-
-
-
-
-
-
-
-
- multiply(scalar)
-
-
-
-
-
-
-
-
- multiplyEquals(scalar)
-
-
-
-
-
-
-
-
- scalarAdd(scalar)
-
-
-
-
-
-
-
-
- scalarAddEquals(scalar, thisArg)
-
-
-
-
-
-
-
-
- scalarSubtract(scalar)
-
-
-
-
-
-
-
-
- scalarSubtractEquals(scalar)
-
-
-
-
-
-
-
-
- setFromPoint(that)
-
-
-
-
-
-
-
-
- setXY(x, y)
-
-
-
-
-
-
-
-
- subtract(that)
-
-
-
-
-
-
-
-
- subtractEquals(that)
-
-
-
-
-
-
-
-
- swap(that)
-
-
-
-
-
-
-
-
- toString()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class Detail
-
-
-
- fabric.Point(x, y)
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} x
-
-
-
-
- -
- {Number} y
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- add(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Point} that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} new Point instance with added values
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- addEquals(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Point} that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- distanceFrom(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- divide(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- divideEquals(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- eq(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- gt(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- gte(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- init(x, y)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} x
-
-
-
-
- -
- {Number} y
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- lerp(that, t)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
- -
- t
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- lt(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- lte(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- max(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- min(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- multiply(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- multiplyEquals(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- scalarAdd(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} new Point with added value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- scalarAddEquals(scalar, thisArg)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} scalar
-
-
-
-
- -
- {fabric.Point} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- scalarSubtract(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- scalarSubtractEquals(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setFromPoint(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setXY(x, y)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- x
-
-
-
-
- -
- y
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- subtract(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Point} that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} new Point object with subtracted values
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- subtractEquals(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Point} that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- swap(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toString()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Polygon.html b/docs/symbols/fabric.Polygon.html
index 83c1b066..de5d4144 100644
--- a/docs/symbols/fabric.Polygon.html
+++ b/docs/symbols/fabric.Polygon.html
@@ -1,4 +1,5 @@
-
+
@@ -6,688 +7,715 @@
JsDoc Reference - fabric.Polygon
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Polygon
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Polygon
+
+
+
Defined in: polygon.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Polygon()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Polygon.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Polygon.fromElement`)
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns complexity of an instance
+
+
+
+
+ <static>
+
+ fabric.Polygon.fromElement(element, options)
+
+ Returns fabric.Polygon instance from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Polygon.fromObject(object)
+
+ Returns fabric.Polygon instance from an object representation
+
+
+
+
+
+
+ initialize(points, options)
+
+ Constructor
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Polygon.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Polygon.fromElement`)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity of this instance
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Polygon}
+ fabric.Polygon.fromElement(element, options)
+
+
+
+ Returns fabric.Polygon instance from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - Element to parse
+
+ -
+ {Object} options
+
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Polygon}
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Polygon}
+ fabric.Polygon.fromObject(object)
+
+
+
+ Returns fabric.Polygon instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+ - Object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Polygon}
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Polygon}
+ initialize(points, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} points
+
+
+ - Array of points
+
+ -
+ {Object} options
+
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Polygon} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Polygon
-
-
-
- Polygon
-
-
-
-
-
-
-
-
- - Defined in: polygon.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Polygon()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
- <static>
-
-
- fabric.Polygon.ATTRIBUTE_NAMES
-
- List of attribute names to account for when parsing SVG element (used by `fabric.Polygon.fromElement`)
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns complexity of an instance
-
-
-
-
- <static>
-
- fabric.Polygon.fromElement(element, options)
-
- Returns fabric.Polygon instance from an SVG element
-
-
-
-
- <static>
-
- fabric.Polygon.fromObject(object)
-
- Returns fabric.Polygon instance from an object representation
-
-
-
-
-
-
- initialize(points, options)
-
- Constructor
-
-
-
-
-
-
- toObject()
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Polygon.ATTRIBUTE_NAMES
-
-
-
- List of attribute names to account for when parsing SVG element (used by `fabric.Polygon.fromElement`)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns complexity of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity of this instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Returns fabric.Polygon instance from an SVG element
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {SVGElement} element
-
-
- - Element to parse
-
- -
- {Object} options
-
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Polygon}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Returns fabric.Polygon instance from an object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
- - Object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Polygon}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Polygon}
-
- initialize(points, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} points
-
-
- - Array of points
-
- -
- {Object} options
-
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Polygon} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Polyline.html b/docs/symbols/fabric.Polyline.html
index 9c70a721..f4354f50 100644
--- a/docs/symbols/fabric.Polyline.html
+++ b/docs/symbols/fabric.Polyline.html
@@ -1,4 +1,5 @@
-
+
@@ -6,653 +7,715 @@
JsDoc Reference - fabric.Polyline
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Polyline
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Polyline
+
+
+
Defined in: polyline.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Polyline()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Polyline.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Polyline.fromElement`)
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns complexity of an instance
+
+
+
+
+ <static>
+
+ fabric.Polyline.fromElement(element, options)
+
+ Returns fabric.Polyline instance from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Polyline.fromObject(object)
+
+ Returns fabric.Polyline instance from an object representation
+
+
+
+
+
+
+ initialize(points, options)
+
+ Constructor
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Polyline.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Polyline.fromElement`)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.Polyline.fromElement(element, options)
+
+
+
+ Returns fabric.Polyline instance from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - Element to parse
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} instance of fabric.Polyline
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Polyline}
+ fabric.Polyline.fromObject(object)
+
+
+
+ Returns fabric.Polyline instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+ Optional
+
+ - Object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Polyline}
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ initialize(points, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} points
+
+
+ - array of points
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Polyline
-
-
-
- Polyline
-
-
-
-
-
-
-
-
- - Defined in: polyline.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Polyline()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns complexity of an instance
-
-
-
-
- <static>
-
- fabric.Polyline.fromElement(element, options)
-
- Returns fabric.Polyline instance from an SVG element
-
-
-
-
- <static>
-
- fabric.Polyline.fromObject(object)
-
- Returns fabric.Polyline instance from an object representation
-
-
-
-
-
-
- initialize(points, options)
-
- Constructor
-
-
-
-
-
-
- toObject()
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns complexity of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {Object}
-
- fabric.Polyline.fromElement(element, options)
-
-
-
- Returns fabric.Polyline instance from an SVG element
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {SVGElement} element
-
-
- - Element to parse
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} instance of fabric.Polyline
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Returns fabric.Polyline instance from an object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
- Optional
-
- - Object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Polyline}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- initialize(points, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} points
-
-
- - array of points
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} Object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Rect.html b/docs/symbols/fabric.Rect.html
index 80472e15..ec474e67 100644
--- a/docs/symbols/fabric.Rect.html
+++ b/docs/symbols/fabric.Rect.html
@@ -1,4 +1,5 @@
-
+
@@ -6,624 +7,700 @@
JsDoc Reference - fabric.Rect
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Rect
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Rect
+
+
+
Defined in: rect.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Rect()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Rect.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Rect.fromElement`)
+
+
+
+
+
+
+
+ options
+
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+
+
+
+
+
+ <static>
+
+ fabric.Rect.fromElement(element, options)
+
+ Returns fabric.Rect instance from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Rect.fromObject(object)
+
+ Returns fabric.Rect instance from an object representation
+
+
+
+
+
+
+ initialize(options)
+
+ Constructor
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Rect.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Rect.fromElement`)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ options
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Rect}
+ fabric.Rect.fromElement(element, options)
+
+
+
+ Returns fabric.Rect instance from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ element
+
+
+ - {SVGElement} element to parse
+
+ -
+ options
+
+
+ - {Object} options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Rect} instance of fabric.Rect
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.Rect.fromObject(object)
+
+
+
+ Returns fabric.Rect instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+ - {Object} object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} instance of fabric.Rect
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ initialize(options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ options
+
+
+ - {Object} options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Rect
-
-
-
- Rect
-
-
-
-
-
-
-
-
- - Defined in: rect.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Rect()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
-
-
-
-
-
- <static>
-
- fabric.Rect.fromElement(element, options)
-
-
-
-
-
-
- <static>
-
- fabric.Rect.fromObject(object)
-
-
-
-
-
-
-
-
- initialize(options)
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- options
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- element
-
-
- - {SVGElement} element to parse
-
- -
- options
-
-
- - {Object} options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Rect} instance of fabric.Rect
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {Object}
-
- fabric.Rect.fromObject(object)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {Object} object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} instance of fabric.Rect
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- initialize(options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- options
-
-
- - {Object} options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Text.html b/docs/symbols/fabric.Text.html
index 6695c1b2..d93005e5 100644
--- a/docs/symbols/fabric.Text.html
+++ b/docs/symbols/fabric.Text.html
@@ -1,4 +1,5 @@
-
+
@@ -6,1107 +7,1009 @@
JsDoc Reference - fabric.Text
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Text
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Text
+
+
+
Defined in: text.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Text()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+
+
+
+ options
+
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.Text.fromElement(element)
+
+ Returns fabric.Text instance from an SVG element (not yet implemented)
+
+
+
+
+ <static>
+
+ fabric.Text.fromObject(object)
+
+ Returns fabric.Text instance from an object representation
+
+
+
+
+
+
+ getText()
+
+ Returns actual text value of an instance
+
+
+
+
+
+
+ initialize(text, options)
+
+ Constructor
+
+
+
+
+
+
+ render(ctx)
+
+ Renders text instance on a specified context
+
+
+
+
+
+
+ set(name, value)
+
+ Sets specified property to a specified value
+
+
+
+
+
+
+ setColor(value)
+
+ Sets "color" of an instance (alias of `set('fill', …)`)
+
+
+
+
+
+
+ setFontsize(value)
+
+ Sets fontsize of an instance and updates its coordinates
+
+
+
+
+
+
+ setText(value)
+
+ Sets text of an instance, and updates its coordinates
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+ toString()
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, complexity, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+
+
+ {Object}
+ options
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+ <static>
+
+ {fabric.Text}
+ fabric.Text.fromElement(element)
+
+
+
+ Returns fabric.Text instance from an SVG element (not yet implemented)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ element
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} an instance
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Text}
+ fabric.Text.fromObject(object)
+
+
+
+ Returns fabric.Text instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+ - to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} an instance
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ getText()
+
+
+
+ Returns actual text value of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String}
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ initialize(text, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} text
+
+
+
+
+ -
+ {Object} options
+ Optional
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx)
+
+
+
+ Renders text instance on a specified context
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ ctx
+
+
+ - {CanvasRenderingContext2D} context to render on
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ set(name, value)
+
+
+
+ Sets specified property to a specified value
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} name
+
+
+
+
+ -
+ {Any} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ setColor(value)
+
+
+
+ Sets "color" of an instance (alias of `set('fill', …)`)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ setFontsize(value)
+
+
+
+ Sets fontsize of an instance and updates its coordinates
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ setText(value)
+
+
+
+ Sets text of an instance, and updates its coordinates
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Object representation of text object
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} String representation of text object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Text
-
-
-
- Text
-
-
-
-
-
-
-
-
- - Defined in: text.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Text()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.Text.fromElement(element)
-
-
-
-
-
-
- <static>
-
- fabric.Text.fromObject(object)
-
- Returns fabric.Text instance from an object representation
-
-
-
-
-
-
- getText()
-
-
-
-
-
-
-
-
- initialize(text, options)
-
- Constructor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx)
-
-
-
-
-
-
-
-
- set(name, value)
-
- Sets specified property to a specified value
-
-
-
-
-
-
- setColor(value)
-
-
-
-
-
-
-
-
- setFontsize(value)
-
-
-
-
-
-
-
-
- setText(value)
-
- Sets text of an instance, and updates its coordinates
-
-
-
-
-
-
- toObject()
-
-
-
-
-
-
-
-
- toString()
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, complexity, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- options
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Returns fabric.Text instance from an object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
- - to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- getText()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- initialize(text, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} text
-
-
-
-
- -
- {Object} options
- Optional
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- initStateProperties()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- ctx
-
-
- - {CanvasRenderingContext2D} context to render on
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- set(name, value)
-
-
-
- Sets specified property to a specified value
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} name
-
-
-
-
- -
- {Any} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- setColor(value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- setFontsize(value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- setText(value)
-
-
-
- Sets text of an instance, and updates its coordinates
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} Object representation of text object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} String representation of text object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Triangle.html b/docs/symbols/fabric.Triangle.html
index f1076b52..bb4ab549 100644
--- a/docs/symbols/fabric.Triangle.html
+++ b/docs/symbols/fabric.Triangle.html
@@ -1,4 +1,5 @@
-
+
@@ -6,514 +7,578 @@
JsDoc Reference - fabric.Triangle
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Triangle
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Triangle
+
+
+
Defined in: triangle.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Triangle()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns complexity of an instance
+
+
+
+
+ <static>
+
+ fabric.Triangle.fromObject(object)
+
+ Returns fabric.Triangle instance from an object representation
+
+
+
+
+
+
+ initialize(options)
+
+ Constructor
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity of this instance
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.Triangle.fromObject(object)
+
+
+
+ Returns fabric.Triangle instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+ - {Object} object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} instance of Canvas.Triangle
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ initialize(options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ options
+
+
+ - {Object} options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Triangle
-
-
-
- Triangle
-
-
-
-
-
-
-
-
- - Defined in: triangle.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Triangle()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns complexity of an instance
-
-
-
-
- <static>
-
- fabric.Triangle.fromObject(object)
-
- Returns fabric.Triangle instance from an object representation
-
-
-
-
-
-
- initialize(options)
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns complexity of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity of this instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {Object}
-
- fabric.Triangle.fromObject(object)
-
-
-
- Returns fabric.Triangle instance from an object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {Object} object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} instance of Canvas.Triangle
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- initialize(options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- options
-
-
- - {Object} options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.html b/docs/symbols/fabric.html
new file mode 100644
index 00000000..b2e5380e
--- /dev/null
+++ b/docs/symbols/fabric.html
@@ -0,0 +1,800 @@
+
+
+
+
+
+
+ JsDoc Reference - fabric
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Classes
+
+
+ - _global_
+
+ - Array
+
+ - fabric
+
+ - fabric.Circle
+
+ - fabric.Color
+
+ - fabric.Element
+
+ - fabric.Element#cache
+
+ - fabric.Ellipse
+
+ - fabric.Group
+
+ - fabric.Image
+
+ - fabric.Intersection
+
+ - fabric.Line
+
+ - fabric.Object
+
+ - fabric.Path
+
+ - fabric.PathGroup
+
+ - fabric.Point
+
+ - fabric.Polygon
+
+ - fabric.Polyline
+
+ - fabric.Rect
+
+ - fabric.Text
+
+ - fabric.Triangle
+
+ - fabric.util
+
+ - fabric.util.array
+
+ - fabric.util.object
+
+ - fabric.util.string
+
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+
+
+ Namespace fabric
+
+
+
+
+
+
+
+
+
+
+
Defined in: parser.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.log(Values)
+
+ Wrapper around `console.log` (when available)
+
+
+
+
+ <static>
+
+ fabric.parseAttributes(element, attributes)
+
+ Returns an object of attributes' name/value, given element and an array of attribute names;
+Parses parent "g" nodes recursively upwards.
+
+
+
+
+ <static>
+
+ fabric.parseElements(elements, options)
+
+
+
+
+
+
+ <static>
+
+ fabric.parsePointsAttribute(points)
+
+
+
+
+
+
+ <static>
+
+ fabric.parseStyleAttribute(element)
+
+
+
+
+
+
+ <static>
+
+ fabric.parseSVGDocument(doc, callback)
+
+
+
+
+
+
+ <static>
+
+ fabric.parseTransformAttribute(attributeValue)
+
+
+
+
+
+
+ <static>
+
+ fabric.warn(Values)
+
+ Wrapper around `console.warn` (when available)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+ <static>
+
+
+ fabric.log(Values)
+
+
+
+ Wrapper around `console.log` (when available)
+
+
+ Defined in: fabric.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Any} Values
+
+
+ - to log
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.parseAttributes(element, attributes)
+
+
+
+ Returns an object of attributes' name/value, given element and an array of attribute names;
+Parses parent "g" nodes recursively upwards.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {DOMElement} element
+
+
+ - Element to parse
+
+ -
+ {Array} attributes
+
+
+ - Array of attributes to parse
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object containing parsed attributes' names/values
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Array}
+ fabric.parseElements(elements, options)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} elements
+
+
+ - Array of elements to parse
+
+ -
+ {Object} options
+
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} Array of corresponding instances (transformed from SVG elements)
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Array}
+ fabric.parsePointsAttribute(points)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ points
+
+
+ - {String} points attribute string
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} array of points
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.parseStyleAttribute(element)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - Element to parse
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Objects with values parsed from style attribute of an element
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.parseSVGDocument(doc, callback)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGDocument} doc
+
+
+ - SVG document to parse
+
+ -
+ {Function} callback
+
+
+ - Callback to call when parsing is finished; It's being passed an array of elements (parsed from a document).
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Array}
+ fabric.parseTransformAttribute(attributeValue)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ attributeValue
+
+
+ - {String} string containing attribute value
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} array of 6 elements representing transformation matrix
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.warn(Values)
+
+
+
+ Wrapper around `console.warn` (when available)
+
+
+ Defined in: fabric.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Any} Values
+
+
+ - to log as a warning
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:46 GMT-0400 (EDT)
+
+
+
diff --git a/docs/symbols/fabric.util.array.html b/docs/symbols/fabric.util.array.html
index 0f2a60c7..65c87d05 100644
--- a/docs/symbols/fabric.util.array.html
+++ b/docs/symbols/fabric.util.array.html
@@ -1,4 +1,5 @@
-
+
@@ -6,402 +7,521 @@
JsDoc Reference - fabric.util.array
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Namespace fabric.util.array
+
+
+
+
+
+
+
+
+
+
+
Defined in: lang_array.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.util.array.invoke(array, method)
+
+ Invokes method on all items in a given array
+
+
+
+
+ <static>
+
+ fabric.util.array.max(array, byProperty)
+
+ Finds maximum value in array (not necessarily "first" one)
+
+
+
+
+ <static>
+
+ fabric.util.array.min(array, byProperty)
+
+ Finds minimum value in array (not necessarily "first" one)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.util.array.invoke(array, method)
+
+
+
+ Invokes method on all items in a given array
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} array
+
+
+ - Array to iterate over
+
+ -
+ {String} method
+
+
+ - Name of a method to invoke
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.array.max(array, byProperty)
+
+
+
+ Finds maximum value in array (not necessarily "first" one)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.array.min(array, byProperty)
+
+
+
+ Finds minimum value in array (not necessarily "first" one)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Namespace fabric .util .array
-
-
-
-
-
-
-
-
-
-
-
-
- - Defined in: lang_array.js
-
-
-
-
-
-
-
-
-
- Namespace Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.util.array.invoke(array, method)
-
- Invokes method on all items in a given array
-
-
-
-
- <static>
-
- fabric.util.array.max(array, byProperty)
-
- Finds maximum value in array (not necessarily "first" one)
-
-
-
-
- <static>
-
- fabric.util.array.min(array, byProperty)
-
- Finds minimum value in array (not necessarily "first" one)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.array.invoke(array, method)
-
-
-
- Invokes method on all items in a given array
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} array
-
-
- - Array to iterate over
-
- -
- {String} method
-
-
- - Name of a method to invoke
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.array.max(array, byProperty)
-
-
-
- Finds maximum value in array (not necessarily "first" one)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.array.min(array, byProperty)
-
-
-
- Finds minimum value in array (not necessarily "first" one)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.util.html b/docs/symbols/fabric.util.html
index af3343ea..2b7a27e5 100644
--- a/docs/symbols/fabric.util.html
+++ b/docs/symbols/fabric.util.html
@@ -1,4 +1,5 @@
-
+
@@ -6,1763 +7,1643 @@
JsDoc Reference - fabric.util
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Namespace fabric.util
+
+
+
+
+
+
+
+
+
+
+
Defined in: util.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.util
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.util.addClass(element, className)
+
+ Adds class to an element
+
+
+
+
+ <static>
+
+ fabric.util.addListener(element, eventName, handler)
+
+ Adds an event listener to an element
+
+
+
+
+ <static>
+
+ fabric.util.animate(options)
+
+ Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
+
+
+
+
+ <static>
+
+ fabric.util.createClass()
+
+ Helper for creation of "classes"
+
+
+
+
+ <static>
+
+ fabric.util.degreesToRadians(degrees)
+
+ Transforms degrees to radians.
+
+
+
+
+ <static>
+
+ fabric.util.falseFunction()
+
+ Function which always returns `false`.
+
+
+
+
+ <static>
+
+ fabric.util.fireEvent(eventName, memo)
+
+ Fires event with an optional memo object
+
+
+
+
+ <static>
+
+ fabric.util.getById(id)
+
+ Takes id and returns an element with that id (if one exists in a document)
+
+
+
+
+ <static>
+
+ fabric.util.getElementOffset(element)
+
+ Returns offset for a given element
+
+
+
+
+ <static>
+
+ fabric.util.getPointer(event)
+
+ Cross-browser wrapper for getting event's coordinates
+
+
+
+
+ <static>
+
+ fabric.util.getRandomInt(min, max)
+
+ Returns random number between 2 specified ones.
+
+
+
+
+ <static>
+
+ fabric.util.getScript(url, callback)
+
+ Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
+
+
+
+
+ <static>
+
+ fabric.util.makeElement(tagName, attributes)
+
+ Creates specified element with specified attributes
+
+
+
+
+ <static>
+
+ fabric.util.makeElementUnselectable(element)
+
+ Makes element unselectable
+
+
+
+
+ <static>
+
+ fabric.util.observeEvent(eventName, handler)
+
+
+
+
+
+
+ <static>
+
+ fabric.util.removeFromArray(array, value)
+
+ Removes value from an array.
+
+
+
+
+ <static>
+
+ fabric.util.removeListener(element, eventName, handler)
+
+ Removes an event listener from an element
+
+
+
+
+ <static>
+
+ fabric.util.request(url, options)
+
+ Cross-browser abstraction for sending XMLHttpRequest
+
+
+
+
+ <static>
+
+ fabric.util.setStyle(element, styles)
+
+ Cross-browser wrapper for setting element's style
+
+
+
+
+ <static>
+
+ fabric.util.toArray(arrayLike)
+
+ Converts an array-like object (e.g.
+
+
+
+
+ <static>
+
+ fabric.util.toFixed(number, fractionDigits)
+
+ A wrapper around Number#toFixed, which contrary to native method returns number, not string.
+
+
+
+
+ <static>
+
+ fabric.util.wrapElement(element, wrapper, attributes)
+
+ Wraps element with another element
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
-
-
-
-
-
-
+
+ <static>
- Namespace fabric .util
-
-
-
-
-
-
-
-
-
-
-
- - Defined in: util.js
-
-
-
-
-
-
-
-
-
- Namespace Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.util
-
-
-
-
-
-
+ fabric.util.addClass(element, className)
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.util.addClass(element, className)
-
- Adds class to an element
-
-
-
-
- <static>
-
- fabric.util.addListener(element, eventName, handler)
-
- Adds an event listener to an element
-
-
-
-
- <static>
-
- fabric.util.animate(options)
-
- Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
-
-
-
-
- <static>
-
- fabric.util.createClass()
-
- Helper for creation of "classes"
-
-
-
-
- <static>
-
- fabric.util.degreesToRadians(degrees)
-
- Transforms degrees to radians.
-
-
-
-
- <static>
-
- fabric.util.falseFunction()
-
- Function which always returns `false`.
-
-
-
-
- <static>
-
- fabric.util.fireEvent(eventName, memo)
-
- Fires event with an optional memo object
-
-
-
-
- <static>
-
- fabric.util.getById(id)
-
- Takes id and returns an element with that id (if one exists in a document)
-
-
-
-
- <static>
-
- fabric.util.getElementOffset(element)
-
- Returns offset for a given element
-
-
-
-
- <static>
-
- fabric.util.getPointer(event)
-
- Cross-browser wrapper for getting event's coordinates
-
-
-
-
- <static>
-
- fabric.util.getRandomInt(min, max)
-
- Returns random number between 2 specified ones.
-
-
-
-
- <static>
-
- fabric.util.getScript(url, callback)
-
- Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
-
-
-
-
- <static>
-
- fabric.util.makeElement(tagName, attributes)
-
- Creates specified element with specified attributes
-
-
-
-
- <static>
-
- fabric.util.makeElementUnselectable(element)
-
- Makes element unselectable
-
-
-
-
- <static>
-
- fabric.util.observeEvent(eventName, handler)
-
-
-
-
-
-
- <static>
-
- fabric.util.removeFromArray(array, value)
-
- Removes value from an array.
-
-
-
-
- <static>
-
- fabric.util.removeListener(element, eventName, handler)
-
- Removes an event listener from an element
-
-
-
-
- <static>
-
- fabric.util.request(url, options)
-
- Cross-browser abstraction for sending XMLHttpRequest
-
-
-
-
- <static>
-
- fabric.util.setStyle(element, styles)
-
- Cross-browser wrapper for setting element's style
-
-
-
-
- <static>
-
- fabric.util.toArray(arrayLike)
-
- Converts an array-like object (e.g.
-
-
-
-
- <static>
-
- fabric.util.toFixed(number, fractionDigits)
-
- A wrapper around Number#toFixed, which contrary to native method returns number, not string.
-
-
-
-
- <static>
-
- fabric.util.wrapElement(element, wrapper, attributes)
-
- Wraps element with another element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Namespace Detail
-
-
-
- fabric.util
-
-
-
-
-
-
-
-
+
+ Adds class to an element
+
+
+ Defined in: dom_misc.js.
+
-
-
-
-
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+ - Element to add class to
+
+ -
+ {String} className
+
+
+ - Class to add to an element
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.addListener(element, eventName, handler)
+
+
+
+ Adds an event listener to an element
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+
+
+ -
+ {String} eventName
+
+
+
+
+ -
+ {Function} handler
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+ <static>
+
+
+ fabric.util.animate(options)
+
+
+
+ Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} options
+ Optional
+
+ - Animation options
+
+ -
+ {Function} options.onChange
+ Optional
+
+ - Callback; invoked on every value change
+
+ -
+ {Function} options.onComplete
+ Optional
+
+ - Callback; invoked when value change is completed
+
+ -
+ {Number} options.startValue
+ Optional, Default: 0
+
+ - Starting value
+
+ -
+ {Number} options.endValue
+ Optional, Default: 100
+
+ - Ending value
+
+ -
+ {Function} options.easing
+ Optional
+
+ - Easing function
+
+ -
+ {Number} options.duration
+ Optional, Default: 500
+
+ - Duration of change
+
+
+
+
+
+
+
+
+
-
+
-
-
-
- Method Detail
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.addClass(element, className)
-
-
-
- Adds class to an element
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to add class to
-
- -
- {String} className
-
-
- - Class to add to an element
-
-
-
-
-
+
+ <static>
+
+
+ fabric.util.createClass()
+
+
+
+ Helper for creation of "classes"
+
+
+ Defined in: lang_class.js.
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Number}
+ fabric.util.degreesToRadians(degrees)
+
+
+
+ Transforms degrees to radians.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {Number} degrees
-
-
- fabric.util.addListener(element, eventName, handler)
-
-
-
- Adds an event listener to an element
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
-
-
- -
- {String} eventName
-
-
-
-
- -
- {Function} handler
-
-
-
-
-
-
-
-
+
+ - value in degrees
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} value in radians
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Boolean}
+ fabric.util.falseFunction()
+
+
+
+ Function which always returns `false`.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
-
-
-
-
- <static>
-
-
-
-
- fabric.util.animate(options)
-
-
-
- Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} options
- Optional
-
- - Animation options
-
- -
- {Function} options.onChange
- Optional
-
- - Callback; invoked on every value change
-
- -
- {Function} options.onComplete
- Optional
-
- - Callback; invoked when value change is completed
-
- -
- {Number} options.startValue
- Optional, Default: 0
-
- - Starting value
-
- -
- {Number} options.endValue
- Optional, Default: 100
-
- - Ending value
-
- -
- {Function} options.easing
- Optional
-
- - Easing function
-
- -
- {Number} options.duration
- Optional, Default: 500
-
- - Duration of change
-
-
-
-
-
+ - {Boolean}
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.fireEvent(eventName, memo)
+
+
+
+ Fires event with an optional memo object
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} eventName
-
-
- fabric.util.createClass()
-
-
-
- Helper for creation of "classes"
-
-
-
- Defined in: lang_class.js.
-
-
-
-
-
-
-
-
-
-
+
+
+
+ -
+ {Object} memo
+ Optional
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {HTMLElement|null}
+ fabric.util.getById(id)
+
+
+
+ Takes id and returns an element with that id (if one exists in a document)
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String|HTMLElement} id
- {Number}
-
- fabric.util.degreesToRadians(degrees)
-
-
-
- Transforms degrees to radians.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} degrees
-
-
- - value in degrees
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} value in radians
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement|null}
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Object}
+ fabric.util.getElementOffset(element)
+
+
+
+ Returns offset for a given element
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {HTMLElement} element
- {Boolean}
-
- fabric.util.falseFunction()
-
-
-
- Function which always returns `false`.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean}
-
-
-
-
-
-
-
-
-
+
+ - Element to get offset for
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Object with "left" and "top" properties
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.getPointer(event)
+
+
+
+ Cross-browser wrapper for getting event's coordinates
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {Event} event
-
-
- fabric.util.fireEvent(eventName, memo)
-
-
-
- Fires event with an optional memo object
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} eventName
-
-
-
-
- -
- {Object} memo
- Optional
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Number}
+ fabric.util.getRandomInt(min, max)
+
+
+
+ Returns random number between 2 specified ones.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {Number} min
- {HTMLElement|null}
+
+ - lower limit
+
+ -
+ {Number} max
- fabric.util.getById(id)
-
-
-
- Takes id and returns an element with that id (if one exists in a document)
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String|HTMLElement} id
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement|null}
-
-
-
-
-
-
-
-
-
+
+ - upper limit
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} random value (between min and max)
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.getScript(url, callback)
+
+
+
+ Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} url
- {Object}
+
+ - URL of a script to load
+
+ -
+ {Function} callback
- fabric.util.getElementOffset(element)
-
-
-
- Returns offset for a given element
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to get offset for
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} Object with "left" and "top" properties
-
-
-
-
-
-
-
-
-
+
+ - Callback to execute when script is finished loading
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.makeElement(tagName, attributes)
+
+
+
+ Creates specified element with specified attributes
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} tagName
-
-
- fabric.util.getPointer(event)
-
-
-
- Cross-browser wrapper for getting event's coordinates
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Event} event
-
-
-
-
-
-
-
-
+
+ - Type of an element to create
+
+ -
+ {Object} attributes
+ Optional
+
+ - Attributes to set on an element
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} Newly created element
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.makeElementUnselectable(element)
+
+
+
+ Makes element unselectable
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {HTMLElement} element
- {Number}
-
- fabric.util.getRandomInt(min, max)
-
-
-
- Returns random number between 2 specified ones.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} min
-
-
- - lower limit
-
- -
- {Number} max
-
-
- - upper limit
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} random value (between min and max)
-
-
-
-
-
-
-
-
-
+
+ - Element to make unselectable
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} Element that was passed in
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.observeEvent(eventName, handler)
+
+
+
+
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} eventName
+
+
+
+ -
+ {Function} handler
-
- fabric.util.getScript(url, callback)
-
-
-
- Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.makeElement(tagName, attributes)
-
-
-
- Creates specified element with specified attributes
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} tagName
-
-
- - Type of an element to create
-
- -
- {Object} attributes
- Optional
-
- - Attributes to set on an element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} Newly created element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.makeElementUnselectable(element)
-
-
-
- Makes element unselectable
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to make unselectable
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} Element that was passed in
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.observeEvent(eventName, handler)
-
-
-
-
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Removes value from an array.
+
+
+
+ <static>
+
+ {Array}
+ fabric.util.removeFromArray(array, value)
+
+
+
+ Removes value from an array.
Presence of value (and its position in an array) is determined via `Array.prototype.indexOf`
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} array
-
-
-
-
- -
- {Any} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Array} original array
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.removeListener(element, eventName, handler)
-
-
-
- Removes an event listener from an element
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
-
-
- -
- {String} eventName
-
-
-
-
- -
- {Function} handler
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {XMLHttpRequest}
-
- fabric.util.request(url, options)
-
-
-
- Cross-browser abstraction for sending XMLHttpRequest
-
-
-
- Defined in: dom_request.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} url
-
-
- - URL to send XMLHttpRequest to
-
- -
- {Object} options
- Optional
-
- - Options object
-
- -
- {String} options.method
- Optional, Default: "GET"
-
-
-
- -
- {Function} options.onComplete
-
-
- - Callback to invoke when request is completed
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {XMLHttpRequest} request
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.setStyle(element, styles)
-
-
-
- Cross-browser wrapper for setting element's style
-
-
-
- Defined in: dom_style.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
-
-
- -
- {Object} styles
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} Element that was passed as a first argument
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Converts an array-like object (e.g. arguments or NodeList) to an array
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} arrayLike
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Array}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {Number}
-
- fabric.util.toFixed(number, fractionDigits)
-
-
-
- A wrapper around Number#toFixed, which contrary to native method returns number, not string.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number | String} number
-
-
- - number to operate on
-
- -
- {Number} fractionDigits
-
-
- - number of fraction digits to "leave"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.wrapElement(element, wrapper, attributes)
-
-
-
- Wraps element with another element
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to wrap
-
- -
- {HTMLElement|String} wrapper
-
-
- - Element to wrap with
-
- -
- {Object} attributes
- Optional
-
- - Attributes to set on a wrapper
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} wrapper
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} array
+
+
+
+
+ -
+ {Any} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} original array
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.removeListener(element, eventName, handler)
+
+
+
+ Removes an event listener from an element
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+
+
+ -
+ {String} eventName
+
+
+
+
+ -
+ {Function} handler
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+ <static>
+
+ {XMLHttpRequest}
+ fabric.util.request(url, options)
+
+
+
+ Cross-browser abstraction for sending XMLHttpRequest
+
+
+ Defined in: dom_request.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} url
+
+
+ - URL to send XMLHttpRequest to
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+ -
+ {String} options.method
+ Optional, Default: "GET"
+
+
+
+ -
+ {Function} options.onComplete
+
+
+ - Callback to invoke when request is completed
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {XMLHttpRequest} request
+
+
+
+
+
+
+
-
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.setStyle(element, styles)
+
+
+
+ Cross-browser wrapper for setting element's style
+
+
+ Defined in: dom_style.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+
+
+ -
+ {Object} styles
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} Element that was passed as a first argument
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Array}
+ fabric.util.toArray(arrayLike)
+
+
+
+ Converts an array-like object (e.g. arguments or NodeList) to an array
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} arrayLike
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array}
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Number}
+ fabric.util.toFixed(number, fractionDigits)
+
+
+
+ A wrapper around Number#toFixed, which contrary to native method returns number, not string.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number | String} number
+
+
+ - number to operate on
+
+ -
+ {Number} fractionDigits
+
+
+ - number of fraction digits to "leave"
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number}
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.wrapElement(element, wrapper, attributes)
+
+
+
+ Wraps element with another element
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+ - Element to wrap
+
+ -
+ {HTMLElement|String} wrapper
+
+
+ - Element to wrap with
+
+ -
+ {Object} attributes
+ Optional
+
+ - Attributes to set on a wrapper
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} wrapper
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
+
diff --git a/docs/symbols/fabric.util.object.html b/docs/symbols/fabric.util.object.html
index 2611614b..c0a90b2a 100644
--- a/docs/symbols/fabric.util.object.html
+++ b/docs/symbols/fabric.util.object.html
@@ -1,4 +1,5 @@
-
+
@@ -6,342 +7,464 @@
JsDoc Reference - fabric.util.object
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Namespace fabric.util.object
+
+
+
+
+
+
+
+ fabric.util.object
+
+
+
Defined in: lang_object.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.util.object.clone(object)
+
+ Creates an empty object and copies all enumerable properties of another object to it
+
+
+
+
+ <static>
+
+ fabric.util.object.extend(destination, source)
+
+ Copies all enumerable properties of one object to another
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.util.object.clone(object)
+
+
+
+ Creates an empty object and copies all enumerable properties of another object to it
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+ - Object to clone
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.object.extend(destination, source)
+
+
+
+ Copies all enumerable properties of one object to another
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} destination
+
+
+ - Where to copy to
+
+ -
+ {Object} source
+
+
+ - Where to copy from
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Namespace fabric .util .object
-
-
-
- fabric.util.object
-
-
-
-
-
-
-
-
- - Defined in: lang_object.js
-
-
-
-
-
-
-
-
-
- Namespace Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.util.object.clone(object)
-
- Creates an empty object and copies all enumerable properties of another object to it
-
-
-
-
- <static>
-
- fabric.util.object.extend(destination, source)
-
- Copies all enumerable properties of one object to another
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.object.clone(object)
-
-
-
- Creates an empty object and copies all enumerable properties of another object to it
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
- - Object to clone
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.object.extend(destination, source)
-
-
-
- Copies all enumerable properties of one object to another
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} destination
-
-
- - Where to copy to
-
- -
- {Object} source
-
-
- - Where to copy from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.util.string.html b/docs/symbols/fabric.util.string.html
index 50a1c219..d0846484 100644
--- a/docs/symbols/fabric.util.string.html
+++ b/docs/symbols/fabric.util.string.html
@@ -1,4 +1,5 @@
-
+
@@ -6,378 +7,472 @@
JsDoc Reference - fabric.util.string
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Namespace fabric.util.string
+
+
+
+
+
+
+
+
+
+
+
Defined in: lang_string.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.util.string.camelize(string)
+
+ Camelizes a string
+
+
+
+
+ <static>
+
+ fabric.util.string.capitalize(string)
+
+ Capitalizes a string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+ {String}
+ fabric.util.string.camelize(string)
+
+
+
+ Camelizes a string
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} string
+
+
+ - String to camelize
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} Camelized version of a string
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {String}
+ fabric.util.string.capitalize(string)
+
+
+
+ Capitalizes a string
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} string
+
+
+ - String to capitalize
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} Capitalized version of a string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Namespace fabric .util .string
-
-
-
-
-
-
-
-
-
-
-
-
- - Defined in: lang_string.js
-
-
-
-
-
-
-
-
-
- Namespace Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.util.string.camelize(string)
-
- Camelizes a string
-
-
-
-
- <static>
-
- fabric.util.string.capitalize(string)
-
- Capitalizes a string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
- Camelizes a string
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} string
-
-
- - String to camelize
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} Camelized version of a string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Capitalizes a string
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} string
-
-
- - String to capitalize
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} Capitalized version of a string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/src/src_circle.class.js.html b/docs/symbols/src/src_circle.class.js.html
index 0e78bb5a..1433b6b5 100644
--- a/docs/symbols/src/src_circle.class.js.html
+++ b/docs/symbols/src/src_circle.class.js.html
@@ -24,110 +24,113 @@
17 */
18 fabric.Circle = fabric.util.createClass(fabric.Object, /** @scope fabric.Circle.prototype */ {
19
- 20 /** @property */
- 21 type: 'circle',
- 22
- 23 /**
- 24 * Constructor
- 25 * @method initialize
- 26 * @param {Object} [options] Options object
- 27 * @return {fabric.Circle} thisArg
- 28 */
- 29 initialize: function(options) {
- 30 options = options || { };
- 31
- 32 this.set('radius', options.radius || 0);
- 33 this.callSuper('initialize', options);
+ 20 /**
+ 21 * @property
+ 22 * @type String
+ 23 */
+ 24 type: 'circle',
+ 25
+ 26 /**
+ 27 * Constructor
+ 28 * @method initialize
+ 29 * @param {Object} [options] Options object
+ 30 * @return {fabric.Circle} thisArg
+ 31 */
+ 32 initialize: function(options) {
+ 33 options = options || { };
34
- 35 var radiusBy2ByScale = this.get('radius') * 2 * this.get('scaleX');
- 36 this.set('width', radiusBy2ByScale).set('height', radiusBy2ByScale);
- 37 },
- 38
- 39 /**
- 40 * Returns object representation of an instance
- 41 * @method toObject
- 42 * @return {Object} object representation of an instance
- 43 */
- 44 toObject: function() {
- 45 return extend(this.callSuper('toObject'), {
- 46 radius: this.get('radius')
- 47 });
- 48 },
- 49
- 50 /**
- 51 * @private
- 52 * @method _render
- 53 * @param ctx {CanvasRenderingContext2D} context to render on
- 54 */
- 55 _render: function(ctx, noTransform) {
- 56 ctx.beginPath();
- 57 ctx.arc(noTransform ? this.left : 0, noTransform ? this.top : 0, this.radius, 0, piBy2, false);
- 58 ctx.closePath();
- 59 if (this.fill) {
- 60 ctx.fill();
- 61 }
- 62 if (this.stroke) {
- 63 ctx.stroke();
+ 35 this.set('radius', options.radius || 0);
+ 36 this.callSuper('initialize', options);
+ 37
+ 38 var radiusBy2ByScale = this.get('radius') * 2 * this.get('scaleX');
+ 39 this.set('width', radiusBy2ByScale).set('height', radiusBy2ByScale);
+ 40 },
+ 41
+ 42 /**
+ 43 * Returns object representation of an instance
+ 44 * @method toObject
+ 45 * @return {Object} object representation of an instance
+ 46 */
+ 47 toObject: function() {
+ 48 return extend(this.callSuper('toObject'), {
+ 49 radius: this.get('radius')
+ 50 });
+ 51 },
+ 52
+ 53 /**
+ 54 * @private
+ 55 * @method _render
+ 56 * @param ctx {CanvasRenderingContext2D} context to render on
+ 57 */
+ 58 _render: function(ctx, noTransform) {
+ 59 ctx.beginPath();
+ 60 ctx.arc(noTransform ? this.left : 0, noTransform ? this.top : 0, this.radius, 0, piBy2, false);
+ 61 ctx.closePath();
+ 62 if (this.fill) {
+ 63 ctx.fill();
64 }
- 65 },
- 66
- 67
- 68 /**
- 69 * Returns complexity of an instance
- 70 * @method complexity
- 71 * @return {Number} complexity of this instance
- 72 */
- 73 complexity: function() {
- 74 return 1;
- 75 }
- 76 });
- 77
- 78 /**
- 79 * List of attribute names to account for when parsing SVG element (used by `fabric.Circle.fromElement`)
- 80 * @static
- 81 * @see: http://www.w3.org/TR/SVG/shapes.html#CircleElement
- 82 */
- 83 fabric.Circle.ATTRIBUTE_NAMES = 'cx cy r fill fill-opacity stroke stroke-width transform'.split(' ');
- 84
- 85 /**
- 86 * Returns fabric.Circle instance from an SVG element
- 87 * @static
- 88 * @method fabric.Circle.fromElement
- 89 * @param element {SVGElement} element to parse
- 90 * @param options {Object} options object
- 91 * @throws {Error} If value of `r` attribute is missing or invalid
- 92 * @return {Object} instance of fabric.Circle
- 93 */
- 94 fabric.Circle.fromElement = function(element, options) {
- 95 options || (options = { });
- 96 var parsedAttributes = fabric.parseAttributes(element, fabric.Circle.ATTRIBUTE_NAMES);
- 97 if (!isValidRadius(parsedAttributes)) {
- 98 throw Error('value of `r` attribute is required and can not be negative');
- 99 }
-100 if ('left' in parsedAttributes) {
-101 parsedAttributes.left -= (options.width / 2) || 0;
+ 65 if (this.stroke) {
+ 66 ctx.stroke();
+ 67 }
+ 68 },
+ 69
+ 70
+ 71 /**
+ 72 * Returns complexity of an instance
+ 73 * @method complexity
+ 74 * @return {Number} complexity of this instance
+ 75 */
+ 76 complexity: function() {
+ 77 return 1;
+ 78 }
+ 79 });
+ 80
+ 81 /**
+ 82 * List of attribute names to account for when parsing SVG element (used by `fabric.Circle.fromElement`)
+ 83 * @static
+ 84 * @see: http://www.w3.org/TR/SVG/shapes.html#CircleElement
+ 85 */
+ 86 fabric.Circle.ATTRIBUTE_NAMES = 'cx cy r fill fill-opacity stroke stroke-width transform'.split(' ');
+ 87
+ 88 /**
+ 89 * Returns fabric.Circle instance from an SVG element
+ 90 * @static
+ 91 * @method fabric.Circle.fromElement
+ 92 * @param element {SVGElement} element to parse
+ 93 * @param options {Object} options object
+ 94 * @throws {Error} If value of `r` attribute is missing or invalid
+ 95 * @return {Object} instance of fabric.Circle
+ 96 */
+ 97 fabric.Circle.fromElement = function(element, options) {
+ 98 options || (options = { });
+ 99 var parsedAttributes = fabric.parseAttributes(element, fabric.Circle.ATTRIBUTE_NAMES);
+100 if (!isValidRadius(parsedAttributes)) {
+101 throw Error('value of `r` attribute is required and can not be negative');
102 }
-103 if ('top' in parsedAttributes) {
-104 parsedAttributes.top -= (options.height / 2) || 0;
+103 if ('left' in parsedAttributes) {
+104 parsedAttributes.left -= (options.width / 2) || 0;
105 }
-106 return new fabric.Circle(extend(parsedAttributes, options));
-107 };
-108
-109 /**
-110 * @private
-111 */
-112 function isValidRadius(attributes) {
-113 return (('radius' in attributes) && (attributes.radius > 0));
-114 }
-115
-116 /**
-117 * Returns fabric.Circle instance from an object representation
-118 * @static
-119 * @method fabric.Circle.fromObject
-120 * @param {Object} object Object to create an instance from
-121 * @return {Object} Instance of fabric.Circle
-122 */
-123 fabric.Circle.fromObject = function(object) {
-124 return new fabric.Circle(object);
-125 }
-126 })();
- fabric.Element -
- - - --
-
-
-
-
- Defined in: element.class.js - - - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - |
-
- fabric.Element(el, options)
-
-
- |
-
| Field Attributes | -Field Name and Description | -
|---|---|
| <static> | -
-
- fabric.Element.ATTRIBUTE_NAMES
-
-
- |
-
| - |
-
- backgroundColor
-
-
- |
-
| <constant> | -
-
- CANVAS_HEIGHT
-
-
- |
-
| <constant> | -
-
- CANVAS_WIDTH
-
-
- |
-
| <static> | -
-
- fabric.Element.EMPTY_JSON
-
-
- |
-
| - |
-
- freeDrawingColor
-
-
- |
-
| - | - - - | -
| - | - - - | -
| - | - - - | -
| - |
-
- selectionColor
-
-
- |
-
| - | - - - | -
| - | - - - | -
| Method Attributes | -Method Name and Description | -
|---|---|
| - |
- add()
-
- Adds objects to canvas, then renders canvas;
-Objects should be instances of (or inherit from) fabric.Object
- |
-
| - |
- bringForward(object)
-
- Moves an object one level up in stack of drawn objects
- |
-
| - |
- bringToFront(object)
-
- Moves an object to the top of the stack of drawn objects
- |
-
| - |
- calcOffset()
-
- Calculates canvas element offset relative to the document
-This method is also attached as "resize" event handler of window
- |
-
| - |
- centerObjectH(object)
-
- Centers object horizontally.
- |
-
| - |
- centerObjectV(object)
-
- Centers object vertically.
- |
-
| - |
- clear()
-
- Clears all contexts (background, main, top) of an instance
- |
-
| - |
- clearContext(context)
-
- Clears specified context of canvas element
- |
-
| - |
- clone(callback)
-
- Clones canvas instance
- |
-
| - |
- complexity()
-
- Returns number representation of an instance complexity
- |
-
| - |
- containsPoint(e, target)
-
- Applies one implementation of 'point inside polygon' algorithm
- |
-
| - |
- deactivateAll()
-
- Deactivates all objects by calling their setActive(false)
- |
-
| - |
-
- Deactivates all objects and dispatches appropriate events
- |
-
| - |
- dispose()
-
- Clears a canvas element and removes all event handlers.
- |
-
| - |
- findTarget(e, skipGroup)
-
- Method that determines what object we are clicking on
- |
-
| - |
- fxCenterObjectH(object, callbacks)
-
- Centers object horizontally with animation.
- |
-
| - |
- fxCenterObjectV(object, callbacks)
-
- Centers object vertically with animation.
- |
-
| - |
- fxRemove(object, callback)
-
- Same as `fabric.Element#remove` but animated
- |
-
| - |
- fxStraightenObject(object)
-
- Same as `fabric.Element#straightenObject`, but animated
- |
-
| - |
- getActiveGroup()
-
- Returns currently active group
- |
-
| - |
- getActiveObject()
-
- Returns currently active object
- |
-
| - |
- getCenter()
-
- Returns coordinates of a center of canvas.
- |
-
| - |
- getContext()
-
- Returns topmost canvas context
- |
-
| - |
- getElement()
-
- Returns <canvas> element corresponding to this instance
- |
-
| - |
- getHeight()
-
- Returns canvas height
- |
-
| - |
- getObjects()
-
- Returns an array of objects this instance has
- |
-
| - |
- getPointer(e)
-
- Returns pointer coordinates relative to canvas.
- |
-
| - |
- getWidth()
-
- Returns canvas width
- |
-
| - |
- insertAt(object, index)
-
- Inserts an object to canvas at specified index and renders canvas.
- |
-
| - |
- isEmpty()
-
- Returns true if canvas contains no objects
- |
-
| - |
- item(index)
-
- Returns object at specified index
- |
-
| - |
- loadFromDatalessJSON(json, callback)
-
- Populates canvas with data from the specified dataless JSON
-JSON format must conform to the one of `fabric.Element#toDatalessJSON`
- |
-
| - |
- loadFromJSON(json, callback)
-
- Populates canvas with data from the specified JSON
-JSON format must conform to the one of `fabric.Element#toJSON`
- |
-
| - |
- loadImageFromURL(url, callback)
-
- Loads an image from URL
- |
-
| - |
- loadSVGFromURL(url, callback)
-
- Takes url corresponding to an SVG document, and parses it to a set of objects
- |
-
| - |
- onBeforeScaleRotate(target)
-
- Callback; invoked right before object is about to be scaled/rotated
- |
-
| - |
- onFpsUpdate(fps)
-
- Callback; invoked on every redraw of canvas and is being passed a number indicating current fps
- |
-
| - |
- remove(object)
-
- Removes an object from canvas and returns it
- |
-
| - |
-
- Removes currently active group
- |
-
| - |
-
- Removes currently active object
- |
-
| - |
- renderAll(allOnTop)
-
- Renders both the top canvas and the secondary container canvas.
- |
-
| - |
- renderTop()
-
- Method to render only the top canvas.
- |
-
| - |
- sendBackwards(object)
-
- Moves an object one level down in stack of drawn objects
- |
-
| - |
- sendToBack(object)
-
- Moves an object to the bottom of the stack of drawn objects
- |
-
| - |
- setActiveGroup(group)
-
- Sets active group to a speicified one
- |
-
| - |
- setActiveObject(object)
-
- Sets given object as active
- |
-
| - |
- setDimensions(dimensions)
-
- Sets dimensions (width, height) of this canvas instance
- |
-
| - |
- setHeight(height)
-
- Sets height of this canvas instance
- |
-
| - |
- setOverlayImage(url, callback)
-
- Sets overlay image for this canvas
- |
-
| - |
- setWidth(width)
-
- Sets width of this canvas instance
- |
-
| - |
- straightenObject(object)
-
- Straightens object, then rerenders canvas
- |
-
| <static> | -
- fabric.Element.supports(methodName)
-
- Provides a way to check support of some of the canvas methods
-(either those of HTMLCanvasElement itself, or rendering context)
- |
-
| - |
- toDatalessJSON()
-
- Returs dataless JSON representation of canvas
- |
-
| - |
- toDatalessObject()
-
- Returns dataless object representation of canvas
- |
-
| - |
- toDataURL(format)
-
- Exports canvas element to a dataurl image.
- |
-
| - |
- toDataURLWithMultiplier(format, multiplier)
-
- Exports canvas element to a dataurl image (allowing to change image size via multiplier).
- |
-
| <static> | -
- fabric.Element.toGrayscale(canvasEl)
-
- Takes <canvas> element and transforms its data in such way that it becomes grayscale
- |
-
| - |
- toJSON()
-
- Returs JSON representation of canvas
- |
-
| - |
- toObject()
-
- Returns object representation of canvas
- |
-
| - |
- toString()
-
- Returns a string representation of an instance
- |
-
-
-
- Parameters: - -
- - {HTMLElement | String} el - - -
- <canvas> element to initialize instance on - -
- - {Object} options - Optional - -
- Options object - -
- - - -
- Defined in: line.class.js. - - - -
-
-
-
-
-
-
- See: - -
- http://www.w3.org/TR/SVG/shapes.html#LineElement - - - -
-
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
- Parameters: - -
- - object - - -
- {fabric.Object} Object to send - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
- Parameters: - -
- - object - - -
- {fabric.Object} Object to send - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} instance - - - - - - - -
-
-
- Parameters: - -
- - {fabric.Object} object - - -
- Object to center - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
- Parameters: - -
- - {fabric.Object} object - - -
- Object to center - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
- Parameters: - -
- - context - - -
- {Object} ctx context to clear - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
- Parameters: - -
- - {Object} callback - Optional - -
- Expects `onBeforeClone` and `onAfterClone` functions - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} Clone of this instance - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Number} complexity - - - - - - - -
-
-
- Parameters: - -
- - e - - -
- { Event } event object - -
- - target - - -
- { fabric.Object } object to test against - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Boolean} true if point contains within area of given object - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
- Parameters: - -
- - {Event} e - - -
- mouse event - -
- - {Boolean} skipGroup - - -
- when true, group is skipped and only objects are traversed through - -
-
-
- Parameters: - -
- - {fabric.Object} object - - -
- Object to center - -
- - {Object} callbacks - Optional - -
- Callbacks object with optional "onComplete" and/or "onChange" properties - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
- Parameters: - -
- - {fabric.Object} object - - -
- Object to center - -
- - {Object} callbacks - Optional - -
- Callbacks object with optional "onComplete" and/or "onChange" properties - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
- Parameters: - -
- - {fabric.Object} object - - -
- Object to remove - -
- - {Function} callback - - -
- Callback, invoked on effect completion - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
- Parameters: - -
- - {fabric.Object} object - - -
- Object to straighten - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Group} Current group - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Object} active object - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} object with "top" and "left" number values - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {CanvasRenderingContext2D} - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {HTMLCanvasElement} - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Number} - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Array} - - - - - - - -
-
-
- Parameters: - -
- - e - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} object with "x" and "y" number values - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Number} - - - - - - - -
-
-
- Parameters: - -
- - object - - -
- {Object} Object to insert - -
- - index - - -
- {Number} index to insert object at - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} instance - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Boolean} true if canvas is empty - - - - - - - -
-
-
- Parameters: - -
- - {Number} index - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Object} - - - - - - - -
-
-
- Parameters: - -
- - {String} json - - -
- JSON string - -
- - {Function} callback - - -
- Callback, invoked when json is parsed - and corresponding objects (e.g: fabric.Image) - are initialized - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} instance - - - - - - - -
-
-
- Parameters: - -
- - {String} json - - -
- JSON string - -
- - {Function} callback - - -
- Callback, invoked when json is parsed - and corresponding objects (e.g: fabric.Image) - are initialized - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} instance - - - - - - - -
-
-
- Parameters: - -
- - url - - -
- {String} url of image to load - -
- - callback - - -
- {Function} calback, invoked when image is loaded - -
-
-
- Parameters: - -
- - {fabric.Object} target - - -
- Object that's about to be scaled/rotated - -
-
-
- Parameters: - -
- - {Number} fps - - - - -
-
-
- Parameters: - -
- - object - - -
- {Object} Object to remove - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} removed object - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
- Parameters: - -
- - allOnTop - - -
- {Boolean} optional Whether we want to force all images to be rendered on the top canvas - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} instance - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
- Parameters: - -
- - object - - -
- {fabric.Object} Object to send - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
- Parameters: - -
- - object - - -
- {fabric.Object} Object to send to back - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
- Parameters: - -
- - {fabric.Group} group - - -
- Group to set as a current one - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
- Parameters: - -
- - object - - -
- {fabric.Object} Object to set as an active one - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
- Parameters: - -
- - {Object} dimensions - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
- Parameters: - -
- - {Number} height - - -
- value to set height to - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} instance - - - - - - - -
-
-
- Parameters: - -
- - {String} url - - -
- url of an image to set background to - -
- - {Function} callback - - -
- callback to invoke when image is loaded and set as an overlay one - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
- Parameters: - -
- - {Number} width - - -
- value to set width to - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} instance - - - - - - - -
-
-
- Parameters: - -
- - {fabric.Object} object - - -
- Object to straighten - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Element} thisArg - - - - - - - -
-
-
- Parameters: - -
- - methodName - - -
- {String} Method to check support for; - Could be one of "getImageData" or "toDataURL" - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Boolean | null} `true` if method is supported (or at least exists), - `null` if canvas element or context can not be initialized - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {String} json string - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} - - - - - - - -
-
-
- Parameters: - -
- - {String} format - - -
- the format of the output image. Either "jpeg" or "png". - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {String} - - - - - - - -
-
-
- Parameters: - -
- - {String} format - - -
- (png|jpeg) - -
- - {Number} multiplier - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {String} - - - - - - - -
-
-
- Parameters: - -
- - {HTMLCanvasElement} canvasEl - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {String} json string - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {String} string representation of an instance - - - - - - - -
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ +
-
+
- Parameters: + +
- + object + + +
- {fabric.Object} Object to send + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
- + +
-
+
- Parameters: + +
- + object + + +
- {fabric.Object} Object to send + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
-
-
+
- Returns: + +
- {fabric.Element} instance + +
+ + +
-
+
- Parameters: + +
- + {fabric.Object} object + + +
- Object to center + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Parameters: + +
- + {fabric.Object} object + + +
- Object to center + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Parameters: + +
- + context + + +
- {Object} ctx context to clear + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Parameters: + +
- + {Object} callback + Optional + +
- Expects `onBeforeClone` and `onAfterClone` functions + +
-
+
- Returns: + +
- {fabric.Element} Clone of this instance + +
+ + +
-
+
- Returns: + +
- {Number} complexity + +
+ + +
-
+
- Parameters: + +
- + e + + +
- { Event } event object + +
- + target + + +
- { fabric.Object } object to test against + +
-
+
- Returns: + +
- {Boolean} true if point contains within area of given object + +
+ + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Parameters: + +
- + {Event} e + + +
- mouse event + +
- + {Boolean} skipGroup + + +
- when true, group is skipped and only objects are traversed through + +
+ + +
-
+
- Parameters: + +
- + {fabric.Object} object + + +
- Object to center + +
- + {Object} callbacks + Optional + +
- Callbacks object with optional "onComplete" and/or "onChange" properties + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Parameters: + +
- + {fabric.Object} object + + +
- Object to center + +
- + {Object} callbacks + Optional + +
- Callbacks object with optional "onComplete" and/or "onChange" properties + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Parameters: + +
- + {fabric.Object} object + + +
- Object to remove + +
- + {Function} callback + + +
- Callback, invoked on effect completion + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Parameters: + +
- + {fabric.Object} object + + +
- Object to straighten + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Returns: + +
- {fabric.Group} Current group + +
+ + +
-
+
- Returns: + +
- {fabric.Object} active object + +
+ + +
-
+
- Returns: + +
- {Object} object with "top" and "left" number values + +
+ + +
-
+
- Returns: + +
- {CanvasRenderingContext2D} + +
+ + +
-
+
- Returns: + +
- {HTMLCanvasElement} + +
+ + +
-
+
- Returns: + +
- {Number} + +
+ + +
-
+
- Returns: + +
- {Array} + +
+ + +
-
+
- Parameters: + +
- + e + + + + +
-
+
- Returns: + +
- {Object} object with "x" and "y" number values + +
+ + +
-
+
- Returns: + +
- {Number} + +
+ + +
-
+
- Parameters: + +
- + object + + +
- {Object} Object to insert + +
- + index + + +
- {Number} index to insert object at + +
-
+
- Returns: + +
- {fabric.Element} instance + +
+ + +
-
+
- Returns: + +
- {Boolean} true if canvas is empty + +
+ + +
-
+
- Parameters: + +
- + {Number} index + + + + +
-
+
- Returns: + +
- {fabric.Object} + +
+ + +
-
+
- Parameters: + +
- + {String} json + + +
- JSON string + +
- + {Function} callback + + +
- Callback, invoked when json is parsed + and corresponding objects (e.g: fabric.Image) + are initialized + +
-
+
- Returns: + +
- {fabric.Element} instance + +
+ + +
-
+
- Parameters: + +
- + {String} json + + +
- JSON string + +
- + {Function} callback + + +
- Callback, invoked when json is parsed + and corresponding objects (e.g: fabric.Image) + are initialized + +
-
+
- Returns: + +
- {fabric.Element} instance + +
+ + +
-
+
- Parameters: + +
- + url + + +
- {String} url of image to load + +
- + callback + + +
- {Function} calback, invoked when image is loaded + +
+ + +
+ + +
-
+
- Parameters: + +
- + {fabric.Object} target + + +
- Object that's about to be scaled/rotated + +
+ + +
-
+
- Parameters: + +
- + {Number} fps + + + + +
+ + +
-
+
- Parameters: + +
- + object + + +
- {Object} Object to remove + +
-
+
- Returns: + +
- {Object} removed object + +
+ + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Parameters: + +
- + allOnTop + + +
- {Boolean} optional Whether we want to force all images to be rendered on the top canvas + +
-
+
- Returns: + +
- {fabric.Element} instance + +
+ + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Parameters: + +
- + object + + +
- {fabric.Object} Object to send + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Parameters: + +
- + object + + +
- {fabric.Object} Object to send to back + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Parameters: + +
- + {fabric.Group} group + + +
- Group to set as a current one + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Parameters: + +
- + object + + +
- {fabric.Object} Object to set as an active one + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Parameters: + +
- + {Object} dimensions + + + + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Parameters: + +
- + {Number} height + + +
- value to set height to + +
-
+
- Returns: + +
- {fabric.Element} instance + +
+ + +
-
+
- Parameters: + +
- + {String} url + + +
- url of an image to set background to + +
- + {Function} callback + + +
- callback to invoke when image is loaded and set as an overlay one + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Parameters: + +
- + {Number} width + + +
- value to set width to + +
-
+
- Returns: + +
- {fabric.Element} instance + +
+ + +
-
+
- Parameters: + +
- + {fabric.Object} object + + +
- Object to straighten + +
-
+
- Returns: + +
- {fabric.Element} thisArg + +
+ + +
-
+
- Parameters: + +
- + methodName + + +
- {String} Method to check support for; + Could be one of "getImageData" or "toDataURL" + +
-
+
- Returns: + +
- {Boolean | null} `true` if method is supported (or at least exists), + `null` if canvas element or context can not be initialized + +
+ + +
-
+
- Returns: + +
- {String} json string + +
+ + +
-
+
- Returns: + +
- {Object} + +
+ + +
-
+
- Parameters: + +
- + {String} format + + +
- the format of the output image. Either "jpeg" or "png". + +
-
+
- Returns: + +
- {String} + +
+ + +
-
+
- Parameters: + +
- + {String} format + + +
- (png|jpeg) + +
- + {Number} multiplier + + + + +
-
+
- Returns: + +
- {String} + +
+ + +
-
+
- Parameters: + +
- + {HTMLCanvasElement} canvasEl + + + + +
+ + +
-
+
- Returns: + +
- {String} json string + +
+ + +
-
+
- Returns: + +
- {Object} + +
+ + +
-
+
- Returns: + +
- {String} string representation of an instance + +
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Class fabric.Ellipse +
+ + +
+
+
Extends
+ fabric.Object.
+
+
+ Ellipse
+
+
+
Defined in: ellipse.class.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ fabric.Ellipse()
+
+
+ |
+
| Field Attributes | +Field Name and Description | +
|---|---|
| <static> | +
+
+ fabric.Ellipse.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Ellipse.fromElement`)
+ |
+
| + |
+
+ type
+
+
+ |
+
-
+
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties +
| Method Attributes | +Method Name and Description | +
|---|---|
| + |
+ complexity()
+
+ Returns complexity of an instance
+ |
+
| <static> | +
+ fabric.Ellipse.fromElement(element, options)
+
+ Returns fabric.Ellipse instance from an SVG element
+ |
+
| <static> | +
+ fabric.Ellipse.fromObject(object)
+
+ Returns fabric.Ellipse instance from an object representation
+ |
+
| + |
+ initialize(options)
+
+ Constructor
+ |
+
| + |
+ render(ctx, noTransform)
+
+ Renders this instance on a given context
+ |
+
| + |
+ toObject()
+
+ Returns object representation of an instance
+ |
+
-
+
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform +
- HTML template: Codeview 1.1.1 -
-
+
- See: + +
- http://www.w3.org/TR/SVG/shapes.html#EllipseElement + +
+ + +
-
+
- Returns: + +
- {Number} complexity + +
+ + +
-
+
- Parameters: + +
- + {SVGElement} element + + +
- Element to parse + +
- + {Object} options + Optional + +
- Options object + +
-
+
- Returns: + +
- {fabric.Ellipse} + +
+ + +
-
+
- Parameters: + +
- + {Object} object + + +
- Object to create an instance from + +
-
+
- Returns: + +
- {fabric.Ellipse} + +
+ + +
-
+
- Parameters: + +
- + {Object} options + Optional + +
- Options object + +
-
+
- Returns: + +
- {Object} thisArg + +
+ + +
-
+
- Parameters: + +
- + ctx + + +
- {CanvasRenderingContext2D} context to render on + +
- + noTransform + + +
- {Boolean} context is not transformed when set to true + +
+ + +
-
+
- Returns: + +
- {Object} object representation of an instance + +
- - Class fabric .Ellipse -
- -- Ellipse -
- - - --
-
-
-
-
- Defined in: ellipse.class.js - - -
- Extends - fabric.Object - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - |
-
- fabric.Ellipse()
-
-
- |
-
| Field Attributes | -Field Name and Description | -
|---|---|
| - |
-
- type
-
-
- |
-
-
-
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties -
| Method Attributes | -Method Name and Description | -
|---|---|
| - |
- complexity()
-
-
- |
-
| <static> | -
- fabric.Ellipse.fromElement(element, options)
-
- Returns fabric.Ellipse instance from an SVG element
- |
-
| <static> | -
- fabric.Ellipse.fromObject(object)
-
- Returns fabric.Ellipse instance from an object representation
- |
-
| - |
- initialize(options)
-
- Constructor
- |
-
| - |
- render(ctx, noTransform)
-
-
- |
-
| - |
- toObject()
-
- Returns object representation of an instance
- |
-
-
-
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Number} complexity - - - - - - - -
-
-
- Parameters: - -
- - {SVGElement} element - - -
- Element to parse - -
- - {Object} options - Optional - -
- Options object - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Ellipse} - - - - - - - -
-
-
- Parameters: - -
- - {Object} object - - -
- Object to create an instance from - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Ellipse} - - - - - - - -
-
-
- Parameters: - -
- - {Object} options - Optional - -
- Options object - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} thisArg - - - - - - - -
-
-
- Parameters: - -
- - ctx - - -
- {CanvasRenderingContext2D} context to render on - -
- - noTransform - - -
- {Boolean} context is not transformed when set to true - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} object representation of an instance - - - - - - - -
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Class fabric.Group +
+ + +
+
+
Extends
+ fabric.Object.
+
+
+ Group
+
+
+
Defined in: group.class.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ fabric.Group()
+
+
+ |
+
| Field Attributes | +Field Name and Description | +
|---|---|
| + |
+
+ type
+
+
+ |
+
-
+
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties +
| Method Attributes | +Method Name and Description | +
|---|---|
| + |
+
+ Activates (makes active) all group objects
+ |
+
| + |
+ add(object)
+
+ Adds an object to a group; Then recalculates group's dimension, position.
+ |
+
| + |
+ complexity()
+
+ Returns complexity of an instance
+ |
+
| + |
+ contains(object)
+
+ Returns true if a group contains an object
+ |
+
| + |
+ containsPoint(point)
+
+ Checks if point is contained within the group
+ |
+
| + |
+ destroy()
+
+ Destroys a group (restoring state of its objects)
+ |
+
| + |
+ forEachObject(callback, context)
+
+ Executes given function for each object in this group
+ |
+
| <static> | +
+ fabric.Group.fromObject(object, options)
+
+ Returns fabric.Group instance from an object representation
+ |
+
| + |
+ getObjects()
+
+ Returns an array of all objects in this group
+ |
+
| + |
+ hasMoved()
+
+ Checks whether this group was moved (since `saveCoords` was called last)
+ |
+
| + |
+ initialize(objects, options)
+
+ Constructor
+ |
+
| + |
+ item(index)
+
+ Returns object from the group at the specified index
+ |
+
| + |
+ remove(object)
+
+ Removes an object from a group; Then recalculates group's dimension, position.
+ |
+
| + |
+ render(ctx)
+
+ Renders instance on a given context
+ |
+
| + |
+ saveCoords()
+
+ Saves coordinates of this instance (to be used together with `hasMoved`)
+ |
+
| + |
+ set(name, value)
+
+ Sets property to a given value
+ |
+
| + |
+ setActive(value)
+
+ Activates (makes active) all group objects
+ |
+
| + |
+ setObjectsCoords()
+
+ Sets coordinates of all group objects
+ |
+
| + |
+ size()
+
+ Returns a size of a group (i.e: length of an array containing its objects)
+ |
+
| + |
+ toGrayscale()
+
+ Makes all of this group's objects grayscale (i.e.
+ |
+
| + |
+ toObject()
+
+ Returns object representation of an instance
+ |
+
| + |
+ toString()
+
+ Returns string represenation of a group
+ |
+
-
+
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toJSON, transform +
- HTML template: Codeview 1.1.1 -
+
+
+
+ {String}
+ type
- Class fabric .Group
-
-
-
- Group
-
-
-
-
-
-
-
-
- - Defined in: group.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Group()
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
-
- Activates (makes active) all group objects
-
-
-
-
-
-
- add(object)
-
- Adds an object to a group; Then recalculates group's dimension, position.
-
-
-
-
-
-
- complexity()
-
- Returns complexity of an instance
-
-
-
-
-
-
- contains(object)
-
- Returns true if a group contains an object
-
-
-
-
-
-
- containsPoint(point)
-
-
-
-
-
-
-
-
- destroy()
-
- Destroys a group (restoring state of its objects)
-
-
-
-
-
-
- forEachObject(callback, context)
-
-
-
-
-
-
- <static>
-
- fabric.Group.fromObject(object, options)
-
-
-
-
-
-
-
-
- getObjects()
-
- Returns an array of all objects in this group
-
-
-
-
-
-
- hasMoved()
-
-
-
-
-
-
-
-
- initialize(objects, options)
-
- Constructor
-
-
-
-
-
-
- item(index)
-
- Returns object from the group at the specified index
-
-
-
-
-
-
- remove(object)
-
- Removes an object from a group; Then recalculates group's dimension, position.
-
-
-
-
-
-
- render(ctx)
-
- Renders instance on a given context
-
-
-
-
-
-
- saveCoords()
-
-
-
-
-
-
-
-
- set(name, value)
-
- Sets property to a given value
-
-
-
-
-
-
- setActive(value)
-
- Activates (makes active) all group objects
-
-
-
-
-
-
- setObjectsCoords()
-
- Sets coordinates of all group objects
-
-
-
-
-
-
- size()
-
- Returns a size of a group (i.e: length of an array containing its objects)
-
-
-
-
-
-
- toGrayscale()
-
-
-
-
-
-
-
-
- toObject()
-
- Returns object representation of an instance
-
-
-
-
-
-
- toString()
-
- Returns string represenation of a group
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toJSON, transform
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ Method Detail
+
-
-
+
+
+
+ {fabric.Group}
+ activateAllObjects()
+
+
+ Activates (makes active) all group objects
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Group} thisArg
+
+
+
+
+
+
+
+
+
+
+ {fabric.Group}
+ add(object)
+
+
+
+ Adds an object to a group; Then recalculates group's dimension, position.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Group} thisArg
+
+
+
+
+
-
+
-
-
-
- Method Detail
-
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+ - {Number} complexity
-
-
-
-
-
-
-
- {fabric.Group}
-
- activateAllObjects()
-
-
-
- Activates (makes active) all group objects
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} thisArg
-
-
-
-
-
-
-
-
-
+
+
+
+
-
+
+
+
+
+
+ {Boolean}
+ contains(object)
+
+
+
+ Returns true if a group contains an object
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
+ -
+ {Object} object
-
-
- {fabric.Group}
-
- add(object)
-
-
-
- Adds an object to a group; Then recalculates group's dimension, position.
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} thisArg
-
-
-
-
-
-
-
-
-
+
+ - Object to check against
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} `true` if group contains an object
+
+
+
+
+
-
+
+
+
+
+
+ {Boolean}
+ containsPoint(point)
+
+
+
+ Checks if point is contained within the group
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
+ -
+ {fabric.Point} point
-
-
- {Number}
-
- complexity()
-
-
-
- Returns complexity of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
+
+ - point with `x` and `y` properties
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if point is contained within group
+
+
+
+
+
-
+
+
+
+
+
+ {fabric.Group}
+ destroy()
+
+
+
+ Destroys a group (restoring state of its objects)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
-
-
-
-
-
-
-
- {Boolean}
-
- contains(object)
-
-
-
- Returns true if a group contains an object
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
- - Object to check against
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} `true` if group contains an object
-
-
-
-
-
-
-
-
-
+ - {fabric.Group} thisArg
+
+
+
+
+
-
+
+
+
+
+
+ {fabric.Group}
+ forEachObject(callback, context)
+
+
+
+ Executes given function for each object in this group
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
+ -
+ {Function} callback
-
-
- {Boolean}
-
- containsPoint(point)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} point
-
-
- - point with `x` and `y` properties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if point is contained within group
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Group}
-
- destroy()
-
-
-
- Destroys a group (restoring state of its objects)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Group}
-
- forEachObject(callback, context)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Function} callback
-
-
- - Callback invoked with current object as first argument,
+
+
- Callback invoked with current object as first argument,
index - as second and an array of all objects - as third.
Iteration happens in reverse order (for performance reasons).
Callback is invoked in a context of Global Object (e.g. `window`)
when no `context` argument is given
-
- -
- {Object} context
-
-
- - Context (aka thisObject)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
+ -
+ {Object} context
- {fabric.Group}
-
- fabric.Group.fromObject(object, options)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {Object} object to create a group from
-
- -
- options
-
-
- - {Object} options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} an instance of fabric.Group
-
-
-
-
-
-
-
-
-
-
-
+
+ - Context (aka thisObject)
-
-
-
-
-
-
-
- {Array}
-
- getObjects()
-
-
-
- Returns an array of all objects in this group
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Array} group objects
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ - Returns:
-
-
-
-
-
-
-
- {Boolean}
-
- hasMoved()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if an object was moved (since fabric.Group#saveCoords was called)
-
-
-
-
-
-
-
-
-
-
-
+ - {fabric.Group} thisArg
-
-
-
-
-
-
-
- {Object}
-
- initialize(objects, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} objects
-
-
- - Group objects
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} thisArg
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- item(index)
-
-
-
- Returns object from the group at the specified index
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- index
-
-
- - {Number} index of item to get
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Group}
-
- remove(object)
-
-
-
- Removes an object from a group; Then recalculates group's dimension, position.
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx)
-
-
-
- Renders instance on a given context
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - context to render instance on
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Group}
-
- saveCoords()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Group}
-
- set(name, value)
-
-
-
- Sets property to a given value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Group}
-
- setActive(value)
-
-
-
- Activates (makes active) all group objects
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Boolean} value
-
-
- - `true` to activate object, `false` otherwise
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Group}
-
- setObjectsCoords()
-
-
-
- Sets coordinates of all group objects
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Group} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- size()
-
-
-
- Returns a size of a group (i.e: length of an array containing its objects)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} Group size
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toGrayscale()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns string represenation of a group
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String}
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ <static>
+
+ {fabric.Group}
+ fabric.Group.fromObject(object, options)
+
+
+ Returns fabric.Group instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+ - {Object} object to create a group from
+
+ -
+ options
+
+
+ - {Object} options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Group} an instance of fabric.Group
+
+
+
+
+
+
+
+
+
+
+ {Array}
+ getObjects()
+
+
+
+ Returns an array of all objects in this group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} group objects
+
+
+
+
+
+
+
-
+
+
+
+ {Boolean}
+ hasMoved()
+
+
+
+ Checks whether this group was moved (since `saveCoords` was called last)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if an object was moved (since fabric.Group#saveCoords was called)
+
+
+
+
+
+
+
-
+
+
+
+ {Object}
+ initialize(objects, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} objects
+
+
+ - Group objects
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ item(index)
+
+
+
+ Returns object from the group at the specified index
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ index
+
+
+ - {Number} index of item to get
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object}
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Group}
+ remove(object)
+
+
+
+ Removes an object from a group; Then recalculates group's dimension, position.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Group} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx)
+
+
+
+ Renders instance on a given context
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - context to render instance on
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Group}
+ saveCoords()
+
+
+
+ Saves coordinates of this instance (to be used together with `hasMoved`)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Group} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Group}
+ set(name, value)
+
+
+
+ Sets property to a given value
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Group} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Group}
+ setActive(value)
+
+
+
+ Activates (makes active) all group objects
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Boolean} value
+
+
+ - `true` to activate object, `false` otherwise
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Group} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Group}
+ setObjectsCoords()
+
+
+
+ Sets coordinates of all group objects
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Group} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ size()
+
+
+
+ Returns a size of a group (i.e: length of an array containing its objects)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} Group size
+
+
+
+
+
+
+
+
+
+
+
+
+ toGrayscale()
+
+
+
+ Makes all of this group's objects grayscale (i.e. calling `toGrayscale` on them)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns string represenation of a group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:47 GMT-0400 (EDT)
+
diff --git a/docs/symbols/fabric.Image.html b/docs/symbols/fabric.Image.html
index c00323b7..c286d70c 100644
--- a/docs/symbols/fabric.Image.html
+++ b/docs/symbols/fabric.Image.html
@@ -1,4 +1,5 @@
-
+
@@ -6,1421 +7,1372 @@
JsDoc Reference - fabric.Image
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Image
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Image
+
+
+
Defined in: image.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Image()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+
+
+
+ active
+
+
+
+
+
+
+
+
+
+ bordervisibility
+
+
+
+
+
+
+
+
+
+ cornervisibility
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Image.CSS_CANVAS
+
+ Default CSS class name for canvas
+
+
+
+
+
+
+
+ maxheight
+
+
+
+
+
+
+
+
+
+ maxwidth
+
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ clone(callback)
+
+ Returns a clone of an instance
+
+
+
+
+
+
+ complexity()
+
+ Returns complexity of an instance
+
+
+
+
+ <static>
+
+ fabric.Image.fromObject(object, callback)
+
+ Creates an instance of fabric.Image from its object representation
+
+
+
+
+ <static>
+
+ fabric.Image.fromURL(url, callback, imgOptions)
+
+ Creates an instance of fabric.Image from an URL string
+
+
+
+
+
+
+ getElement()
+
+ Returns image element which this instance if based on
+
+
+
+
+
+
+ getNormalizedSize(oImg, maxwidth, maxheight)
+
+ Resizes an image depending on whether maxwidth and maxheight are set up;
+Width and height have to mantain the same proportion in the final image as it was in the initial one.
+
+
+
+
+
+
+ getOriginalSize()
+
+ Returns original size of an image
+
+
+
+
+
+
+ getSrc()
+
+ Returns source of an image
+
+
+
+
+
+
+ initialize(element, options)
+
+ Constructor
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+ Renders image on a specified context
+
+
+
+
+
+
+ setBorderVisibility(visible)
+
+ Sets border visibility
+
+
+
+
+
+
+ setCornersVisibility(visible)
+
+ Sets corner visibility
+
+
+
+
+
+
+ setElement(element)
+
+ Sets image element for this instance to a specified one
+
+
+
+
+
+
+ toGrayscale(callback)
+
+ Makes image grayscale
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+ toString()
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toJSON, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
-
-
-
-
-
-
+
+
+
+ {Boolean}
+ active
- Class fabric .Image
-
-
-
- Image
-
-
-
-
-
-
-
-
- - Defined in: image.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Image()
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- active
-
-
-
-
-
-
-
-
-
- bordervisibility
-
-
-
-
-
-
-
-
-
- cornervisibility
-
-
-
-
-
-
- <static>
-
-
- fabric.Image.CSS_CANVAS
-
- Default CSS class name for canvas
-
-
-
-
-
-
-
- maxheight
-
-
-
-
-
-
-
-
-
- maxwidth
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- clone(callback)
-
- Returns a clone of an instance
-
-
-
-
-
-
- complexity()
-
- Returns complexity of an instance
-
-
-
-
- <static>
-
- fabric.Image.fromObject(object, callback)
-
- Creates an instance of fabric.Image from its object representation
-
-
-
-
- <static>
-
- fabric.Image.fromURL(url, callback, imgOptions)
-
- Creates an instance of fabric.Image from an URL string
-
-
-
-
-
-
- getElement()
-
- Returns image element which this instance if based on
-
-
-
-
-
-
- getNormalizedSize(oImg, maxwidth, maxheight)
-
- Resizes an image depending on whether maxwidth and maxheight are set up;
-Width and height have to mantain the same proportion in the final image as it was in the initial one.
-
-
-
-
-
-
- getOriginalSize()
-
- Returns original size of an image
-
-
-
-
-
-
- getSrc()
-
- Returns source of an image
-
-
-
-
-
-
- initialize(element, options)
-
- Constructor
-
-
-
-
-
-
- render(ctx, noTransform)
-
- Renders image on a specified context
-
-
-
-
-
-
- setBorderVisibility(visible)
-
- Sets border visibility
-
-
-
-
-
-
- setCornersVisibility(visible)
-
- Sets corner visibility
-
-
-
-
-
-
- setElement(element)
-
- Sets image element for this instance to a specified one
-
-
-
-
-
-
- toGrayscale(callback)
-
- Makes image grayscale
-
-
-
-
-
-
- toObject()
-
- Returns object representation of an instance
-
-
-
-
-
-
- toString()
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toJSON, transform
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- active
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- bordervisibility
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- cornervisibility
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Default CSS class name for canvas
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- maxheight
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- maxwidth
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ {Boolean}
+ bordervisibility
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ cornervisibility
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
- clone(callback)
-
-
-
- Returns a clone of an instance
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Function} callback
-
-
- - Callback is invoked with a clone as a first argument
-
-
-
-
-
+
+ <static>
+
+ {String}
+ fabric.Image.CSS_CANVAS
+
+
+
+ Default CSS class name for canvas
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns complexity of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Image.fromObject(object, callback)
-
-
-
- Creates an instance of fabric.Image from its object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {Object}
-
- -
- callback
-
-
- - {Function} optional
-
-
-
-
-
+
+
+
+
+
+ {Number}
+ maxheight
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Image.fromURL(url, callback, imgOptions)
-
-
-
- Creates an instance of fabric.Image from an URL string
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} url
-
-
- - URL to create an image from
-
- -
- {Function} callback
- Optional
-
- - Callback to invoke when image is created (newly created image is passed as a first argument)
-
- -
- {Object} imgOptions
- Optional
-
- - Options object
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
- {HTMLImageElement}
-
- getElement()
-
-
-
- Returns image element which this instance if based on
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLImageElement} image element
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ {Number}
+ maxwidth
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+
+ clone(callback)
+
+
+
+ Returns a clone of an instance
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
+ -
+ {Function} callback
-
+
+ - Callback is invoked with a clone as a first argument
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Image.fromObject(object, callback)
+
+
+
+ Creates an instance of fabric.Image from its object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+ - {Object}
+
+ -
+ callback
+
+ - {Function} optional
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Image.fromURL(url, callback, imgOptions)
+
+
+
+ Creates an instance of fabric.Image from an URL string
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} url
- getNormalizedSize(oImg, maxwidth, maxheight)
-
-
-
- Resizes an image depending on whether maxwidth and maxheight are set up;
+
+ - URL to create an image from
+
+ -
+ {Function} callback
+ Optional
+
+ - Callback to invoke when image is created (newly created image is passed as a first argument)
+
+ -
+ {Object} imgOptions
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {HTMLImageElement}
+ getElement()
+
+
+
+ Returns image element which this instance if based on
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLImageElement} image element
+
+
+
+
+
+
+
+
+
+
+
+
+ getNormalizedSize(oImg, maxwidth, maxheight)
+
+
+
+ Resizes an image depending on whether maxwidth and maxheight are set up;
Width and height have to mantain the same proportion in the final image as it was in the initial one.
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} oImg
-
-
-
-
- -
- {Number} maxwidth
-
-
- - maximum width of the image (in px)
-
- -
- {Number} maxheight
-
-
- - maximum height of the image (in px)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- getOriginalSize()
-
-
-
- Returns original size of an image
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object with "width" and "height" properties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- getSrc()
-
-
-
- Returns source of an image
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} Source of an image
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- initialize(element, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLImageElement | String} element
-
-
- - Image element
-
- -
- {Object} options
-
-
- - optional
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
- Renders image on a specified context
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - Context to render on
-
- -
- noTransform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setBorderVisibility(visible)
-
-
-
- Sets border visibility
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Boolean} visible
-
-
- - When true, border is set to be visible
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setCornersVisibility(visible)
-
-
-
- Sets corner visibility
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Boolean} visible
-
-
- - When true, corners are set to be visible
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Image}
-
- setElement(element)
-
-
-
- Sets image element for this instance to a specified one
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLImageElement} element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Image} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toGrayscale(callback)
-
-
-
- Makes image grayscale
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Function} callback
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} Object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} String representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} oImg
+
+
+
+
+ -
+ {Number} maxwidth
+
+
+ - maximum width of the image (in px)
+
+ -
+ {Number} maxheight
+
+
+ - maximum height of the image (in px)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ getOriginalSize()
+
+
+
+ Returns original size of an image
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object with "width" and "height" properties
+
+
+
+
+
+
+
-
+
+
+
+ {String}
+ getSrc()
+
+
+
+ Returns source of an image
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} Source of an image
+
+
+
+
+
+
+
-
+
+
+
+
+ initialize(element, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLImageElement | String} element
+
+
+ - Image element
+
+ -
+ {Object} options
+
+
+ - optional
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+
+
+ Renders image on a specified context
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - Context to render on
+
+ -
+ noTransform
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setBorderVisibility(visible)
+
+
+
+ Sets border visibility
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Boolean} visible
+
+
+ - When true, border is set to be visible
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setCornersVisibility(visible)
+
+
+
+ Sets corner visibility
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Boolean} visible
+
+
+ - When true, corners are set to be visible
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Image}
+ setElement(element)
+
+
+
+ Sets image element for this instance to a specified one
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLImageElement} element
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Image} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ toGrayscale(callback)
+
+
+
+ Makes image grayscale
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Function} callback
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} String representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:47 GMT-0400 (EDT)
+
diff --git a/docs/symbols/fabric.Intersection.html b/docs/symbols/fabric.Intersection.html
index b85d7a6a..5de00d02 100644
--- a/docs/symbols/fabric.Intersection.html
+++ b/docs/symbols/fabric.Intersection.html
@@ -1,4 +1,5 @@
-
+
@@ -6,635 +7,742 @@
JsDoc Reference - fabric.Intersection
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Intersection
+
+
+
+
+
+
+
+ Intersection
+
+
+
Defined in: intersection.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Intersection(status)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ appendPoint(status)
+
+
+
+
+
+
+
+
+ appendPoints(status)
+
+
+
+
+
+
+
+
+ init(status)
+
+
+
+
+
+
+ <static>
+
+ fabric.Intersection.intersectLineLine(a1, a2, b1, b2)
+
+
+
+
+
+
+ <static>
+
+ fabric.Intersection.intersectLinePolygon(a1, a2, points)
+
+
+
+
+
+
+ <static>
+
+ fabric.Intersection.intersectPolygonPolygon(points1, points2)
+
+
+
+
+
+
+ <static>
+
+ fabric.Intersection.intersectPolygonRectangle(points, r1, r2)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Class Detail
+
+
+
+ fabric.Intersection(status)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ status
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+
+
+
+ appendPoint(status)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} status
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ appendPoints(status)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} status
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ init(status)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} status
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Intersection.intersectLineLine(a1, a2, b1, b2)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ a1
+
+
+
+
+ -
+ a2
+
+
+
+
+ -
+ b1
+
+
+
+
+ -
+ b2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Intersection.intersectLinePolygon(a1, a2, points)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ a1
+
+
+
+
+ -
+ a2
+
+
+
+
+ -
+ points
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Intersection.intersectPolygonPolygon(points1, points2)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ points1
+
+
+
+
+ -
+ points2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Intersection.intersectPolygonRectangle(points, r1, r2)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ points
+
+
+
+
+ -
+ r1
+
+
+
+
+ -
+ r2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Intersection
-
-
-
- Intersection
-
-
-
-
-
-
-
-
- - Defined in: intersection.class.js
-
-
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Intersection(status)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- appendPoint(status)
-
-
-
-
-
-
-
-
- appendPoints(status)
-
-
-
-
-
-
-
-
- init(status)
-
-
-
-
-
-
- <static>
-
- fabric.Intersection.intersectLineLine(a1, a2, b1, b2)
-
-
-
-
-
-
- <static>
-
- fabric.Intersection.intersectLinePolygon(a1, a2, points)
-
-
-
-
-
-
- <static>
-
- fabric.Intersection.intersectPolygonPolygon(points1, points2)
-
-
-
-
-
-
- <static>
-
- fabric.Intersection.intersectPolygonRectangle(points, r1, r2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
- appendPoint(status)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} status
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- appendPoints(status)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} status
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- init(status)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} status
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Intersection.intersectLineLine(a1, a2, b1, b2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- a1
-
-
-
-
- -
- a2
-
-
-
-
- -
- b1
-
-
-
-
- -
- b2
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Intersection.intersectLinePolygon(a1, a2, points)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- a1
-
-
-
-
- -
- a2
-
-
-
-
- -
- points
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Intersection.intersectPolygonPolygon(points1, points2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- points1
-
-
-
-
- -
- points2
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Intersection.intersectPolygonRectangle(points, r1, r2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- points
-
-
-
-
- -
- r1
-
-
-
-
- -
- r2
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:47 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Line.html b/docs/symbols/fabric.Line.html
index 057c01fa..49abddaf 100644
--- a/docs/symbols/fabric.Line.html
+++ b/docs/symbols/fabric.Line.html
@@ -1,4 +1,5 @@
-
+
@@ -6,653 +7,722 @@
JsDoc Reference - fabric.Line
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Line
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Line
+
+
+
Defined in: line.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Line()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Line.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Line.fromElement`)
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns complexity of an instance
+
+
+
+
+ <static>
+
+ fabric.Line.fromElement(element, options)
+
+ Returns fabric.Line instance from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Line.fromObject(object)
+
+ Returns fabric.Line instance from an object representation
+
+
+
+
+
+
+ initialize(points, options)
+
+ Constructor
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Line.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Line.fromElement`)
+
+
+
+
+
+
+
+
+
+
+ - See:
+
+ - http://www.w3.org/TR/SVG/shapes.html#LineElement
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Line}
+ fabric.Line.fromElement(element, options)
+
+
+
+ Returns fabric.Line instance from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - Element to parse
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Line} instance of fabric.Line
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Line}
+ fabric.Line.fromObject(object)
+
+
+
+ Returns fabric.Line instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+ - Object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Line} instance of fabric.Line
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Line}
+ initialize(points, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} points
+
+
+ - Array of points
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Line} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Line
-
-
-
- Line
-
-
-
-
-
-
-
-
- - Defined in: line.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Line()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
-
-
-
-
-
- <static>
-
- fabric.Line.fromElement(element, options)
-
-
-
-
-
-
- <static>
-
- fabric.Line.fromObject(object)
-
-
-
-
-
-
-
-
- initialize(points, options)
-
- Constructor
-
-
-
-
-
-
- toObject()
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {SVGElement} element
-
-
- - Element to parse
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Line} instance of fabric.Line
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
- - Object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Line} instance of fabric.Line
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Line}
-
- initialize(points, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} points
-
-
- - Array of points
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Line} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:47 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Object.html b/docs/symbols/fabric.Object.html
index d8f62d85..7b013810 100644
--- a/docs/symbols/fabric.Object.html
+++ b/docs/symbols/fabric.Object.html
@@ -1,4 +1,5 @@
-
+
@@ -6,3123 +7,2617 @@
JsDoc Reference - fabric.Object
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Object
+
+
+
+
+
+
+
+ Object
+
+
+
Defined in: object.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Object()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <constant>
+
+
+ FX_DURATION
+
+
+
+
+
+
+ <constant>
+
+
+ FX_TRANSITION
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <constant>
+
+
+ MIN_SCALE_LIMIT
+
+
+
+
+
+
+ <constant>
+
+
+
+
+
+
+
+
+
+
+ options
+
+
+
+
+
+
+
+
+
+ rotate
+
+
+
+
+
+
+
+
+
+ stateProperties
+
+ List of properties to consider when checking if state of an object is changed (fabric.Object#hasStateChanged);
+as well as for history (undo/redo) purposes
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ callSuper(methodName)
+
+
+
+
+
+
+
+
+ clone(options)
+
+ Clones an instance
+
+
+
+
+
+
+ cloneAsImage(callback)
+
+ Creates an instance of fabric.Image out of an object
+
+
+
+
+
+
+ complexity()
+
+
+
+
+
+
+
+
+ drawBorders(ctx)
+
+ Draws borders of an object's bounding box.
+
+
+
+
+
+
+ drawCorners(ctx)
+
+ Draws corners of an object's bounding box.
+
+
+
+
+
+
+ fxRemove(callbacks)
+
+
+
+
+
+
+
+
+ fxStraighten(callbacks)
+
+
+
+
+
+
+
+
+ get(property)
+
+ Basic getter
+
+
+
+
+
+
+ getAngle()
+
+ Returns object's angle value
+
+
+
+
+
+
+ getCenter()
+
+
+
+
+
+
+
+
+ getHeight()
+
+ Returns height of an object
+
+
+
+
+
+
+ getWidth()
+
+ Returns width of an object
+
+
+
+
+
+
+ hasStateChanged()
+
+
+
+
+
+
+
+
+ initialize(options)
+
+ Constructor
+
+
+
+
+
+
+ intersectsWithObject(other)
+
+ Returns true if object intersects with another object
+
+
+
+
+
+
+ intersectsWithRect(selectionTL, selectionBR)
+
+ Returns true if object intersects with an area formed by 2 points
+
+
+
+
+
+
+ isActive()
+
+ Returns true if an object is in its active state
+
+
+
+
+
+
+ isContainedWithinRect(selectionTL, selectionBR)
+
+ Returns true if object is fully contained within area formed by 2 points
+
+
+
+
+
+
+ isType(type)
+
+
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+
+
+
+
+
+
+
+ saveState()
+
+
+
+
+
+
+
+
+ scale(value)
+
+ Scales an object (equally by x and y)
+
+
+
+
+
+
+ scaleToHeight(value)
+
+ Scales an object to a given height (scaling by x/y equally)
+
+
+
+
+
+
+ scaleToWidth(value)
+
+ Scales an object to a given width (scaling by x/y equally)
+
+
+
+
+
+
+ set(property, value)
+
+ Basic setter
+
+
+
+
+
+
+ setActive(active)
+
+ Sets state of an object - `true` makes it active, `false` - inactive
+
+
+
+
+
+
+ setAngle(value)
+
+ Sets object's angle
+
+
+
+
+
+
+ setCoords()
+
+ Sets corner position coordinates based on current angle, width and height.
+
+
+
+
+
+
+ setOpacity(value)
+
+ Sets object opacity
+
+
+
+
+
+
+ setOptions(options)
+
+
+
+
+
+
+
+
+ setSourcePath(value)
+
+
+
+
+
+
+
+
+ straighten()
+
+
+
+
+
+
+
+
+ toDatalessObject()
+
+ Returns (dataless) object representation of an instance
+
+
+
+
+
+
+ toDataURL()
+
+ Converts an object into a data-url-like string
+
+
+
+
+
+
+ toggle(property)
+
+ Toggles specified property from `true` to `false` or from `false` to `true`
+
+
+
+
+
+
+ toGrayscale()
+
+ Makes object's color grayscale
+
+
+
+
+
+
+ toJSON()
+
+ Returns a JSON representation of an instance
+
+
+
+
+
+
+ toObject()
+
+ Returns an object representation of an instance
+
+
+
+
+
+
+ toString()
+
+ Returns a string representation of an instance
+
+
+
+
+
+
+ transform(ctx)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
-
-
-
-
-
-
+
+ <constant>
+
+ {Number}
+ FX_DURATION
- Class fabric .Object
-
-
-
- Object
-
-
-
-
-
-
-
-
- - Defined in: object.class.js
-
-
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Object()
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
- <constant>
-
-
- FX_DURATION
-
-
-
-
-
-
- <constant>
-
-
- FX_TRANSITION
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <constant>
-
-
- MIN_SCALE_LIMIT
-
-
-
-
-
-
- <constant>
-
-
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-
-
-
-
- rotate
-
-
-
-
-
-
-
-
-
- stateProperties
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- callSuper(methodName)
-
-
-
-
-
-
-
-
- clone(options)
-
- Clones an instance
-
-
-
-
-
-
- cloneAsImage(callback)
-
- Creates an instance of fabric.Image out of an object
-
-
-
-
-
-
- complexity()
-
-
-
-
-
-
-
-
- drawBorders(ctx)
-
- Draws borders of an object's bounding box.
-
-
-
-
-
-
- drawCorners(ctx)
-
- Draws corners of an object's bounding box.
-
-
-
-
-
-
- fxRemove(callbacks)
-
-
-
-
-
-
-
-
- fxStraighten(callbacks)
-
-
-
-
-
-
-
-
- get(property)
-
- Basic getter
-
-
-
-
-
-
- getAngle()
-
- Returns object's angle value
-
-
-
-
-
-
- getCenter()
-
-
-
-
-
-
-
-
- getHeight()
-
- Returns height of an object
-
-
-
-
-
-
- getWidth()
-
- Returns width of an object
-
-
-
-
-
-
- hasStateChanged()
-
-
-
-
-
-
-
-
- initialize(options)
-
- Constructor
-
-
-
-
-
-
- intersectsWithObject(other)
-
- Returns true if object intersects with another object
-
-
-
-
-
-
- intersectsWithRect(selectionTL, selectionBR)
-
- Returns true if object intersects with an area formed by 2 points
-
-
-
-
-
-
- isActive()
-
- Returns true if an object is in its active state
-
-
-
-
-
-
- isContainedWithinRect(selectionTL, selectionBR)
-
- Returns true if object is fully contained within area formed by 2 points
-
-
-
-
-
-
- isType(type)
-
-
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
-
-
-
-
-
- saveState()
-
-
-
-
-
-
-
-
- scale(value)
-
- Scales an object (equally by x and y)
-
-
-
-
-
-
- scaleToHeight(value)
-
- Scales an object to a given height (scaling by x/y equally)
-
-
-
-
-
-
- scaleToWidth(value)
-
- Scales an object to a given width (scaling by x/y equally)
-
-
-
-
-
-
- set(property, value)
-
- Basic setter
-
-
-
-
-
-
- setActive(active)
-
- Sets state of an object - `true` makes it active, `false` - inactive
-
-
-
-
-
-
- setAngle(value)
-
- Sets object's angle
-
-
-
-
-
-
- setCoords()
-
- Sets corner position coordinates based on current angle, width and height.
-
-
-
-
-
-
- setOpacity(value)
-
- Sets object opacity
-
-
-
-
-
-
- setOptions(options)
-
-
-
-
-
-
-
-
- setSourcePath(value)
-
-
-
-
-
-
-
-
- straighten()
-
-
-
-
-
-
-
-
- toDatalessObject()
-
-
-
-
-
-
-
-
- toDataURL()
-
- Converts an object into a data-url-like string
-
-
-
-
-
-
- toggle(property)
-
- Toggles specified property from `true` to `false` or from `false` to `true`
-
-
-
-
-
-
- toGrayscale()
-
- Makes object's color grayscale
-
-
-
-
-
-
- toJSON()
-
- Returns a JSON representation of an instance
-
-
-
-
-
-
- toObject()
-
- Returns an object representation of an instance
-
-
-
-
-
-
- toString()
-
- Returns a string representation of an instance
-
-
-
-
-
-
- transform(ctx)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
- <constant>
-
-
- {Number}
-
- FX_DURATION
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <constant>
-
-
- {String}
-
- FX_TRANSITION
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- includeDefaultValues
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <constant>
-
-
- {Number}
-
- MIN_SCALE_LIMIT
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <constant>
-
-
- {Number}
-
- NUM_FRACTION_DIGITS
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- options
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- rotate
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Array}
-
- stateProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ <constant>
+
+ {String}
+ FX_TRANSITION
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ includeDefaultValues
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
- callSuper(methodName)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} methodName
-
-
-
-
-
-
-
-
+
+ <constant>
+
+ {Number}
+ MIN_SCALE_LIMIT
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- clone(options)
-
-
-
- Clones an instance
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} options
-
-
- - object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} clone of an instance
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- cloneAsImage(callback)
-
-
-
- Creates an instance of fabric.Image out of an object
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- callback
-
-
- - {Function} callback, invoked with an instance as a first argument
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
+
+
+
+ <constant>
+
+ {Number}
+ NUM_FRACTION_DIGITS
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number}
-
-
-
-
-
-
-
-
-
+
+
+
+
-
+
+
+
+
+
+ {Object}
+ options
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rotate
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Array}
+ stateProperties
+
+
+
+ List of properties to consider when checking if state of an object is changed (fabric.Object#hasStateChanged);
+as well as for history (undo/redo) purposes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+
+ callSuper(methodName)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
+ -
+ {String} methodName
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ clone(options)
+
+
+
+ Clones an instance
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} options
- {fabric.Object}
+
+ - object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} clone of an instance
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ cloneAsImage(callback)
+
+
+
+ Creates an instance of fabric.Image out of an object
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ callback
- drawBorders(ctx)
-
-
-
- Draws borders of an object's bounding box.
+
+ - {Function} callback, invoked with an instance as a first argument
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number}
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ drawBorders(ctx)
+
+
+
+ Draws borders of an object's bounding box.
Requires public properties: width, height
Requires public options: padding, borderColor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - Context to draw on
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
+ -
+ {CanvasRenderingContext2D} ctx
-
-
- {fabric.Object}
-
- drawCorners(ctx)
-
-
-
- Draws corners of an object's bounding box.
+
+ - Context to draw on
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ drawCorners(ctx)
+
+
+
+ Draws corners of an object's bounding box.
Requires public properties: width, height, scaleX, scaleY
Requires public options: cornersize, padding
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - Context to draw on
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- fxRemove(callbacks)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} callbacks
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- fxStraighten(callbacks)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} callbacks
-
-
- - - onComplete: invoked on completion
- - onChange: invoked on every step of animation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Any}
-
- get(property)
-
-
-
- Basic getter
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Any} property
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Any} value of a property
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- getAngle()
-
-
-
- Returns object's angle value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} angle value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- getCenter()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object with `x`, `y` properties corresponding to path center coordinates
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- getHeight()
-
-
-
- Returns height of an object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} height value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- getWidth()
-
-
-
- Returns width of an object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} width value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- hasStateChanged()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if instance' state has changed
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- initialize(options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- intersectsWithObject(other)
-
-
-
- Returns true if object intersects with another object
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} other
-
-
- - Object to test
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- intersectsWithRect(selectionTL, selectionBR)
-
-
-
- Returns true if object intersects with an area formed by 2 points
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} selectionTL
-
-
-
-
- -
- {Object} selectionBR
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- isActive()
-
-
-
- Returns true if an object is in its active state
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if an object is in its active state
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- isContainedWithinRect(selectionTL, selectionBR)
-
-
-
- Returns true if object is fully contained within area formed by 2 points
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} selectionTL
-
-
-
-
- -
- {Object} selectionBR
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- isType(type)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- type
-
-
- - {String} type to check against
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if specified type is identical to the type of instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - context to render on
-
- -
- {Boolean} noTransform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- saveState()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- scale(value)
-
-
-
- Scales an object (equally by x and y)
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} scale factor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- scaleToHeight(value)
-
-
-
- Scales an object to a given height (scaling by x/y equally)
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} new height value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- scaleToWidth(value)
-
-
-
- Scales an object to a given width (scaling by x/y equally)
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} new width value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- set(property, value)
-
-
-
- Basic setter
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Any} property
-
-
-
-
- -
- {Any} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- setActive(active)
-
-
-
- Sets state of an object - `true` makes it active, `false` - inactive
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Boolean} active
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- setAngle(value)
-
-
-
- Sets object's angle
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} angle value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setCoords()
-
-
-
- Sets corner position coordinates based on current angle, width and height.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- setOpacity(value)
-
-
-
- Sets object opacity
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} value 0-1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setOptions(options)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} options
- Optional
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- setSourcePath(value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- straighten()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toDatalessObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toDataURL()
-
-
-
- Converts an object into a data-url-like string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} string of data
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- toggle(property)
-
-
-
- Toggles specified property from `true` to `false` or from `false` to `true`
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} property
-
-
- - property to toggle
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- toGrayscale()
-
-
-
- Makes object's color grayscale
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toJSON()
-
-
-
- Returns a JSON representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} json
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns an object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns a string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- transform(ctx)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - Context
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - Context to draw on
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ fxRemove(callbacks)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} callbacks
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
-
+
+
+
+ {fabric.Object}
+ fxStraighten(callbacks)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} callbacks
+
+
+ - - onComplete: invoked on completion
+ - onChange: invoked on every step of animation
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
-
+
+
+
+ {Any}
+ get(property)
+
+
+
+ Basic getter
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Any} property
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Any} value of a property
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ getAngle()
+
+
+
+ Returns object's angle value
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} angle value
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ getCenter()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object with `x`, `y` properties corresponding to path center coordinates
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ getHeight()
+
+
+
+ Returns height of an object
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} height value
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ getWidth()
+
+
+
+ Returns width of an object
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} width value
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ hasStateChanged()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if instance' state has changed
+
+
+
+
+
+
+
+
+
+
+
+
+ initialize(options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ intersectsWithObject(other)
+
+
+
+ Returns true if object intersects with another object
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} other
+
+
+ - Object to test
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean}
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ intersectsWithRect(selectionTL, selectionBR)
+
+
+
+ Returns true if object intersects with an area formed by 2 points
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} selectionTL
+
+
+
+
+ -
+ {Object} selectionBR
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean}
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ isActive()
+
+
+
+ Returns true if an object is in its active state
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if an object is in its active state
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ isContainedWithinRect(selectionTL, selectionBR)
+
+
+
+ Returns true if object is fully contained within area formed by 2 points
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} selectionTL
+
+
+
+
+ -
+ {Object} selectionBR
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean}
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ isType(type)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ type
+
+
+ - {String} type to check against
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if specified type is identical to the type of instance
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - context to render on
+
+ -
+ {Boolean} noTransform
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ saveState()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ scale(value)
+
+
+
+ Scales an object (equally by x and y)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} scale factor
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ scaleToHeight(value)
+
+
+
+ Scales an object to a given height (scaling by x/y equally)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} new height value
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ scaleToWidth(value)
+
+
+
+ Scales an object to a given width (scaling by x/y equally)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} new width value
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ set(property, value)
+
+
+
+ Basic setter
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Any} property
+
+
+
+
+ -
+ {Any} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ setActive(active)
+
+
+
+ Sets state of an object - `true` makes it active, `false` - inactive
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Boolean} active
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ setAngle(value)
+
+
+
+ Sets object's angle
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} angle value
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ setCoords()
+
+
+
+ Sets corner position coordinates based on current angle, width and height.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ setOpacity(value)
+
+
+
+ Sets object opacity
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} value 0-1
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ setOptions(options)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} options
+ Optional
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ setSourcePath(value)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ straighten()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ toDatalessObject()
+
+
+
+ Returns (dataless) object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toDataURL()
+
+
+
+ Converts an object into a data-url-like string
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} string of data
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ toggle(property)
+
+
+
+ Toggles specified property from `true` to `false` or from `false` to `true`
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} property
+
+
+ - property to toggle
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ toGrayscale()
+
+
+
+ Makes object's color grayscale
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toJSON()
+
+
+
+ Returns a JSON representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} json
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns an object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object}
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns a string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String}
+
+
+
+
+
+
+
+
+
+
+
+
+ transform(ctx)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - Context
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
+
diff --git a/docs/symbols/fabric.Path.html b/docs/symbols/fabric.Path.html
index 748720e7..1963caf1 100644
--- a/docs/symbols/fabric.Path.html
+++ b/docs/symbols/fabric.Path.html
@@ -1,4 +1,5 @@
-
+
@@ -6,856 +7,848 @@
JsDoc Reference - fabric.Path
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Path
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Path
+
+
+
Defined in: path.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Path()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Path.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Path.fromElement`)
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns number representation of an instance complexity
+
+
+
+
+ <static>
+
+ fabric.Path.fromElement(element, options)
+
+ Creates an instance of fabric.Path from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Path.fromObject(object)
+
+ Creates an instance of fabric.Path from an object
+
+
+
+
+
+
+ initialize(path, options)
+
+ Constructor
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+ Renders path on a specified context
+
+
+
+
+
+
+ toDatalessObject()
+
+ Returns dataless object representation of an instance
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+ toString()
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toGrayscale, toJSON, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Path.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Path.fromElement`)
+
+
+
+
+
+
+
+
+
+
+ - See:
+
+ - http://www.w3.org/TR/SVG/paths.html#PathElement
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns number representation of an instance complexity
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Path}
+ fabric.Path.fromElement(element, options)
+
+
+
+ Creates an instance of fabric.Path from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - to parse
+
+ -
+ {Object} options
+
+
+ - object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Path} Instance of fabric.Path
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Path}
+ fabric.Path.fromObject(object)
+
+
+
+ Creates an instance of fabric.Path from an object
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Path} Instance of fabric.Path
+
+
+
+
+
+
+
+
+
+
+
+
+ initialize(path, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array|String} path
+
+
+ - Path data (sequence of coordinates and corresponding "command" tokens)
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+
+
+ Renders path on a specified context
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - context to render path on
+
+ -
+ {Boolean} noTransform
+
+
+ - When true, context is not transformed
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toDatalessObject()
+
+
+
+ Returns dataless object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object}
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object}
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Path
-
-
-
- Path
-
-
-
-
-
-
-
-
- - Defined in: path.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Path()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns number representation of an instance complexity
-
-
-
-
- <static>
-
- fabric.Path.fromElement(element, options)
-
- Creates an instance of fabric.Path from an SVG element
-
-
-
-
- <static>
-
- fabric.Path.fromObject(object)
-
- Creates an instance of fabric.Path from an object
-
-
-
-
-
-
- initialize(path, options)
-
- Constructor
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
-
-
-
-
-
- set(prop, value)
-
-
-
-
-
-
-
-
- toDatalessObject()
-
-
-
-
-
-
-
-
- toObject()
-
-
-
-
-
-
-
-
- toString()
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toGrayscale, toJSON, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns number representation of an instance complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Creates an instance of fabric.Path from an SVG element
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {SVGElement} element
-
-
- - to parse
-
- -
- {Object} options
-
-
- - object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Path} Instance of fabric.Path
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Creates an instance of fabric.Path from an object
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Path} Instance of fabric.Path
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- initialize(path, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array|String} path
-
-
- - Path data (sequence of coordinates and corresponding "command" tokens)
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- ctx
-
-
-
-
- -
- noTransform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- set(prop, value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- prop
-
-
-
-
- -
- value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toDatalessObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.PathGroup.html b/docs/symbols/fabric.PathGroup.html
index 871da9c4..6a8db8ff 100644
--- a/docs/symbols/fabric.PathGroup.html
+++ b/docs/symbols/fabric.PathGroup.html
@@ -1,4 +1,5 @@
-
+
@@ -6,1063 +7,965 @@
JsDoc Reference - fabric.PathGroup
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.PathGroup
+
+
+
+
+
+
Extends
+ fabric.Path.
+
+
+ PathGroup
+
+
+
Defined in: path_group.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.PathGroup()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns number representation of object's complexity
+
+
+
+
+ <static>
+
+ fabric.PathGroup.fromObject(object)
+
+ Creates fabric.Triangle instance from an object representation
+
+
+
+
+
+
+ getObjects()
+
+ Returns all paths in this path group
+
+
+
+
+
+
+ initialize(paths, options)
+
+ Constructor
+
+
+
+
+
+
+ isSameColor()
+
+ Returns true if all paths in this group are of same color
+
+
+
+
+
+
+ render(ctx)
+
+ Renders this group on a specified context
+
+
+
+
+
+
+ set(prop, value)
+
+ Sets certain property to a certain value
+
+
+
+
+
+
+ toDatalessObject()
+
+ Returns dataless object representation of this path group
+
+
+
+
+
+
+ toGrayscale()
+
+ Makes path group grayscale
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of this path group
+
+
+
+
+
+
+ toString()
+
+ Returns a string representation of this path group
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toJSON, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+
+
+ {Boolean}
+ forceFillOverwrite
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns number representation of object's complexity
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.PathGroup}
+ fabric.PathGroup.fromObject(object)
+
+
+
+ Creates fabric.Triangle instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.PathGroup}
+
+
+
+
+
+
+
+
+
+
+
+ {Array}
+ getObjects()
+
+
+
+ Returns all paths in this path group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} array of path objects included in this path group
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.PathGroup}
+ initialize(paths, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} paths
+
+
+
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.PathGroup} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ isSameColor()
+
+
+
+ Returns true if all paths in this group are of same color
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if all paths are of the same color (`fill`)
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx)
+
+
+
+ Renders this group on a specified context
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - Context to render this instance on
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.PathGroup}
+ set(prop, value)
+
+
+
+ Sets certain property to a certain value
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} prop
+
+
+
+
+ -
+ {Any} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.PathGroup} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toDatalessObject()
+
+
+
+ Returns dataless object representation of this path group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} dataless object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.PathGroup}
+ toGrayscale()
+
+
+
+ Makes path group grayscale
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.PathGroup} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of this path group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns a string representation of this path group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} string representation of an object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .PathGroup
-
-
-
- PathGroup
-
-
-
-
-
-
-
-
- - Defined in: path_group.class.js
-
-
- - Extends
- fabric.Path
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.PathGroup()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns number representation of object's complexity
-
-
-
-
- <static>
-
- fabric.PathGroup.fromObject(object)
-
-
-
-
-
-
-
-
- getObjects()
-
-
-
-
-
-
-
-
- initialize(paths, options)
-
- Constructor
-
-
-
-
-
-
- initProperties()
-
-
-
-
-
-
-
-
- isSameColor()
-
-
-
-
-
-
-
-
- render(ctx)
-
-
-
-
-
-
-
-
- set(prop, value)
-
-
-
-
-
-
-
-
- toDatalessObject()
-
-
-
-
-
-
-
-
- toGrayscale()
-
- Makes path group grayscale
-
-
-
-
-
-
- toObject()
-
-
-
-
-
-
-
-
- toString()
-
- Returns a string representation of an object
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toJSON, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- forceFillOverwrite
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns number representation of object's complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.PathGroup}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Array}
-
- getObjects()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Array} array of path objects included in this path group
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.PathGroup}
-
- initialize(paths, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} paths
-
-
-
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.PathGroup} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- initProperties()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- isSameColor()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if all paths are of the same color (`fill`)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- ctx
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.PathGroup}
-
- set(prop, value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} prop
-
-
-
-
- -
- {Any} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.PathGroup} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toDatalessObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} dataless object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.PathGroup}
-
- toGrayscale()
-
-
-
- Makes path group grayscale
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.PathGroup} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns a string representation of an object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} string representation of an object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Point.html b/docs/symbols/fabric.Point.html
index 3c4da482..e726eccb 100644
--- a/docs/symbols/fabric.Point.html
+++ b/docs/symbols/fabric.Point.html
@@ -1,4 +1,5 @@
-
+
@@ -6,1642 +7,1610 @@
JsDoc Reference - fabric.Point
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Point
+
+
+
+
+
+
+
+
+
+
+
Defined in: point.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Point(x, y)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ add(that)
+
+
+
+
+
+
+
+
+ addEquals(that)
+
+
+
+
+
+
+
+
+ distanceFrom(that)
+
+
+
+
+
+
+
+
+ divide(scalar)
+
+
+
+
+
+
+
+
+ divideEquals(scalar)
+
+
+
+
+
+
+
+
+ eq(that)
+
+
+
+
+
+
+
+
+ gt(that)
+
+
+
+
+
+
+
+
+ gte(that)
+
+
+
+
+
+
+
+
+ init(x, y)
+
+
+
+
+
+
+
+
+ lerp(that, t)
+
+
+
+
+
+
+
+
+ lt(that)
+
+
+
+
+
+
+
+
+ lte(that)
+
+
+
+
+
+
+
+
+ max(that)
+
+
+
+
+
+
+
+
+ min(that)
+
+
+
+
+
+
+
+
+ multiply(scalar)
+
+
+
+
+
+
+
+
+ multiplyEquals(scalar)
+
+
+
+
+
+
+
+
+ scalarAdd(scalar)
+
+
+
+
+
+
+
+
+ scalarAddEquals(scalar, thisArg)
+
+
+
+
+
+
+
+
+ scalarSubtract(scalar)
+
+
+
+
+
+
+
+
+ scalarSubtractEquals(scalar)
+
+
+
+
+
+
+
+
+ setFromPoint(that)
+
+
+
+
+
+
+
+
+ setXY(x, y)
+
+
+
+
+
+
+
+
+ subtract(that)
+
+
+
+
+
+
+
+
+ subtractEquals(that)
+
+
+
+
+
+
+
+
+ swap(that)
+
+
+
+
+
+
+
+
+ toString()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Class Detail
+
+
+
+ fabric.Point(x, y)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} x
+
+
+
+
+ -
+ {Number} y
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} thisArg
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+
+
+ {fabric.Point}
+ add(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Point} that
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} new Point instance with added values
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Point}
+ addEquals(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Point} that
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ distanceFrom(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ divide(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ divideEquals(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ eq(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ gt(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ gte(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ init(x, y)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} x
+
+
+
+
+ -
+ {Number} y
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ lerp(that, t)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+ -
+ t
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ lt(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ lte(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ max(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ min(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ multiply(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ multiplyEquals(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Point}
+ scalarAdd(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} scalar
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} new Point with added value
+
+
+
+
+
+
+
+
+
+
+
+
+ scalarAddEquals(scalar, thisArg)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} scalar
+
+
+
+
+ -
+ {fabric.Point} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ scalarSubtract(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ scalarSubtractEquals(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setFromPoint(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setXY(x, y)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ x
+
+
+
+
+ -
+ y
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Point}
+ subtract(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Point} that
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} new Point object with subtracted values
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Point}
+ subtractEquals(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Point} that
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ swap(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ toString()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Point
-
-
-
-
-
-
-
-
-
-
-
-
- - Defined in: point.class.js
-
-
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Point(x, y)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- add(that)
-
-
-
-
-
-
-
-
- addEquals(that)
-
-
-
-
-
-
-
-
- distanceFrom(that)
-
-
-
-
-
-
-
-
- divide(scalar)
-
-
-
-
-
-
-
-
- divideEquals(scalar)
-
-
-
-
-
-
-
-
- eq(that)
-
-
-
-
-
-
-
-
- gt(that)
-
-
-
-
-
-
-
-
- gte(that)
-
-
-
-
-
-
-
-
- init(x, y)
-
-
-
-
-
-
-
-
- lerp(that, t)
-
-
-
-
-
-
-
-
- lt(that)
-
-
-
-
-
-
-
-
- lte(that)
-
-
-
-
-
-
-
-
- max(that)
-
-
-
-
-
-
-
-
- min(that)
-
-
-
-
-
-
-
-
- multiply(scalar)
-
-
-
-
-
-
-
-
- multiplyEquals(scalar)
-
-
-
-
-
-
-
-
- scalarAdd(scalar)
-
-
-
-
-
-
-
-
- scalarAddEquals(scalar, thisArg)
-
-
-
-
-
-
-
-
- scalarSubtract(scalar)
-
-
-
-
-
-
-
-
- scalarSubtractEquals(scalar)
-
-
-
-
-
-
-
-
- setFromPoint(that)
-
-
-
-
-
-
-
-
- setXY(x, y)
-
-
-
-
-
-
-
-
- subtract(that)
-
-
-
-
-
-
-
-
- subtractEquals(that)
-
-
-
-
-
-
-
-
- swap(that)
-
-
-
-
-
-
-
-
- toString()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class Detail
-
-
-
- fabric.Point(x, y)
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} x
-
-
-
-
- -
- {Number} y
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- add(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Point} that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} new Point instance with added values
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- addEquals(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Point} that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- distanceFrom(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- divide(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- divideEquals(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- eq(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- gt(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- gte(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- init(x, y)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} x
-
-
-
-
- -
- {Number} y
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- lerp(that, t)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
- -
- t
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- lt(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- lte(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- max(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- min(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- multiply(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- multiplyEquals(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- scalarAdd(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} new Point with added value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- scalarAddEquals(scalar, thisArg)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} scalar
-
-
-
-
- -
- {fabric.Point} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- scalarSubtract(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- scalarSubtractEquals(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setFromPoint(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setXY(x, y)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- x
-
-
-
-
- -
- y
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- subtract(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Point} that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} new Point object with subtracted values
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- subtractEquals(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Point} that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- swap(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toString()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Polygon.html b/docs/symbols/fabric.Polygon.html
index 83c1b066..de5d4144 100644
--- a/docs/symbols/fabric.Polygon.html
+++ b/docs/symbols/fabric.Polygon.html
@@ -1,4 +1,5 @@
-
+
@@ -6,688 +7,715 @@
JsDoc Reference - fabric.Polygon
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Polygon
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Polygon
+
+
+
Defined in: polygon.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Polygon()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Polygon.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Polygon.fromElement`)
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns complexity of an instance
+
+
+
+
+ <static>
+
+ fabric.Polygon.fromElement(element, options)
+
+ Returns fabric.Polygon instance from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Polygon.fromObject(object)
+
+ Returns fabric.Polygon instance from an object representation
+
+
+
+
+
+
+ initialize(points, options)
+
+ Constructor
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Polygon.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Polygon.fromElement`)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity of this instance
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Polygon}
+ fabric.Polygon.fromElement(element, options)
+
+
+
+ Returns fabric.Polygon instance from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - Element to parse
+
+ -
+ {Object} options
+
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Polygon}
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Polygon}
+ fabric.Polygon.fromObject(object)
+
+
+
+ Returns fabric.Polygon instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+ - Object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Polygon}
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Polygon}
+ initialize(points, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} points
+
+
+ - Array of points
+
+ -
+ {Object} options
+
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Polygon} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Polygon
-
-
-
- Polygon
-
-
-
-
-
-
-
-
- - Defined in: polygon.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Polygon()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
- <static>
-
-
- fabric.Polygon.ATTRIBUTE_NAMES
-
- List of attribute names to account for when parsing SVG element (used by `fabric.Polygon.fromElement`)
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns complexity of an instance
-
-
-
-
- <static>
-
- fabric.Polygon.fromElement(element, options)
-
- Returns fabric.Polygon instance from an SVG element
-
-
-
-
- <static>
-
- fabric.Polygon.fromObject(object)
-
- Returns fabric.Polygon instance from an object representation
-
-
-
-
-
-
- initialize(points, options)
-
- Constructor
-
-
-
-
-
-
- toObject()
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Polygon.ATTRIBUTE_NAMES
-
-
-
- List of attribute names to account for when parsing SVG element (used by `fabric.Polygon.fromElement`)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns complexity of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity of this instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Returns fabric.Polygon instance from an SVG element
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {SVGElement} element
-
-
- - Element to parse
-
- -
- {Object} options
-
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Polygon}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Returns fabric.Polygon instance from an object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
- - Object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Polygon}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Polygon}
-
- initialize(points, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} points
-
-
- - Array of points
-
- -
- {Object} options
-
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Polygon} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Polyline.html b/docs/symbols/fabric.Polyline.html
index 9c70a721..f4354f50 100644
--- a/docs/symbols/fabric.Polyline.html
+++ b/docs/symbols/fabric.Polyline.html
@@ -1,4 +1,5 @@
-
+
@@ -6,653 +7,715 @@
JsDoc Reference - fabric.Polyline
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Polyline
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Polyline
+
+
+
Defined in: polyline.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Polyline()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Polyline.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Polyline.fromElement`)
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns complexity of an instance
+
+
+
+
+ <static>
+
+ fabric.Polyline.fromElement(element, options)
+
+ Returns fabric.Polyline instance from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Polyline.fromObject(object)
+
+ Returns fabric.Polyline instance from an object representation
+
+
+
+
+
+
+ initialize(points, options)
+
+ Constructor
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Polyline.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Polyline.fromElement`)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.Polyline.fromElement(element, options)
+
+
+
+ Returns fabric.Polyline instance from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - Element to parse
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} instance of fabric.Polyline
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Polyline}
+ fabric.Polyline.fromObject(object)
+
+
+
+ Returns fabric.Polyline instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+ Optional
+
+ - Object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Polyline}
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ initialize(points, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} points
+
+
+ - array of points
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Polyline
-
-
-
- Polyline
-
-
-
-
-
-
-
-
- - Defined in: polyline.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Polyline()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns complexity of an instance
-
-
-
-
- <static>
-
- fabric.Polyline.fromElement(element, options)
-
- Returns fabric.Polyline instance from an SVG element
-
-
-
-
- <static>
-
- fabric.Polyline.fromObject(object)
-
- Returns fabric.Polyline instance from an object representation
-
-
-
-
-
-
- initialize(points, options)
-
- Constructor
-
-
-
-
-
-
- toObject()
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns complexity of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {Object}
-
- fabric.Polyline.fromElement(element, options)
-
-
-
- Returns fabric.Polyline instance from an SVG element
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {SVGElement} element
-
-
- - Element to parse
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} instance of fabric.Polyline
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Returns fabric.Polyline instance from an object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
- Optional
-
- - Object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Polyline}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- initialize(points, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} points
-
-
- - array of points
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} Object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Rect.html b/docs/symbols/fabric.Rect.html
index 80472e15..ec474e67 100644
--- a/docs/symbols/fabric.Rect.html
+++ b/docs/symbols/fabric.Rect.html
@@ -1,4 +1,5 @@
-
+
@@ -6,624 +7,700 @@
JsDoc Reference - fabric.Rect
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Rect
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Rect
+
+
+
Defined in: rect.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Rect()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Rect.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Rect.fromElement`)
+
+
+
+
+
+
+
+ options
+
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+
+
+
+
+
+ <static>
+
+ fabric.Rect.fromElement(element, options)
+
+ Returns fabric.Rect instance from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Rect.fromObject(object)
+
+ Returns fabric.Rect instance from an object representation
+
+
+
+
+
+
+ initialize(options)
+
+ Constructor
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Rect.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Rect.fromElement`)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ options
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Rect}
+ fabric.Rect.fromElement(element, options)
+
+
+
+ Returns fabric.Rect instance from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ element
+
+
+ - {SVGElement} element to parse
+
+ -
+ options
+
+
+ - {Object} options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Rect} instance of fabric.Rect
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.Rect.fromObject(object)
+
+
+
+ Returns fabric.Rect instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+ - {Object} object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} instance of fabric.Rect
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ initialize(options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ options
+
+
+ - {Object} options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Rect
-
-
-
- Rect
-
-
-
-
-
-
-
-
- - Defined in: rect.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Rect()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
-
-
-
-
-
- <static>
-
- fabric.Rect.fromElement(element, options)
-
-
-
-
-
-
- <static>
-
- fabric.Rect.fromObject(object)
-
-
-
-
-
-
-
-
- initialize(options)
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- options
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- element
-
-
- - {SVGElement} element to parse
-
- -
- options
-
-
- - {Object} options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Rect} instance of fabric.Rect
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {Object}
-
- fabric.Rect.fromObject(object)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {Object} object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} instance of fabric.Rect
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- initialize(options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- options
-
-
- - {Object} options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Text.html b/docs/symbols/fabric.Text.html
index 6695c1b2..d93005e5 100644
--- a/docs/symbols/fabric.Text.html
+++ b/docs/symbols/fabric.Text.html
@@ -1,4 +1,5 @@
-
+
@@ -6,1107 +7,1009 @@
JsDoc Reference - fabric.Text
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Text
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Text
+
+
+
Defined in: text.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Text()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+
+
+
+ options
+
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.Text.fromElement(element)
+
+ Returns fabric.Text instance from an SVG element (not yet implemented)
+
+
+
+
+ <static>
+
+ fabric.Text.fromObject(object)
+
+ Returns fabric.Text instance from an object representation
+
+
+
+
+
+
+ getText()
+
+ Returns actual text value of an instance
+
+
+
+
+
+
+ initialize(text, options)
+
+ Constructor
+
+
+
+
+
+
+ render(ctx)
+
+ Renders text instance on a specified context
+
+
+
+
+
+
+ set(name, value)
+
+ Sets specified property to a specified value
+
+
+
+
+
+
+ setColor(value)
+
+ Sets "color" of an instance (alias of `set('fill', …)`)
+
+
+
+
+
+
+ setFontsize(value)
+
+ Sets fontsize of an instance and updates its coordinates
+
+
+
+
+
+
+ setText(value)
+
+ Sets text of an instance, and updates its coordinates
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+ toString()
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, complexity, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+
+
+ {Object}
+ options
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+ <static>
+
+ {fabric.Text}
+ fabric.Text.fromElement(element)
+
+
+
+ Returns fabric.Text instance from an SVG element (not yet implemented)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ element
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} an instance
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Text}
+ fabric.Text.fromObject(object)
+
+
+
+ Returns fabric.Text instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+ - to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} an instance
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ getText()
+
+
+
+ Returns actual text value of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String}
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ initialize(text, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} text
+
+
+
+
+ -
+ {Object} options
+ Optional
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx)
+
+
+
+ Renders text instance on a specified context
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ ctx
+
+
+ - {CanvasRenderingContext2D} context to render on
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ set(name, value)
+
+
+
+ Sets specified property to a specified value
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} name
+
+
+
+
+ -
+ {Any} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ setColor(value)
+
+
+
+ Sets "color" of an instance (alias of `set('fill', …)`)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ setFontsize(value)
+
+
+
+ Sets fontsize of an instance and updates its coordinates
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ setText(value)
+
+
+
+ Sets text of an instance, and updates its coordinates
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Object representation of text object
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} String representation of text object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Text
-
-
-
- Text
-
-
-
-
-
-
-
-
- - Defined in: text.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Text()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.Text.fromElement(element)
-
-
-
-
-
-
- <static>
-
- fabric.Text.fromObject(object)
-
- Returns fabric.Text instance from an object representation
-
-
-
-
-
-
- getText()
-
-
-
-
-
-
-
-
- initialize(text, options)
-
- Constructor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx)
-
-
-
-
-
-
-
-
- set(name, value)
-
- Sets specified property to a specified value
-
-
-
-
-
-
- setColor(value)
-
-
-
-
-
-
-
-
- setFontsize(value)
-
-
-
-
-
-
-
-
- setText(value)
-
- Sets text of an instance, and updates its coordinates
-
-
-
-
-
-
- toObject()
-
-
-
-
-
-
-
-
- toString()
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, complexity, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- options
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Returns fabric.Text instance from an object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
- - to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- getText()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- initialize(text, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} text
-
-
-
-
- -
- {Object} options
- Optional
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- initStateProperties()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- ctx
-
-
- - {CanvasRenderingContext2D} context to render on
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- set(name, value)
-
-
-
- Sets specified property to a specified value
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} name
-
-
-
-
- -
- {Any} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- setColor(value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- setFontsize(value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- setText(value)
-
-
-
- Sets text of an instance, and updates its coordinates
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} Object representation of text object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} String representation of text object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Triangle.html b/docs/symbols/fabric.Triangle.html
index f1076b52..bb4ab549 100644
--- a/docs/symbols/fabric.Triangle.html
+++ b/docs/symbols/fabric.Triangle.html
@@ -1,4 +1,5 @@
-
+
@@ -6,514 +7,578 @@
JsDoc Reference - fabric.Triangle
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Triangle
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Triangle
+
+
+
Defined in: triangle.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Triangle()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns complexity of an instance
+
+
+
+
+ <static>
+
+ fabric.Triangle.fromObject(object)
+
+ Returns fabric.Triangle instance from an object representation
+
+
+
+
+
+
+ initialize(options)
+
+ Constructor
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity of this instance
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.Triangle.fromObject(object)
+
+
+
+ Returns fabric.Triangle instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+ - {Object} object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} instance of Canvas.Triangle
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ initialize(options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ options
+
+
+ - {Object} options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Triangle
-
-
-
- Triangle
-
-
-
-
-
-
-
-
- - Defined in: triangle.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Triangle()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns complexity of an instance
-
-
-
-
- <static>
-
- fabric.Triangle.fromObject(object)
-
- Returns fabric.Triangle instance from an object representation
-
-
-
-
-
-
- initialize(options)
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns complexity of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity of this instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {Object}
-
- fabric.Triangle.fromObject(object)
-
-
-
- Returns fabric.Triangle instance from an object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {Object} object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} instance of Canvas.Triangle
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- initialize(options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- options
-
-
- - {Object} options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.html b/docs/symbols/fabric.html
new file mode 100644
index 00000000..b2e5380e
--- /dev/null
+++ b/docs/symbols/fabric.html
@@ -0,0 +1,800 @@
+
+
+
+
+
+
+ JsDoc Reference - fabric
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Classes
+
+
+ - _global_
+
+ - Array
+
+ - fabric
+
+ - fabric.Circle
+
+ - fabric.Color
+
+ - fabric.Element
+
+ - fabric.Element#cache
+
+ - fabric.Ellipse
+
+ - fabric.Group
+
+ - fabric.Image
+
+ - fabric.Intersection
+
+ - fabric.Line
+
+ - fabric.Object
+
+ - fabric.Path
+
+ - fabric.PathGroup
+
+ - fabric.Point
+
+ - fabric.Polygon
+
+ - fabric.Polyline
+
+ - fabric.Rect
+
+ - fabric.Text
+
+ - fabric.Triangle
+
+ - fabric.util
+
+ - fabric.util.array
+
+ - fabric.util.object
+
+ - fabric.util.string
+
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+
+
+ Namespace fabric
+
+
+
+
+
+
+
+
+
+
+
Defined in: parser.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.log(Values)
+
+ Wrapper around `console.log` (when available)
+
+
+
+
+ <static>
+
+ fabric.parseAttributes(element, attributes)
+
+ Returns an object of attributes' name/value, given element and an array of attribute names;
+Parses parent "g" nodes recursively upwards.
+
+
+
+
+ <static>
+
+ fabric.parseElements(elements, options)
+
+
+
+
+
+
+ <static>
+
+ fabric.parsePointsAttribute(points)
+
+
+
+
+
+
+ <static>
+
+ fabric.parseStyleAttribute(element)
+
+
+
+
+
+
+ <static>
+
+ fabric.parseSVGDocument(doc, callback)
+
+
+
+
+
+
+ <static>
+
+ fabric.parseTransformAttribute(attributeValue)
+
+
+
+
+
+
+ <static>
+
+ fabric.warn(Values)
+
+ Wrapper around `console.warn` (when available)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+ <static>
+
+
+ fabric.log(Values)
+
+
+
+ Wrapper around `console.log` (when available)
+
+
+ Defined in: fabric.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Any} Values
+
+
+ - to log
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.parseAttributes(element, attributes)
+
+
+
+ Returns an object of attributes' name/value, given element and an array of attribute names;
+Parses parent "g" nodes recursively upwards.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {DOMElement} element
+
+
+ - Element to parse
+
+ -
+ {Array} attributes
+
+
+ - Array of attributes to parse
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object containing parsed attributes' names/values
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Array}
+ fabric.parseElements(elements, options)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} elements
+
+
+ - Array of elements to parse
+
+ -
+ {Object} options
+
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} Array of corresponding instances (transformed from SVG elements)
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Array}
+ fabric.parsePointsAttribute(points)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ points
+
+
+ - {String} points attribute string
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} array of points
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.parseStyleAttribute(element)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - Element to parse
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Objects with values parsed from style attribute of an element
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.parseSVGDocument(doc, callback)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGDocument} doc
+
+
+ - SVG document to parse
+
+ -
+ {Function} callback
+
+
+ - Callback to call when parsing is finished; It's being passed an array of elements (parsed from a document).
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Array}
+ fabric.parseTransformAttribute(attributeValue)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ attributeValue
+
+
+ - {String} string containing attribute value
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} array of 6 elements representing transformation matrix
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.warn(Values)
+
+
+
+ Wrapper around `console.warn` (when available)
+
+
+ Defined in: fabric.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Any} Values
+
+
+ - to log as a warning
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:46 GMT-0400 (EDT)
+
+
+
diff --git a/docs/symbols/fabric.util.array.html b/docs/symbols/fabric.util.array.html
index 0f2a60c7..65c87d05 100644
--- a/docs/symbols/fabric.util.array.html
+++ b/docs/symbols/fabric.util.array.html
@@ -1,4 +1,5 @@
-
+
@@ -6,402 +7,521 @@
JsDoc Reference - fabric.util.array
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Namespace fabric.util.array
+
+
+
+
+
+
+
+
+
+
+
Defined in: lang_array.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.util.array.invoke(array, method)
+
+ Invokes method on all items in a given array
+
+
+
+
+ <static>
+
+ fabric.util.array.max(array, byProperty)
+
+ Finds maximum value in array (not necessarily "first" one)
+
+
+
+
+ <static>
+
+ fabric.util.array.min(array, byProperty)
+
+ Finds minimum value in array (not necessarily "first" one)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.util.array.invoke(array, method)
+
+
+
+ Invokes method on all items in a given array
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} array
+
+
+ - Array to iterate over
+
+ -
+ {String} method
+
+
+ - Name of a method to invoke
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.array.max(array, byProperty)
+
+
+
+ Finds maximum value in array (not necessarily "first" one)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.array.min(array, byProperty)
+
+
+
+ Finds minimum value in array (not necessarily "first" one)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Namespace fabric .util .array
-
-
-
-
-
-
-
-
-
-
-
-
- - Defined in: lang_array.js
-
-
-
-
-
-
-
-
-
- Namespace Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.util.array.invoke(array, method)
-
- Invokes method on all items in a given array
-
-
-
-
- <static>
-
- fabric.util.array.max(array, byProperty)
-
- Finds maximum value in array (not necessarily "first" one)
-
-
-
-
- <static>
-
- fabric.util.array.min(array, byProperty)
-
- Finds minimum value in array (not necessarily "first" one)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.array.invoke(array, method)
-
-
-
- Invokes method on all items in a given array
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} array
-
-
- - Array to iterate over
-
- -
- {String} method
-
-
- - Name of a method to invoke
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.array.max(array, byProperty)
-
-
-
- Finds maximum value in array (not necessarily "first" one)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.array.min(array, byProperty)
-
-
-
- Finds minimum value in array (not necessarily "first" one)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.util.html b/docs/symbols/fabric.util.html
index af3343ea..2b7a27e5 100644
--- a/docs/symbols/fabric.util.html
+++ b/docs/symbols/fabric.util.html
@@ -1,4 +1,5 @@
-
+
@@ -6,1763 +7,1643 @@
JsDoc Reference - fabric.util
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Namespace fabric.util
+
+
+
+
+
+
+
+
+
+
+
Defined in: util.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.util
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.util.addClass(element, className)
+
+ Adds class to an element
+
+
+
+
+ <static>
+
+ fabric.util.addListener(element, eventName, handler)
+
+ Adds an event listener to an element
+
+
+
+
+ <static>
+
+ fabric.util.animate(options)
+
+ Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
+
+
+
+
+ <static>
+
+ fabric.util.createClass()
+
+ Helper for creation of "classes"
+
+
+
+
+ <static>
+
+ fabric.util.degreesToRadians(degrees)
+
+ Transforms degrees to radians.
+
+
+
+
+ <static>
+
+ fabric.util.falseFunction()
+
+ Function which always returns `false`.
+
+
+
+
+ <static>
+
+ fabric.util.fireEvent(eventName, memo)
+
+ Fires event with an optional memo object
+
+
+
+
+ <static>
+
+ fabric.util.getById(id)
+
+ Takes id and returns an element with that id (if one exists in a document)
+
+
+
+
+ <static>
+
+ fabric.util.getElementOffset(element)
+
+ Returns offset for a given element
+
+
+
+
+ <static>
+
+ fabric.util.getPointer(event)
+
+ Cross-browser wrapper for getting event's coordinates
+
+
+
+
+ <static>
+
+ fabric.util.getRandomInt(min, max)
+
+ Returns random number between 2 specified ones.
+
+
+
+
+ <static>
+
+ fabric.util.getScript(url, callback)
+
+ Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
+
+
+
+
+ <static>
+
+ fabric.util.makeElement(tagName, attributes)
+
+ Creates specified element with specified attributes
+
+
+
+
+ <static>
+
+ fabric.util.makeElementUnselectable(element)
+
+ Makes element unselectable
+
+
+
+
+ <static>
+
+ fabric.util.observeEvent(eventName, handler)
+
+
+
+
+
+
+ <static>
+
+ fabric.util.removeFromArray(array, value)
+
+ Removes value from an array.
+
+
+
+
+ <static>
+
+ fabric.util.removeListener(element, eventName, handler)
+
+ Removes an event listener from an element
+
+
+
+
+ <static>
+
+ fabric.util.request(url, options)
+
+ Cross-browser abstraction for sending XMLHttpRequest
+
+
+
+
+ <static>
+
+ fabric.util.setStyle(element, styles)
+
+ Cross-browser wrapper for setting element's style
+
+
+
+
+ <static>
+
+ fabric.util.toArray(arrayLike)
+
+ Converts an array-like object (e.g.
+
+
+
+
+ <static>
+
+ fabric.util.toFixed(number, fractionDigits)
+
+ A wrapper around Number#toFixed, which contrary to native method returns number, not string.
+
+
+
+
+ <static>
+
+ fabric.util.wrapElement(element, wrapper, attributes)
+
+ Wraps element with another element
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
-
-
-
-
-
-
+
+ <static>
- Namespace fabric .util
-
-
-
-
-
-
-
-
-
-
-
- - Defined in: util.js
-
-
-
-
-
-
-
-
-
- Namespace Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.util
-
-
-
-
-
-
+ fabric.util.addClass(element, className)
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.util.addClass(element, className)
-
- Adds class to an element
-
-
-
-
- <static>
-
- fabric.util.addListener(element, eventName, handler)
-
- Adds an event listener to an element
-
-
-
-
- <static>
-
- fabric.util.animate(options)
-
- Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
-
-
-
-
- <static>
-
- fabric.util.createClass()
-
- Helper for creation of "classes"
-
-
-
-
- <static>
-
- fabric.util.degreesToRadians(degrees)
-
- Transforms degrees to radians.
-
-
-
-
- <static>
-
- fabric.util.falseFunction()
-
- Function which always returns `false`.
-
-
-
-
- <static>
-
- fabric.util.fireEvent(eventName, memo)
-
- Fires event with an optional memo object
-
-
-
-
- <static>
-
- fabric.util.getById(id)
-
- Takes id and returns an element with that id (if one exists in a document)
-
-
-
-
- <static>
-
- fabric.util.getElementOffset(element)
-
- Returns offset for a given element
-
-
-
-
- <static>
-
- fabric.util.getPointer(event)
-
- Cross-browser wrapper for getting event's coordinates
-
-
-
-
- <static>
-
- fabric.util.getRandomInt(min, max)
-
- Returns random number between 2 specified ones.
-
-
-
-
- <static>
-
- fabric.util.getScript(url, callback)
-
- Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
-
-
-
-
- <static>
-
- fabric.util.makeElement(tagName, attributes)
-
- Creates specified element with specified attributes
-
-
-
-
- <static>
-
- fabric.util.makeElementUnselectable(element)
-
- Makes element unselectable
-
-
-
-
- <static>
-
- fabric.util.observeEvent(eventName, handler)
-
-
-
-
-
-
- <static>
-
- fabric.util.removeFromArray(array, value)
-
- Removes value from an array.
-
-
-
-
- <static>
-
- fabric.util.removeListener(element, eventName, handler)
-
- Removes an event listener from an element
-
-
-
-
- <static>
-
- fabric.util.request(url, options)
-
- Cross-browser abstraction for sending XMLHttpRequest
-
-
-
-
- <static>
-
- fabric.util.setStyle(element, styles)
-
- Cross-browser wrapper for setting element's style
-
-
-
-
- <static>
-
- fabric.util.toArray(arrayLike)
-
- Converts an array-like object (e.g.
-
-
-
-
- <static>
-
- fabric.util.toFixed(number, fractionDigits)
-
- A wrapper around Number#toFixed, which contrary to native method returns number, not string.
-
-
-
-
- <static>
-
- fabric.util.wrapElement(element, wrapper, attributes)
-
- Wraps element with another element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Namespace Detail
-
-
-
- fabric.util
-
-
-
-
-
-
-
-
+
+ Adds class to an element
+
+
+ Defined in: dom_misc.js.
+
-
-
-
-
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+ - Element to add class to
+
+ -
+ {String} className
+
+
+ - Class to add to an element
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.addListener(element, eventName, handler)
+
+
+
+ Adds an event listener to an element
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+
+
+ -
+ {String} eventName
+
+
+
+
+ -
+ {Function} handler
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+ <static>
+
+
+ fabric.util.animate(options)
+
+
+
+ Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} options
+ Optional
+
+ - Animation options
+
+ -
+ {Function} options.onChange
+ Optional
+
+ - Callback; invoked on every value change
+
+ -
+ {Function} options.onComplete
+ Optional
+
+ - Callback; invoked when value change is completed
+
+ -
+ {Number} options.startValue
+ Optional, Default: 0
+
+ - Starting value
+
+ -
+ {Number} options.endValue
+ Optional, Default: 100
+
+ - Ending value
+
+ -
+ {Function} options.easing
+ Optional
+
+ - Easing function
+
+ -
+ {Number} options.duration
+ Optional, Default: 500
+
+ - Duration of change
+
+
+
+
+
+
+
+
+
-
+
-
-
-
- Method Detail
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.addClass(element, className)
-
-
-
- Adds class to an element
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to add class to
-
- -
- {String} className
-
-
- - Class to add to an element
-
-
-
-
-
+
+ <static>
+
+
+ fabric.util.createClass()
+
+
+
+ Helper for creation of "classes"
+
+
+ Defined in: lang_class.js.
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Number}
+ fabric.util.degreesToRadians(degrees)
+
+
+
+ Transforms degrees to radians.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {Number} degrees
-
-
- fabric.util.addListener(element, eventName, handler)
-
-
-
- Adds an event listener to an element
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
-
-
- -
- {String} eventName
-
-
-
-
- -
- {Function} handler
-
-
-
-
-
-
-
-
+
+ - value in degrees
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} value in radians
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Boolean}
+ fabric.util.falseFunction()
+
+
+
+ Function which always returns `false`.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
-
-
-
-
- <static>
-
-
-
-
- fabric.util.animate(options)
-
-
-
- Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} options
- Optional
-
- - Animation options
-
- -
- {Function} options.onChange
- Optional
-
- - Callback; invoked on every value change
-
- -
- {Function} options.onComplete
- Optional
-
- - Callback; invoked when value change is completed
-
- -
- {Number} options.startValue
- Optional, Default: 0
-
- - Starting value
-
- -
- {Number} options.endValue
- Optional, Default: 100
-
- - Ending value
-
- -
- {Function} options.easing
- Optional
-
- - Easing function
-
- -
- {Number} options.duration
- Optional, Default: 500
-
- - Duration of change
-
-
-
-
-
+ - {Boolean}
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.fireEvent(eventName, memo)
+
+
+
+ Fires event with an optional memo object
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} eventName
-
-
- fabric.util.createClass()
-
-
-
- Helper for creation of "classes"
-
-
-
- Defined in: lang_class.js.
-
-
-
-
-
-
-
-
-
-
+
+
+
+ -
+ {Object} memo
+ Optional
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {HTMLElement|null}
+ fabric.util.getById(id)
+
+
+
+ Takes id and returns an element with that id (if one exists in a document)
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String|HTMLElement} id
- {Number}
-
- fabric.util.degreesToRadians(degrees)
-
-
-
- Transforms degrees to radians.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} degrees
-
-
- - value in degrees
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} value in radians
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement|null}
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Object}
+ fabric.util.getElementOffset(element)
+
+
+
+ Returns offset for a given element
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {HTMLElement} element
- {Boolean}
-
- fabric.util.falseFunction()
-
-
-
- Function which always returns `false`.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean}
-
-
-
-
-
-
-
-
-
+
+ - Element to get offset for
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Object with "left" and "top" properties
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.getPointer(event)
+
+
+
+ Cross-browser wrapper for getting event's coordinates
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {Event} event
-
-
- fabric.util.fireEvent(eventName, memo)
-
-
-
- Fires event with an optional memo object
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} eventName
-
-
-
-
- -
- {Object} memo
- Optional
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Number}
+ fabric.util.getRandomInt(min, max)
+
+
+
+ Returns random number between 2 specified ones.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {Number} min
- {HTMLElement|null}
+
+ - lower limit
+
+ -
+ {Number} max
- fabric.util.getById(id)
-
-
-
- Takes id and returns an element with that id (if one exists in a document)
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String|HTMLElement} id
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement|null}
-
-
-
-
-
-
-
-
-
+
+ - upper limit
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} random value (between min and max)
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.getScript(url, callback)
+
+
+
+ Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} url
- {Object}
+
+ - URL of a script to load
+
+ -
+ {Function} callback
- fabric.util.getElementOffset(element)
-
-
-
- Returns offset for a given element
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to get offset for
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} Object with "left" and "top" properties
-
-
-
-
-
-
-
-
-
+
+ - Callback to execute when script is finished loading
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.makeElement(tagName, attributes)
+
+
+
+ Creates specified element with specified attributes
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} tagName
-
-
- fabric.util.getPointer(event)
-
-
-
- Cross-browser wrapper for getting event's coordinates
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Event} event
-
-
-
-
-
-
-
-
+
+ - Type of an element to create
+
+ -
+ {Object} attributes
+ Optional
+
+ - Attributes to set on an element
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} Newly created element
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.makeElementUnselectable(element)
+
+
+
+ Makes element unselectable
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {HTMLElement} element
- {Number}
-
- fabric.util.getRandomInt(min, max)
-
-
-
- Returns random number between 2 specified ones.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} min
-
-
- - lower limit
-
- -
- {Number} max
-
-
- - upper limit
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} random value (between min and max)
-
-
-
-
-
-
-
-
-
+
+ - Element to make unselectable
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} Element that was passed in
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.observeEvent(eventName, handler)
+
+
+
+
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} eventName
+
+
+
+ -
+ {Function} handler
-
- fabric.util.getScript(url, callback)
-
-
-
- Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.makeElement(tagName, attributes)
-
-
-
- Creates specified element with specified attributes
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} tagName
-
-
- - Type of an element to create
-
- -
- {Object} attributes
- Optional
-
- - Attributes to set on an element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} Newly created element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.makeElementUnselectable(element)
-
-
-
- Makes element unselectable
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to make unselectable
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} Element that was passed in
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.observeEvent(eventName, handler)
-
-
-
-
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Removes value from an array.
+
+
+
+ <static>
+
+ {Array}
+ fabric.util.removeFromArray(array, value)
+
+
+
+ Removes value from an array.
Presence of value (and its position in an array) is determined via `Array.prototype.indexOf`
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} array
-
-
-
-
- -
- {Any} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Array} original array
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.removeListener(element, eventName, handler)
-
-
-
- Removes an event listener from an element
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
-
-
- -
- {String} eventName
-
-
-
-
- -
- {Function} handler
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {XMLHttpRequest}
-
- fabric.util.request(url, options)
-
-
-
- Cross-browser abstraction for sending XMLHttpRequest
-
-
-
- Defined in: dom_request.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} url
-
-
- - URL to send XMLHttpRequest to
-
- -
- {Object} options
- Optional
-
- - Options object
-
- -
- {String} options.method
- Optional, Default: "GET"
-
-
-
- -
- {Function} options.onComplete
-
-
- - Callback to invoke when request is completed
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {XMLHttpRequest} request
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.setStyle(element, styles)
-
-
-
- Cross-browser wrapper for setting element's style
-
-
-
- Defined in: dom_style.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
-
-
- -
- {Object} styles
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} Element that was passed as a first argument
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Converts an array-like object (e.g. arguments or NodeList) to an array
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} arrayLike
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Array}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {Number}
-
- fabric.util.toFixed(number, fractionDigits)
-
-
-
- A wrapper around Number#toFixed, which contrary to native method returns number, not string.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number | String} number
-
-
- - number to operate on
-
- -
- {Number} fractionDigits
-
-
- - number of fraction digits to "leave"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.wrapElement(element, wrapper, attributes)
-
-
-
- Wraps element with another element
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to wrap
-
- -
- {HTMLElement|String} wrapper
-
-
- - Element to wrap with
-
- -
- {Object} attributes
- Optional
-
- - Attributes to set on a wrapper
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} wrapper
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} array
+
+
+
+
+ -
+ {Any} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} original array
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.removeListener(element, eventName, handler)
+
+
+
+ Removes an event listener from an element
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+
+
+ -
+ {String} eventName
+
+
+
+
+ -
+ {Function} handler
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+ <static>
+
+ {XMLHttpRequest}
+ fabric.util.request(url, options)
+
+
+
+ Cross-browser abstraction for sending XMLHttpRequest
+
+
+ Defined in: dom_request.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} url
+
+
+ - URL to send XMLHttpRequest to
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+ -
+ {String} options.method
+ Optional, Default: "GET"
+
+
+
+ -
+ {Function} options.onComplete
+
+
+ - Callback to invoke when request is completed
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {XMLHttpRequest} request
+
+
+
+
+
+
+
-
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.setStyle(element, styles)
+
+
+
+ Cross-browser wrapper for setting element's style
+
+
+ Defined in: dom_style.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+
+
+ -
+ {Object} styles
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} Element that was passed as a first argument
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Array}
+ fabric.util.toArray(arrayLike)
+
+
+
+ Converts an array-like object (e.g. arguments or NodeList) to an array
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} arrayLike
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array}
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Number}
+ fabric.util.toFixed(number, fractionDigits)
+
+
+
+ A wrapper around Number#toFixed, which contrary to native method returns number, not string.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number | String} number
+
+
+ - number to operate on
+
+ -
+ {Number} fractionDigits
+
+
+ - number of fraction digits to "leave"
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number}
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.wrapElement(element, wrapper, attributes)
+
+
+
+ Wraps element with another element
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+ - Element to wrap
+
+ -
+ {HTMLElement|String} wrapper
+
+
+ - Element to wrap with
+
+ -
+ {Object} attributes
+ Optional
+
+ - Attributes to set on a wrapper
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} wrapper
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
+
diff --git a/docs/symbols/fabric.util.object.html b/docs/symbols/fabric.util.object.html
index 2611614b..c0a90b2a 100644
--- a/docs/symbols/fabric.util.object.html
+++ b/docs/symbols/fabric.util.object.html
@@ -1,4 +1,5 @@
-
+
@@ -6,342 +7,464 @@
JsDoc Reference - fabric.util.object
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Namespace fabric.util.object
+
+
+
+
+
+
+
+ fabric.util.object
+
+
+
Defined in: lang_object.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.util.object.clone(object)
+
+ Creates an empty object and copies all enumerable properties of another object to it
+
+
+
+
+ <static>
+
+ fabric.util.object.extend(destination, source)
+
+ Copies all enumerable properties of one object to another
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.util.object.clone(object)
+
+
+
+ Creates an empty object and copies all enumerable properties of another object to it
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+ - Object to clone
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.object.extend(destination, source)
+
+
+
+ Copies all enumerable properties of one object to another
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} destination
+
+
+ - Where to copy to
+
+ -
+ {Object} source
+
+
+ - Where to copy from
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Namespace fabric .util .object
-
-
-
- fabric.util.object
-
-
-
-
-
-
-
-
- - Defined in: lang_object.js
-
-
-
-
-
-
-
-
-
- Namespace Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.util.object.clone(object)
-
- Creates an empty object and copies all enumerable properties of another object to it
-
-
-
-
- <static>
-
- fabric.util.object.extend(destination, source)
-
- Copies all enumerable properties of one object to another
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.object.clone(object)
-
-
-
- Creates an empty object and copies all enumerable properties of another object to it
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
- - Object to clone
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.object.extend(destination, source)
-
-
-
- Copies all enumerable properties of one object to another
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} destination
-
-
- - Where to copy to
-
- -
- {Object} source
-
-
- - Where to copy from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.util.string.html b/docs/symbols/fabric.util.string.html
index 50a1c219..d0846484 100644
--- a/docs/symbols/fabric.util.string.html
+++ b/docs/symbols/fabric.util.string.html
@@ -1,4 +1,5 @@
-
+
@@ -6,378 +7,472 @@
JsDoc Reference - fabric.util.string
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Namespace fabric.util.string
+
+
+
+
+
+
+
+
+
+
+
Defined in: lang_string.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.util.string.camelize(string)
+
+ Camelizes a string
+
+
+
+
+ <static>
+
+ fabric.util.string.capitalize(string)
+
+ Capitalizes a string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+ {String}
+ fabric.util.string.camelize(string)
+
+
+
+ Camelizes a string
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} string
+
+
+ - String to camelize
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} Camelized version of a string
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {String}
+ fabric.util.string.capitalize(string)
+
+
+
+ Capitalizes a string
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} string
+
+
+ - String to capitalize
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} Capitalized version of a string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Namespace fabric .util .string
-
-
-
-
-
-
-
-
-
-
-
-
- - Defined in: lang_string.js
-
-
-
-
-
-
-
-
-
- Namespace Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.util.string.camelize(string)
-
- Camelizes a string
-
-
-
-
- <static>
-
- fabric.util.string.capitalize(string)
-
- Capitalizes a string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
- Camelizes a string
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} string
-
-
- - String to camelize
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} Camelized version of a string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Capitalizes a string
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} string
-
-
- - String to capitalize
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} Capitalized version of a string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/src/src_circle.class.js.html b/docs/symbols/src/src_circle.class.js.html
index 0e78bb5a..1433b6b5 100644
--- a/docs/symbols/src/src_circle.class.js.html
+++ b/docs/symbols/src/src_circle.class.js.html
@@ -24,110 +24,113 @@
17 */
18 fabric.Circle = fabric.util.createClass(fabric.Object, /** @scope fabric.Circle.prototype */ {
19
- 20 /** @property */
- 21 type: 'circle',
- 22
- 23 /**
- 24 * Constructor
- 25 * @method initialize
- 26 * @param {Object} [options] Options object
- 27 * @return {fabric.Circle} thisArg
- 28 */
- 29 initialize: function(options) {
- 30 options = options || { };
- 31
- 32 this.set('radius', options.radius || 0);
- 33 this.callSuper('initialize', options);
+ 20 /**
+ 21 * @property
+ 22 * @type String
+ 23 */
+ 24 type: 'circle',
+ 25
+ 26 /**
+ 27 * Constructor
+ 28 * @method initialize
+ 29 * @param {Object} [options] Options object
+ 30 * @return {fabric.Circle} thisArg
+ 31 */
+ 32 initialize: function(options) {
+ 33 options = options || { };
34
- 35 var radiusBy2ByScale = this.get('radius') * 2 * this.get('scaleX');
- 36 this.set('width', radiusBy2ByScale).set('height', radiusBy2ByScale);
- 37 },
- 38
- 39 /**
- 40 * Returns object representation of an instance
- 41 * @method toObject
- 42 * @return {Object} object representation of an instance
- 43 */
- 44 toObject: function() {
- 45 return extend(this.callSuper('toObject'), {
- 46 radius: this.get('radius')
- 47 });
- 48 },
- 49
- 50 /**
- 51 * @private
- 52 * @method _render
- 53 * @param ctx {CanvasRenderingContext2D} context to render on
- 54 */
- 55 _render: function(ctx, noTransform) {
- 56 ctx.beginPath();
- 57 ctx.arc(noTransform ? this.left : 0, noTransform ? this.top : 0, this.radius, 0, piBy2, false);
- 58 ctx.closePath();
- 59 if (this.fill) {
- 60 ctx.fill();
- 61 }
- 62 if (this.stroke) {
- 63 ctx.stroke();
+ 35 this.set('radius', options.radius || 0);
+ 36 this.callSuper('initialize', options);
+ 37
+ 38 var radiusBy2ByScale = this.get('radius') * 2 * this.get('scaleX');
+ 39 this.set('width', radiusBy2ByScale).set('height', radiusBy2ByScale);
+ 40 },
+ 41
+ 42 /**
+ 43 * Returns object representation of an instance
+ 44 * @method toObject
+ 45 * @return {Object} object representation of an instance
+ 46 */
+ 47 toObject: function() {
+ 48 return extend(this.callSuper('toObject'), {
+ 49 radius: this.get('radius')
+ 50 });
+ 51 },
+ 52
+ 53 /**
+ 54 * @private
+ 55 * @method _render
+ 56 * @param ctx {CanvasRenderingContext2D} context to render on
+ 57 */
+ 58 _render: function(ctx, noTransform) {
+ 59 ctx.beginPath();
+ 60 ctx.arc(noTransform ? this.left : 0, noTransform ? this.top : 0, this.radius, 0, piBy2, false);
+ 61 ctx.closePath();
+ 62 if (this.fill) {
+ 63 ctx.fill();
64 }
- 65 },
- 66
- 67
- 68 /**
- 69 * Returns complexity of an instance
- 70 * @method complexity
- 71 * @return {Number} complexity of this instance
- 72 */
- 73 complexity: function() {
- 74 return 1;
- 75 }
- 76 });
- 77
- 78 /**
- 79 * List of attribute names to account for when parsing SVG element (used by `fabric.Circle.fromElement`)
- 80 * @static
- 81 * @see: http://www.w3.org/TR/SVG/shapes.html#CircleElement
- 82 */
- 83 fabric.Circle.ATTRIBUTE_NAMES = 'cx cy r fill fill-opacity stroke stroke-width transform'.split(' ');
- 84
- 85 /**
- 86 * Returns fabric.Circle instance from an SVG element
- 87 * @static
- 88 * @method fabric.Circle.fromElement
- 89 * @param element {SVGElement} element to parse
- 90 * @param options {Object} options object
- 91 * @throws {Error} If value of `r` attribute is missing or invalid
- 92 * @return {Object} instance of fabric.Circle
- 93 */
- 94 fabric.Circle.fromElement = function(element, options) {
- 95 options || (options = { });
- 96 var parsedAttributes = fabric.parseAttributes(element, fabric.Circle.ATTRIBUTE_NAMES);
- 97 if (!isValidRadius(parsedAttributes)) {
- 98 throw Error('value of `r` attribute is required and can not be negative');
- 99 }
-100 if ('left' in parsedAttributes) {
-101 parsedAttributes.left -= (options.width / 2) || 0;
+ 65 if (this.stroke) {
+ 66 ctx.stroke();
+ 67 }
+ 68 },
+ 69
+ 70
+ 71 /**
+ 72 * Returns complexity of an instance
+ 73 * @method complexity
+ 74 * @return {Number} complexity of this instance
+ 75 */
+ 76 complexity: function() {
+ 77 return 1;
+ 78 }
+ 79 });
+ 80
+ 81 /**
+ 82 * List of attribute names to account for when parsing SVG element (used by `fabric.Circle.fromElement`)
+ 83 * @static
+ 84 * @see: http://www.w3.org/TR/SVG/shapes.html#CircleElement
+ 85 */
+ 86 fabric.Circle.ATTRIBUTE_NAMES = 'cx cy r fill fill-opacity stroke stroke-width transform'.split(' ');
+ 87
+ 88 /**
+ 89 * Returns fabric.Circle instance from an SVG element
+ 90 * @static
+ 91 * @method fabric.Circle.fromElement
+ 92 * @param element {SVGElement} element to parse
+ 93 * @param options {Object} options object
+ 94 * @throws {Error} If value of `r` attribute is missing or invalid
+ 95 * @return {Object} instance of fabric.Circle
+ 96 */
+ 97 fabric.Circle.fromElement = function(element, options) {
+ 98 options || (options = { });
+ 99 var parsedAttributes = fabric.parseAttributes(element, fabric.Circle.ATTRIBUTE_NAMES);
+100 if (!isValidRadius(parsedAttributes)) {
+101 throw Error('value of `r` attribute is required and can not be negative');
102 }
-103 if ('top' in parsedAttributes) {
-104 parsedAttributes.top -= (options.height / 2) || 0;
+103 if ('left' in parsedAttributes) {
+104 parsedAttributes.left -= (options.width / 2) || 0;
105 }
-106 return new fabric.Circle(extend(parsedAttributes, options));
-107 };
-108
-109 /**
-110 * @private
-111 */
-112 function isValidRadius(attributes) {
-113 return (('radius' in attributes) && (attributes.radius > 0));
-114 }
-115
-116 /**
-117 * Returns fabric.Circle instance from an object representation
-118 * @static
-119 * @method fabric.Circle.fromObject
-120 * @param {Object} object Object to create an instance from
-121 * @return {Object} Instance of fabric.Circle
-122 */
-123 fabric.Circle.fromObject = function(object) {
-124 return new fabric.Circle(object);
-125 }
-126 })();
- Group -
- - - --
-
-
-
-
- Defined in: group.class.js - - -
- Extends - fabric.Object - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - |
-
- fabric.Group()
-
-
- |
-
| Field Attributes | -Field Name and Description | -
|---|---|
| - |
-
- type
-
-
- |
-
-
-
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties -
| Method Attributes | -Method Name and Description | -
|---|---|
| - |
-
- Activates (makes active) all group objects
- |
-
| - |
- add(object)
-
- Adds an object to a group; Then recalculates group's dimension, position.
- |
-
| - |
- complexity()
-
- Returns complexity of an instance
- |
-
| - |
- contains(object)
-
- Returns true if a group contains an object
- |
-
| - |
- containsPoint(point)
-
-
- |
-
| - |
- destroy()
-
- Destroys a group (restoring state of its objects)
- |
-
| - |
- forEachObject(callback, context)
-
-
- |
-
| <static> | -
- fabric.Group.fromObject(object, options)
-
-
- |
-
| - |
- getObjects()
-
- Returns an array of all objects in this group
- |
-
| - |
- hasMoved()
-
-
- |
-
| - |
- initialize(objects, options)
-
- Constructor
- |
-
| - |
- item(index)
-
- Returns object from the group at the specified index
- |
-
| - |
- remove(object)
-
- Removes an object from a group; Then recalculates group's dimension, position.
- |
-
| - |
- render(ctx)
-
- Renders instance on a given context
- |
-
| - |
- saveCoords()
-
-
- |
-
| - |
- set(name, value)
-
- Sets property to a given value
- |
-
| - |
- setActive(value)
-
- Activates (makes active) all group objects
- |
-
| - |
- setObjectsCoords()
-
- Sets coordinates of all group objects
- |
-
| - |
- size()
-
- Returns a size of a group (i.e: length of an array containing its objects)
- |
-
| - |
- toGrayscale()
-
-
- |
-
| - |
- toObject()
-
- Returns object representation of an instance
- |
-
| - |
- toString()
-
- Returns string represenation of a group
- |
-
-
-
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toJSON, transform -
-
+
- Returns: + +
- {fabric.Group} thisArg + +
+ +
-
+
- Parameters: + +
- + {Object} object + + + + +
-
+
- Returns: + +
- {fabric.Group} thisArg + +
-
-
+
- Returns: +
- {Number} complexity - - -
- Returns: - -
- {fabric.Group} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
+ + +
-
+
- Parameters: - - -
- + {Object} object - - - {fabric.Group} - - add(object) -
- Parameters: - -
- - {Object} object - - - - -
- Returns: - -
- {fabric.Group} thisArg - - - - - - - -
- Object to check against + +
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- Returns: + +
- {Boolean} `true` if group contains an object + +
+ + +
-
+
- Parameters: - - -
- + {fabric.Point} point - - - {Number} - - complexity() -
- Returns: - -
- {Number} complexity - - - - - - - -
- point with `x` and `y` properties + +
-
-
-
-
-
-
-
-
-
-
-
+
- Returns: + +
- {Boolean} true if point is contained within group + +
+ + +
-
+
- Returns: - - -
- Parameters: - -
- - {Object} object - - -
- Object to check against - -
- Returns: - -
- {Boolean} `true` if group contains an object - - - - - - - -
- {fabric.Group} thisArg + +
-
-
-
-
-
-
-
-
-
-
-
-
+ + +
-
+
- Parameters: - - -
- + {Function} callback - - - {Boolean} - - containsPoint(point) -
- Parameters: - -
- - {Object} point - - -
- point with `x` and `y` properties - -
- Returns: - -
- {Boolean} true if point is contained within group - - - - - - - -
- Returns: - -
- {fabric.Group} thisArg - - - - - - - -
- Parameters: - -
- - {Function} callback - - -
- Callback invoked with current object as first argument,
+
+
- Callback invoked with current object as first argument, index - as second and an array of all objects - as third. Iteration happens in reverse order (for performance reasons). Callback is invoked in a context of Global Object (e.g. `window`) when no `context` argument is given
- - - - {Object} context - - -
- Context (aka thisObject) - -
- Returns: - -
- {fabric.Group} thisArg - - - - - - - -
- + {Object} context - {fabric.Group} - - fabric.Group.fromObject(object, options) -
- Parameters: - -
- - object - - -
- {Object} object to create a group from - -
- - options - - -
- {Object} options object - -
- Returns: - -
- {fabric.Group} an instance of fabric.Group - - - - - - - -
- Context (aka thisObject) - - -
- Returns: - -
- {Array} group objects - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- Returns: - - -
- Returns: - -
- {Boolean} true if an object was moved (since fabric.Group#saveCoords was called) - - - - - - - -
- {fabric.Group} thisArg - - -
- Parameters: - -
- - {Object} objects - - -
- Group objects - -
- - {Object} options - Optional - -
- Options object - -
- Returns: - -
- {Object} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Parameters: - -
- - index - - -
- {Number} index of item to get - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Object} - - - - - - - -
-
-
- Parameters: - -
- - {Object} object - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Group} thisArg - - - - - - - -
-
-
- Parameters: - -
- - {CanvasRenderingContext2D} ctx - - -
- context to render instance on - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Group} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Group} thisArg - - - - - - - -
-
-
- Parameters: - -
- - {Boolean} value - - -
- `true` to activate object, `false` otherwise - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Group} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Group} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Number} Group size - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} object representation of an instance - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {String} - - - - - - - -
+ + +
-
+
- Parameters: + +
- + object + + +
- {Object} object to create a group from + +
- + options + + +
- {Object} options object + +
-
+
- Returns: + +
- {fabric.Group} an instance of fabric.Group + +
+ +
-
+
- Returns: + +
- {Array} group objects + +
- + +
-
+
- Returns: + +
- {Boolean} true if an object was moved (since fabric.Group#saveCoords was called) + +
-
-
+
- Parameters: + +
- + {Object} objects + + +
- Group objects + +
- + {Object} options + Optional + +
- Options object + +
-
+
- Returns: + +
- {Object} thisArg + +
+ + +
-
+
- Parameters: + +
- + index + + +
- {Number} index of item to get + +
-
+
- Returns: + +
- {fabric.Object} + +
+ + +
-
+
- Parameters: + +
- + {Object} object + + + + +
-
+
- Returns: + +
- {fabric.Group} thisArg + +
+ + +
-
+
- Parameters: + +
- + {CanvasRenderingContext2D} ctx + + +
- context to render instance on + +
+ + +
-
+
- Returns: + +
- {fabric.Group} thisArg + +
+ + +
-
+
- Returns: + +
- {fabric.Group} thisArg + +
+ + +
-
+
- Parameters: + +
- + {Boolean} value + + +
- `true` to activate object, `false` otherwise + +
-
+
- Returns: + +
- {fabric.Group} thisArg + +
+ + +
-
+
- Returns: + +
- {fabric.Group} thisArg + +
+ + +
-
+
- Returns: + +
- {Number} Group size + +
+ + +
+ + +
-
+
- Returns: + +
- {Object} object representation of an instance + +
+ + +
-
+
- Returns: + +
- {String} + +
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Class fabric.Image +
+ + +
+
+
Extends
+ fabric.Object.
+
+
+ Image
+
+
+
Defined in: image.class.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ fabric.Image()
+
+
+ |
+
| Field Attributes | +Field Name and Description | +
|---|---|
| + |
+
+ active
+
+
+ |
+
| + |
+
+ bordervisibility
+
+
+ |
+
| + |
+
+ cornervisibility
+
+
+ |
+
| <static> | +
+
+ fabric.Image.CSS_CANVAS
+
+ Default CSS class name for canvas
+ |
+
| + |
+
+ maxheight
+
+
+ |
+
| + |
+
+ maxwidth
+
+
+ |
+
| + |
+
+ type
+
+
+ |
+
-
+
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties +
| Method Attributes | +Method Name and Description | +
|---|---|
| + |
+ clone(callback)
+
+ Returns a clone of an instance
+ |
+
| + |
+ complexity()
+
+ Returns complexity of an instance
+ |
+
| <static> | +
+ fabric.Image.fromObject(object, callback)
+
+ Creates an instance of fabric.Image from its object representation
+ |
+
| <static> | +
+ fabric.Image.fromURL(url, callback, imgOptions)
+
+ Creates an instance of fabric.Image from an URL string
+ |
+
| + |
+ getElement()
+
+ Returns image element which this instance if based on
+ |
+
| + |
+ getNormalizedSize(oImg, maxwidth, maxheight)
+
+ Resizes an image depending on whether maxwidth and maxheight are set up;
+Width and height have to mantain the same proportion in the final image as it was in the initial one.
+ |
+
| + |
+ getOriginalSize()
+
+ Returns original size of an image
+ |
+
| + |
+ getSrc()
+
+ Returns source of an image
+ |
+
| + |
+ initialize(element, options)
+
+ Constructor
+ |
+
| + |
+ render(ctx, noTransform)
+
+ Renders image on a specified context
+ |
+
| + |
+ setBorderVisibility(visible)
+
+ Sets border visibility
+ |
+
| + |
+ setCornersVisibility(visible)
+
+ Sets corner visibility
+ |
+
| + |
+ setElement(element)
+
+ Sets image element for this instance to a specified one
+ |
+
| + |
+ toGrayscale(callback)
+
+ Makes image grayscale
+ |
+
| + |
+ toObject()
+
+ Returns object representation of an instance
+ |
+
| + |
+ toString()
+
+ Returns string representation of an instance
+ |
+
-
+
- Methods borrowed from class fabric.Object:
- callSuper, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toJSON, transform +
- HTML template: Codeview 1.1.1 -
+
+
+
+ {Boolean}
+ active
- Class fabric .Image
-
-
-
- Image
-
-
-
-
-
-
-
-
- - Defined in: image.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Image()
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- active
-
-
-
-
-
-
-
-
-
- bordervisibility
-
-
-
-
-
-
-
-
-
- cornervisibility
-
-
-
-
-
-
- <static>
-
-
- fabric.Image.CSS_CANVAS
-
- Default CSS class name for canvas
-
-
-
-
-
-
-
- maxheight
-
-
-
-
-
-
-
-
-
- maxwidth
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- clone(callback)
-
- Returns a clone of an instance
-
-
-
-
-
-
- complexity()
-
- Returns complexity of an instance
-
-
-
-
- <static>
-
- fabric.Image.fromObject(object, callback)
-
- Creates an instance of fabric.Image from its object representation
-
-
-
-
- <static>
-
- fabric.Image.fromURL(url, callback, imgOptions)
-
- Creates an instance of fabric.Image from an URL string
-
-
-
-
-
-
- getElement()
-
- Returns image element which this instance if based on
-
-
-
-
-
-
- getNormalizedSize(oImg, maxwidth, maxheight)
-
- Resizes an image depending on whether maxwidth and maxheight are set up;
-Width and height have to mantain the same proportion in the final image as it was in the initial one.
-
-
-
-
-
-
- getOriginalSize()
-
- Returns original size of an image
-
-
-
-
-
-
- getSrc()
-
- Returns source of an image
-
-
-
-
-
-
- initialize(element, options)
-
- Constructor
-
-
-
-
-
-
- render(ctx, noTransform)
-
- Renders image on a specified context
-
-
-
-
-
-
- setBorderVisibility(visible)
-
- Sets border visibility
-
-
-
-
-
-
- setCornersVisibility(visible)
-
- Sets corner visibility
-
-
-
-
-
-
- setElement(element)
-
- Sets image element for this instance to a specified one
-
-
-
-
-
-
- toGrayscale(callback)
-
- Makes image grayscale
-
-
-
-
-
-
- toObject()
-
- Returns object representation of an instance
-
-
-
-
-
-
- toString()
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toJSON, transform
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- active
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- bordervisibility
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- cornervisibility
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Default CSS class name for canvas
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- maxheight
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- maxwidth
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ {Boolean}
+ bordervisibility
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ cornervisibility
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
- clone(callback)
-
-
-
- Returns a clone of an instance
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Function} callback
-
-
- - Callback is invoked with a clone as a first argument
-
-
-
-
-
+
+ <static>
+
+ {String}
+ fabric.Image.CSS_CANVAS
+
+
+
+ Default CSS class name for canvas
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns complexity of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Image.fromObject(object, callback)
-
-
-
- Creates an instance of fabric.Image from its object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {Object}
-
- -
- callback
-
-
- - {Function} optional
-
-
-
-
-
+
+
+
+
+
+ {Number}
+ maxheight
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Image.fromURL(url, callback, imgOptions)
-
-
-
- Creates an instance of fabric.Image from an URL string
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} url
-
-
- - URL to create an image from
-
- -
- {Function} callback
- Optional
-
- - Callback to invoke when image is created (newly created image is passed as a first argument)
-
- -
- {Object} imgOptions
- Optional
-
- - Options object
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
- {HTMLImageElement}
-
- getElement()
-
-
-
- Returns image element which this instance if based on
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLImageElement} image element
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ {Number}
+ maxwidth
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+
+ clone(callback)
+
+
+
+ Returns a clone of an instance
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
+ -
+ {Function} callback
-
+
+ - Callback is invoked with a clone as a first argument
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Image.fromObject(object, callback)
+
+
+
+ Creates an instance of fabric.Image from its object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+ - {Object}
+
+ -
+ callback
+
+ - {Function} optional
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Image.fromURL(url, callback, imgOptions)
+
+
+
+ Creates an instance of fabric.Image from an URL string
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} url
- getNormalizedSize(oImg, maxwidth, maxheight)
-
-
-
- Resizes an image depending on whether maxwidth and maxheight are set up;
+
+ - URL to create an image from
+
+ -
+ {Function} callback
+ Optional
+
+ - Callback to invoke when image is created (newly created image is passed as a first argument)
+
+ -
+ {Object} imgOptions
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {HTMLImageElement}
+ getElement()
+
+
+
+ Returns image element which this instance if based on
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLImageElement} image element
+
+
+
+
+
+
+
+
+
+
+
+
+ getNormalizedSize(oImg, maxwidth, maxheight)
+
+
+
+ Resizes an image depending on whether maxwidth and maxheight are set up;
Width and height have to mantain the same proportion in the final image as it was in the initial one.
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} oImg
-
-
-
-
- -
- {Number} maxwidth
-
-
- - maximum width of the image (in px)
-
- -
- {Number} maxheight
-
-
- - maximum height of the image (in px)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- getOriginalSize()
-
-
-
- Returns original size of an image
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object with "width" and "height" properties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- getSrc()
-
-
-
- Returns source of an image
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} Source of an image
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- initialize(element, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLImageElement | String} element
-
-
- - Image element
-
- -
- {Object} options
-
-
- - optional
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
- Renders image on a specified context
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - Context to render on
-
- -
- noTransform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setBorderVisibility(visible)
-
-
-
- Sets border visibility
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Boolean} visible
-
-
- - When true, border is set to be visible
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setCornersVisibility(visible)
-
-
-
- Sets corner visibility
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Boolean} visible
-
-
- - When true, corners are set to be visible
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Image}
-
- setElement(element)
-
-
-
- Sets image element for this instance to a specified one
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLImageElement} element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Image} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toGrayscale(callback)
-
-
-
- Makes image grayscale
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Function} callback
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} Object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} String representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} oImg
+
+
+
+
+ -
+ {Number} maxwidth
+
+
+ - maximum width of the image (in px)
+
+ -
+ {Number} maxheight
+
+
+ - maximum height of the image (in px)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ getOriginalSize()
+
+
+
+ Returns original size of an image
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object with "width" and "height" properties
+
+
+
+
+
+
+
-
+
+
+
+ {String}
+ getSrc()
+
+
+
+ Returns source of an image
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} Source of an image
+
+
+
+
+
+
+
-
+
+
+
+
+ initialize(element, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLImageElement | String} element
+
+
+ - Image element
+
+ -
+ {Object} options
+
+
+ - optional
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+
+
+ Renders image on a specified context
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - Context to render on
+
+ -
+ noTransform
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setBorderVisibility(visible)
+
+
+
+ Sets border visibility
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Boolean} visible
+
+
+ - When true, border is set to be visible
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setCornersVisibility(visible)
+
+
+
+ Sets corner visibility
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Boolean} visible
+
+
+ - When true, corners are set to be visible
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Image}
+ setElement(element)
+
+
+
+ Sets image element for this instance to a specified one
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLImageElement} element
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Image} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ toGrayscale(callback)
+
+
+
+ Makes image grayscale
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Function} callback
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} String representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:47 GMT-0400 (EDT)
+
diff --git a/docs/symbols/fabric.Intersection.html b/docs/symbols/fabric.Intersection.html
index b85d7a6a..5de00d02 100644
--- a/docs/symbols/fabric.Intersection.html
+++ b/docs/symbols/fabric.Intersection.html
@@ -1,4 +1,5 @@
-
+
@@ -6,635 +7,742 @@
JsDoc Reference - fabric.Intersection
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Intersection
+
+
+
+
+
+
+
+ Intersection
+
+
+
Defined in: intersection.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Intersection(status)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ appendPoint(status)
+
+
+
+
+
+
+
+
+ appendPoints(status)
+
+
+
+
+
+
+
+
+ init(status)
+
+
+
+
+
+
+ <static>
+
+ fabric.Intersection.intersectLineLine(a1, a2, b1, b2)
+
+
+
+
+
+
+ <static>
+
+ fabric.Intersection.intersectLinePolygon(a1, a2, points)
+
+
+
+
+
+
+ <static>
+
+ fabric.Intersection.intersectPolygonPolygon(points1, points2)
+
+
+
+
+
+
+ <static>
+
+ fabric.Intersection.intersectPolygonRectangle(points, r1, r2)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Class Detail
+
+
+
+ fabric.Intersection(status)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ status
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+
+
+
+ appendPoint(status)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} status
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ appendPoints(status)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} status
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ init(status)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} status
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Intersection.intersectLineLine(a1, a2, b1, b2)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ a1
+
+
+
+
+ -
+ a2
+
+
+
+
+ -
+ b1
+
+
+
+
+ -
+ b2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Intersection.intersectLinePolygon(a1, a2, points)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ a1
+
+
+
+
+ -
+ a2
+
+
+
+
+ -
+ points
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Intersection.intersectPolygonPolygon(points1, points2)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ points1
+
+
+
+
+ -
+ points2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.Intersection.intersectPolygonRectangle(points, r1, r2)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ points
+
+
+
+
+ -
+ r1
+
+
+
+
+ -
+ r2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Intersection
-
-
-
- Intersection
-
-
-
-
-
-
-
-
- - Defined in: intersection.class.js
-
-
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Intersection(status)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- appendPoint(status)
-
-
-
-
-
-
-
-
- appendPoints(status)
-
-
-
-
-
-
-
-
- init(status)
-
-
-
-
-
-
- <static>
-
- fabric.Intersection.intersectLineLine(a1, a2, b1, b2)
-
-
-
-
-
-
- <static>
-
- fabric.Intersection.intersectLinePolygon(a1, a2, points)
-
-
-
-
-
-
- <static>
-
- fabric.Intersection.intersectPolygonPolygon(points1, points2)
-
-
-
-
-
-
- <static>
-
- fabric.Intersection.intersectPolygonRectangle(points, r1, r2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
- appendPoint(status)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} status
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- appendPoints(status)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} status
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- init(status)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} status
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Intersection.intersectLineLine(a1, a2, b1, b2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- a1
-
-
-
-
- -
- a2
-
-
-
-
- -
- b1
-
-
-
-
- -
- b2
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Intersection.intersectLinePolygon(a1, a2, points)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- a1
-
-
-
-
- -
- a2
-
-
-
-
- -
- points
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Intersection.intersectPolygonPolygon(points1, points2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- points1
-
-
-
-
- -
- points2
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Intersection.intersectPolygonRectangle(points, r1, r2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- points
-
-
-
-
- -
- r1
-
-
-
-
- -
- r2
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:47 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Line.html b/docs/symbols/fabric.Line.html
index 057c01fa..49abddaf 100644
--- a/docs/symbols/fabric.Line.html
+++ b/docs/symbols/fabric.Line.html
@@ -1,4 +1,5 @@
-
+
@@ -6,653 +7,722 @@
JsDoc Reference - fabric.Line
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Line
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Line
+
+
+
Defined in: line.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Line()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Line.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Line.fromElement`)
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns complexity of an instance
+
+
+
+
+ <static>
+
+ fabric.Line.fromElement(element, options)
+
+ Returns fabric.Line instance from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Line.fromObject(object)
+
+ Returns fabric.Line instance from an object representation
+
+
+
+
+
+
+ initialize(points, options)
+
+ Constructor
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Line.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Line.fromElement`)
+
+
+
+
+
+
+
+
+
+
+ - See:
+
+ - http://www.w3.org/TR/SVG/shapes.html#LineElement
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Line}
+ fabric.Line.fromElement(element, options)
+
+
+
+ Returns fabric.Line instance from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - Element to parse
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Line} instance of fabric.Line
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Line}
+ fabric.Line.fromObject(object)
+
+
+
+ Returns fabric.Line instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+ - Object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Line} instance of fabric.Line
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Line}
+ initialize(points, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} points
+
+
+ - Array of points
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Line} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Line
-
-
-
- Line
-
-
-
-
-
-
-
-
- - Defined in: line.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Line()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
-
-
-
-
-
- <static>
-
- fabric.Line.fromElement(element, options)
-
-
-
-
-
-
- <static>
-
- fabric.Line.fromObject(object)
-
-
-
-
-
-
-
-
- initialize(points, options)
-
- Constructor
-
-
-
-
-
-
- toObject()
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {SVGElement} element
-
-
- - Element to parse
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Line} instance of fabric.Line
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
- - Object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Line} instance of fabric.Line
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Line}
-
- initialize(points, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} points
-
-
- - Array of points
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Line} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:47 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Object.html b/docs/symbols/fabric.Object.html
index d8f62d85..7b013810 100644
--- a/docs/symbols/fabric.Object.html
+++ b/docs/symbols/fabric.Object.html
@@ -1,4 +1,5 @@
-
+
@@ -6,3123 +7,2617 @@
JsDoc Reference - fabric.Object
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Object
+
+
+
+
+
+
+
+ Object
+
+
+
Defined in: object.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Object()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <constant>
+
+
+ FX_DURATION
+
+
+
+
+
+
+ <constant>
+
+
+ FX_TRANSITION
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <constant>
+
+
+ MIN_SCALE_LIMIT
+
+
+
+
+
+
+ <constant>
+
+
+
+
+
+
+
+
+
+
+ options
+
+
+
+
+
+
+
+
+
+ rotate
+
+
+
+
+
+
+
+
+
+ stateProperties
+
+ List of properties to consider when checking if state of an object is changed (fabric.Object#hasStateChanged);
+as well as for history (undo/redo) purposes
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ callSuper(methodName)
+
+
+
+
+
+
+
+
+ clone(options)
+
+ Clones an instance
+
+
+
+
+
+
+ cloneAsImage(callback)
+
+ Creates an instance of fabric.Image out of an object
+
+
+
+
+
+
+ complexity()
+
+
+
+
+
+
+
+
+ drawBorders(ctx)
+
+ Draws borders of an object's bounding box.
+
+
+
+
+
+
+ drawCorners(ctx)
+
+ Draws corners of an object's bounding box.
+
+
+
+
+
+
+ fxRemove(callbacks)
+
+
+
+
+
+
+
+
+ fxStraighten(callbacks)
+
+
+
+
+
+
+
+
+ get(property)
+
+ Basic getter
+
+
+
+
+
+
+ getAngle()
+
+ Returns object's angle value
+
+
+
+
+
+
+ getCenter()
+
+
+
+
+
+
+
+
+ getHeight()
+
+ Returns height of an object
+
+
+
+
+
+
+ getWidth()
+
+ Returns width of an object
+
+
+
+
+
+
+ hasStateChanged()
+
+
+
+
+
+
+
+
+ initialize(options)
+
+ Constructor
+
+
+
+
+
+
+ intersectsWithObject(other)
+
+ Returns true if object intersects with another object
+
+
+
+
+
+
+ intersectsWithRect(selectionTL, selectionBR)
+
+ Returns true if object intersects with an area formed by 2 points
+
+
+
+
+
+
+ isActive()
+
+ Returns true if an object is in its active state
+
+
+
+
+
+
+ isContainedWithinRect(selectionTL, selectionBR)
+
+ Returns true if object is fully contained within area formed by 2 points
+
+
+
+
+
+
+ isType(type)
+
+
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+
+
+
+
+
+
+
+ saveState()
+
+
+
+
+
+
+
+
+ scale(value)
+
+ Scales an object (equally by x and y)
+
+
+
+
+
+
+ scaleToHeight(value)
+
+ Scales an object to a given height (scaling by x/y equally)
+
+
+
+
+
+
+ scaleToWidth(value)
+
+ Scales an object to a given width (scaling by x/y equally)
+
+
+
+
+
+
+ set(property, value)
+
+ Basic setter
+
+
+
+
+
+
+ setActive(active)
+
+ Sets state of an object - `true` makes it active, `false` - inactive
+
+
+
+
+
+
+ setAngle(value)
+
+ Sets object's angle
+
+
+
+
+
+
+ setCoords()
+
+ Sets corner position coordinates based on current angle, width and height.
+
+
+
+
+
+
+ setOpacity(value)
+
+ Sets object opacity
+
+
+
+
+
+
+ setOptions(options)
+
+
+
+
+
+
+
+
+ setSourcePath(value)
+
+
+
+
+
+
+
+
+ straighten()
+
+
+
+
+
+
+
+
+ toDatalessObject()
+
+ Returns (dataless) object representation of an instance
+
+
+
+
+
+
+ toDataURL()
+
+ Converts an object into a data-url-like string
+
+
+
+
+
+
+ toggle(property)
+
+ Toggles specified property from `true` to `false` or from `false` to `true`
+
+
+
+
+
+
+ toGrayscale()
+
+ Makes object's color grayscale
+
+
+
+
+
+
+ toJSON()
+
+ Returns a JSON representation of an instance
+
+
+
+
+
+
+ toObject()
+
+ Returns an object representation of an instance
+
+
+
+
+
+
+ toString()
+
+ Returns a string representation of an instance
+
+
+
+
+
+
+ transform(ctx)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
-
-
-
-
-
-
+
+ <constant>
+
+ {Number}
+ FX_DURATION
- Class fabric .Object
-
-
-
- Object
-
-
-
-
-
-
-
-
- - Defined in: object.class.js
-
-
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Object()
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
- <constant>
-
-
- FX_DURATION
-
-
-
-
-
-
- <constant>
-
-
- FX_TRANSITION
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <constant>
-
-
- MIN_SCALE_LIMIT
-
-
-
-
-
-
- <constant>
-
-
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-
-
-
-
- rotate
-
-
-
-
-
-
-
-
-
- stateProperties
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- callSuper(methodName)
-
-
-
-
-
-
-
-
- clone(options)
-
- Clones an instance
-
-
-
-
-
-
- cloneAsImage(callback)
-
- Creates an instance of fabric.Image out of an object
-
-
-
-
-
-
- complexity()
-
-
-
-
-
-
-
-
- drawBorders(ctx)
-
- Draws borders of an object's bounding box.
-
-
-
-
-
-
- drawCorners(ctx)
-
- Draws corners of an object's bounding box.
-
-
-
-
-
-
- fxRemove(callbacks)
-
-
-
-
-
-
-
-
- fxStraighten(callbacks)
-
-
-
-
-
-
-
-
- get(property)
-
- Basic getter
-
-
-
-
-
-
- getAngle()
-
- Returns object's angle value
-
-
-
-
-
-
- getCenter()
-
-
-
-
-
-
-
-
- getHeight()
-
- Returns height of an object
-
-
-
-
-
-
- getWidth()
-
- Returns width of an object
-
-
-
-
-
-
- hasStateChanged()
-
-
-
-
-
-
-
-
- initialize(options)
-
- Constructor
-
-
-
-
-
-
- intersectsWithObject(other)
-
- Returns true if object intersects with another object
-
-
-
-
-
-
- intersectsWithRect(selectionTL, selectionBR)
-
- Returns true if object intersects with an area formed by 2 points
-
-
-
-
-
-
- isActive()
-
- Returns true if an object is in its active state
-
-
-
-
-
-
- isContainedWithinRect(selectionTL, selectionBR)
-
- Returns true if object is fully contained within area formed by 2 points
-
-
-
-
-
-
- isType(type)
-
-
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
-
-
-
-
-
- saveState()
-
-
-
-
-
-
-
-
- scale(value)
-
- Scales an object (equally by x and y)
-
-
-
-
-
-
- scaleToHeight(value)
-
- Scales an object to a given height (scaling by x/y equally)
-
-
-
-
-
-
- scaleToWidth(value)
-
- Scales an object to a given width (scaling by x/y equally)
-
-
-
-
-
-
- set(property, value)
-
- Basic setter
-
-
-
-
-
-
- setActive(active)
-
- Sets state of an object - `true` makes it active, `false` - inactive
-
-
-
-
-
-
- setAngle(value)
-
- Sets object's angle
-
-
-
-
-
-
- setCoords()
-
- Sets corner position coordinates based on current angle, width and height.
-
-
-
-
-
-
- setOpacity(value)
-
- Sets object opacity
-
-
-
-
-
-
- setOptions(options)
-
-
-
-
-
-
-
-
- setSourcePath(value)
-
-
-
-
-
-
-
-
- straighten()
-
-
-
-
-
-
-
-
- toDatalessObject()
-
-
-
-
-
-
-
-
- toDataURL()
-
- Converts an object into a data-url-like string
-
-
-
-
-
-
- toggle(property)
-
- Toggles specified property from `true` to `false` or from `false` to `true`
-
-
-
-
-
-
- toGrayscale()
-
- Makes object's color grayscale
-
-
-
-
-
-
- toJSON()
-
- Returns a JSON representation of an instance
-
-
-
-
-
-
- toObject()
-
- Returns an object representation of an instance
-
-
-
-
-
-
- toString()
-
- Returns a string representation of an instance
-
-
-
-
-
-
- transform(ctx)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
- <constant>
-
-
- {Number}
-
- FX_DURATION
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <constant>
-
-
- {String}
-
- FX_TRANSITION
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- includeDefaultValues
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <constant>
-
-
- {Number}
-
- MIN_SCALE_LIMIT
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <constant>
-
-
- {Number}
-
- NUM_FRACTION_DIGITS
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- options
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- rotate
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Array}
-
- stateProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ <constant>
+
+ {String}
+ FX_TRANSITION
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ includeDefaultValues
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
- callSuper(methodName)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} methodName
-
-
-
-
-
-
-
-
+
+ <constant>
+
+ {Number}
+ MIN_SCALE_LIMIT
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- clone(options)
-
-
-
- Clones an instance
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} options
-
-
- - object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} clone of an instance
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- cloneAsImage(callback)
-
-
-
- Creates an instance of fabric.Image out of an object
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- callback
-
-
- - {Function} callback, invoked with an instance as a first argument
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
+
+
+
+ <constant>
+
+ {Number}
+ NUM_FRACTION_DIGITS
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number}
-
-
-
-
-
-
-
-
-
+
+
+
+
-
+
+
+
+
+
+ {Object}
+ options
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rotate
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Array}
+ stateProperties
+
+
+
+ List of properties to consider when checking if state of an object is changed (fabric.Object#hasStateChanged);
+as well as for history (undo/redo) purposes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+
+ callSuper(methodName)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
+ -
+ {String} methodName
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ clone(options)
+
+
+
+ Clones an instance
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} options
- {fabric.Object}
+
+ - object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} clone of an instance
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ cloneAsImage(callback)
+
+
+
+ Creates an instance of fabric.Image out of an object
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ callback
- drawBorders(ctx)
-
-
-
- Draws borders of an object's bounding box.
+
+ - {Function} callback, invoked with an instance as a first argument
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number}
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ drawBorders(ctx)
+
+
+
+ Draws borders of an object's bounding box.
Requires public properties: width, height
Requires public options: padding, borderColor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - Context to draw on
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
+ -
+ {CanvasRenderingContext2D} ctx
-
-
- {fabric.Object}
-
- drawCorners(ctx)
-
-
-
- Draws corners of an object's bounding box.
+
+ - Context to draw on
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ drawCorners(ctx)
+
+
+
+ Draws corners of an object's bounding box.
Requires public properties: width, height, scaleX, scaleY
Requires public options: cornersize, padding
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - Context to draw on
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- fxRemove(callbacks)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} callbacks
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- fxStraighten(callbacks)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} callbacks
-
-
- - - onComplete: invoked on completion
- - onChange: invoked on every step of animation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Any}
-
- get(property)
-
-
-
- Basic getter
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Any} property
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Any} value of a property
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- getAngle()
-
-
-
- Returns object's angle value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} angle value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- getCenter()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object with `x`, `y` properties corresponding to path center coordinates
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- getHeight()
-
-
-
- Returns height of an object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} height value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- getWidth()
-
-
-
- Returns width of an object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} width value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- hasStateChanged()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if instance' state has changed
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- initialize(options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- intersectsWithObject(other)
-
-
-
- Returns true if object intersects with another object
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} other
-
-
- - Object to test
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- intersectsWithRect(selectionTL, selectionBR)
-
-
-
- Returns true if object intersects with an area formed by 2 points
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} selectionTL
-
-
-
-
- -
- {Object} selectionBR
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- isActive()
-
-
-
- Returns true if an object is in its active state
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if an object is in its active state
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- isContainedWithinRect(selectionTL, selectionBR)
-
-
-
- Returns true if object is fully contained within area formed by 2 points
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} selectionTL
-
-
-
-
- -
- {Object} selectionBR
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- isType(type)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- type
-
-
- - {String} type to check against
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if specified type is identical to the type of instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - context to render on
-
- -
- {Boolean} noTransform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- saveState()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- scale(value)
-
-
-
- Scales an object (equally by x and y)
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} scale factor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- scaleToHeight(value)
-
-
-
- Scales an object to a given height (scaling by x/y equally)
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} new height value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- scaleToWidth(value)
-
-
-
- Scales an object to a given width (scaling by x/y equally)
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} new width value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- set(property, value)
-
-
-
- Basic setter
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Any} property
-
-
-
-
- -
- {Any} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- setActive(active)
-
-
-
- Sets state of an object - `true` makes it active, `false` - inactive
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Boolean} active
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- setAngle(value)
-
-
-
- Sets object's angle
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} angle value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setCoords()
-
-
-
- Sets corner position coordinates based on current angle, width and height.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- setOpacity(value)
-
-
-
- Sets object opacity
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} value 0-1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setOptions(options)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} options
- Optional
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- setSourcePath(value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- straighten()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toDatalessObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toDataURL()
-
-
-
- Converts an object into a data-url-like string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} string of data
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- toggle(property)
-
-
-
- Toggles specified property from `true` to `false` or from `false` to `true`
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} property
-
-
- - property to toggle
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- toGrayscale()
-
-
-
- Makes object's color grayscale
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toJSON()
-
-
-
- Returns a JSON representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} json
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns an object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns a string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- transform(ctx)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - Context
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - Context to draw on
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ fxRemove(callbacks)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} callbacks
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
-
+
+
+
+ {fabric.Object}
+ fxStraighten(callbacks)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} callbacks
+
+
+ - - onComplete: invoked on completion
+ - onChange: invoked on every step of animation
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
-
+
+
+
+ {Any}
+ get(property)
+
+
+
+ Basic getter
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Any} property
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Any} value of a property
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ getAngle()
+
+
+
+ Returns object's angle value
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} angle value
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ getCenter()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object with `x`, `y` properties corresponding to path center coordinates
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ getHeight()
+
+
+
+ Returns height of an object
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} height value
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ getWidth()
+
+
+
+ Returns width of an object
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} width value
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ hasStateChanged()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if instance' state has changed
+
+
+
+
+
+
+
+
+
+
+
+
+ initialize(options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ intersectsWithObject(other)
+
+
+
+ Returns true if object intersects with another object
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} other
+
+
+ - Object to test
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean}
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ intersectsWithRect(selectionTL, selectionBR)
+
+
+
+ Returns true if object intersects with an area formed by 2 points
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} selectionTL
+
+
+
+
+ -
+ {Object} selectionBR
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean}
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ isActive()
+
+
+
+ Returns true if an object is in its active state
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if an object is in its active state
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ isContainedWithinRect(selectionTL, selectionBR)
+
+
+
+ Returns true if object is fully contained within area formed by 2 points
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} selectionTL
+
+
+
+
+ -
+ {Object} selectionBR
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean}
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ isType(type)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ type
+
+
+ - {String} type to check against
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if specified type is identical to the type of instance
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - context to render on
+
+ -
+ {Boolean} noTransform
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ saveState()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ scale(value)
+
+
+
+ Scales an object (equally by x and y)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} scale factor
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ scaleToHeight(value)
+
+
+
+ Scales an object to a given height (scaling by x/y equally)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} new height value
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ scaleToWidth(value)
+
+
+
+ Scales an object to a given width (scaling by x/y equally)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} new width value
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ set(property, value)
+
+
+
+ Basic setter
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Any} property
+
+
+
+
+ -
+ {Any} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ setActive(active)
+
+
+
+ Sets state of an object - `true` makes it active, `false` - inactive
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Boolean} active
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ setAngle(value)
+
+
+
+ Sets object's angle
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} angle value
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ setCoords()
+
+
+
+ Sets corner position coordinates based on current angle, width and height.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ setOpacity(value)
+
+
+
+ Sets object opacity
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} value 0-1
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ setOptions(options)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} options
+ Optional
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ setSourcePath(value)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ straighten()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ toDatalessObject()
+
+
+
+ Returns (dataless) object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toDataURL()
+
+
+
+ Converts an object into a data-url-like string
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} string of data
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ toggle(property)
+
+
+
+ Toggles specified property from `true` to `false` or from `false` to `true`
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} property
+
+
+ - property to toggle
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ toGrayscale()
+
+
+
+ Makes object's color grayscale
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toJSON()
+
+
+
+ Returns a JSON representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} json
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns an object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object}
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns a string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String}
+
+
+
+
+
+
+
+
+
+
+
+
+ transform(ctx)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - Context
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
+
diff --git a/docs/symbols/fabric.Path.html b/docs/symbols/fabric.Path.html
index 748720e7..1963caf1 100644
--- a/docs/symbols/fabric.Path.html
+++ b/docs/symbols/fabric.Path.html
@@ -1,4 +1,5 @@
-
+
@@ -6,856 +7,848 @@
JsDoc Reference - fabric.Path
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Path
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Path
+
+
+
Defined in: path.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Path()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Path.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Path.fromElement`)
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns number representation of an instance complexity
+
+
+
+
+ <static>
+
+ fabric.Path.fromElement(element, options)
+
+ Creates an instance of fabric.Path from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Path.fromObject(object)
+
+ Creates an instance of fabric.Path from an object
+
+
+
+
+
+
+ initialize(path, options)
+
+ Constructor
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+ Renders path on a specified context
+
+
+
+
+
+
+ toDatalessObject()
+
+ Returns dataless object representation of an instance
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+ toString()
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toGrayscale, toJSON, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Path.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Path.fromElement`)
+
+
+
+
+
+
+
+
+
+
+ - See:
+
+ - http://www.w3.org/TR/SVG/paths.html#PathElement
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns number representation of an instance complexity
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Path}
+ fabric.Path.fromElement(element, options)
+
+
+
+ Creates an instance of fabric.Path from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - to parse
+
+ -
+ {Object} options
+
+
+ - object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Path} Instance of fabric.Path
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Path}
+ fabric.Path.fromObject(object)
+
+
+
+ Creates an instance of fabric.Path from an object
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Path} Instance of fabric.Path
+
+
+
+
+
+
+
+
+
+
+
+
+ initialize(path, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array|String} path
+
+
+ - Path data (sequence of coordinates and corresponding "command" tokens)
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+
+
+ Renders path on a specified context
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - context to render path on
+
+ -
+ {Boolean} noTransform
+
+
+ - When true, context is not transformed
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toDatalessObject()
+
+
+
+ Returns dataless object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object}
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object}
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Path
-
-
-
- Path
-
-
-
-
-
-
-
-
- - Defined in: path.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Path()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns number representation of an instance complexity
-
-
-
-
- <static>
-
- fabric.Path.fromElement(element, options)
-
- Creates an instance of fabric.Path from an SVG element
-
-
-
-
- <static>
-
- fabric.Path.fromObject(object)
-
- Creates an instance of fabric.Path from an object
-
-
-
-
-
-
- initialize(path, options)
-
- Constructor
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
-
-
-
-
-
- set(prop, value)
-
-
-
-
-
-
-
-
- toDatalessObject()
-
-
-
-
-
-
-
-
- toObject()
-
-
-
-
-
-
-
-
- toString()
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toGrayscale, toJSON, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns number representation of an instance complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Creates an instance of fabric.Path from an SVG element
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {SVGElement} element
-
-
- - to parse
-
- -
- {Object} options
-
-
- - object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Path} Instance of fabric.Path
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Creates an instance of fabric.Path from an object
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Path} Instance of fabric.Path
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- initialize(path, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array|String} path
-
-
- - Path data (sequence of coordinates and corresponding "command" tokens)
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- ctx
-
-
-
-
- -
- noTransform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- set(prop, value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- prop
-
-
-
-
- -
- value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toDatalessObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.PathGroup.html b/docs/symbols/fabric.PathGroup.html
index 871da9c4..6a8db8ff 100644
--- a/docs/symbols/fabric.PathGroup.html
+++ b/docs/symbols/fabric.PathGroup.html
@@ -1,4 +1,5 @@
-
+
@@ -6,1063 +7,965 @@
JsDoc Reference - fabric.PathGroup
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.PathGroup
+
+
+
+
+
+
Extends
+ fabric.Path.
+
+
+ PathGroup
+
+
+
Defined in: path_group.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.PathGroup()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns number representation of object's complexity
+
+
+
+
+ <static>
+
+ fabric.PathGroup.fromObject(object)
+
+ Creates fabric.Triangle instance from an object representation
+
+
+
+
+
+
+ getObjects()
+
+ Returns all paths in this path group
+
+
+
+
+
+
+ initialize(paths, options)
+
+ Constructor
+
+
+
+
+
+
+ isSameColor()
+
+ Returns true if all paths in this group are of same color
+
+
+
+
+
+
+ render(ctx)
+
+ Renders this group on a specified context
+
+
+
+
+
+
+ set(prop, value)
+
+ Sets certain property to a certain value
+
+
+
+
+
+
+ toDatalessObject()
+
+ Returns dataless object representation of this path group
+
+
+
+
+
+
+ toGrayscale()
+
+ Makes path group grayscale
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of this path group
+
+
+
+
+
+
+ toString()
+
+ Returns a string representation of this path group
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toJSON, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+
+
+ {Boolean}
+ forceFillOverwrite
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns number representation of object's complexity
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.PathGroup}
+ fabric.PathGroup.fromObject(object)
+
+
+
+ Creates fabric.Triangle instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.PathGroup}
+
+
+
+
+
+
+
+
+
+
+
+ {Array}
+ getObjects()
+
+
+
+ Returns all paths in this path group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} array of path objects included in this path group
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.PathGroup}
+ initialize(paths, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} paths
+
+
+
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.PathGroup} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ isSameColor()
+
+
+
+ Returns true if all paths in this group are of same color
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if all paths are of the same color (`fill`)
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx)
+
+
+
+ Renders this group on a specified context
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - Context to render this instance on
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.PathGroup}
+ set(prop, value)
+
+
+
+ Sets certain property to a certain value
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} prop
+
+
+
+
+ -
+ {Any} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.PathGroup} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toDatalessObject()
+
+
+
+ Returns dataless object representation of this path group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} dataless object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.PathGroup}
+ toGrayscale()
+
+
+
+ Makes path group grayscale
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.PathGroup} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of this path group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns a string representation of this path group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} string representation of an object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .PathGroup
-
-
-
- PathGroup
-
-
-
-
-
-
-
-
- - Defined in: path_group.class.js
-
-
- - Extends
- fabric.Path
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.PathGroup()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns number representation of object's complexity
-
-
-
-
- <static>
-
- fabric.PathGroup.fromObject(object)
-
-
-
-
-
-
-
-
- getObjects()
-
-
-
-
-
-
-
-
- initialize(paths, options)
-
- Constructor
-
-
-
-
-
-
- initProperties()
-
-
-
-
-
-
-
-
- isSameColor()
-
-
-
-
-
-
-
-
- render(ctx)
-
-
-
-
-
-
-
-
- set(prop, value)
-
-
-
-
-
-
-
-
- toDatalessObject()
-
-
-
-
-
-
-
-
- toGrayscale()
-
- Makes path group grayscale
-
-
-
-
-
-
- toObject()
-
-
-
-
-
-
-
-
- toString()
-
- Returns a string representation of an object
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toJSON, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- forceFillOverwrite
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns number representation of object's complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.PathGroup}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Array}
-
- getObjects()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Array} array of path objects included in this path group
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.PathGroup}
-
- initialize(paths, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} paths
-
-
-
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.PathGroup} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- initProperties()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- isSameColor()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if all paths are of the same color (`fill`)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- ctx
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.PathGroup}
-
- set(prop, value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} prop
-
-
-
-
- -
- {Any} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.PathGroup} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toDatalessObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} dataless object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.PathGroup}
-
- toGrayscale()
-
-
-
- Makes path group grayscale
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.PathGroup} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns a string representation of an object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} string representation of an object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Point.html b/docs/symbols/fabric.Point.html
index 3c4da482..e726eccb 100644
--- a/docs/symbols/fabric.Point.html
+++ b/docs/symbols/fabric.Point.html
@@ -1,4 +1,5 @@
-
+
@@ -6,1642 +7,1610 @@
JsDoc Reference - fabric.Point
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Point
+
+
+
+
+
+
+
+
+
+
+
Defined in: point.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Point(x, y)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ add(that)
+
+
+
+
+
+
+
+
+ addEquals(that)
+
+
+
+
+
+
+
+
+ distanceFrom(that)
+
+
+
+
+
+
+
+
+ divide(scalar)
+
+
+
+
+
+
+
+
+ divideEquals(scalar)
+
+
+
+
+
+
+
+
+ eq(that)
+
+
+
+
+
+
+
+
+ gt(that)
+
+
+
+
+
+
+
+
+ gte(that)
+
+
+
+
+
+
+
+
+ init(x, y)
+
+
+
+
+
+
+
+
+ lerp(that, t)
+
+
+
+
+
+
+
+
+ lt(that)
+
+
+
+
+
+
+
+
+ lte(that)
+
+
+
+
+
+
+
+
+ max(that)
+
+
+
+
+
+
+
+
+ min(that)
+
+
+
+
+
+
+
+
+ multiply(scalar)
+
+
+
+
+
+
+
+
+ multiplyEquals(scalar)
+
+
+
+
+
+
+
+
+ scalarAdd(scalar)
+
+
+
+
+
+
+
+
+ scalarAddEquals(scalar, thisArg)
+
+
+
+
+
+
+
+
+ scalarSubtract(scalar)
+
+
+
+
+
+
+
+
+ scalarSubtractEquals(scalar)
+
+
+
+
+
+
+
+
+ setFromPoint(that)
+
+
+
+
+
+
+
+
+ setXY(x, y)
+
+
+
+
+
+
+
+
+ subtract(that)
+
+
+
+
+
+
+
+
+ subtractEquals(that)
+
+
+
+
+
+
+
+
+ swap(that)
+
+
+
+
+
+
+
+
+ toString()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Class Detail
+
+
+
+ fabric.Point(x, y)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} x
+
+
+
+
+ -
+ {Number} y
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} thisArg
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+
+
+ {fabric.Point}
+ add(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Point} that
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} new Point instance with added values
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Point}
+ addEquals(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Point} that
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ distanceFrom(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ divide(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ divideEquals(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ eq(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ gt(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ gte(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ init(x, y)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} x
+
+
+
+
+ -
+ {Number} y
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ lerp(that, t)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+ -
+ t
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ lt(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ lte(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ max(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ min(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ multiply(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ multiplyEquals(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Point}
+ scalarAdd(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} scalar
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} new Point with added value
+
+
+
+
+
+
+
+
+
+
+
+
+ scalarAddEquals(scalar, thisArg)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} scalar
+
+
+
+
+ -
+ {fabric.Point} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ scalarSubtract(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ scalarSubtractEquals(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setFromPoint(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setXY(x, y)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ x
+
+
+
+
+ -
+ y
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Point}
+ subtract(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Point} that
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} new Point object with subtracted values
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Point}
+ subtractEquals(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Point} that
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ swap(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ toString()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Point
-
-
-
-
-
-
-
-
-
-
-
-
- - Defined in: point.class.js
-
-
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Point(x, y)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- add(that)
-
-
-
-
-
-
-
-
- addEquals(that)
-
-
-
-
-
-
-
-
- distanceFrom(that)
-
-
-
-
-
-
-
-
- divide(scalar)
-
-
-
-
-
-
-
-
- divideEquals(scalar)
-
-
-
-
-
-
-
-
- eq(that)
-
-
-
-
-
-
-
-
- gt(that)
-
-
-
-
-
-
-
-
- gte(that)
-
-
-
-
-
-
-
-
- init(x, y)
-
-
-
-
-
-
-
-
- lerp(that, t)
-
-
-
-
-
-
-
-
- lt(that)
-
-
-
-
-
-
-
-
- lte(that)
-
-
-
-
-
-
-
-
- max(that)
-
-
-
-
-
-
-
-
- min(that)
-
-
-
-
-
-
-
-
- multiply(scalar)
-
-
-
-
-
-
-
-
- multiplyEquals(scalar)
-
-
-
-
-
-
-
-
- scalarAdd(scalar)
-
-
-
-
-
-
-
-
- scalarAddEquals(scalar, thisArg)
-
-
-
-
-
-
-
-
- scalarSubtract(scalar)
-
-
-
-
-
-
-
-
- scalarSubtractEquals(scalar)
-
-
-
-
-
-
-
-
- setFromPoint(that)
-
-
-
-
-
-
-
-
- setXY(x, y)
-
-
-
-
-
-
-
-
- subtract(that)
-
-
-
-
-
-
-
-
- subtractEquals(that)
-
-
-
-
-
-
-
-
- swap(that)
-
-
-
-
-
-
-
-
- toString()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class Detail
-
-
-
- fabric.Point(x, y)
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} x
-
-
-
-
- -
- {Number} y
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- add(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Point} that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} new Point instance with added values
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- addEquals(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Point} that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- distanceFrom(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- divide(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- divideEquals(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- eq(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- gt(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- gte(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- init(x, y)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} x
-
-
-
-
- -
- {Number} y
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- lerp(that, t)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
- -
- t
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- lt(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- lte(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- max(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- min(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- multiply(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- multiplyEquals(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- scalarAdd(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} new Point with added value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- scalarAddEquals(scalar, thisArg)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} scalar
-
-
-
-
- -
- {fabric.Point} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- scalarSubtract(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- scalarSubtractEquals(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setFromPoint(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setXY(x, y)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- x
-
-
-
-
- -
- y
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- subtract(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Point} that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} new Point object with subtracted values
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- subtractEquals(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Point} that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- swap(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toString()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Polygon.html b/docs/symbols/fabric.Polygon.html
index 83c1b066..de5d4144 100644
--- a/docs/symbols/fabric.Polygon.html
+++ b/docs/symbols/fabric.Polygon.html
@@ -1,4 +1,5 @@
-
+
@@ -6,688 +7,715 @@
JsDoc Reference - fabric.Polygon
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Polygon
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Polygon
+
+
+
Defined in: polygon.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Polygon()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Polygon.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Polygon.fromElement`)
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns complexity of an instance
+
+
+
+
+ <static>
+
+ fabric.Polygon.fromElement(element, options)
+
+ Returns fabric.Polygon instance from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Polygon.fromObject(object)
+
+ Returns fabric.Polygon instance from an object representation
+
+
+
+
+
+
+ initialize(points, options)
+
+ Constructor
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Polygon.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Polygon.fromElement`)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity of this instance
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Polygon}
+ fabric.Polygon.fromElement(element, options)
+
+
+
+ Returns fabric.Polygon instance from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - Element to parse
+
+ -
+ {Object} options
+
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Polygon}
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Polygon}
+ fabric.Polygon.fromObject(object)
+
+
+
+ Returns fabric.Polygon instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+ - Object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Polygon}
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Polygon}
+ initialize(points, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} points
+
+
+ - Array of points
+
+ -
+ {Object} options
+
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Polygon} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Polygon
-
-
-
- Polygon
-
-
-
-
-
-
-
-
- - Defined in: polygon.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Polygon()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
- <static>
-
-
- fabric.Polygon.ATTRIBUTE_NAMES
-
- List of attribute names to account for when parsing SVG element (used by `fabric.Polygon.fromElement`)
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns complexity of an instance
-
-
-
-
- <static>
-
- fabric.Polygon.fromElement(element, options)
-
- Returns fabric.Polygon instance from an SVG element
-
-
-
-
- <static>
-
- fabric.Polygon.fromObject(object)
-
- Returns fabric.Polygon instance from an object representation
-
-
-
-
-
-
- initialize(points, options)
-
- Constructor
-
-
-
-
-
-
- toObject()
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Polygon.ATTRIBUTE_NAMES
-
-
-
- List of attribute names to account for when parsing SVG element (used by `fabric.Polygon.fromElement`)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns complexity of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity of this instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Returns fabric.Polygon instance from an SVG element
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {SVGElement} element
-
-
- - Element to parse
-
- -
- {Object} options
-
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Polygon}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Returns fabric.Polygon instance from an object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
- - Object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Polygon}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Polygon}
-
- initialize(points, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} points
-
-
- - Array of points
-
- -
- {Object} options
-
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Polygon} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Polyline.html b/docs/symbols/fabric.Polyline.html
index 9c70a721..f4354f50 100644
--- a/docs/symbols/fabric.Polyline.html
+++ b/docs/symbols/fabric.Polyline.html
@@ -1,4 +1,5 @@
-
+
@@ -6,653 +7,715 @@
JsDoc Reference - fabric.Polyline
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Polyline
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Polyline
+
+
+
Defined in: polyline.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Polyline()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Polyline.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Polyline.fromElement`)
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns complexity of an instance
+
+
+
+
+ <static>
+
+ fabric.Polyline.fromElement(element, options)
+
+ Returns fabric.Polyline instance from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Polyline.fromObject(object)
+
+ Returns fabric.Polyline instance from an object representation
+
+
+
+
+
+
+ initialize(points, options)
+
+ Constructor
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Polyline.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Polyline.fromElement`)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.Polyline.fromElement(element, options)
+
+
+
+ Returns fabric.Polyline instance from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - Element to parse
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} instance of fabric.Polyline
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Polyline}
+ fabric.Polyline.fromObject(object)
+
+
+
+ Returns fabric.Polyline instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+ Optional
+
+ - Object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Polyline}
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ initialize(points, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} points
+
+
+ - array of points
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Polyline
-
-
-
- Polyline
-
-
-
-
-
-
-
-
- - Defined in: polyline.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Polyline()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns complexity of an instance
-
-
-
-
- <static>
-
- fabric.Polyline.fromElement(element, options)
-
- Returns fabric.Polyline instance from an SVG element
-
-
-
-
- <static>
-
- fabric.Polyline.fromObject(object)
-
- Returns fabric.Polyline instance from an object representation
-
-
-
-
-
-
- initialize(points, options)
-
- Constructor
-
-
-
-
-
-
- toObject()
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns complexity of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {Object}
-
- fabric.Polyline.fromElement(element, options)
-
-
-
- Returns fabric.Polyline instance from an SVG element
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {SVGElement} element
-
-
- - Element to parse
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} instance of fabric.Polyline
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Returns fabric.Polyline instance from an object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
- Optional
-
- - Object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Polyline}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- initialize(points, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} points
-
-
- - array of points
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} Object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Rect.html b/docs/symbols/fabric.Rect.html
index 80472e15..ec474e67 100644
--- a/docs/symbols/fabric.Rect.html
+++ b/docs/symbols/fabric.Rect.html
@@ -1,4 +1,5 @@
-
+
@@ -6,624 +7,700 @@
JsDoc Reference - fabric.Rect
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Rect
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Rect
+
+
+
Defined in: rect.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Rect()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Rect.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Rect.fromElement`)
+
+
+
+
+
+
+
+ options
+
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+
+
+
+
+
+ <static>
+
+ fabric.Rect.fromElement(element, options)
+
+ Returns fabric.Rect instance from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Rect.fromObject(object)
+
+ Returns fabric.Rect instance from an object representation
+
+
+
+
+
+
+ initialize(options)
+
+ Constructor
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Rect.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Rect.fromElement`)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ options
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Rect}
+ fabric.Rect.fromElement(element, options)
+
+
+
+ Returns fabric.Rect instance from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ element
+
+
+ - {SVGElement} element to parse
+
+ -
+ options
+
+
+ - {Object} options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Rect} instance of fabric.Rect
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.Rect.fromObject(object)
+
+
+
+ Returns fabric.Rect instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+ - {Object} object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} instance of fabric.Rect
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ initialize(options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ options
+
+
+ - {Object} options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Rect
-
-
-
- Rect
-
-
-
-
-
-
-
-
- - Defined in: rect.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Rect()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
-
-
-
-
-
- <static>
-
- fabric.Rect.fromElement(element, options)
-
-
-
-
-
-
- <static>
-
- fabric.Rect.fromObject(object)
-
-
-
-
-
-
-
-
- initialize(options)
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- options
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- element
-
-
- - {SVGElement} element to parse
-
- -
- options
-
-
- - {Object} options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Rect} instance of fabric.Rect
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {Object}
-
- fabric.Rect.fromObject(object)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {Object} object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} instance of fabric.Rect
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- initialize(options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- options
-
-
- - {Object} options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Text.html b/docs/symbols/fabric.Text.html
index 6695c1b2..d93005e5 100644
--- a/docs/symbols/fabric.Text.html
+++ b/docs/symbols/fabric.Text.html
@@ -1,4 +1,5 @@
-
+
@@ -6,1107 +7,1009 @@
JsDoc Reference - fabric.Text
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Text
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Text
+
+
+
Defined in: text.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Text()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+
+
+
+ options
+
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.Text.fromElement(element)
+
+ Returns fabric.Text instance from an SVG element (not yet implemented)
+
+
+
+
+ <static>
+
+ fabric.Text.fromObject(object)
+
+ Returns fabric.Text instance from an object representation
+
+
+
+
+
+
+ getText()
+
+ Returns actual text value of an instance
+
+
+
+
+
+
+ initialize(text, options)
+
+ Constructor
+
+
+
+
+
+
+ render(ctx)
+
+ Renders text instance on a specified context
+
+
+
+
+
+
+ set(name, value)
+
+ Sets specified property to a specified value
+
+
+
+
+
+
+ setColor(value)
+
+ Sets "color" of an instance (alias of `set('fill', …)`)
+
+
+
+
+
+
+ setFontsize(value)
+
+ Sets fontsize of an instance and updates its coordinates
+
+
+
+
+
+
+ setText(value)
+
+ Sets text of an instance, and updates its coordinates
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+ toString()
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, complexity, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+
+
+ {Object}
+ options
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+ <static>
+
+ {fabric.Text}
+ fabric.Text.fromElement(element)
+
+
+
+ Returns fabric.Text instance from an SVG element (not yet implemented)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ element
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} an instance
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Text}
+ fabric.Text.fromObject(object)
+
+
+
+ Returns fabric.Text instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+ - to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} an instance
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ getText()
+
+
+
+ Returns actual text value of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String}
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ initialize(text, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} text
+
+
+
+
+ -
+ {Object} options
+ Optional
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx)
+
+
+
+ Renders text instance on a specified context
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ ctx
+
+
+ - {CanvasRenderingContext2D} context to render on
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ set(name, value)
+
+
+
+ Sets specified property to a specified value
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} name
+
+
+
+
+ -
+ {Any} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ setColor(value)
+
+
+
+ Sets "color" of an instance (alias of `set('fill', …)`)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ setFontsize(value)
+
+
+
+ Sets fontsize of an instance and updates its coordinates
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ setText(value)
+
+
+
+ Sets text of an instance, and updates its coordinates
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Object representation of text object
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} String representation of text object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Text
-
-
-
- Text
-
-
-
-
-
-
-
-
- - Defined in: text.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Text()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.Text.fromElement(element)
-
-
-
-
-
-
- <static>
-
- fabric.Text.fromObject(object)
-
- Returns fabric.Text instance from an object representation
-
-
-
-
-
-
- getText()
-
-
-
-
-
-
-
-
- initialize(text, options)
-
- Constructor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx)
-
-
-
-
-
-
-
-
- set(name, value)
-
- Sets specified property to a specified value
-
-
-
-
-
-
- setColor(value)
-
-
-
-
-
-
-
-
- setFontsize(value)
-
-
-
-
-
-
-
-
- setText(value)
-
- Sets text of an instance, and updates its coordinates
-
-
-
-
-
-
- toObject()
-
-
-
-
-
-
-
-
- toString()
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, complexity, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- options
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Returns fabric.Text instance from an object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
- - to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- getText()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- initialize(text, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} text
-
-
-
-
- -
- {Object} options
- Optional
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- initStateProperties()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- ctx
-
-
- - {CanvasRenderingContext2D} context to render on
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- set(name, value)
-
-
-
- Sets specified property to a specified value
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} name
-
-
-
-
- -
- {Any} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- setColor(value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- setFontsize(value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- setText(value)
-
-
-
- Sets text of an instance, and updates its coordinates
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} Object representation of text object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} String representation of text object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Triangle.html b/docs/symbols/fabric.Triangle.html
index f1076b52..bb4ab549 100644
--- a/docs/symbols/fabric.Triangle.html
+++ b/docs/symbols/fabric.Triangle.html
@@ -1,4 +1,5 @@
-
+
@@ -6,514 +7,578 @@
JsDoc Reference - fabric.Triangle
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Triangle
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Triangle
+
+
+
Defined in: triangle.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Triangle()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns complexity of an instance
+
+
+
+
+ <static>
+
+ fabric.Triangle.fromObject(object)
+
+ Returns fabric.Triangle instance from an object representation
+
+
+
+
+
+
+ initialize(options)
+
+ Constructor
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity of this instance
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.Triangle.fromObject(object)
+
+
+
+ Returns fabric.Triangle instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+ - {Object} object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} instance of Canvas.Triangle
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ initialize(options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ options
+
+
+ - {Object} options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Triangle
-
-
-
- Triangle
-
-
-
-
-
-
-
-
- - Defined in: triangle.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Triangle()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns complexity of an instance
-
-
-
-
- <static>
-
- fabric.Triangle.fromObject(object)
-
- Returns fabric.Triangle instance from an object representation
-
-
-
-
-
-
- initialize(options)
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns complexity of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity of this instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {Object}
-
- fabric.Triangle.fromObject(object)
-
-
-
- Returns fabric.Triangle instance from an object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {Object} object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} instance of Canvas.Triangle
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- initialize(options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- options
-
-
- - {Object} options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.html b/docs/symbols/fabric.html
new file mode 100644
index 00000000..b2e5380e
--- /dev/null
+++ b/docs/symbols/fabric.html
@@ -0,0 +1,800 @@
+
+
+
+
+
+
+ JsDoc Reference - fabric
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Classes
+
+
+ - _global_
+
+ - Array
+
+ - fabric
+
+ - fabric.Circle
+
+ - fabric.Color
+
+ - fabric.Element
+
+ - fabric.Element#cache
+
+ - fabric.Ellipse
+
+ - fabric.Group
+
+ - fabric.Image
+
+ - fabric.Intersection
+
+ - fabric.Line
+
+ - fabric.Object
+
+ - fabric.Path
+
+ - fabric.PathGroup
+
+ - fabric.Point
+
+ - fabric.Polygon
+
+ - fabric.Polyline
+
+ - fabric.Rect
+
+ - fabric.Text
+
+ - fabric.Triangle
+
+ - fabric.util
+
+ - fabric.util.array
+
+ - fabric.util.object
+
+ - fabric.util.string
+
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+
+
+ Namespace fabric
+
+
+
+
+
+
+
+
+
+
+
Defined in: parser.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.log(Values)
+
+ Wrapper around `console.log` (when available)
+
+
+
+
+ <static>
+
+ fabric.parseAttributes(element, attributes)
+
+ Returns an object of attributes' name/value, given element and an array of attribute names;
+Parses parent "g" nodes recursively upwards.
+
+
+
+
+ <static>
+
+ fabric.parseElements(elements, options)
+
+
+
+
+
+
+ <static>
+
+ fabric.parsePointsAttribute(points)
+
+
+
+
+
+
+ <static>
+
+ fabric.parseStyleAttribute(element)
+
+
+
+
+
+
+ <static>
+
+ fabric.parseSVGDocument(doc, callback)
+
+
+
+
+
+
+ <static>
+
+ fabric.parseTransformAttribute(attributeValue)
+
+
+
+
+
+
+ <static>
+
+ fabric.warn(Values)
+
+ Wrapper around `console.warn` (when available)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+ <static>
+
+
+ fabric.log(Values)
+
+
+
+ Wrapper around `console.log` (when available)
+
+
+ Defined in: fabric.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Any} Values
+
+
+ - to log
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.parseAttributes(element, attributes)
+
+
+
+ Returns an object of attributes' name/value, given element and an array of attribute names;
+Parses parent "g" nodes recursively upwards.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {DOMElement} element
+
+
+ - Element to parse
+
+ -
+ {Array} attributes
+
+
+ - Array of attributes to parse
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object containing parsed attributes' names/values
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Array}
+ fabric.parseElements(elements, options)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} elements
+
+
+ - Array of elements to parse
+
+ -
+ {Object} options
+
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} Array of corresponding instances (transformed from SVG elements)
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Array}
+ fabric.parsePointsAttribute(points)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ points
+
+
+ - {String} points attribute string
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} array of points
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.parseStyleAttribute(element)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - Element to parse
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Objects with values parsed from style attribute of an element
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.parseSVGDocument(doc, callback)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGDocument} doc
+
+
+ - SVG document to parse
+
+ -
+ {Function} callback
+
+
+ - Callback to call when parsing is finished; It's being passed an array of elements (parsed from a document).
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Array}
+ fabric.parseTransformAttribute(attributeValue)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ attributeValue
+
+
+ - {String} string containing attribute value
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} array of 6 elements representing transformation matrix
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.warn(Values)
+
+
+
+ Wrapper around `console.warn` (when available)
+
+
+ Defined in: fabric.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Any} Values
+
+
+ - to log as a warning
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:46 GMT-0400 (EDT)
+
+
+
diff --git a/docs/symbols/fabric.util.array.html b/docs/symbols/fabric.util.array.html
index 0f2a60c7..65c87d05 100644
--- a/docs/symbols/fabric.util.array.html
+++ b/docs/symbols/fabric.util.array.html
@@ -1,4 +1,5 @@
-
+
@@ -6,402 +7,521 @@
JsDoc Reference - fabric.util.array
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Namespace fabric.util.array
+
+
+
+
+
+
+
+
+
+
+
Defined in: lang_array.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.util.array.invoke(array, method)
+
+ Invokes method on all items in a given array
+
+
+
+
+ <static>
+
+ fabric.util.array.max(array, byProperty)
+
+ Finds maximum value in array (not necessarily "first" one)
+
+
+
+
+ <static>
+
+ fabric.util.array.min(array, byProperty)
+
+ Finds minimum value in array (not necessarily "first" one)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.util.array.invoke(array, method)
+
+
+
+ Invokes method on all items in a given array
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} array
+
+
+ - Array to iterate over
+
+ -
+ {String} method
+
+
+ - Name of a method to invoke
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.array.max(array, byProperty)
+
+
+
+ Finds maximum value in array (not necessarily "first" one)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.array.min(array, byProperty)
+
+
+
+ Finds minimum value in array (not necessarily "first" one)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Namespace fabric .util .array
-
-
-
-
-
-
-
-
-
-
-
-
- - Defined in: lang_array.js
-
-
-
-
-
-
-
-
-
- Namespace Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.util.array.invoke(array, method)
-
- Invokes method on all items in a given array
-
-
-
-
- <static>
-
- fabric.util.array.max(array, byProperty)
-
- Finds maximum value in array (not necessarily "first" one)
-
-
-
-
- <static>
-
- fabric.util.array.min(array, byProperty)
-
- Finds minimum value in array (not necessarily "first" one)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.array.invoke(array, method)
-
-
-
- Invokes method on all items in a given array
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} array
-
-
- - Array to iterate over
-
- -
- {String} method
-
-
- - Name of a method to invoke
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.array.max(array, byProperty)
-
-
-
- Finds maximum value in array (not necessarily "first" one)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.array.min(array, byProperty)
-
-
-
- Finds minimum value in array (not necessarily "first" one)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.util.html b/docs/symbols/fabric.util.html
index af3343ea..2b7a27e5 100644
--- a/docs/symbols/fabric.util.html
+++ b/docs/symbols/fabric.util.html
@@ -1,4 +1,5 @@
-
+
@@ -6,1763 +7,1643 @@
JsDoc Reference - fabric.util
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Namespace fabric.util
+
+
+
+
+
+
+
+
+
+
+
Defined in: util.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.util
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.util.addClass(element, className)
+
+ Adds class to an element
+
+
+
+
+ <static>
+
+ fabric.util.addListener(element, eventName, handler)
+
+ Adds an event listener to an element
+
+
+
+
+ <static>
+
+ fabric.util.animate(options)
+
+ Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
+
+
+
+
+ <static>
+
+ fabric.util.createClass()
+
+ Helper for creation of "classes"
+
+
+
+
+ <static>
+
+ fabric.util.degreesToRadians(degrees)
+
+ Transforms degrees to radians.
+
+
+
+
+ <static>
+
+ fabric.util.falseFunction()
+
+ Function which always returns `false`.
+
+
+
+
+ <static>
+
+ fabric.util.fireEvent(eventName, memo)
+
+ Fires event with an optional memo object
+
+
+
+
+ <static>
+
+ fabric.util.getById(id)
+
+ Takes id and returns an element with that id (if one exists in a document)
+
+
+
+
+ <static>
+
+ fabric.util.getElementOffset(element)
+
+ Returns offset for a given element
+
+
+
+
+ <static>
+
+ fabric.util.getPointer(event)
+
+ Cross-browser wrapper for getting event's coordinates
+
+
+
+
+ <static>
+
+ fabric.util.getRandomInt(min, max)
+
+ Returns random number between 2 specified ones.
+
+
+
+
+ <static>
+
+ fabric.util.getScript(url, callback)
+
+ Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
+
+
+
+
+ <static>
+
+ fabric.util.makeElement(tagName, attributes)
+
+ Creates specified element with specified attributes
+
+
+
+
+ <static>
+
+ fabric.util.makeElementUnselectable(element)
+
+ Makes element unselectable
+
+
+
+
+ <static>
+
+ fabric.util.observeEvent(eventName, handler)
+
+
+
+
+
+
+ <static>
+
+ fabric.util.removeFromArray(array, value)
+
+ Removes value from an array.
+
+
+
+
+ <static>
+
+ fabric.util.removeListener(element, eventName, handler)
+
+ Removes an event listener from an element
+
+
+
+
+ <static>
+
+ fabric.util.request(url, options)
+
+ Cross-browser abstraction for sending XMLHttpRequest
+
+
+
+
+ <static>
+
+ fabric.util.setStyle(element, styles)
+
+ Cross-browser wrapper for setting element's style
+
+
+
+
+ <static>
+
+ fabric.util.toArray(arrayLike)
+
+ Converts an array-like object (e.g.
+
+
+
+
+ <static>
+
+ fabric.util.toFixed(number, fractionDigits)
+
+ A wrapper around Number#toFixed, which contrary to native method returns number, not string.
+
+
+
+
+ <static>
+
+ fabric.util.wrapElement(element, wrapper, attributes)
+
+ Wraps element with another element
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
-
-
-
-
-
-
+
+ <static>
- Namespace fabric .util
-
-
-
-
-
-
-
-
-
-
-
- - Defined in: util.js
-
-
-
-
-
-
-
-
-
- Namespace Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.util
-
-
-
-
-
-
+ fabric.util.addClass(element, className)
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.util.addClass(element, className)
-
- Adds class to an element
-
-
-
-
- <static>
-
- fabric.util.addListener(element, eventName, handler)
-
- Adds an event listener to an element
-
-
-
-
- <static>
-
- fabric.util.animate(options)
-
- Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
-
-
-
-
- <static>
-
- fabric.util.createClass()
-
- Helper for creation of "classes"
-
-
-
-
- <static>
-
- fabric.util.degreesToRadians(degrees)
-
- Transforms degrees to radians.
-
-
-
-
- <static>
-
- fabric.util.falseFunction()
-
- Function which always returns `false`.
-
-
-
-
- <static>
-
- fabric.util.fireEvent(eventName, memo)
-
- Fires event with an optional memo object
-
-
-
-
- <static>
-
- fabric.util.getById(id)
-
- Takes id and returns an element with that id (if one exists in a document)
-
-
-
-
- <static>
-
- fabric.util.getElementOffset(element)
-
- Returns offset for a given element
-
-
-
-
- <static>
-
- fabric.util.getPointer(event)
-
- Cross-browser wrapper for getting event's coordinates
-
-
-
-
- <static>
-
- fabric.util.getRandomInt(min, max)
-
- Returns random number between 2 specified ones.
-
-
-
-
- <static>
-
- fabric.util.getScript(url, callback)
-
- Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
-
-
-
-
- <static>
-
- fabric.util.makeElement(tagName, attributes)
-
- Creates specified element with specified attributes
-
-
-
-
- <static>
-
- fabric.util.makeElementUnselectable(element)
-
- Makes element unselectable
-
-
-
-
- <static>
-
- fabric.util.observeEvent(eventName, handler)
-
-
-
-
-
-
- <static>
-
- fabric.util.removeFromArray(array, value)
-
- Removes value from an array.
-
-
-
-
- <static>
-
- fabric.util.removeListener(element, eventName, handler)
-
- Removes an event listener from an element
-
-
-
-
- <static>
-
- fabric.util.request(url, options)
-
- Cross-browser abstraction for sending XMLHttpRequest
-
-
-
-
- <static>
-
- fabric.util.setStyle(element, styles)
-
- Cross-browser wrapper for setting element's style
-
-
-
-
- <static>
-
- fabric.util.toArray(arrayLike)
-
- Converts an array-like object (e.g.
-
-
-
-
- <static>
-
- fabric.util.toFixed(number, fractionDigits)
-
- A wrapper around Number#toFixed, which contrary to native method returns number, not string.
-
-
-
-
- <static>
-
- fabric.util.wrapElement(element, wrapper, attributes)
-
- Wraps element with another element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Namespace Detail
-
-
-
- fabric.util
-
-
-
-
-
-
-
-
+
+ Adds class to an element
+
+
+ Defined in: dom_misc.js.
+
-
-
-
-
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+ - Element to add class to
+
+ -
+ {String} className
+
+
+ - Class to add to an element
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.addListener(element, eventName, handler)
+
+
+
+ Adds an event listener to an element
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+
+
+ -
+ {String} eventName
+
+
+
+
+ -
+ {Function} handler
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+ <static>
+
+
+ fabric.util.animate(options)
+
+
+
+ Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} options
+ Optional
+
+ - Animation options
+
+ -
+ {Function} options.onChange
+ Optional
+
+ - Callback; invoked on every value change
+
+ -
+ {Function} options.onComplete
+ Optional
+
+ - Callback; invoked when value change is completed
+
+ -
+ {Number} options.startValue
+ Optional, Default: 0
+
+ - Starting value
+
+ -
+ {Number} options.endValue
+ Optional, Default: 100
+
+ - Ending value
+
+ -
+ {Function} options.easing
+ Optional
+
+ - Easing function
+
+ -
+ {Number} options.duration
+ Optional, Default: 500
+
+ - Duration of change
+
+
+
+
+
+
+
+
+
-
+
-
-
-
- Method Detail
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.addClass(element, className)
-
-
-
- Adds class to an element
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to add class to
-
- -
- {String} className
-
-
- - Class to add to an element
-
-
-
-
-
+
+ <static>
+
+
+ fabric.util.createClass()
+
+
+
+ Helper for creation of "classes"
+
+
+ Defined in: lang_class.js.
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Number}
+ fabric.util.degreesToRadians(degrees)
+
+
+
+ Transforms degrees to radians.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {Number} degrees
-
-
- fabric.util.addListener(element, eventName, handler)
-
-
-
- Adds an event listener to an element
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
-
-
- -
- {String} eventName
-
-
-
-
- -
- {Function} handler
-
-
-
-
-
-
-
-
+
+ - value in degrees
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} value in radians
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Boolean}
+ fabric.util.falseFunction()
+
+
+
+ Function which always returns `false`.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
-
-
-
-
- <static>
-
-
-
-
- fabric.util.animate(options)
-
-
-
- Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} options
- Optional
-
- - Animation options
-
- -
- {Function} options.onChange
- Optional
-
- - Callback; invoked on every value change
-
- -
- {Function} options.onComplete
- Optional
-
- - Callback; invoked when value change is completed
-
- -
- {Number} options.startValue
- Optional, Default: 0
-
- - Starting value
-
- -
- {Number} options.endValue
- Optional, Default: 100
-
- - Ending value
-
- -
- {Function} options.easing
- Optional
-
- - Easing function
-
- -
- {Number} options.duration
- Optional, Default: 500
-
- - Duration of change
-
-
-
-
-
+ - {Boolean}
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.fireEvent(eventName, memo)
+
+
+
+ Fires event with an optional memo object
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} eventName
-
-
- fabric.util.createClass()
-
-
-
- Helper for creation of "classes"
-
-
-
- Defined in: lang_class.js.
-
-
-
-
-
-
-
-
-
-
+
+
+
+ -
+ {Object} memo
+ Optional
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {HTMLElement|null}
+ fabric.util.getById(id)
+
+
+
+ Takes id and returns an element with that id (if one exists in a document)
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String|HTMLElement} id
- {Number}
-
- fabric.util.degreesToRadians(degrees)
-
-
-
- Transforms degrees to radians.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} degrees
-
-
- - value in degrees
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} value in radians
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement|null}
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Object}
+ fabric.util.getElementOffset(element)
+
+
+
+ Returns offset for a given element
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {HTMLElement} element
- {Boolean}
-
- fabric.util.falseFunction()
-
-
-
- Function which always returns `false`.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean}
-
-
-
-
-
-
-
-
-
+
+ - Element to get offset for
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Object with "left" and "top" properties
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.getPointer(event)
+
+
+
+ Cross-browser wrapper for getting event's coordinates
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {Event} event
-
-
- fabric.util.fireEvent(eventName, memo)
-
-
-
- Fires event with an optional memo object
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} eventName
-
-
-
-
- -
- {Object} memo
- Optional
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Number}
+ fabric.util.getRandomInt(min, max)
+
+
+
+ Returns random number between 2 specified ones.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {Number} min
- {HTMLElement|null}
+
+ - lower limit
+
+ -
+ {Number} max
- fabric.util.getById(id)
-
-
-
- Takes id and returns an element with that id (if one exists in a document)
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String|HTMLElement} id
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement|null}
-
-
-
-
-
-
-
-
-
+
+ - upper limit
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} random value (between min and max)
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.getScript(url, callback)
+
+
+
+ Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} url
- {Object}
+
+ - URL of a script to load
+
+ -
+ {Function} callback
- fabric.util.getElementOffset(element)
-
-
-
- Returns offset for a given element
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to get offset for
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} Object with "left" and "top" properties
-
-
-
-
-
-
-
-
-
+
+ - Callback to execute when script is finished loading
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.makeElement(tagName, attributes)
+
+
+
+ Creates specified element with specified attributes
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} tagName
-
-
- fabric.util.getPointer(event)
-
-
-
- Cross-browser wrapper for getting event's coordinates
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Event} event
-
-
-
-
-
-
-
-
+
+ - Type of an element to create
+
+ -
+ {Object} attributes
+ Optional
+
+ - Attributes to set on an element
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} Newly created element
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.makeElementUnselectable(element)
+
+
+
+ Makes element unselectable
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {HTMLElement} element
- {Number}
-
- fabric.util.getRandomInt(min, max)
-
-
-
- Returns random number between 2 specified ones.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} min
-
-
- - lower limit
-
- -
- {Number} max
-
-
- - upper limit
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} random value (between min and max)
-
-
-
-
-
-
-
-
-
+
+ - Element to make unselectable
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} Element that was passed in
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.observeEvent(eventName, handler)
+
+
+
+
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} eventName
+
+
+
+ -
+ {Function} handler
-
- fabric.util.getScript(url, callback)
-
-
-
- Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.makeElement(tagName, attributes)
-
-
-
- Creates specified element with specified attributes
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} tagName
-
-
- - Type of an element to create
-
- -
- {Object} attributes
- Optional
-
- - Attributes to set on an element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} Newly created element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.makeElementUnselectable(element)
-
-
-
- Makes element unselectable
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to make unselectable
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} Element that was passed in
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.observeEvent(eventName, handler)
-
-
-
-
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Removes value from an array.
+
+
+
+ <static>
+
+ {Array}
+ fabric.util.removeFromArray(array, value)
+
+
+
+ Removes value from an array.
Presence of value (and its position in an array) is determined via `Array.prototype.indexOf`
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} array
-
-
-
-
- -
- {Any} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Array} original array
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.removeListener(element, eventName, handler)
-
-
-
- Removes an event listener from an element
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
-
-
- -
- {String} eventName
-
-
-
-
- -
- {Function} handler
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {XMLHttpRequest}
-
- fabric.util.request(url, options)
-
-
-
- Cross-browser abstraction for sending XMLHttpRequest
-
-
-
- Defined in: dom_request.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} url
-
-
- - URL to send XMLHttpRequest to
-
- -
- {Object} options
- Optional
-
- - Options object
-
- -
- {String} options.method
- Optional, Default: "GET"
-
-
-
- -
- {Function} options.onComplete
-
-
- - Callback to invoke when request is completed
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {XMLHttpRequest} request
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.setStyle(element, styles)
-
-
-
- Cross-browser wrapper for setting element's style
-
-
-
- Defined in: dom_style.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
-
-
- -
- {Object} styles
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} Element that was passed as a first argument
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Converts an array-like object (e.g. arguments or NodeList) to an array
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} arrayLike
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Array}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {Number}
-
- fabric.util.toFixed(number, fractionDigits)
-
-
-
- A wrapper around Number#toFixed, which contrary to native method returns number, not string.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number | String} number
-
-
- - number to operate on
-
- -
- {Number} fractionDigits
-
-
- - number of fraction digits to "leave"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.wrapElement(element, wrapper, attributes)
-
-
-
- Wraps element with another element
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to wrap
-
- -
- {HTMLElement|String} wrapper
-
-
- - Element to wrap with
-
- -
- {Object} attributes
- Optional
-
- - Attributes to set on a wrapper
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} wrapper
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} array
+
+
+
+
+ -
+ {Any} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} original array
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.removeListener(element, eventName, handler)
+
+
+
+ Removes an event listener from an element
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+
+
+ -
+ {String} eventName
+
+
+
+
+ -
+ {Function} handler
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+ <static>
+
+ {XMLHttpRequest}
+ fabric.util.request(url, options)
+
+
+
+ Cross-browser abstraction for sending XMLHttpRequest
+
+
+ Defined in: dom_request.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} url
+
+
+ - URL to send XMLHttpRequest to
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+ -
+ {String} options.method
+ Optional, Default: "GET"
+
+
+
+ -
+ {Function} options.onComplete
+
+
+ - Callback to invoke when request is completed
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {XMLHttpRequest} request
+
+
+
+
+
+
+
-
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.setStyle(element, styles)
+
+
+
+ Cross-browser wrapper for setting element's style
+
+
+ Defined in: dom_style.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+
+
+ -
+ {Object} styles
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} Element that was passed as a first argument
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Array}
+ fabric.util.toArray(arrayLike)
+
+
+
+ Converts an array-like object (e.g. arguments or NodeList) to an array
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} arrayLike
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array}
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Number}
+ fabric.util.toFixed(number, fractionDigits)
+
+
+
+ A wrapper around Number#toFixed, which contrary to native method returns number, not string.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number | String} number
+
+
+ - number to operate on
+
+ -
+ {Number} fractionDigits
+
+
+ - number of fraction digits to "leave"
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number}
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.wrapElement(element, wrapper, attributes)
+
+
+
+ Wraps element with another element
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+ - Element to wrap
+
+ -
+ {HTMLElement|String} wrapper
+
+
+ - Element to wrap with
+
+ -
+ {Object} attributes
+ Optional
+
+ - Attributes to set on a wrapper
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} wrapper
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
+
diff --git a/docs/symbols/fabric.util.object.html b/docs/symbols/fabric.util.object.html
index 2611614b..c0a90b2a 100644
--- a/docs/symbols/fabric.util.object.html
+++ b/docs/symbols/fabric.util.object.html
@@ -1,4 +1,5 @@
-
+
@@ -6,342 +7,464 @@
JsDoc Reference - fabric.util.object
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Namespace fabric.util.object
+
+
+
+
+
+
+
+ fabric.util.object
+
+
+
Defined in: lang_object.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.util.object.clone(object)
+
+ Creates an empty object and copies all enumerable properties of another object to it
+
+
+
+
+ <static>
+
+ fabric.util.object.extend(destination, source)
+
+ Copies all enumerable properties of one object to another
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.util.object.clone(object)
+
+
+
+ Creates an empty object and copies all enumerable properties of another object to it
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+ - Object to clone
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.object.extend(destination, source)
+
+
+
+ Copies all enumerable properties of one object to another
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} destination
+
+
+ - Where to copy to
+
+ -
+ {Object} source
+
+
+ - Where to copy from
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Namespace fabric .util .object
-
-
-
- fabric.util.object
-
-
-
-
-
-
-
-
- - Defined in: lang_object.js
-
-
-
-
-
-
-
-
-
- Namespace Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.util.object.clone(object)
-
- Creates an empty object and copies all enumerable properties of another object to it
-
-
-
-
- <static>
-
- fabric.util.object.extend(destination, source)
-
- Copies all enumerable properties of one object to another
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.object.clone(object)
-
-
-
- Creates an empty object and copies all enumerable properties of another object to it
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
- - Object to clone
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.object.extend(destination, source)
-
-
-
- Copies all enumerable properties of one object to another
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} destination
-
-
- - Where to copy to
-
- -
- {Object} source
-
-
- - Where to copy from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.util.string.html b/docs/symbols/fabric.util.string.html
index 50a1c219..d0846484 100644
--- a/docs/symbols/fabric.util.string.html
+++ b/docs/symbols/fabric.util.string.html
@@ -1,4 +1,5 @@
-
+
@@ -6,378 +7,472 @@
JsDoc Reference - fabric.util.string
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Namespace fabric.util.string
+
+
+
+
+
+
+
+
+
+
+
Defined in: lang_string.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.util.string.camelize(string)
+
+ Camelizes a string
+
+
+
+
+ <static>
+
+ fabric.util.string.capitalize(string)
+
+ Capitalizes a string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+ {String}
+ fabric.util.string.camelize(string)
+
+
+
+ Camelizes a string
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} string
+
+
+ - String to camelize
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} Camelized version of a string
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {String}
+ fabric.util.string.capitalize(string)
+
+
+
+ Capitalizes a string
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} string
+
+
+ - String to capitalize
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} Capitalized version of a string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Namespace fabric .util .string
-
-
-
-
-
-
-
-
-
-
-
-
- - Defined in: lang_string.js
-
-
-
-
-
-
-
-
-
- Namespace Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.util.string.camelize(string)
-
- Camelizes a string
-
-
-
-
- <static>
-
- fabric.util.string.capitalize(string)
-
- Capitalizes a string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
- Camelizes a string
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} string
-
-
- - String to camelize
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} Camelized version of a string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Capitalizes a string
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} string
-
-
- - String to capitalize
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} Capitalized version of a string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/src/src_circle.class.js.html b/docs/symbols/src/src_circle.class.js.html
index 0e78bb5a..1433b6b5 100644
--- a/docs/symbols/src/src_circle.class.js.html
+++ b/docs/symbols/src/src_circle.class.js.html
@@ -24,110 +24,113 @@
17 */
18 fabric.Circle = fabric.util.createClass(fabric.Object, /** @scope fabric.Circle.prototype */ {
19
- 20 /** @property */
- 21 type: 'circle',
- 22
- 23 /**
- 24 * Constructor
- 25 * @method initialize
- 26 * @param {Object} [options] Options object
- 27 * @return {fabric.Circle} thisArg
- 28 */
- 29 initialize: function(options) {
- 30 options = options || { };
- 31
- 32 this.set('radius', options.radius || 0);
- 33 this.callSuper('initialize', options);
+ 20 /**
+ 21 * @property
+ 22 * @type String
+ 23 */
+ 24 type: 'circle',
+ 25
+ 26 /**
+ 27 * Constructor
+ 28 * @method initialize
+ 29 * @param {Object} [options] Options object
+ 30 * @return {fabric.Circle} thisArg
+ 31 */
+ 32 initialize: function(options) {
+ 33 options = options || { };
34
- 35 var radiusBy2ByScale = this.get('radius') * 2 * this.get('scaleX');
- 36 this.set('width', radiusBy2ByScale).set('height', radiusBy2ByScale);
- 37 },
- 38
- 39 /**
- 40 * Returns object representation of an instance
- 41 * @method toObject
- 42 * @return {Object} object representation of an instance
- 43 */
- 44 toObject: function() {
- 45 return extend(this.callSuper('toObject'), {
- 46 radius: this.get('radius')
- 47 });
- 48 },
- 49
- 50 /**
- 51 * @private
- 52 * @method _render
- 53 * @param ctx {CanvasRenderingContext2D} context to render on
- 54 */
- 55 _render: function(ctx, noTransform) {
- 56 ctx.beginPath();
- 57 ctx.arc(noTransform ? this.left : 0, noTransform ? this.top : 0, this.radius, 0, piBy2, false);
- 58 ctx.closePath();
- 59 if (this.fill) {
- 60 ctx.fill();
- 61 }
- 62 if (this.stroke) {
- 63 ctx.stroke();
+ 35 this.set('radius', options.radius || 0);
+ 36 this.callSuper('initialize', options);
+ 37
+ 38 var radiusBy2ByScale = this.get('radius') * 2 * this.get('scaleX');
+ 39 this.set('width', radiusBy2ByScale).set('height', radiusBy2ByScale);
+ 40 },
+ 41
+ 42 /**
+ 43 * Returns object representation of an instance
+ 44 * @method toObject
+ 45 * @return {Object} object representation of an instance
+ 46 */
+ 47 toObject: function() {
+ 48 return extend(this.callSuper('toObject'), {
+ 49 radius: this.get('radius')
+ 50 });
+ 51 },
+ 52
+ 53 /**
+ 54 * @private
+ 55 * @method _render
+ 56 * @param ctx {CanvasRenderingContext2D} context to render on
+ 57 */
+ 58 _render: function(ctx, noTransform) {
+ 59 ctx.beginPath();
+ 60 ctx.arc(noTransform ? this.left : 0, noTransform ? this.top : 0, this.radius, 0, piBy2, false);
+ 61 ctx.closePath();
+ 62 if (this.fill) {
+ 63 ctx.fill();
64 }
- 65 },
- 66
- 67
- 68 /**
- 69 * Returns complexity of an instance
- 70 * @method complexity
- 71 * @return {Number} complexity of this instance
- 72 */
- 73 complexity: function() {
- 74 return 1;
- 75 }
- 76 });
- 77
- 78 /**
- 79 * List of attribute names to account for when parsing SVG element (used by `fabric.Circle.fromElement`)
- 80 * @static
- 81 * @see: http://www.w3.org/TR/SVG/shapes.html#CircleElement
- 82 */
- 83 fabric.Circle.ATTRIBUTE_NAMES = 'cx cy r fill fill-opacity stroke stroke-width transform'.split(' ');
- 84
- 85 /**
- 86 * Returns fabric.Circle instance from an SVG element
- 87 * @static
- 88 * @method fabric.Circle.fromElement
- 89 * @param element {SVGElement} element to parse
- 90 * @param options {Object} options object
- 91 * @throws {Error} If value of `r` attribute is missing or invalid
- 92 * @return {Object} instance of fabric.Circle
- 93 */
- 94 fabric.Circle.fromElement = function(element, options) {
- 95 options || (options = { });
- 96 var parsedAttributes = fabric.parseAttributes(element, fabric.Circle.ATTRIBUTE_NAMES);
- 97 if (!isValidRadius(parsedAttributes)) {
- 98 throw Error('value of `r` attribute is required and can not be negative');
- 99 }
-100 if ('left' in parsedAttributes) {
-101 parsedAttributes.left -= (options.width / 2) || 0;
+ 65 if (this.stroke) {
+ 66 ctx.stroke();
+ 67 }
+ 68 },
+ 69
+ 70
+ 71 /**
+ 72 * Returns complexity of an instance
+ 73 * @method complexity
+ 74 * @return {Number} complexity of this instance
+ 75 */
+ 76 complexity: function() {
+ 77 return 1;
+ 78 }
+ 79 });
+ 80
+ 81 /**
+ 82 * List of attribute names to account for when parsing SVG element (used by `fabric.Circle.fromElement`)
+ 83 * @static
+ 84 * @see: http://www.w3.org/TR/SVG/shapes.html#CircleElement
+ 85 */
+ 86 fabric.Circle.ATTRIBUTE_NAMES = 'cx cy r fill fill-opacity stroke stroke-width transform'.split(' ');
+ 87
+ 88 /**
+ 89 * Returns fabric.Circle instance from an SVG element
+ 90 * @static
+ 91 * @method fabric.Circle.fromElement
+ 92 * @param element {SVGElement} element to parse
+ 93 * @param options {Object} options object
+ 94 * @throws {Error} If value of `r` attribute is missing or invalid
+ 95 * @return {Object} instance of fabric.Circle
+ 96 */
+ 97 fabric.Circle.fromElement = function(element, options) {
+ 98 options || (options = { });
+ 99 var parsedAttributes = fabric.parseAttributes(element, fabric.Circle.ATTRIBUTE_NAMES);
+100 if (!isValidRadius(parsedAttributes)) {
+101 throw Error('value of `r` attribute is required and can not be negative');
102 }
-103 if ('top' in parsedAttributes) {
-104 parsedAttributes.top -= (options.height / 2) || 0;
+103 if ('left' in parsedAttributes) {
+104 parsedAttributes.left -= (options.width / 2) || 0;
105 }
-106 return new fabric.Circle(extend(parsedAttributes, options));
-107 };
-108
-109 /**
-110 * @private
-111 */
-112 function isValidRadius(attributes) {
-113 return (('radius' in attributes) && (attributes.radius > 0));
-114 }
-115
-116 /**
-117 * Returns fabric.Circle instance from an object representation
-118 * @static
-119 * @method fabric.Circle.fromObject
-120 * @param {Object} object Object to create an instance from
-121 * @return {Object} Instance of fabric.Circle
-122 */
-123 fabric.Circle.fromObject = function(object) {
-124 return new fabric.Circle(object);
-125 }
-126 })();
- Image -
- - - --
-
-
-
-
- Defined in: image.class.js - - -
- Extends - fabric.Object - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - |
-
- fabric.Image()
-
-
- |
-
| Field Attributes | -Field Name and Description | -
|---|---|
| - |
-
- active
-
-
- |
-
| - |
-
- bordervisibility
-
-
- |
-
| - |
-
- cornervisibility
-
-
- |
-
| <static> | -
-
- fabric.Image.CSS_CANVAS
-
- Default CSS class name for canvas
- |
-
| - |
-
- maxheight
-
-
- |
-
| - |
-
- maxwidth
-
-
- |
-
| - |
-
- type
-
-
- |
-
-
-
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties -
| Method Attributes | -Method Name and Description | -
|---|---|
| - |
- clone(callback)
-
- Returns a clone of an instance
- |
-
| - |
- complexity()
-
- Returns complexity of an instance
- |
-
| <static> | -
- fabric.Image.fromObject(object, callback)
-
- Creates an instance of fabric.Image from its object representation
- |
-
| <static> | -
- fabric.Image.fromURL(url, callback, imgOptions)
-
- Creates an instance of fabric.Image from an URL string
- |
-
| - |
- getElement()
-
- Returns image element which this instance if based on
- |
-
| - |
- getNormalizedSize(oImg, maxwidth, maxheight)
-
- Resizes an image depending on whether maxwidth and maxheight are set up;
-Width and height have to mantain the same proportion in the final image as it was in the initial one.
- |
-
| - |
- getOriginalSize()
-
- Returns original size of an image
- |
-
| - |
- getSrc()
-
- Returns source of an image
- |
-
| - |
- initialize(element, options)
-
- Constructor
- |
-
| - |
- render(ctx, noTransform)
-
- Renders image on a specified context
- |
-
| - |
- setBorderVisibility(visible)
-
- Sets border visibility
- |
-
| - |
- setCornersVisibility(visible)
-
- Sets corner visibility
- |
-
| - |
- setElement(element)
-
- Sets image element for this instance to a specified one
- |
-
| - |
- toGrayscale(callback)
-
- Makes image grayscale
- |
-
| - |
- toObject()
-
- Returns object representation of an instance
- |
-
| - |
- toString()
-
- Returns string representation of an instance
- |
-
-
-
- Methods borrowed from class fabric.Object:
- callSuper, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toJSON, transform -
- - - -
+ +
-
-
-
- Parameters: - -
- - {Function} callback - - -
- Callback is invoked with a clone as a first argument - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Number} complexity - - - - - - - -
-
-
- Parameters: - -
- - object - - -
- {Object} - -
- - callback - - -
- {Function} optional - -
+ + +
-
-
- Parameters: - -
- - {String} url - - -
- URL to create an image from - -
- - {Function} callback - Optional - -
- Callback to invoke when image is created (newly created image is passed as a first argument) - -
- - {Object} imgOptions - Optional - -
- Options object - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {HTMLImageElement} image element - - - - - - - -
+ + +
+ + +
-
+
- Parameters: - - -
- + {Function} callback - + +
- Callback is invoked with a clone as a first argument + + + + + + + + + + +
- Returns: + +
- {Number} complexity + +
- Parameters: + +
- + object + +
- {Object} + +
- + callback + +
- {Function} optional + +
- Parameters: + +
- + {String} url - getNormalizedSize(oImg, maxwidth, maxheight) -
- URL to create an image from + +
- + {Function} callback + Optional + +
- Callback to invoke when image is created (newly created image is passed as a first argument) + +
- + {Object} imgOptions + Optional + +
- Options object + + + + + + + + + + +
- Returns: + +
- {HTMLImageElement} image element + +
- Parameters: - -
- - {Object} oImg - - - - -
- - {Number} maxwidth - - -
- maximum width of the image (in px) - -
- - {Number} maxheight - - -
- maximum height of the image (in px) - -
- Returns: - -
- {Object} object with "width" and "height" properties - - - - - - - -
- Returns: - -
- {String} Source of an image - - - - - - - -
- Parameters: - -
- - {HTMLImageElement | String} element - - -
- Image element - -
- - {Object} options - - -
- optional - -
- Parameters: - -
- - {CanvasRenderingContext2D} ctx - - -
- Context to render on - -
- - noTransform - - - - -
- Parameters: - -
- - {Boolean} visible - - -
- When true, border is set to be visible - -
- Parameters: - -
- - {Boolean} visible - - -
- When true, corners are set to be visible - -
- Parameters: - -
- - {HTMLImageElement} element - - - - -
- Returns: - -
- {fabric.Image} thisArg - - - - - - - -
- Parameters: - -
- - {Function} callback - - - - -
- Returns: - -
- {Object} Object representation of an instance - - - - - - - -
- Returns: - -
- {String} String representation of an instance - - - - - - - -
+ + +
-
+
+ + +
-
+
+ + +
-
+
+ + +
-
+
+ + +
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- Parameters: + +
- + {Object} oImg + + + + +
- + {Number} maxwidth + + +
- maximum width of the image (in px) + +
- + {Number} maxheight + + +
- maximum height of the image (in px) + +
+ +
-
+
- Returns: + +
- {Object} object with "width" and "height" properties + +
- + +
-
+
- Returns: + +
- {String} Source of an image + +
-
-
+
- Parameters: + +
- + {HTMLImageElement | String} element + + +
- Image element + +
- + {Object} options + + +
- optional + +
+ + +
-
+
- Parameters: + +
- + {CanvasRenderingContext2D} ctx + + +
- Context to render on + +
- + noTransform + + + + +
+ + +
-
+
- Parameters: + +
- + {Boolean} visible + + +
- When true, border is set to be visible + +
+ + +
-
+
- Parameters: + +
- + {Boolean} visible + + +
- When true, corners are set to be visible + +
+ + +
-
+
- Parameters: + +
- + {HTMLImageElement} element + + + + +
-
+
- Returns: + +
- {fabric.Image} thisArg + +
+ + +
-
+
- Parameters: + +
- + {Function} callback + + + + +
+ + +
-
+
- Returns: + +
- {Object} Object representation of an instance + +
+ + +
-
+
- Returns: + +
- {String} String representation of an instance + +
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Class fabric.Intersection +
+ + +
+
+
+
+ Intersection
+
+
+
Defined in: intersection.class.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ fabric.Intersection(status)
+
+
+ |
+
| Method Attributes | +Method Name and Description | +
|---|---|
| + |
+ appendPoint(status)
+
+
+ |
+
| + |
+ appendPoints(status)
+
+
+ |
+
| + |
+ init(status)
+
+
+ |
+
| <static> | +
+ fabric.Intersection.intersectLineLine(a1, a2, b1, b2)
+
+
+ |
+
| <static> | +
+ fabric.Intersection.intersectLinePolygon(a1, a2, points)
+
+
+ |
+
| <static> | +
+ fabric.Intersection.intersectPolygonPolygon(points1, points2)
+
+
+ |
+
| <static> | +
+ fabric.Intersection.intersectPolygonRectangle(points, r1, r2)
+
+
+ |
+
-
+
- Parameters: + +
- + status + + + + +
- HTML template: Codeview 1.1.1 -
-
+
- Parameters: + +
- + {String} status + + + + +
+ + +
-
+
- Parameters: + +
- + {String} status + + + + +
+ + +
-
+
- Parameters: + +
- + {String} status + + + + +
+ + +
-
+
- Parameters: + +
- + a1 + + + + +
- + a2 + + + + +
- + b1 + + + + +
- + b2 + + + + +
+ + +
-
+
- Parameters: + +
- + a1 + + + + +
- + a2 + + + + +
- + points + + + + +
+ + +
-
+
- Parameters: + +
- + points1 + + + + +
- + points2 + + + + +
+ + +
-
+
- Parameters: + +
- + points + + + + +
- + r1 + + + + +
- + r2 + + + + +
- - Class fabric .Intersection -
- -- Intersection -
- - - --
-
-
-
-
- Defined in: intersection.class.js - - - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - |
-
- fabric.Intersection(status)
-
-
- |
-
| Method Attributes | -Method Name and Description | -
|---|---|
| - |
- appendPoint(status)
-
-
- |
-
| - |
- appendPoints(status)
-
-
- |
-
| - |
- init(status)
-
-
- |
-
| <static> | -
- fabric.Intersection.intersectLineLine(a1, a2, b1, b2)
-
-
- |
-
| <static> | -
- fabric.Intersection.intersectLinePolygon(a1, a2, points)
-
-
- |
-
| <static> | -
- fabric.Intersection.intersectPolygonPolygon(points1, points2)
-
-
- |
-
| <static> | -
- fabric.Intersection.intersectPolygonRectangle(points, r1, r2)
-
-
- |
-
-
-
- Parameters: - -
- - {String} status - - - - -
-
-
- Parameters: - -
- - {String} status - - - - -
-
-
- Parameters: - -
- - {String} status - - - - -
-
-
- Parameters: - -
- - a1 - - - - -
- - a2 - - - - -
- - b1 - - - - -
- - b2 - - - - -
-
-
- Parameters: - -
- - a1 - - - - -
- - a2 - - - - -
- - points - - - - -
-
-
- Parameters: - -
- - points1 - - - - -
- - points2 - - - - -
-
-
- Parameters: - -
- - points - - - - -
- - r1 - - - - -
- - r2 - - - - -
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Class fabric.Line +
+ + +
+
+
Extends
+ fabric.Object.
+
+
+ Line
+
+
+
Defined in: line.class.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ fabric.Line()
+
+
+ |
+
| Field Attributes | +Field Name and Description | +
|---|---|
| <static> | +
+
+ fabric.Line.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Line.fromElement`)
+ |
+
| + |
+
+ type
+
+
+ |
+
-
+
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties +
| Method Attributes | +Method Name and Description | +
|---|---|
| + |
+ complexity()
+
+ Returns complexity of an instance
+ |
+
| <static> | +
+ fabric.Line.fromElement(element, options)
+
+ Returns fabric.Line instance from an SVG element
+ |
+
| <static> | +
+ fabric.Line.fromObject(object)
+
+ Returns fabric.Line instance from an object representation
+ |
+
| + |
+ initialize(points, options)
+
+ Constructor
+ |
+
| + |
+ toObject()
+
+ Returns object representation of an instance
+ |
+
-
+
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform +
- HTML template: Codeview 1.1.1 -
-
+
- See: + +
- http://www.w3.org/TR/SVG/shapes.html#LineElement + +
+ + +
-
+
- Returns: + +
- {Number} complexity + +
+ + +
-
+
- Parameters: + +
- + {SVGElement} element + + +
- Element to parse + +
- + {Object} options + Optional + +
- Options object + +
-
+
- Returns: + +
- {fabric.Line} instance of fabric.Line + +
+ + +
-
+
- Parameters: + +
- + {Object} object + + +
- Object to create an instance from + +
-
+
- Returns: + +
- {fabric.Line} instance of fabric.Line + +
+ + +
-
+
- Parameters: + +
- + {Array} points + + +
- Array of points + +
- + {Object} options + Optional + +
- Options object + +
-
+
- Returns: + +
- {fabric.Line} thisArg + +
+ + +
-
+
- Returns: + +
- {Object} + +
- - Class fabric .Line -
- -- Line -
- - - --
-
-
-
-
- Defined in: line.class.js - - -
- Extends - fabric.Object - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - |
-
- fabric.Line()
-
-
- |
-
| Field Attributes | -Field Name and Description | -
|---|---|
| - |
-
- type
-
-
- |
-
-
-
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties -
| Method Attributes | -Method Name and Description | -
|---|---|
| - |
- complexity()
-
-
- |
-
| <static> | -
- fabric.Line.fromElement(element, options)
-
-
- |
-
| <static> | -
- fabric.Line.fromObject(object)
-
-
- |
-
| - |
- initialize(points, options)
-
- Constructor
- |
-
| - |
- toObject()
-
- Returns object representation of an instance
- |
-
-
-
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Number} complexity - - - - - - - -
-
-
- Parameters: - -
- - {SVGElement} element - - -
- Element to parse - -
- - {Object} options - Optional - -
- Options object - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Line} instance of fabric.Line - - - - - - - -
-
-
- Parameters: - -
- - {Object} object - - -
- Object to create an instance from - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Line} instance of fabric.Line - - - - - - - -
-
-
- Parameters: - -
- - {Array} points - - -
- Array of points - -
- - {Object} options - Optional - -
- Options object - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Line} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} - - - - - - - -
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Class fabric.Object +
+ + +
+
+
+
+ Object
+
+
+
Defined in: object.class.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ fabric.Object()
+
+
+ |
+
| Field Attributes | +Field Name and Description | +
|---|---|
| <constant> | +
+
+ FX_DURATION
+
+
+ |
+
| <constant> | +
+
+ FX_TRANSITION
+
+
+ |
+
| + | + + + | +
| <constant> | +
+
+ MIN_SCALE_LIMIT
+
+
+ |
+
| <constant> | ++ + + | +
| + |
+
+ options
+
+
+ |
+
| + |
+
+ rotate
+
+
+ |
+
| + |
+
+ stateProperties
+
+ List of properties to consider when checking if state of an object is changed (fabric.Object#hasStateChanged);
+as well as for history (undo/redo) purposes
+ |
+
| + |
+
+ type
+
+
+ |
+
| Method Attributes | +Method Name and Description | +
|---|---|
| + |
+ callSuper(methodName)
+
+
+ |
+
| + |
+ clone(options)
+
+ Clones an instance
+ |
+
| + |
+ cloneAsImage(callback)
+
+ Creates an instance of fabric.Image out of an object
+ |
+
| + |
+ complexity()
+
+
+ |
+
| + |
+ drawBorders(ctx)
+
+ Draws borders of an object's bounding box.
+ |
+
| + |
+ drawCorners(ctx)
+
+ Draws corners of an object's bounding box.
+ |
+
| + |
+ fxRemove(callbacks)
+
+
+ |
+
| + |
+ fxStraighten(callbacks)
+
+
+ |
+
| + |
+ get(property)
+
+ Basic getter
+ |
+
| + |
+ getAngle()
+
+ Returns object's angle value
+ |
+
| + |
+ getCenter()
+
+
+ |
+
| + |
+ getHeight()
+
+ Returns height of an object
+ |
+
| + |
+ getWidth()
+
+ Returns width of an object
+ |
+
| + |
+ hasStateChanged()
+
+
+ |
+
| + |
+ initialize(options)
+
+ Constructor
+ |
+
| + |
+ intersectsWithObject(other)
+
+ Returns true if object intersects with another object
+ |
+
| + |
+ intersectsWithRect(selectionTL, selectionBR)
+
+ Returns true if object intersects with an area formed by 2 points
+ |
+
| + |
+ isActive()
+
+ Returns true if an object is in its active state
+ |
+
| + |
+ isContainedWithinRect(selectionTL, selectionBR)
+
+ Returns true if object is fully contained within area formed by 2 points
+ |
+
| + |
+ isType(type)
+
+
+ |
+
| + |
+ render(ctx, noTransform)
+
+
+ |
+
| + |
+ saveState()
+
+
+ |
+
| + |
+ scale(value)
+
+ Scales an object (equally by x and y)
+ |
+
| + |
+ scaleToHeight(value)
+
+ Scales an object to a given height (scaling by x/y equally)
+ |
+
| + |
+ scaleToWidth(value)
+
+ Scales an object to a given width (scaling by x/y equally)
+ |
+
| + |
+ set(property, value)
+
+ Basic setter
+ |
+
| + |
+ setActive(active)
+
+ Sets state of an object - `true` makes it active, `false` - inactive
+ |
+
| + |
+ setAngle(value)
+
+ Sets object's angle
+ |
+
| + |
+ setCoords()
+
+ Sets corner position coordinates based on current angle, width and height.
+ |
+
| + |
+ setOpacity(value)
+
+ Sets object opacity
+ |
+
| + |
+ setOptions(options)
+
+
+ |
+
| + |
+ setSourcePath(value)
+
+
+ |
+
| + |
+ straighten()
+
+
+ |
+
| + |
+ toDatalessObject()
+
+ Returns (dataless) object representation of an instance
+ |
+
| + |
+ toDataURL()
+
+ Converts an object into a data-url-like string
+ |
+
| + |
+ toggle(property)
+
+ Toggles specified property from `true` to `false` or from `false` to `true`
+ |
+
| + |
+ toGrayscale()
+
+ Makes object's color grayscale
+ |
+
| + |
+ toJSON()
+
+ Returns a JSON representation of an instance
+ |
+
| + |
+ toObject()
+
+ Returns an object representation of an instance
+ |
+
| + |
+ toString()
+
+ Returns a string representation of an instance
+ |
+
| + |
+ transform(ctx)
+
+
+ |
+
- HTML template: Codeview 1.1.1 -
+
+ <constant>
+
+ {Number}
+ FX_DURATION
- Class fabric .Object
-
-
-
- Object
-
-
-
-
-
-
-
-
- - Defined in: object.class.js
-
-
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Object()
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
- <constant>
-
-
- FX_DURATION
-
-
-
-
-
-
- <constant>
-
-
- FX_TRANSITION
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <constant>
-
-
- MIN_SCALE_LIMIT
-
-
-
-
-
-
- <constant>
-
-
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-
-
-
-
- rotate
-
-
-
-
-
-
-
-
-
- stateProperties
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- callSuper(methodName)
-
-
-
-
-
-
-
-
- clone(options)
-
- Clones an instance
-
-
-
-
-
-
- cloneAsImage(callback)
-
- Creates an instance of fabric.Image out of an object
-
-
-
-
-
-
- complexity()
-
-
-
-
-
-
-
-
- drawBorders(ctx)
-
- Draws borders of an object's bounding box.
-
-
-
-
-
-
- drawCorners(ctx)
-
- Draws corners of an object's bounding box.
-
-
-
-
-
-
- fxRemove(callbacks)
-
-
-
-
-
-
-
-
- fxStraighten(callbacks)
-
-
-
-
-
-
-
-
- get(property)
-
- Basic getter
-
-
-
-
-
-
- getAngle()
-
- Returns object's angle value
-
-
-
-
-
-
- getCenter()
-
-
-
-
-
-
-
-
- getHeight()
-
- Returns height of an object
-
-
-
-
-
-
- getWidth()
-
- Returns width of an object
-
-
-
-
-
-
- hasStateChanged()
-
-
-
-
-
-
-
-
- initialize(options)
-
- Constructor
-
-
-
-
-
-
- intersectsWithObject(other)
-
- Returns true if object intersects with another object
-
-
-
-
-
-
- intersectsWithRect(selectionTL, selectionBR)
-
- Returns true if object intersects with an area formed by 2 points
-
-
-
-
-
-
- isActive()
-
- Returns true if an object is in its active state
-
-
-
-
-
-
- isContainedWithinRect(selectionTL, selectionBR)
-
- Returns true if object is fully contained within area formed by 2 points
-
-
-
-
-
-
- isType(type)
-
-
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
-
-
-
-
-
- saveState()
-
-
-
-
-
-
-
-
- scale(value)
-
- Scales an object (equally by x and y)
-
-
-
-
-
-
- scaleToHeight(value)
-
- Scales an object to a given height (scaling by x/y equally)
-
-
-
-
-
-
- scaleToWidth(value)
-
- Scales an object to a given width (scaling by x/y equally)
-
-
-
-
-
-
- set(property, value)
-
- Basic setter
-
-
-
-
-
-
- setActive(active)
-
- Sets state of an object - `true` makes it active, `false` - inactive
-
-
-
-
-
-
- setAngle(value)
-
- Sets object's angle
-
-
-
-
-
-
- setCoords()
-
- Sets corner position coordinates based on current angle, width and height.
-
-
-
-
-
-
- setOpacity(value)
-
- Sets object opacity
-
-
-
-
-
-
- setOptions(options)
-
-
-
-
-
-
-
-
- setSourcePath(value)
-
-
-
-
-
-
-
-
- straighten()
-
-
-
-
-
-
-
-
- toDatalessObject()
-
-
-
-
-
-
-
-
- toDataURL()
-
- Converts an object into a data-url-like string
-
-
-
-
-
-
- toggle(property)
-
- Toggles specified property from `true` to `false` or from `false` to `true`
-
-
-
-
-
-
- toGrayscale()
-
- Makes object's color grayscale
-
-
-
-
-
-
- toJSON()
-
- Returns a JSON representation of an instance
-
-
-
-
-
-
- toObject()
-
- Returns an object representation of an instance
-
-
-
-
-
-
- toString()
-
- Returns a string representation of an instance
-
-
-
-
-
-
- transform(ctx)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
- <constant>
-
-
- {Number}
-
- FX_DURATION
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <constant>
-
-
- {String}
-
- FX_TRANSITION
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- includeDefaultValues
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <constant>
-
-
- {Number}
-
- MIN_SCALE_LIMIT
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <constant>
-
-
- {Number}
-
- NUM_FRACTION_DIGITS
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- options
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- rotate
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Array}
-
- stateProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ <constant>
+
+ {String}
+ FX_TRANSITION
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ includeDefaultValues
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
- callSuper(methodName)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} methodName
-
-
-
-
-
-
-
-
+
+ <constant>
+
+ {Number}
+ MIN_SCALE_LIMIT
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- clone(options)
-
-
-
- Clones an instance
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} options
-
-
- - object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} clone of an instance
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- cloneAsImage(callback)
-
-
-
- Creates an instance of fabric.Image out of an object
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- callback
-
-
- - {Function} callback, invoked with an instance as a first argument
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
+
+
+
+ <constant>
+
+ {Number}
+ NUM_FRACTION_DIGITS
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number}
-
-
-
-
-
-
-
-
-
+
+
+
+
-
+
+
+
+
+
+ {Object}
+ options
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rotate
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Array}
+ stateProperties
+
+
+
+ List of properties to consider when checking if state of an object is changed (fabric.Object#hasStateChanged);
+as well as for history (undo/redo) purposes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+
+ callSuper(methodName)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
+ -
+ {String} methodName
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ clone(options)
+
+
+
+ Clones an instance
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} options
- {fabric.Object}
+
+ - object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} clone of an instance
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ cloneAsImage(callback)
+
+
+
+ Creates an instance of fabric.Image out of an object
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ callback
- drawBorders(ctx)
-
-
-
- Draws borders of an object's bounding box.
+
+ - {Function} callback, invoked with an instance as a first argument
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number}
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ drawBorders(ctx)
+
+
+
+ Draws borders of an object's bounding box.
Requires public properties: width, height
Requires public options: padding, borderColor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - Context to draw on
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
+ -
+ {CanvasRenderingContext2D} ctx
-
-
- {fabric.Object}
-
- drawCorners(ctx)
-
-
-
- Draws corners of an object's bounding box.
+
+ - Context to draw on
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ drawCorners(ctx)
+
+
+
+ Draws corners of an object's bounding box.
Requires public properties: width, height, scaleX, scaleY
Requires public options: cornersize, padding
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - Context to draw on
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- fxRemove(callbacks)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} callbacks
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- fxStraighten(callbacks)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} callbacks
-
-
- - - onComplete: invoked on completion
- - onChange: invoked on every step of animation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Any}
-
- get(property)
-
-
-
- Basic getter
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Any} property
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Any} value of a property
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- getAngle()
-
-
-
- Returns object's angle value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} angle value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- getCenter()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object with `x`, `y` properties corresponding to path center coordinates
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- getHeight()
-
-
-
- Returns height of an object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} height value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- getWidth()
-
-
-
- Returns width of an object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} width value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- hasStateChanged()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if instance' state has changed
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- initialize(options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- intersectsWithObject(other)
-
-
-
- Returns true if object intersects with another object
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} other
-
-
- - Object to test
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- intersectsWithRect(selectionTL, selectionBR)
-
-
-
- Returns true if object intersects with an area formed by 2 points
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} selectionTL
-
-
-
-
- -
- {Object} selectionBR
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- isActive()
-
-
-
- Returns true if an object is in its active state
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if an object is in its active state
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- isContainedWithinRect(selectionTL, selectionBR)
-
-
-
- Returns true if object is fully contained within area formed by 2 points
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} selectionTL
-
-
-
-
- -
- {Object} selectionBR
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- isType(type)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- type
-
-
- - {String} type to check against
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if specified type is identical to the type of instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - context to render on
-
- -
- {Boolean} noTransform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- saveState()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- scale(value)
-
-
-
- Scales an object (equally by x and y)
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} scale factor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- scaleToHeight(value)
-
-
-
- Scales an object to a given height (scaling by x/y equally)
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} new height value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- scaleToWidth(value)
-
-
-
- Scales an object to a given width (scaling by x/y equally)
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} new width value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- set(property, value)
-
-
-
- Basic setter
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Any} property
-
-
-
-
- -
- {Any} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- setActive(active)
-
-
-
- Sets state of an object - `true` makes it active, `false` - inactive
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Boolean} active
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- setAngle(value)
-
-
-
- Sets object's angle
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} angle value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setCoords()
-
-
-
- Sets corner position coordinates based on current angle, width and height.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- setOpacity(value)
-
-
-
- Sets object opacity
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- value
-
-
- - {Number} value 0-1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setOptions(options)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} options
- Optional
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- setSourcePath(value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- straighten()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toDatalessObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toDataURL()
-
-
-
- Converts an object into a data-url-like string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} string of data
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- toggle(property)
-
-
-
- Toggles specified property from `true` to `false` or from `false` to `true`
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} property
-
-
- - property to toggle
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Object}
-
- toGrayscale()
-
-
-
- Makes object's color grayscale
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toJSON()
-
-
-
- Returns a JSON representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} json
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns an object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns a string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- transform(ctx)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {CanvasRenderingContext2D} ctx
-
-
- - Context
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - Context to draw on
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ fxRemove(callbacks)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} callbacks
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
-
+
+
+
+ {fabric.Object}
+ fxStraighten(callbacks)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} callbacks
+
+
+ - - onComplete: invoked on completion
+ - onChange: invoked on every step of animation
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
-
+
+
+
+ {Any}
+ get(property)
+
+
+
+ Basic getter
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Any} property
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Any} value of a property
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ getAngle()
+
+
+
+ Returns object's angle value
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} angle value
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ getCenter()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object with `x`, `y` properties corresponding to path center coordinates
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ getHeight()
+
+
+
+ Returns height of an object
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} height value
+
+
+
+
+
+
+
+
+
+
+
+ {Number}
+ getWidth()
+
+
+
+ Returns width of an object
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} width value
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ hasStateChanged()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if instance' state has changed
+
+
+
+
+
+
+
+
+
+
+
+
+ initialize(options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ intersectsWithObject(other)
+
+
+
+ Returns true if object intersects with another object
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} other
+
+
+ - Object to test
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean}
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ intersectsWithRect(selectionTL, selectionBR)
+
+
+
+ Returns true if object intersects with an area formed by 2 points
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} selectionTL
+
+
+
+
+ -
+ {Object} selectionBR
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean}
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ isActive()
+
+
+
+ Returns true if an object is in its active state
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if an object is in its active state
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ isContainedWithinRect(selectionTL, selectionBR)
+
+
+
+ Returns true if object is fully contained within area formed by 2 points
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} selectionTL
+
+
+
+
+ -
+ {Object} selectionBR
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean}
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ isType(type)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ type
+
+
+ - {String} type to check against
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if specified type is identical to the type of instance
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - context to render on
+
+ -
+ {Boolean} noTransform
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ saveState()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ scale(value)
+
+
+
+ Scales an object (equally by x and y)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} scale factor
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ scaleToHeight(value)
+
+
+
+ Scales an object to a given height (scaling by x/y equally)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} new height value
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ scaleToWidth(value)
+
+
+
+ Scales an object to a given width (scaling by x/y equally)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} new width value
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ set(property, value)
+
+
+
+ Basic setter
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Any} property
+
+
+
+
+ -
+ {Any} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ setActive(active)
+
+
+
+ Sets state of an object - `true` makes it active, `false` - inactive
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Boolean} active
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ setAngle(value)
+
+
+
+ Sets object's angle
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} angle value
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ setCoords()
+
+
+
+ Sets corner position coordinates based on current angle, width and height.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ setOpacity(value)
+
+
+
+ Sets object opacity
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ value
+
+
+ - {Number} value 0-1
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ setOptions(options)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} options
+ Optional
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ setSourcePath(value)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ straighten()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ toDatalessObject()
+
+
+
+ Returns (dataless) object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toDataURL()
+
+
+
+ Converts an object into a data-url-like string
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} string of data
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ toggle(property)
+
+
+
+ Toggles specified property from `true` to `false` or from `false` to `true`
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} property
+
+
+ - property to toggle
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Object}
+ toGrayscale()
+
+
+
+ Makes object's color grayscale
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toJSON()
+
+
+
+ Returns a JSON representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} json
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns an object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object}
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns a string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String}
+
+
+
+
+
+
+
+
+
+
+
+
+ transform(ctx)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - Context
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
+
diff --git a/docs/symbols/fabric.Path.html b/docs/symbols/fabric.Path.html
index 748720e7..1963caf1 100644
--- a/docs/symbols/fabric.Path.html
+++ b/docs/symbols/fabric.Path.html
@@ -1,4 +1,5 @@
-
+
@@ -6,856 +7,848 @@
JsDoc Reference - fabric.Path
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Path
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Path
+
+
+
Defined in: path.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Path()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Path.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Path.fromElement`)
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns number representation of an instance complexity
+
+
+
+
+ <static>
+
+ fabric.Path.fromElement(element, options)
+
+ Creates an instance of fabric.Path from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Path.fromObject(object)
+
+ Creates an instance of fabric.Path from an object
+
+
+
+
+
+
+ initialize(path, options)
+
+ Constructor
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+ Renders path on a specified context
+
+
+
+
+
+
+ toDatalessObject()
+
+ Returns dataless object representation of an instance
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+ toString()
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toGrayscale, toJSON, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Path.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Path.fromElement`)
+
+
+
+
+
+
+
+
+
+
+ - See:
+
+ - http://www.w3.org/TR/SVG/paths.html#PathElement
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns number representation of an instance complexity
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Path}
+ fabric.Path.fromElement(element, options)
+
+
+
+ Creates an instance of fabric.Path from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - to parse
+
+ -
+ {Object} options
+
+
+ - object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Path} Instance of fabric.Path
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Path}
+ fabric.Path.fromObject(object)
+
+
+
+ Creates an instance of fabric.Path from an object
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Path} Instance of fabric.Path
+
+
+
+
+
+
+
+
+
+
+
+
+ initialize(path, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array|String} path
+
+
+ - Path data (sequence of coordinates and corresponding "command" tokens)
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx, noTransform)
+
+
+
+ Renders path on a specified context
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - context to render path on
+
+ -
+ {Boolean} noTransform
+
+
+ - When true, context is not transformed
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toDatalessObject()
+
+
+
+ Returns dataless object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object}
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object}
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Path
-
-
-
- Path
-
-
-
-
-
-
-
-
- - Defined in: path.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Path()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns number representation of an instance complexity
-
-
-
-
- <static>
-
- fabric.Path.fromElement(element, options)
-
- Creates an instance of fabric.Path from an SVG element
-
-
-
-
- <static>
-
- fabric.Path.fromObject(object)
-
- Creates an instance of fabric.Path from an object
-
-
-
-
-
-
- initialize(path, options)
-
- Constructor
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
-
-
-
-
-
- set(prop, value)
-
-
-
-
-
-
-
-
- toDatalessObject()
-
-
-
-
-
-
-
-
- toObject()
-
-
-
-
-
-
-
-
- toString()
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toGrayscale, toJSON, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns number representation of an instance complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Creates an instance of fabric.Path from an SVG element
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {SVGElement} element
-
-
- - to parse
-
- -
- {Object} options
-
-
- - object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Path} Instance of fabric.Path
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Creates an instance of fabric.Path from an object
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Path} Instance of fabric.Path
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- initialize(path, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array|String} path
-
-
- - Path data (sequence of coordinates and corresponding "command" tokens)
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx, noTransform)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- ctx
-
-
-
-
- -
- noTransform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- set(prop, value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- prop
-
-
-
-
- -
- value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toDatalessObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.PathGroup.html b/docs/symbols/fabric.PathGroup.html
index 871da9c4..6a8db8ff 100644
--- a/docs/symbols/fabric.PathGroup.html
+++ b/docs/symbols/fabric.PathGroup.html
@@ -1,4 +1,5 @@
-
+
@@ -6,1063 +7,965 @@
JsDoc Reference - fabric.PathGroup
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.PathGroup
+
+
+
+
+
+
Extends
+ fabric.Path.
+
+
+ PathGroup
+
+
+
Defined in: path_group.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.PathGroup()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns number representation of object's complexity
+
+
+
+
+ <static>
+
+ fabric.PathGroup.fromObject(object)
+
+ Creates fabric.Triangle instance from an object representation
+
+
+
+
+
+
+ getObjects()
+
+ Returns all paths in this path group
+
+
+
+
+
+
+ initialize(paths, options)
+
+ Constructor
+
+
+
+
+
+
+ isSameColor()
+
+ Returns true if all paths in this group are of same color
+
+
+
+
+
+
+ render(ctx)
+
+ Renders this group on a specified context
+
+
+
+
+
+
+ set(prop, value)
+
+ Sets certain property to a certain value
+
+
+
+
+
+
+ toDatalessObject()
+
+ Returns dataless object representation of this path group
+
+
+
+
+
+
+ toGrayscale()
+
+ Makes path group grayscale
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of this path group
+
+
+
+
+
+
+ toString()
+
+ Returns a string representation of this path group
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toJSON, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+
+
+ {Boolean}
+ forceFillOverwrite
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns number representation of object's complexity
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.PathGroup}
+ fabric.PathGroup.fromObject(object)
+
+
+
+ Creates fabric.Triangle instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.PathGroup}
+
+
+
+
+
+
+
+
+
+
+
+ {Array}
+ getObjects()
+
+
+
+ Returns all paths in this path group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} array of path objects included in this path group
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.PathGroup}
+ initialize(paths, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} paths
+
+
+
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.PathGroup} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Boolean}
+ isSameColor()
+
+
+
+ Returns true if all paths in this group are of same color
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Boolean} true if all paths are of the same color (`fill`)
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx)
+
+
+
+ Renders this group on a specified context
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {CanvasRenderingContext2D} ctx
+
+
+ - Context to render this instance on
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.PathGroup}
+ set(prop, value)
+
+
+
+ Sets certain property to a certain value
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} prop
+
+
+
+
+ -
+ {Any} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.PathGroup} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toDatalessObject()
+
+
+
+ Returns dataless object representation of this path group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} dataless object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.PathGroup}
+ toGrayscale()
+
+
+
+ Makes path group grayscale
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.PathGroup} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of this path group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns a string representation of this path group
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} string representation of an object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .PathGroup
-
-
-
- PathGroup
-
-
-
-
-
-
-
-
- - Defined in: path_group.class.js
-
-
- - Extends
- fabric.Path
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.PathGroup()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns number representation of object's complexity
-
-
-
-
- <static>
-
- fabric.PathGroup.fromObject(object)
-
-
-
-
-
-
-
-
- getObjects()
-
-
-
-
-
-
-
-
- initialize(paths, options)
-
- Constructor
-
-
-
-
-
-
- initProperties()
-
-
-
-
-
-
-
-
- isSameColor()
-
-
-
-
-
-
-
-
- render(ctx)
-
-
-
-
-
-
-
-
- set(prop, value)
-
-
-
-
-
-
-
-
- toDatalessObject()
-
-
-
-
-
-
-
-
- toGrayscale()
-
- Makes path group grayscale
-
-
-
-
-
-
- toObject()
-
-
-
-
-
-
-
-
- toString()
-
- Returns a string representation of an object
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toJSON, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- forceFillOverwrite
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns number representation of object's complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.PathGroup}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Array}
-
- getObjects()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Array} array of path objects included in this path group
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.PathGroup}
-
- initialize(paths, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} paths
-
-
-
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.PathGroup} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- initProperties()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Boolean}
-
- isSameColor()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean} true if all paths are of the same color (`fill`)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- ctx
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.PathGroup}
-
- set(prop, value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} prop
-
-
-
-
- -
- {Any} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.PathGroup} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toDatalessObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} dataless object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.PathGroup}
-
- toGrayscale()
-
-
-
- Makes path group grayscale
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.PathGroup} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns a string representation of an object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} string representation of an object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Point.html b/docs/symbols/fabric.Point.html
index 3c4da482..e726eccb 100644
--- a/docs/symbols/fabric.Point.html
+++ b/docs/symbols/fabric.Point.html
@@ -1,4 +1,5 @@
-
+
@@ -6,1642 +7,1610 @@
JsDoc Reference - fabric.Point
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Point
+
+
+
+
+
+
+
+
+
+
+
Defined in: point.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Point(x, y)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ add(that)
+
+
+
+
+
+
+
+
+ addEquals(that)
+
+
+
+
+
+
+
+
+ distanceFrom(that)
+
+
+
+
+
+
+
+
+ divide(scalar)
+
+
+
+
+
+
+
+
+ divideEquals(scalar)
+
+
+
+
+
+
+
+
+ eq(that)
+
+
+
+
+
+
+
+
+ gt(that)
+
+
+
+
+
+
+
+
+ gte(that)
+
+
+
+
+
+
+
+
+ init(x, y)
+
+
+
+
+
+
+
+
+ lerp(that, t)
+
+
+
+
+
+
+
+
+ lt(that)
+
+
+
+
+
+
+
+
+ lte(that)
+
+
+
+
+
+
+
+
+ max(that)
+
+
+
+
+
+
+
+
+ min(that)
+
+
+
+
+
+
+
+
+ multiply(scalar)
+
+
+
+
+
+
+
+
+ multiplyEquals(scalar)
+
+
+
+
+
+
+
+
+ scalarAdd(scalar)
+
+
+
+
+
+
+
+
+ scalarAddEquals(scalar, thisArg)
+
+
+
+
+
+
+
+
+ scalarSubtract(scalar)
+
+
+
+
+
+
+
+
+ scalarSubtractEquals(scalar)
+
+
+
+
+
+
+
+
+ setFromPoint(that)
+
+
+
+
+
+
+
+
+ setXY(x, y)
+
+
+
+
+
+
+
+
+ subtract(that)
+
+
+
+
+
+
+
+
+ subtractEquals(that)
+
+
+
+
+
+
+
+
+ swap(that)
+
+
+
+
+
+
+
+
+ toString()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Class Detail
+
+
+
+ fabric.Point(x, y)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} x
+
+
+
+
+ -
+ {Number} y
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} thisArg
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:01 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+
+
+ {fabric.Point}
+ add(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Point} that
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} new Point instance with added values
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Point}
+ addEquals(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Point} that
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ distanceFrom(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ divide(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ divideEquals(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ eq(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ gt(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ gte(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ init(x, y)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} x
+
+
+
+
+ -
+ {Number} y
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ lerp(that, t)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+ -
+ t
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ lt(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ lte(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ max(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ min(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ multiply(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ multiplyEquals(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Point}
+ scalarAdd(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} scalar
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} new Point with added value
+
+
+
+
+
+
+
+
+
+
+
+
+ scalarAddEquals(scalar, thisArg)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} scalar
+
+
+
+
+ -
+ {fabric.Point} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ scalarSubtract(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ scalarSubtractEquals(scalar)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ scalar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setFromPoint(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setXY(x, y)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ x
+
+
+
+
+ -
+ y
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Point}
+ subtract(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Point} that
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} new Point object with subtracted values
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Point}
+ subtractEquals(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {fabric.Point} that
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Point} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ swap(that)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ that
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ toString()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Point
-
-
-
-
-
-
-
-
-
-
-
-
- - Defined in: point.class.js
-
-
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Point(x, y)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- add(that)
-
-
-
-
-
-
-
-
- addEquals(that)
-
-
-
-
-
-
-
-
- distanceFrom(that)
-
-
-
-
-
-
-
-
- divide(scalar)
-
-
-
-
-
-
-
-
- divideEquals(scalar)
-
-
-
-
-
-
-
-
- eq(that)
-
-
-
-
-
-
-
-
- gt(that)
-
-
-
-
-
-
-
-
- gte(that)
-
-
-
-
-
-
-
-
- init(x, y)
-
-
-
-
-
-
-
-
- lerp(that, t)
-
-
-
-
-
-
-
-
- lt(that)
-
-
-
-
-
-
-
-
- lte(that)
-
-
-
-
-
-
-
-
- max(that)
-
-
-
-
-
-
-
-
- min(that)
-
-
-
-
-
-
-
-
- multiply(scalar)
-
-
-
-
-
-
-
-
- multiplyEquals(scalar)
-
-
-
-
-
-
-
-
- scalarAdd(scalar)
-
-
-
-
-
-
-
-
- scalarAddEquals(scalar, thisArg)
-
-
-
-
-
-
-
-
- scalarSubtract(scalar)
-
-
-
-
-
-
-
-
- scalarSubtractEquals(scalar)
-
-
-
-
-
-
-
-
- setFromPoint(that)
-
-
-
-
-
-
-
-
- setXY(x, y)
-
-
-
-
-
-
-
-
- subtract(that)
-
-
-
-
-
-
-
-
- subtractEquals(that)
-
-
-
-
-
-
-
-
- swap(that)
-
-
-
-
-
-
-
-
- toString()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Class Detail
-
-
-
- fabric.Point(x, y)
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} x
-
-
-
-
- -
- {Number} y
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- add(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Point} that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} new Point instance with added values
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- addEquals(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Point} that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- distanceFrom(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- divide(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- divideEquals(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- eq(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- gt(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- gte(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- init(x, y)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} x
-
-
-
-
- -
- {Number} y
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- lerp(that, t)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
- -
- t
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- lt(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- lte(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- max(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- min(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- multiply(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- multiplyEquals(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- scalarAdd(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} new Point with added value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- scalarAddEquals(scalar, thisArg)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} scalar
-
-
-
-
- -
- {fabric.Point} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- scalarSubtract(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- scalarSubtractEquals(scalar)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- scalar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setFromPoint(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- setXY(x, y)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- x
-
-
-
-
- -
- y
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- subtract(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Point} that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} new Point object with subtracted values
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Point}
-
- subtractEquals(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {fabric.Point} that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Point} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- swap(that)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- that
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- toString()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Polygon.html b/docs/symbols/fabric.Polygon.html
index 83c1b066..de5d4144 100644
--- a/docs/symbols/fabric.Polygon.html
+++ b/docs/symbols/fabric.Polygon.html
@@ -1,4 +1,5 @@
-
+
@@ -6,688 +7,715 @@
JsDoc Reference - fabric.Polygon
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Polygon
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Polygon
+
+
+
Defined in: polygon.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Polygon()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Polygon.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Polygon.fromElement`)
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns complexity of an instance
+
+
+
+
+ <static>
+
+ fabric.Polygon.fromElement(element, options)
+
+ Returns fabric.Polygon instance from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Polygon.fromObject(object)
+
+ Returns fabric.Polygon instance from an object representation
+
+
+
+
+
+
+ initialize(points, options)
+
+ Constructor
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Polygon.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Polygon.fromElement`)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity of this instance
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Polygon}
+ fabric.Polygon.fromElement(element, options)
+
+
+
+ Returns fabric.Polygon instance from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - Element to parse
+
+ -
+ {Object} options
+
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Polygon}
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Polygon}
+ fabric.Polygon.fromObject(object)
+
+
+
+ Returns fabric.Polygon instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+ - Object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Polygon}
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Polygon}
+ initialize(points, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} points
+
+
+ - Array of points
+
+ -
+ {Object} options
+
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Polygon} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Polygon
-
-
-
- Polygon
-
-
-
-
-
-
-
-
- - Defined in: polygon.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Polygon()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
- <static>
-
-
- fabric.Polygon.ATTRIBUTE_NAMES
-
- List of attribute names to account for when parsing SVG element (used by `fabric.Polygon.fromElement`)
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns complexity of an instance
-
-
-
-
- <static>
-
- fabric.Polygon.fromElement(element, options)
-
- Returns fabric.Polygon instance from an SVG element
-
-
-
-
- <static>
-
- fabric.Polygon.fromObject(object)
-
- Returns fabric.Polygon instance from an object representation
-
-
-
-
-
-
- initialize(points, options)
-
- Constructor
-
-
-
-
-
-
- toObject()
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.Polygon.ATTRIBUTE_NAMES
-
-
-
- List of attribute names to account for when parsing SVG element (used by `fabric.Polygon.fromElement`)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns complexity of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity of this instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Returns fabric.Polygon instance from an SVG element
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {SVGElement} element
-
-
- - Element to parse
-
- -
- {Object} options
-
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Polygon}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Returns fabric.Polygon instance from an object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
- - Object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Polygon}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Polygon}
-
- initialize(points, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} points
-
-
- - Array of points
-
- -
- {Object} options
-
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Polygon} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Polyline.html b/docs/symbols/fabric.Polyline.html
index 9c70a721..f4354f50 100644
--- a/docs/symbols/fabric.Polyline.html
+++ b/docs/symbols/fabric.Polyline.html
@@ -1,4 +1,5 @@
-
+
@@ -6,653 +7,715 @@
JsDoc Reference - fabric.Polyline
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Polyline
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Polyline
+
+
+
Defined in: polyline.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Polyline()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Polyline.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Polyline.fromElement`)
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns complexity of an instance
+
+
+
+
+ <static>
+
+ fabric.Polyline.fromElement(element, options)
+
+ Returns fabric.Polyline instance from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Polyline.fromObject(object)
+
+ Returns fabric.Polyline instance from an object representation
+
+
+
+
+
+
+ initialize(points, options)
+
+ Constructor
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Polyline.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Polyline.fromElement`)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.Polyline.fromElement(element, options)
+
+
+
+ Returns fabric.Polyline instance from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - Element to parse
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} instance of fabric.Polyline
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Polyline}
+ fabric.Polyline.fromObject(object)
+
+
+
+ Returns fabric.Polyline instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+ Optional
+
+ - Object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Polyline}
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ initialize(points, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} points
+
+
+ - array of points
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Polyline
-
-
-
- Polyline
-
-
-
-
-
-
-
-
- - Defined in: polyline.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Polyline()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns complexity of an instance
-
-
-
-
- <static>
-
- fabric.Polyline.fromElement(element, options)
-
- Returns fabric.Polyline instance from an SVG element
-
-
-
-
- <static>
-
- fabric.Polyline.fromObject(object)
-
- Returns fabric.Polyline instance from an object representation
-
-
-
-
-
-
- initialize(points, options)
-
- Constructor
-
-
-
-
-
-
- toObject()
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns complexity of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {Object}
-
- fabric.Polyline.fromElement(element, options)
-
-
-
- Returns fabric.Polyline instance from an SVG element
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {SVGElement} element
-
-
- - Element to parse
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} instance of fabric.Polyline
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Returns fabric.Polyline instance from an object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
- Optional
-
- - Object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Polyline}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- initialize(points, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} points
-
-
- - array of points
-
- -
- {Object} options
- Optional
-
- - Options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
- Returns object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} Object representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Rect.html b/docs/symbols/fabric.Rect.html
index 80472e15..ec474e67 100644
--- a/docs/symbols/fabric.Rect.html
+++ b/docs/symbols/fabric.Rect.html
@@ -1,4 +1,5 @@
-
+
@@ -6,624 +7,700 @@
JsDoc Reference - fabric.Rect
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Rect
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Rect
+
+
+
Defined in: rect.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Rect()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+ <static>
+
+
+ fabric.Rect.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Rect.fromElement`)
+
+
+
+
+
+
+
+ options
+
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+
+
+
+
+
+ <static>
+
+ fabric.Rect.fromElement(element, options)
+
+ Returns fabric.Rect instance from an SVG element
+
+
+
+
+ <static>
+
+ fabric.Rect.fromObject(object)
+
+ Returns fabric.Rect instance from an object representation
+
+
+
+
+
+
+ initialize(options)
+
+ Constructor
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.Rect.ATTRIBUTE_NAMES
+
+
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Rect.fromElement`)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ options
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Rect}
+ fabric.Rect.fromElement(element, options)
+
+
+
+ Returns fabric.Rect instance from an SVG element
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ element
+
+
+ - {SVGElement} element to parse
+
+ -
+ options
+
+
+ - {Object} options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Rect} instance of fabric.Rect
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.Rect.fromObject(object)
+
+
+
+ Returns fabric.Rect instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+ - {Object} object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} instance of fabric.Rect
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ initialize(options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ options
+
+
+ - {Object} options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Rect
-
-
-
- Rect
-
-
-
-
-
-
-
-
- - Defined in: rect.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Rect()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
-
-
-
-
-
- <static>
-
- fabric.Rect.fromElement(element, options)
-
-
-
-
-
-
- <static>
-
- fabric.Rect.fromObject(object)
-
-
-
-
-
-
-
-
- initialize(options)
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- options
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- element
-
-
- - {SVGElement} element to parse
-
- -
- options
-
-
- - {Object} options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Rect} instance of fabric.Rect
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {Object}
-
- fabric.Rect.fromObject(object)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {Object} object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} instance of fabric.Rect
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- initialize(options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- options
-
-
- - {Object} options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Text.html b/docs/symbols/fabric.Text.html
index 6695c1b2..d93005e5 100644
--- a/docs/symbols/fabric.Text.html
+++ b/docs/symbols/fabric.Text.html
@@ -1,4 +1,5 @@
-
+
@@ -6,1107 +7,1009 @@
JsDoc Reference - fabric.Text
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Text
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Text
+
+
+
Defined in: text.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Text()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+
+
+
+ options
+
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.Text.fromElement(element)
+
+ Returns fabric.Text instance from an SVG element (not yet implemented)
+
+
+
+
+ <static>
+
+ fabric.Text.fromObject(object)
+
+ Returns fabric.Text instance from an object representation
+
+
+
+
+
+
+ getText()
+
+ Returns actual text value of an instance
+
+
+
+
+
+
+ initialize(text, options)
+
+ Constructor
+
+
+
+
+
+
+ render(ctx)
+
+ Renders text instance on a specified context
+
+
+
+
+
+
+ set(name, value)
+
+ Sets specified property to a specified value
+
+
+
+
+
+
+ setColor(value)
+
+ Sets "color" of an instance (alias of `set('fill', …)`)
+
+
+
+
+
+
+ setFontsize(value)
+
+ Sets fontsize of an instance and updates its coordinates
+
+
+
+
+
+
+ setText(value)
+
+ Sets text of an instance, and updates its coordinates
+
+
+
+
+
+
+ toObject()
+
+ Returns object representation of an instance
+
+
+
+
+
+
+ toString()
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, complexity, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+
+
+ {Object}
+ options
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+ <static>
+
+ {fabric.Text}
+ fabric.Text.fromElement(element)
+
+
+
+ Returns fabric.Text instance from an SVG element (not yet implemented)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ element
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} an instance
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {fabric.Text}
+ fabric.Text.fromObject(object)
+
+
+
+ Returns fabric.Text instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+ - to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} an instance
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ getText()
+
+
+
+ Returns actual text value of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String}
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ initialize(text, options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} text
+
+
+
+
+ -
+ {Object} options
+ Optional
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+ render(ctx)
+
+
+
+ Renders text instance on a specified context
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ ctx
+
+
+ - {CanvasRenderingContext2D} context to render on
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ set(name, value)
+
+
+
+ Sets specified property to a specified value
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} name
+
+
+
+
+ -
+ {Any} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ setColor(value)
+
+
+
+ Sets "color" of an instance (alias of `set('fill', …)`)
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ setFontsize(value)
+
+
+
+ Sets fontsize of an instance and updates its coordinates
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {fabric.Text}
+ setText(value)
+
+
+
+ Sets text of an instance, and updates its coordinates
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {fabric.Text} thisArg
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ toObject()
+
+
+
+ Returns object representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Object representation of text object
+
+
+
+
+
+
+
+
+
+
+
+ {String}
+ toString()
+
+
+
+ Returns string representation of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} String representation of text object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Text
-
-
-
- Text
-
-
-
-
-
-
-
-
- - Defined in: text.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Text()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.Text.fromElement(element)
-
-
-
-
-
-
- <static>
-
- fabric.Text.fromObject(object)
-
- Returns fabric.Text instance from an object representation
-
-
-
-
-
-
- getText()
-
-
-
-
-
-
-
-
- initialize(text, options)
-
- Constructor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx)
-
-
-
-
-
-
-
-
- set(name, value)
-
- Sets specified property to a specified value
-
-
-
-
-
-
- setColor(value)
-
-
-
-
-
-
-
-
- setFontsize(value)
-
-
-
-
-
-
-
-
- setText(value)
-
- Sets text of an instance, and updates its coordinates
-
-
-
-
-
-
- toObject()
-
-
-
-
-
-
-
-
- toString()
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, complexity, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Detail
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- options
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Returns fabric.Text instance from an object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
- - to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- getText()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- initialize(text, options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} text
-
-
-
-
- -
- {Object} options
- Optional
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- initStateProperties()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- render(ctx)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- ctx
-
-
- - {CanvasRenderingContext2D} context to render on
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- set(name, value)
-
-
-
- Sets specified property to a specified value
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} name
-
-
-
-
- -
- {Any} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- setColor(value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- setFontsize(value)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {fabric.Text}
-
- setText(value)
-
-
-
- Sets text of an instance, and updates its coordinates
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {fabric.Text} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- toObject()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} Object representation of text object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {String}
-
- toString()
-
-
-
- Returns string representation of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} String representation of text object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.Triangle.html b/docs/symbols/fabric.Triangle.html
index f1076b52..bb4ab549 100644
--- a/docs/symbols/fabric.Triangle.html
+++ b/docs/symbols/fabric.Triangle.html
@@ -1,4 +1,5 @@
-
+
@@ -6,514 +7,578 @@
JsDoc Reference - fabric.Triangle
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Class fabric.Triangle
+
+
+
+
+
+
Extends
+ fabric.Object.
+
+
+ Triangle
+
+
+
Defined in: triangle.class.js.
+
+
+
+
+
+
+ Class Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.Triangle()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+
+ Field Attributes
+ Field Name and Description
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+
+
+
+
+
+
+ - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+
+
+ complexity()
+
+ Returns complexity of an instance
+
+
+
+
+ <static>
+
+ fabric.Triangle.fromObject(object)
+
+ Returns fabric.Triangle instance from an object representation
+
+
+
+
+
+
+ initialize(options)
+
+ Constructor
+
+
+
+
+
+
+
+
+
+ - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ Field Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+
+
+ {String}
+ type
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+ {Number}
+ complexity()
+
+
+
+ Returns complexity of an instance
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} complexity of this instance
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.Triangle.fromObject(object)
+
+
+
+ Returns fabric.Triangle instance from an object representation
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ object
+
+
+ - {Object} object to create an instance from
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} instance of Canvas.Triangle
+
+
+
+
+
+
+
+
+
+
+
+ {Object}
+ initialize(options)
+
+
+
+ Constructor
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ options
+
+
+ - {Object} options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} thisArg
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Class fabric .Triangle
-
-
-
- Triangle
-
-
-
-
-
-
-
-
- - Defined in: triangle.class.js
-
-
- - Extends
- fabric.Object
-
-
-
-
-
-
-
- Class Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.Triangle()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field Summary
-
-
-
- Field Attributes
- Field Name and Description
-
-
-
-
-
-
-
-
-
- type
-
-
-
-
-
-
-
-
-
-
-
-
- - Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
-
-
- complexity()
-
- Returns complexity of an instance
-
-
-
-
- <static>
-
- fabric.Triangle.fromObject(object)
-
- Returns fabric.Triangle instance from an object representation
-
-
-
-
-
-
- initialize(options)
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
-
-
- {Number}
-
- complexity()
-
-
-
- Returns complexity of an instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} complexity of this instance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {Object}
-
- fabric.Triangle.fromObject(object)
-
-
-
- Returns fabric.Triangle instance from an object representation
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- object
-
-
- - {Object} object to create an instance from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} instance of Canvas.Triangle
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {Object}
-
- initialize(options)
-
-
-
- Constructor
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- options
-
-
- - {Object} options object
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} thisArg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.html b/docs/symbols/fabric.html
new file mode 100644
index 00000000..b2e5380e
--- /dev/null
+++ b/docs/symbols/fabric.html
@@ -0,0 +1,800 @@
+
+
+
+
+
+
+ JsDoc Reference - fabric
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Classes
+
+
+ - _global_
+
+ - Array
+
+ - fabric
+
+ - fabric.Circle
+
+ - fabric.Color
+
+ - fabric.Element
+
+ - fabric.Element#cache
+
+ - fabric.Ellipse
+
+ - fabric.Group
+
+ - fabric.Image
+
+ - fabric.Intersection
+
+ - fabric.Line
+
+ - fabric.Object
+
+ - fabric.Path
+
+ - fabric.PathGroup
+
+ - fabric.Point
+
+ - fabric.Polygon
+
+ - fabric.Polyline
+
+ - fabric.Rect
+
+ - fabric.Text
+
+ - fabric.Triangle
+
+ - fabric.util
+
+ - fabric.util.array
+
+ - fabric.util.object
+
+ - fabric.util.string
+
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+
+
+ Namespace fabric
+
+
+
+
+
+
+
+
+
+
+
Defined in: parser.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.log(Values)
+
+ Wrapper around `console.log` (when available)
+
+
+
+
+ <static>
+
+ fabric.parseAttributes(element, attributes)
+
+ Returns an object of attributes' name/value, given element and an array of attribute names;
+Parses parent "g" nodes recursively upwards.
+
+
+
+
+ <static>
+
+ fabric.parseElements(elements, options)
+
+
+
+
+
+
+ <static>
+
+ fabric.parsePointsAttribute(points)
+
+
+
+
+
+
+ <static>
+
+ fabric.parseStyleAttribute(element)
+
+
+
+
+
+
+ <static>
+
+ fabric.parseSVGDocument(doc, callback)
+
+
+
+
+
+
+ <static>
+
+ fabric.parseTransformAttribute(attributeValue)
+
+
+
+
+
+
+ <static>
+
+ fabric.warn(Values)
+
+ Wrapper around `console.warn` (when available)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+ <static>
+
+
+ fabric.log(Values)
+
+
+
+ Wrapper around `console.log` (when available)
+
+
+ Defined in: fabric.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Any} Values
+
+
+ - to log
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.parseAttributes(element, attributes)
+
+
+
+ Returns an object of attributes' name/value, given element and an array of attribute names;
+Parses parent "g" nodes recursively upwards.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {DOMElement} element
+
+
+ - Element to parse
+
+ -
+ {Array} attributes
+
+
+ - Array of attributes to parse
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} object containing parsed attributes' names/values
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Array}
+ fabric.parseElements(elements, options)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} elements
+
+
+ - Array of elements to parse
+
+ -
+ {Object} options
+
+
+ - Options object
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} Array of corresponding instances (transformed from SVG elements)
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Array}
+ fabric.parsePointsAttribute(points)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ points
+
+
+ - {String} points attribute string
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} array of points
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Object}
+ fabric.parseStyleAttribute(element)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGElement} element
+
+
+ - Element to parse
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Objects with values parsed from style attribute of an element
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.parseSVGDocument(doc, callback)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {SVGDocument} doc
+
+
+ - SVG document to parse
+
+ -
+ {Function} callback
+
+
+ - Callback to call when parsing is finished; It's being passed an array of elements (parsed from a document).
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Array}
+ fabric.parseTransformAttribute(attributeValue)
+
+
+
+
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ attributeValue
+
+
+ - {String} string containing attribute value
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} array of 6 elements representing transformation matrix
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.warn(Values)
+
+
+
+ Wrapper around `console.warn` (when available)
+
+
+ Defined in: fabric.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Any} Values
+
+
+ - to log as a warning
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:46 GMT-0400 (EDT)
+
+
+
diff --git a/docs/symbols/fabric.util.array.html b/docs/symbols/fabric.util.array.html
index 0f2a60c7..65c87d05 100644
--- a/docs/symbols/fabric.util.array.html
+++ b/docs/symbols/fabric.util.array.html
@@ -1,4 +1,5 @@
-
+
@@ -6,402 +7,521 @@
JsDoc Reference - fabric.util.array
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Namespace fabric.util.array
+
+
+
+
+
+
+
+
+
+
+
Defined in: lang_array.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.util.array.invoke(array, method)
+
+ Invokes method on all items in a given array
+
+
+
+
+ <static>
+
+ fabric.util.array.max(array, byProperty)
+
+ Finds maximum value in array (not necessarily "first" one)
+
+
+
+
+ <static>
+
+ fabric.util.array.min(array, byProperty)
+
+ Finds minimum value in array (not necessarily "first" one)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.util.array.invoke(array, method)
+
+
+
+ Invokes method on all items in a given array
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} array
+
+
+ - Array to iterate over
+
+ -
+ {String} method
+
+
+ - Name of a method to invoke
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.array.max(array, byProperty)
+
+
+
+ Finds maximum value in array (not necessarily "first" one)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.array.min(array, byProperty)
+
+
+
+ Finds minimum value in array (not necessarily "first" one)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Namespace fabric .util .array
-
-
-
-
-
-
-
-
-
-
-
-
- - Defined in: lang_array.js
-
-
-
-
-
-
-
-
-
- Namespace Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.util.array.invoke(array, method)
-
- Invokes method on all items in a given array
-
-
-
-
- <static>
-
- fabric.util.array.max(array, byProperty)
-
- Finds maximum value in array (not necessarily "first" one)
-
-
-
-
- <static>
-
- fabric.util.array.min(array, byProperty)
-
- Finds minimum value in array (not necessarily "first" one)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.array.invoke(array, method)
-
-
-
- Invokes method on all items in a given array
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} array
-
-
- - Array to iterate over
-
- -
- {String} method
-
-
- - Name of a method to invoke
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.array.max(array, byProperty)
-
-
-
- Finds maximum value in array (not necessarily "first" one)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.array.min(array, byProperty)
-
-
-
- Finds minimum value in array (not necessarily "first" one)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.util.html b/docs/symbols/fabric.util.html
index af3343ea..2b7a27e5 100644
--- a/docs/symbols/fabric.util.html
+++ b/docs/symbols/fabric.util.html
@@ -1,4 +1,5 @@
-
+
@@ -6,1763 +7,1643 @@
JsDoc Reference - fabric.util
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Namespace fabric.util
+
+
+
+
+
+
+
+
+
+
+
Defined in: util.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+ fabric.util
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.util.addClass(element, className)
+
+ Adds class to an element
+
+
+
+
+ <static>
+
+ fabric.util.addListener(element, eventName, handler)
+
+ Adds an event listener to an element
+
+
+
+
+ <static>
+
+ fabric.util.animate(options)
+
+ Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
+
+
+
+
+ <static>
+
+ fabric.util.createClass()
+
+ Helper for creation of "classes"
+
+
+
+
+ <static>
+
+ fabric.util.degreesToRadians(degrees)
+
+ Transforms degrees to radians.
+
+
+
+
+ <static>
+
+ fabric.util.falseFunction()
+
+ Function which always returns `false`.
+
+
+
+
+ <static>
+
+ fabric.util.fireEvent(eventName, memo)
+
+ Fires event with an optional memo object
+
+
+
+
+ <static>
+
+ fabric.util.getById(id)
+
+ Takes id and returns an element with that id (if one exists in a document)
+
+
+
+
+ <static>
+
+ fabric.util.getElementOffset(element)
+
+ Returns offset for a given element
+
+
+
+
+ <static>
+
+ fabric.util.getPointer(event)
+
+ Cross-browser wrapper for getting event's coordinates
+
+
+
+
+ <static>
+
+ fabric.util.getRandomInt(min, max)
+
+ Returns random number between 2 specified ones.
+
+
+
+
+ <static>
+
+ fabric.util.getScript(url, callback)
+
+ Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
+
+
+
+
+ <static>
+
+ fabric.util.makeElement(tagName, attributes)
+
+ Creates specified element with specified attributes
+
+
+
+
+ <static>
+
+ fabric.util.makeElementUnselectable(element)
+
+ Makes element unselectable
+
+
+
+
+ <static>
+
+ fabric.util.observeEvent(eventName, handler)
+
+
+
+
+
+
+ <static>
+
+ fabric.util.removeFromArray(array, value)
+
+ Removes value from an array.
+
+
+
+
+ <static>
+
+ fabric.util.removeListener(element, eventName, handler)
+
+ Removes an event listener from an element
+
+
+
+
+ <static>
+
+ fabric.util.request(url, options)
+
+ Cross-browser abstraction for sending XMLHttpRequest
+
+
+
+
+ <static>
+
+ fabric.util.setStyle(element, styles)
+
+ Cross-browser wrapper for setting element's style
+
+
+
+
+ <static>
+
+ fabric.util.toArray(arrayLike)
+
+ Converts an array-like object (e.g.
+
+
+
+
+ <static>
+
+ fabric.util.toFixed(number, fractionDigits)
+
+ A wrapper around Number#toFixed, which contrary to native method returns number, not string.
+
+
+
+
+ <static>
+
+ fabric.util.wrapElement(element, wrapper, attributes)
+
+ Wraps element with another element
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
-
-
-
-
-
-
+
+ <static>
- Namespace fabric .util
-
-
-
-
-
-
-
-
-
-
-
- - Defined in: util.js
-
-
-
-
-
-
-
-
-
- Namespace Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.util
-
-
-
-
-
-
+ fabric.util.addClass(element, className)
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.util.addClass(element, className)
-
- Adds class to an element
-
-
-
-
- <static>
-
- fabric.util.addListener(element, eventName, handler)
-
- Adds an event listener to an element
-
-
-
-
- <static>
-
- fabric.util.animate(options)
-
- Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
-
-
-
-
- <static>
-
- fabric.util.createClass()
-
- Helper for creation of "classes"
-
-
-
-
- <static>
-
- fabric.util.degreesToRadians(degrees)
-
- Transforms degrees to radians.
-
-
-
-
- <static>
-
- fabric.util.falseFunction()
-
- Function which always returns `false`.
-
-
-
-
- <static>
-
- fabric.util.fireEvent(eventName, memo)
-
- Fires event with an optional memo object
-
-
-
-
- <static>
-
- fabric.util.getById(id)
-
- Takes id and returns an element with that id (if one exists in a document)
-
-
-
-
- <static>
-
- fabric.util.getElementOffset(element)
-
- Returns offset for a given element
-
-
-
-
- <static>
-
- fabric.util.getPointer(event)
-
- Cross-browser wrapper for getting event's coordinates
-
-
-
-
- <static>
-
- fabric.util.getRandomInt(min, max)
-
- Returns random number between 2 specified ones.
-
-
-
-
- <static>
-
- fabric.util.getScript(url, callback)
-
- Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
-
-
-
-
- <static>
-
- fabric.util.makeElement(tagName, attributes)
-
- Creates specified element with specified attributes
-
-
-
-
- <static>
-
- fabric.util.makeElementUnselectable(element)
-
- Makes element unselectable
-
-
-
-
- <static>
-
- fabric.util.observeEvent(eventName, handler)
-
-
-
-
-
-
- <static>
-
- fabric.util.removeFromArray(array, value)
-
- Removes value from an array.
-
-
-
-
- <static>
-
- fabric.util.removeListener(element, eventName, handler)
-
- Removes an event listener from an element
-
-
-
-
- <static>
-
- fabric.util.request(url, options)
-
- Cross-browser abstraction for sending XMLHttpRequest
-
-
-
-
- <static>
-
- fabric.util.setStyle(element, styles)
-
- Cross-browser wrapper for setting element's style
-
-
-
-
- <static>
-
- fabric.util.toArray(arrayLike)
-
- Converts an array-like object (e.g.
-
-
-
-
- <static>
-
- fabric.util.toFixed(number, fractionDigits)
-
- A wrapper around Number#toFixed, which contrary to native method returns number, not string.
-
-
-
-
- <static>
-
- fabric.util.wrapElement(element, wrapper, attributes)
-
- Wraps element with another element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Namespace Detail
-
-
-
- fabric.util
-
-
-
-
-
-
-
-
+
+ Adds class to an element
+
+
+ Defined in: dom_misc.js.
+
-
-
-
-
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+ - Element to add class to
+
+ -
+ {String} className
+
+
+ - Class to add to an element
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.addListener(element, eventName, handler)
+
+
+
+ Adds an event listener to an element
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+
+
+ -
+ {String} eventName
+
+
+
+
+ -
+ {Function} handler
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+ <static>
+
+
+ fabric.util.animate(options)
+
+
+
+ Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} options
+ Optional
+
+ - Animation options
+
+ -
+ {Function} options.onChange
+ Optional
+
+ - Callback; invoked on every value change
+
+ -
+ {Function} options.onComplete
+ Optional
+
+ - Callback; invoked when value change is completed
+
+ -
+ {Number} options.startValue
+ Optional, Default: 0
+
+ - Starting value
+
+ -
+ {Number} options.endValue
+ Optional, Default: 100
+
+ - Ending value
+
+ -
+ {Function} options.easing
+ Optional
+
+ - Easing function
+
+ -
+ {Number} options.duration
+ Optional, Default: 500
+
+ - Duration of change
+
+
+
+
+
+
+
+
+
-
+
-
-
-
- Method Detail
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.addClass(element, className)
-
-
-
- Adds class to an element
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to add class to
-
- -
- {String} className
-
-
- - Class to add to an element
-
-
-
-
-
+
+ <static>
+
+
+ fabric.util.createClass()
+
+
+
+ Helper for creation of "classes"
+
+
+ Defined in: lang_class.js.
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Number}
+ fabric.util.degreesToRadians(degrees)
+
+
+
+ Transforms degrees to radians.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {Number} degrees
-
-
- fabric.util.addListener(element, eventName, handler)
-
-
-
- Adds an event listener to an element
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
-
-
- -
- {String} eventName
-
-
-
-
- -
- {Function} handler
-
-
-
-
-
-
-
-
+
+ - value in degrees
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} value in radians
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Boolean}
+ fabric.util.falseFunction()
+
+
+
+ Function which always returns `false`.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
-
-
-
-
- <static>
-
-
-
-
- fabric.util.animate(options)
-
-
-
- Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} options
- Optional
-
- - Animation options
-
- -
- {Function} options.onChange
- Optional
-
- - Callback; invoked on every value change
-
- -
- {Function} options.onComplete
- Optional
-
- - Callback; invoked when value change is completed
-
- -
- {Number} options.startValue
- Optional, Default: 0
-
- - Starting value
-
- -
- {Number} options.endValue
- Optional, Default: 100
-
- - Ending value
-
- -
- {Function} options.easing
- Optional
-
- - Easing function
-
- -
- {Number} options.duration
- Optional, Default: 500
-
- - Duration of change
-
-
-
-
-
+ - {Boolean}
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.fireEvent(eventName, memo)
+
+
+
+ Fires event with an optional memo object
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} eventName
-
-
- fabric.util.createClass()
-
-
-
- Helper for creation of "classes"
-
-
-
- Defined in: lang_class.js.
-
-
-
-
-
-
-
-
-
-
+
+
+
+ -
+ {Object} memo
+ Optional
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {HTMLElement|null}
+ fabric.util.getById(id)
+
+
+
+ Takes id and returns an element with that id (if one exists in a document)
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String|HTMLElement} id
- {Number}
-
- fabric.util.degreesToRadians(degrees)
-
-
-
- Transforms degrees to radians.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} degrees
-
-
- - value in degrees
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} value in radians
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement|null}
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Object}
+ fabric.util.getElementOffset(element)
+
+
+
+ Returns offset for a given element
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {HTMLElement} element
- {Boolean}
-
- fabric.util.falseFunction()
-
-
-
- Function which always returns `false`.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean}
-
-
-
-
-
-
-
-
-
+
+ - Element to get offset for
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Object with "left" and "top" properties
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.getPointer(event)
+
+
+
+ Cross-browser wrapper for getting event's coordinates
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {Event} event
-
-
- fabric.util.fireEvent(eventName, memo)
-
-
-
- Fires event with an optional memo object
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} eventName
-
-
-
-
- -
- {Object} memo
- Optional
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Number}
+ fabric.util.getRandomInt(min, max)
+
+
+
+ Returns random number between 2 specified ones.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {Number} min
- {HTMLElement|null}
+
+ - lower limit
+
+ -
+ {Number} max
- fabric.util.getById(id)
-
-
-
- Takes id and returns an element with that id (if one exists in a document)
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String|HTMLElement} id
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement|null}
-
-
-
-
-
-
-
-
-
+
+ - upper limit
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} random value (between min and max)
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.getScript(url, callback)
+
+
+
+ Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} url
- {Object}
+
+ - URL of a script to load
+
+ -
+ {Function} callback
- fabric.util.getElementOffset(element)
-
-
-
- Returns offset for a given element
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to get offset for
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} Object with "left" and "top" properties
-
-
-
-
-
-
-
-
-
+
+ - Callback to execute when script is finished loading
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.makeElement(tagName, attributes)
+
+
+
+ Creates specified element with specified attributes
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} tagName
-
-
- fabric.util.getPointer(event)
-
-
-
- Cross-browser wrapper for getting event's coordinates
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Event} event
-
-
-
-
-
-
-
-
+
+ - Type of an element to create
+
+ -
+ {Object} attributes
+ Optional
+
+ - Attributes to set on an element
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} Newly created element
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.makeElementUnselectable(element)
+
+
+
+ Makes element unselectable
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {HTMLElement} element
- {Number}
-
- fabric.util.getRandomInt(min, max)
-
-
-
- Returns random number between 2 specified ones.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} min
-
-
- - lower limit
-
- -
- {Number} max
-
-
- - upper limit
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} random value (between min and max)
-
-
-
-
-
-
-
-
-
+
+ - Element to make unselectable
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} Element that was passed in
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.observeEvent(eventName, handler)
+
+
+
+
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} eventName
+
+
+
+ -
+ {Function} handler
-
- fabric.util.getScript(url, callback)
-
-
-
- Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.makeElement(tagName, attributes)
-
-
-
- Creates specified element with specified attributes
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} tagName
-
-
- - Type of an element to create
-
- -
- {Object} attributes
- Optional
-
- - Attributes to set on an element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} Newly created element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.makeElementUnselectable(element)
-
-
-
- Makes element unselectable
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to make unselectable
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} Element that was passed in
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.observeEvent(eventName, handler)
-
-
-
-
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Removes value from an array.
+
+
+
+ <static>
+
+ {Array}
+ fabric.util.removeFromArray(array, value)
+
+
+
+ Removes value from an array.
Presence of value (and its position in an array) is determined via `Array.prototype.indexOf`
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} array
-
-
-
-
- -
- {Any} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Array} original array
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.removeListener(element, eventName, handler)
-
-
-
- Removes an event listener from an element
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
-
-
- -
- {String} eventName
-
-
-
-
- -
- {Function} handler
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {XMLHttpRequest}
-
- fabric.util.request(url, options)
-
-
-
- Cross-browser abstraction for sending XMLHttpRequest
-
-
-
- Defined in: dom_request.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} url
-
-
- - URL to send XMLHttpRequest to
-
- -
- {Object} options
- Optional
-
- - Options object
-
- -
- {String} options.method
- Optional, Default: "GET"
-
-
-
- -
- {Function} options.onComplete
-
-
- - Callback to invoke when request is completed
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {XMLHttpRequest} request
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.setStyle(element, styles)
-
-
-
- Cross-browser wrapper for setting element's style
-
-
-
- Defined in: dom_style.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
-
-
- -
- {Object} styles
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} Element that was passed as a first argument
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Converts an array-like object (e.g. arguments or NodeList) to an array
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} arrayLike
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Array}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {Number}
-
- fabric.util.toFixed(number, fractionDigits)
-
-
-
- A wrapper around Number#toFixed, which contrary to native method returns number, not string.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number | String} number
-
-
- - number to operate on
-
- -
- {Number} fractionDigits
-
-
- - number of fraction digits to "leave"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.wrapElement(element, wrapper, attributes)
-
-
-
- Wraps element with another element
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to wrap
-
- -
- {HTMLElement|String} wrapper
-
-
- - Element to wrap with
-
- -
- {Object} attributes
- Optional
-
- - Attributes to set on a wrapper
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} wrapper
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} array
+
+
+
+
+ -
+ {Any} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} original array
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.removeListener(element, eventName, handler)
+
+
+
+ Removes an event listener from an element
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+
+
+ -
+ {String} eventName
+
+
+
+
+ -
+ {Function} handler
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+ <static>
+
+ {XMLHttpRequest}
+ fabric.util.request(url, options)
+
+
+
+ Cross-browser abstraction for sending XMLHttpRequest
+
+
+ Defined in: dom_request.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} url
+
+
+ - URL to send XMLHttpRequest to
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+ -
+ {String} options.method
+ Optional, Default: "GET"
+
+
+
+ -
+ {Function} options.onComplete
+
+
+ - Callback to invoke when request is completed
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {XMLHttpRequest} request
+
+
+
+
+
+
+
-
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.setStyle(element, styles)
+
+
+
+ Cross-browser wrapper for setting element's style
+
+
+ Defined in: dom_style.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+
+
+ -
+ {Object} styles
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} Element that was passed as a first argument
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Array}
+ fabric.util.toArray(arrayLike)
+
+
+
+ Converts an array-like object (e.g. arguments or NodeList) to an array
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} arrayLike
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array}
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Number}
+ fabric.util.toFixed(number, fractionDigits)
+
+
+
+ A wrapper around Number#toFixed, which contrary to native method returns number, not string.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number | String} number
+
+
+ - number to operate on
+
+ -
+ {Number} fractionDigits
+
+
+ - number of fraction digits to "leave"
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number}
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.wrapElement(element, wrapper, attributes)
+
+
+
+ Wraps element with another element
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+ - Element to wrap
+
+ -
+ {HTMLElement|String} wrapper
+
+
+ - Element to wrap with
+
+ -
+ {Object} attributes
+ Optional
+
+ - Attributes to set on a wrapper
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} wrapper
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
+
diff --git a/docs/symbols/fabric.util.object.html b/docs/symbols/fabric.util.object.html
index 2611614b..c0a90b2a 100644
--- a/docs/symbols/fabric.util.object.html
+++ b/docs/symbols/fabric.util.object.html
@@ -1,4 +1,5 @@
-
+
@@ -6,342 +7,464 @@
JsDoc Reference - fabric.util.object
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Namespace fabric.util.object
+
+
+
+
+
+
+
+ fabric.util.object
+
+
+
Defined in: lang_object.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.util.object.clone(object)
+
+ Creates an empty object and copies all enumerable properties of another object to it
+
+
+
+
+ <static>
+
+ fabric.util.object.extend(destination, source)
+
+ Copies all enumerable properties of one object to another
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.util.object.clone(object)
+
+
+
+ Creates an empty object and copies all enumerable properties of another object to it
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+ - Object to clone
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.object.extend(destination, source)
+
+
+
+ Copies all enumerable properties of one object to another
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} destination
+
+
+ - Where to copy to
+
+ -
+ {Object} source
+
+
+ - Where to copy from
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Namespace fabric .util .object
-
-
-
- fabric.util.object
-
-
-
-
-
-
-
-
- - Defined in: lang_object.js
-
-
-
-
-
-
-
-
-
- Namespace Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.util.object.clone(object)
-
- Creates an empty object and copies all enumerable properties of another object to it
-
-
-
-
- <static>
-
- fabric.util.object.extend(destination, source)
-
- Copies all enumerable properties of one object to another
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.object.clone(object)
-
-
-
- Creates an empty object and copies all enumerable properties of another object to it
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
- - Object to clone
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.object.extend(destination, source)
-
-
-
- Copies all enumerable properties of one object to another
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} destination
-
-
- - Where to copy to
-
- -
- {Object} source
-
-
- - Where to copy from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.util.string.html b/docs/symbols/fabric.util.string.html
index 50a1c219..d0846484 100644
--- a/docs/symbols/fabric.util.string.html
+++ b/docs/symbols/fabric.util.string.html
@@ -1,4 +1,5 @@
-
+
@@ -6,378 +7,472 @@
JsDoc Reference - fabric.util.string
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Namespace fabric.util.string
+
+
+
+
+
+
+
+
+
+
+
Defined in: lang_string.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.util.string.camelize(string)
+
+ Camelizes a string
+
+
+
+
+ <static>
+
+ fabric.util.string.capitalize(string)
+
+ Capitalizes a string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+ {String}
+ fabric.util.string.camelize(string)
+
+
+
+ Camelizes a string
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} string
+
+
+ - String to camelize
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} Camelized version of a string
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {String}
+ fabric.util.string.capitalize(string)
+
+
+
+ Capitalizes a string
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} string
+
+
+ - String to capitalize
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} Capitalized version of a string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Namespace fabric .util .string
-
-
-
-
-
-
-
-
-
-
-
-
- - Defined in: lang_string.js
-
-
-
-
-
-
-
-
-
- Namespace Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.util.string.camelize(string)
-
- Camelizes a string
-
-
-
-
- <static>
-
- fabric.util.string.capitalize(string)
-
- Capitalizes a string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
- Camelizes a string
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} string
-
-
- - String to camelize
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} Camelized version of a string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Capitalizes a string
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} string
-
-
- - String to capitalize
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} Capitalized version of a string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/src/src_circle.class.js.html b/docs/symbols/src/src_circle.class.js.html
index 0e78bb5a..1433b6b5 100644
--- a/docs/symbols/src/src_circle.class.js.html
+++ b/docs/symbols/src/src_circle.class.js.html
@@ -24,110 +24,113 @@
17 */
18 fabric.Circle = fabric.util.createClass(fabric.Object, /** @scope fabric.Circle.prototype */ {
19
- 20 /** @property */
- 21 type: 'circle',
- 22
- 23 /**
- 24 * Constructor
- 25 * @method initialize
- 26 * @param {Object} [options] Options object
- 27 * @return {fabric.Circle} thisArg
- 28 */
- 29 initialize: function(options) {
- 30 options = options || { };
- 31
- 32 this.set('radius', options.radius || 0);
- 33 this.callSuper('initialize', options);
+ 20 /**
+ 21 * @property
+ 22 * @type String
+ 23 */
+ 24 type: 'circle',
+ 25
+ 26 /**
+ 27 * Constructor
+ 28 * @method initialize
+ 29 * @param {Object} [options] Options object
+ 30 * @return {fabric.Circle} thisArg
+ 31 */
+ 32 initialize: function(options) {
+ 33 options = options || { };
34
- 35 var radiusBy2ByScale = this.get('radius') * 2 * this.get('scaleX');
- 36 this.set('width', radiusBy2ByScale).set('height', radiusBy2ByScale);
- 37 },
- 38
- 39 /**
- 40 * Returns object representation of an instance
- 41 * @method toObject
- 42 * @return {Object} object representation of an instance
- 43 */
- 44 toObject: function() {
- 45 return extend(this.callSuper('toObject'), {
- 46 radius: this.get('radius')
- 47 });
- 48 },
- 49
- 50 /**
- 51 * @private
- 52 * @method _render
- 53 * @param ctx {CanvasRenderingContext2D} context to render on
- 54 */
- 55 _render: function(ctx, noTransform) {
- 56 ctx.beginPath();
- 57 ctx.arc(noTransform ? this.left : 0, noTransform ? this.top : 0, this.radius, 0, piBy2, false);
- 58 ctx.closePath();
- 59 if (this.fill) {
- 60 ctx.fill();
- 61 }
- 62 if (this.stroke) {
- 63 ctx.stroke();
+ 35 this.set('radius', options.radius || 0);
+ 36 this.callSuper('initialize', options);
+ 37
+ 38 var radiusBy2ByScale = this.get('radius') * 2 * this.get('scaleX');
+ 39 this.set('width', radiusBy2ByScale).set('height', radiusBy2ByScale);
+ 40 },
+ 41
+ 42 /**
+ 43 * Returns object representation of an instance
+ 44 * @method toObject
+ 45 * @return {Object} object representation of an instance
+ 46 */
+ 47 toObject: function() {
+ 48 return extend(this.callSuper('toObject'), {
+ 49 radius: this.get('radius')
+ 50 });
+ 51 },
+ 52
+ 53 /**
+ 54 * @private
+ 55 * @method _render
+ 56 * @param ctx {CanvasRenderingContext2D} context to render on
+ 57 */
+ 58 _render: function(ctx, noTransform) {
+ 59 ctx.beginPath();
+ 60 ctx.arc(noTransform ? this.left : 0, noTransform ? this.top : 0, this.radius, 0, piBy2, false);
+ 61 ctx.closePath();
+ 62 if (this.fill) {
+ 63 ctx.fill();
64 }
- 65 },
- 66
- 67
- 68 /**
- 69 * Returns complexity of an instance
- 70 * @method complexity
- 71 * @return {Number} complexity of this instance
- 72 */
- 73 complexity: function() {
- 74 return 1;
- 75 }
- 76 });
- 77
- 78 /**
- 79 * List of attribute names to account for when parsing SVG element (used by `fabric.Circle.fromElement`)
- 80 * @static
- 81 * @see: http://www.w3.org/TR/SVG/shapes.html#CircleElement
- 82 */
- 83 fabric.Circle.ATTRIBUTE_NAMES = 'cx cy r fill fill-opacity stroke stroke-width transform'.split(' ');
- 84
- 85 /**
- 86 * Returns fabric.Circle instance from an SVG element
- 87 * @static
- 88 * @method fabric.Circle.fromElement
- 89 * @param element {SVGElement} element to parse
- 90 * @param options {Object} options object
- 91 * @throws {Error} If value of `r` attribute is missing or invalid
- 92 * @return {Object} instance of fabric.Circle
- 93 */
- 94 fabric.Circle.fromElement = function(element, options) {
- 95 options || (options = { });
- 96 var parsedAttributes = fabric.parseAttributes(element, fabric.Circle.ATTRIBUTE_NAMES);
- 97 if (!isValidRadius(parsedAttributes)) {
- 98 throw Error('value of `r` attribute is required and can not be negative');
- 99 }
-100 if ('left' in parsedAttributes) {
-101 parsedAttributes.left -= (options.width / 2) || 0;
+ 65 if (this.stroke) {
+ 66 ctx.stroke();
+ 67 }
+ 68 },
+ 69
+ 70
+ 71 /**
+ 72 * Returns complexity of an instance
+ 73 * @method complexity
+ 74 * @return {Number} complexity of this instance
+ 75 */
+ 76 complexity: function() {
+ 77 return 1;
+ 78 }
+ 79 });
+ 80
+ 81 /**
+ 82 * List of attribute names to account for when parsing SVG element (used by `fabric.Circle.fromElement`)
+ 83 * @static
+ 84 * @see: http://www.w3.org/TR/SVG/shapes.html#CircleElement
+ 85 */
+ 86 fabric.Circle.ATTRIBUTE_NAMES = 'cx cy r fill fill-opacity stroke stroke-width transform'.split(' ');
+ 87
+ 88 /**
+ 89 * Returns fabric.Circle instance from an SVG element
+ 90 * @static
+ 91 * @method fabric.Circle.fromElement
+ 92 * @param element {SVGElement} element to parse
+ 93 * @param options {Object} options object
+ 94 * @throws {Error} If value of `r` attribute is missing or invalid
+ 95 * @return {Object} instance of fabric.Circle
+ 96 */
+ 97 fabric.Circle.fromElement = function(element, options) {
+ 98 options || (options = { });
+ 99 var parsedAttributes = fabric.parseAttributes(element, fabric.Circle.ATTRIBUTE_NAMES);
+100 if (!isValidRadius(parsedAttributes)) {
+101 throw Error('value of `r` attribute is required and can not be negative');
102 }
-103 if ('top' in parsedAttributes) {
-104 parsedAttributes.top -= (options.height / 2) || 0;
+103 if ('left' in parsedAttributes) {
+104 parsedAttributes.left -= (options.width / 2) || 0;
105 }
-106 return new fabric.Circle(extend(parsedAttributes, options));
-107 };
-108
-109 /**
-110 * @private
-111 */
-112 function isValidRadius(attributes) {
-113 return (('radius' in attributes) && (attributes.radius > 0));
-114 }
-115
-116 /**
-117 * Returns fabric.Circle instance from an object representation
-118 * @static
-119 * @method fabric.Circle.fromObject
-120 * @param {Object} object Object to create an instance from
-121 * @return {Object} Instance of fabric.Circle
-122 */
-123 fabric.Circle.fromObject = function(object) {
-124 return new fabric.Circle(object);
-125 }
-126 })();
- Object -
- - - --
-
-
-
-
- Defined in: object.class.js - - - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - |
-
- fabric.Object()
-
-
- |
-
| Field Attributes | -Field Name and Description | -
|---|---|
| <constant> | -
-
- FX_DURATION
-
-
- |
-
| <constant> | -
-
- FX_TRANSITION
-
-
- |
-
| - | - - - | -
| <constant> | -
-
- MIN_SCALE_LIMIT
-
-
- |
-
| <constant> | -- - - | -
| - |
-
- options
-
-
- |
-
| - |
-
- rotate
-
-
- |
-
| - |
-
- stateProperties
-
-
- |
-
| - |
-
- type
-
-
- |
-
| Method Attributes | -Method Name and Description | -
|---|---|
| - |
- callSuper(methodName)
-
-
- |
-
| - |
- clone(options)
-
- Clones an instance
- |
-
| - |
- cloneAsImage(callback)
-
- Creates an instance of fabric.Image out of an object
- |
-
| - |
- complexity()
-
-
- |
-
| - |
- drawBorders(ctx)
-
- Draws borders of an object's bounding box.
- |
-
| - |
- drawCorners(ctx)
-
- Draws corners of an object's bounding box.
- |
-
| - |
- fxRemove(callbacks)
-
-
- |
-
| - |
- fxStraighten(callbacks)
-
-
- |
-
| - |
- get(property)
-
- Basic getter
- |
-
| - |
- getAngle()
-
- Returns object's angle value
- |
-
| - |
- getCenter()
-
-
- |
-
| - |
- getHeight()
-
- Returns height of an object
- |
-
| - |
- getWidth()
-
- Returns width of an object
- |
-
| - |
- hasStateChanged()
-
-
- |
-
| - |
- initialize(options)
-
- Constructor
- |
-
| - |
- intersectsWithObject(other)
-
- Returns true if object intersects with another object
- |
-
| - |
- intersectsWithRect(selectionTL, selectionBR)
-
- Returns true if object intersects with an area formed by 2 points
- |
-
| - |
- isActive()
-
- Returns true if an object is in its active state
- |
-
| - |
- isContainedWithinRect(selectionTL, selectionBR)
-
- Returns true if object is fully contained within area formed by 2 points
- |
-
| - |
- isType(type)
-
-
- |
-
| - |
- render(ctx, noTransform)
-
-
- |
-
| - |
- saveState()
-
-
- |
-
| - |
- scale(value)
-
- Scales an object (equally by x and y)
- |
-
| - |
- scaleToHeight(value)
-
- Scales an object to a given height (scaling by x/y equally)
- |
-
| - |
- scaleToWidth(value)
-
- Scales an object to a given width (scaling by x/y equally)
- |
-
| - |
- set(property, value)
-
- Basic setter
- |
-
| - |
- setActive(active)
-
- Sets state of an object - `true` makes it active, `false` - inactive
- |
-
| - |
- setAngle(value)
-
- Sets object's angle
- |
-
| - |
- setCoords()
-
- Sets corner position coordinates based on current angle, width and height.
- |
-
| - |
- setOpacity(value)
-
- Sets object opacity
- |
-
| - |
- setOptions(options)
-
-
- |
-
| - |
- setSourcePath(value)
-
-
- |
-
| - |
- straighten()
-
-
- |
-
| - |
- toDatalessObject()
-
-
- |
-
| - |
- toDataURL()
-
- Converts an object into a data-url-like string
- |
-
| - |
- toggle(property)
-
- Toggles specified property from `true` to `false` or from `false` to `true`
- |
-
| - |
- toGrayscale()
-
- Makes object's color grayscale
- |
-
| - |
- toJSON()
-
- Returns a JSON representation of an instance
- |
-
| - |
- toObject()
-
- Returns an object representation of an instance
- |
-
| - |
- toString()
-
- Returns a string representation of an instance
- |
-
| - |
- transform(ctx)
-
-
- |
-
- - - -
+ +
-
-
-
- Parameters: - -
- - {String} methodName - - - - -
-
-
- Parameters: - -
- - {Object} options - - -
- object - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Object} clone of an instance - - - - - - - -
-
-
- Parameters: - -
- - callback - - -
- {Function} callback, invoked with an instance as a first argument - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Object} thisArg - - - - - - - -
+ + +
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Number} - - - - - - - -
+ + +
+ + +
+ + +
+ + +
-
+
- Parameters: - - -
- + {String} methodName - + + + + + + + + + + + + +
- Parameters: + +
- + {Object} options - {fabric.Object} + +
- object + +
- Returns: + +
- {fabric.Object} clone of an instance + +
- Parameters: + +
- + callback - drawBorders(ctx) -
- {Function} callback, invoked with an instance as a first argument + + + + + + + +
- Returns: + +
- {fabric.Object} thisArg + +
- Returns: + +
- {Number} + +
- Parameters: - -
- - {CanvasRenderingContext2D} ctx - - -
- Context to draw on - -
- Returns: - -
- {fabric.Object} thisArg - - - - - - - -
- Parameters: - - -
- + {CanvasRenderingContext2D} ctx - - - {fabric.Object} - - drawCorners(ctx) -
- Context to draw on + + + + + + + +
- Returns: + +
- {fabric.Object} thisArg + +
- Parameters: - -
- - {CanvasRenderingContext2D} ctx - - -
- Context to draw on - -
- Returns: - -
- {fabric.Object} thisArg - - - - - - - -
- Parameters: - -
- - {Object} callbacks - - - - -
- Returns: - -
- {fabric.Object} thisArg - - - - - - - -
- Parameters: - -
- - {Object} callbacks - - -
- - onComplete: invoked on completion - - onChange: invoked on every step of animation - -
- Returns: - -
- {fabric.Object} thisArg - - - - - - - -
- Parameters: - -
- - {Any} property - - - - -
- Returns: - -
- {Any} value of a property - - - - - - - -
- Returns: - -
- {Number} angle value - - - - - - - -
- Returns: - -
- {Object} object with `x`, `y` properties corresponding to path center coordinates - - - - - - - -
- Returns: - -
- {Number} height value - - - - - - - -
- Returns: - -
- {Number} width value - - - - - - - -
- Returns: - -
- {Boolean} true if instance' state has changed - - - - - - - -
- Parameters: - -
- - {Object} options - Optional - -
- Options object - -
- Parameters: - -
- - {Object} other - - -
- Object to test - -
- Returns: - -
- {Boolean} - - - - - - - -
- Parameters: - -
- - {Object} selectionTL - - - - -
- - {Object} selectionBR - - - - -
- Returns: - -
- {Boolean} - - - - - - - -
- Returns: - -
- {Boolean} true if an object is in its active state - - - - - - - -
- Parameters: - -
- - {Object} selectionTL - - - - -
- - {Object} selectionBR - - - - -
- Returns: - -
- {Boolean} - - - - - - - -
- Parameters: - -
- - type - - -
- {String} type to check against - -
- Returns: - -
- {Boolean} true if specified type is identical to the type of instance - - - - - - - -
- Parameters: - -
- - {CanvasRenderingContext2D} ctx - - -
- context to render on - -
- - {Boolean} noTransform - - - - -
- Returns: - -
- {fabric.Object} thisArg - - - - - - - -
- Parameters: - -
- - value - - -
- {Number} scale factor - -
- Returns: - -
- {fabric.Object} thisArg - - - - - - - -
- Parameters: - -
- - value - - -
- {Number} new height value - -
- Returns: - -
- {fabric.Object} thisArg - - - - - - - -
- Parameters: - -
- - value - - -
- {Number} new width value - -
- Returns: - -
- {fabric.Object} thisArg - - - - - - - -
- Parameters: - -
- - {Any} property - - - - -
- - {Any} value - - - - -
- Returns: - -
- {fabric.Object} thisArg - - - - - - - -
- Parameters: - -
- - {Boolean} active - - - - -
- Returns: - -
- {fabric.Object} thisArg - - - - - - - -
- Parameters: - -
- - value - - -
- {Number} angle value - -
- Returns: - -
- {Object} thisArg - - - - - - - -
- Parameters: - -
- - value - - -
- {Number} value 0-1 - -
- Returns: - -
- {fabric.Object} thisArg - - - - - - - -
- Parameters: - -
- - {Object} options - Optional - - - -
- Parameters: - -
- - {String} value - - - - -
- Returns: - -
- {fabric.Object} thisArg - - - - - - - -
- Returns: - -
- {fabric.Object} thisArg - - - - - - - -
- Returns: - -
- {String} string of data - - - - - - - -
- Parameters: - -
- - {String} property - - -
- property to toggle - -
- Returns: - -
- {fabric.Object} thisArg - - - - - - - -
- Returns: - -
- {fabric.Object} thisArg - - - - - - - -
- Returns: - -
- {String} json - - - - - - - -
- Returns: - -
- {Object} - - - - - - - -
- Returns: - -
- {String} - - - - - - - -
- Parameters: - -
- - {CanvasRenderingContext2D} ctx - - -
- Context - -
+ + +
-
+
-
+
+ + +
-
+
-
+
+ + +
-
+
+ + +
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
+ + +
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- Parameters: + +
- + {CanvasRenderingContext2D} ctx + + +
- Context to draw on + +
-
+
- Returns: + +
- {fabric.Object} thisArg + +
+ +
-
+
- Parameters: + +
- + {Object} callbacks + + + + +
-
+
- Returns: + +
- {fabric.Object} thisArg + +
- + +
-
+
- Parameters: + +
- + {Object} callbacks + + +
- - onComplete: invoked on completion + - onChange: invoked on every step of animation + +
-
+
- Returns: + +
- {fabric.Object} thisArg + +
-
-
+
- Parameters: + +
- + {Any} property + + + + +
-
+
- Returns: + +
- {Any} value of a property + +
+ + +
-
+
- Returns: + +
- {Number} angle value + +
+ + +
-
+
- Returns: + +
- {Object} object with `x`, `y` properties corresponding to path center coordinates + +
+ + +
-
+
- Returns: + +
- {Number} height value + +
+ + +
-
+
- Returns: + +
- {Number} width value + +
+ + +
-
+
- Returns: + +
- {Boolean} true if instance' state has changed + +
+ + +
-
+
- Parameters: + +
- + {Object} options + Optional + +
- Options object + +
+ + +
-
+
- Parameters: + +
- + {Object} other + + +
- Object to test + +
-
+
- Returns: + +
- {Boolean} + +
+ + +
-
+
- Parameters: + +
- + {Object} selectionTL + + + + +
- + {Object} selectionBR + + + + +
-
+
- Returns: + +
- {Boolean} + +
+ + +
-
+
- Returns: + +
- {Boolean} true if an object is in its active state + +
+ + +
-
+
- Parameters: + +
- + {Object} selectionTL + + + + +
- + {Object} selectionBR + + + + +
-
+
- Returns: + +
- {Boolean} + +
+ + +
-
+
- Parameters: + +
- + type + + +
- {String} type to check against + +
-
+
- Returns: + +
- {Boolean} true if specified type is identical to the type of instance + +
+ + +
-
+
- Parameters: + +
- + {CanvasRenderingContext2D} ctx + + +
- context to render on + +
- + {Boolean} noTransform + + + + +
+ + +
-
+
- Returns: + +
- {fabric.Object} thisArg + +
+ + +
-
+
- Parameters: + +
- + value + + +
- {Number} scale factor + +
-
+
- Returns: + +
- {fabric.Object} thisArg + +
+ + +
-
+
- Parameters: + +
- + value + + +
- {Number} new height value + +
-
+
- Returns: + +
- {fabric.Object} thisArg + +
+ + +
-
+
- Parameters: + +
- + value + + +
- {Number} new width value + +
-
+
- Returns: + +
- {fabric.Object} thisArg + +
+ + +
-
+
- Parameters: + +
- + {Any} property + + + + +
- + {Any} value + + + + +
-
+
- Returns: + +
- {fabric.Object} thisArg + +
+ + +
-
+
- Parameters: + +
- + {Boolean} active + + + + +
-
+
- Returns: + +
- {fabric.Object} thisArg + +
+ + +
-
+
- Parameters: + +
- + value + + +
- {Number} angle value + +
-
+
- Returns: + +
- {Object} thisArg + +
+ + +
+ + +
-
+
- Parameters: + +
- + value + + +
- {Number} value 0-1 + +
-
+
- Returns: + +
- {fabric.Object} thisArg + +
+ + +
-
+
- Parameters: + +
- + {Object} options + Optional + + + +
+ + +
-
+
- Parameters: + +
- + {String} value + + + + +
-
+
- Returns: + +
- {fabric.Object} thisArg + +
+ + +
-
+
- Returns: + +
- {fabric.Object} thisArg + +
+ + +
+ + +
-
+
- Returns: + +
- {String} string of data + +
+ + +
-
+
- Parameters: + +
- + {String} property + + +
- property to toggle + +
-
+
- Returns: + +
- {fabric.Object} thisArg + +
+ + +
-
+
- Returns: + +
- {fabric.Object} thisArg + +
+ + +
-
+
- Returns: + +
- {String} json + +
+ + +
-
+
- Returns: + +
- {Object} + +
+ + +
-
+
- Returns: + +
- {String} + +
+ + +
-
+
- Parameters: + +
- + {CanvasRenderingContext2D} ctx + + +
- Context + +
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Class fabric.Path +
+ + +
+
+
Extends
+ fabric.Object.
+
+
+ Path
+
+
+
Defined in: path.class.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ fabric.Path()
+
+
+ |
+
| Field Attributes | +Field Name and Description | +
|---|---|
| <static> | +
+
+ fabric.Path.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Path.fromElement`)
+ |
+
| + |
+
+ type
+
+
+ |
+
-
+
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties +
| Method Attributes | +Method Name and Description | +
|---|---|
| + |
+ complexity()
+
+ Returns number representation of an instance complexity
+ |
+
| <static> | +
+ fabric.Path.fromElement(element, options)
+
+ Creates an instance of fabric.Path from an SVG
+ |
+
| <static> | +
+ fabric.Path.fromObject(object)
+
+ Creates an instance of fabric.Path from an object
+ |
+
| + |
+ initialize(path, options)
+
+ Constructor
+ |
+
| + |
+ render(ctx, noTransform)
+
+ Renders path on a specified context
+ |
+
| + |
+ toDatalessObject()
+
+ Returns dataless object representation of an instance
+ |
+
| + |
+ toObject()
+
+ Returns object representation of an instance
+ |
+
| + |
+ toString()
+
+ Returns string representation of an instance
+ |
+
-
+
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toGrayscale, toJSON, transform +
- HTML template: Codeview 1.1.1 -
-
+
- See: + +
- http://www.w3.org/TR/SVG/paths.html#PathElement + +
+ + +
-
+
- Returns: + +
- {Number} complexity + +
+ + +
-
+
- Parameters: + +
- + {SVGElement} element + + +
- to parse + +
- + {Object} options + + +
- object + +
-
+
- Returns: + +
- {fabric.Path} Instance of fabric.Path + +
+ + +
-
+
- Parameters: + +
- + object + + + + +
-
+
- Returns: + +
- {fabric.Path} Instance of fabric.Path + +
+ + +
-
+
- Parameters: + +
- + {Array|String} path + + +
- Path data (sequence of coordinates and corresponding "command" tokens) + +
- + {Object} options + Optional + +
- Options object + +
+ + +
-
+
- Parameters: + +
- + {CanvasRenderingContext2D} ctx + + +
- context to render path on + +
- + {Boolean} noTransform + + +
- When true, context is not transformed + +
+ + +
-
+
- Returns: + +
- {Object} + +
+ + +
-
+
- Returns: + +
- {Object} + +
+ + +
-
+
- Returns: + +
- {String} string representation of an instance + +
- - Class fabric .Path -
- -- Path -
- - - --
-
-
-
-
- Defined in: path.class.js - - -
- Extends - fabric.Object - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - |
-
- fabric.Path()
-
-
- |
-
| Field Attributes | -Field Name and Description | -
|---|---|
| - |
-
- type
-
-
- |
-
-
-
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties -
| Method Attributes | -Method Name and Description | -
|---|---|
| - |
- complexity()
-
- Returns number representation of an instance complexity
- |
-
| <static> | -
- fabric.Path.fromElement(element, options)
-
- Creates an instance of fabric.Path from an SVG
- |
-
| <static> | -
- fabric.Path.fromObject(object)
-
- Creates an instance of fabric.Path from an object
- |
-
| - |
- initialize(path, options)
-
- Constructor
- |
-
| - |
- render(ctx, noTransform)
-
-
- |
-
| - |
- set(prop, value)
-
-
- |
-
| - |
- toDatalessObject()
-
-
- |
-
| - |
- toObject()
-
-
- |
-
| - |
- toString()
-
- Returns string representation of an instance
- |
-
-
-
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toGrayscale, toJSON, transform -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Number} complexity - - - - - - - -
-
-
- Parameters: - -
- - {SVGElement} element - - -
- to parse - -
- - {Object} options - - -
- object - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Path} Instance of fabric.Path - - - - - - - -
-
-
- Parameters: - -
- - object - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Path} Instance of fabric.Path - - - - - - - -
-
-
- Parameters: - -
- - {Array|String} path - - -
- Path data (sequence of coordinates and corresponding "command" tokens) - -
- - {Object} options - Optional - -
- Options object - -
-
-
- Parameters: - -
- - ctx - - - - -
- - noTransform - - - - -
-
-
- Parameters: - -
- - prop - - - - -
- - value - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {String} string representation of an instance - - - - - - - -
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Class fabric.PathGroup +
+ + +
+
+
Extends
+ fabric.Path.
+
+
+ PathGroup
+
+
+
Defined in: path_group.class.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ fabric.PathGroup()
+
+
+ |
+
| Field Attributes | +Field Name and Description | +
|---|---|
| + | + + + | +
| + |
+
+ type
+
+
+ |
+
-
+
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties +
| Method Attributes | +Method Name and Description | +
|---|---|
| + |
+ complexity()
+
+ Returns number representation of object's complexity
+ |
+
| <static> | +
+ fabric.PathGroup.fromObject(object)
+
+ Creates fabric.Triangle instance from an object representation
+ |
+
| + |
+ getObjects()
+
+ Returns all paths in this path group
+ |
+
| + |
+ initialize(paths, options)
+
+ Constructor
+ |
+
| + |
+ isSameColor()
+
+ Returns true if all paths in this group are of same color
+ |
+
| + |
+ render(ctx)
+
+ Renders this group on a specified context
+ |
+
| + |
+ set(prop, value)
+
+ Sets certain property to a certain value
+ |
+
| + |
+ toDatalessObject()
+
+ Returns dataless object representation of this path group
+ |
+
| + |
+ toGrayscale()
+
+ Makes path group grayscale
+ |
+
| + |
+ toObject()
+
+ Returns object representation of this path group
+ |
+
| + |
+ toString()
+
+ Returns a string representation of this path group
+ |
+
-
+
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toJSON, transform +
- HTML template: Codeview 1.1.1 -
+ + +
-
+
- Returns: + +
- {Number} complexity + +
+ + +
-
+
- Parameters: + +
- + {Object} object + + + + +
-
+
- Returns: + +
- {fabric.PathGroup} + +
+ + +
-
+
- Returns: + +
- {Array} array of path objects included in this path group + +
+ + +
-
+
- Parameters: + +
- + {Array} paths + + + + +
- + {Object} options + Optional + +
- Options object + +
-
+
- Returns: + +
- {fabric.PathGroup} thisArg + +
+ + +
-
+
- Returns: + +
- {Boolean} true if all paths are of the same color (`fill`) + +
+ + +
-
+
- Parameters: + +
- + {CanvasRenderingContext2D} ctx + + +
- Context to render this instance on + +
+ + +
-
+
- Parameters: + +
- + {String} prop + + + + +
- + {Any} value + + + + +
-
+
- Returns: + +
- {fabric.PathGroup} thisArg + +
+ + +
-
+
- Returns: + +
- {Object} dataless object representation of an instance + +
+ + +
-
+
- Returns: + +
- {fabric.PathGroup} thisArg + +
+ + +
-
+
- Returns: + +
- {Object} object representation of an instance + +
+ + +
-
+
- Returns: + +
- {String} string representation of an object + +
- - Class fabric .PathGroup -
- -- PathGroup -
- - - --
-
-
-
-
- Defined in: path_group.class.js - - -
- Extends - fabric.Path - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - |
-
- fabric.PathGroup()
-
-
- |
-
| Field Attributes | -Field Name and Description | -
|---|---|
| - | - - - | -
| - |
-
- type
-
-
- |
-
-
-
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties -
| Method Attributes | -Method Name and Description | -
|---|---|
| - |
- complexity()
-
- Returns number representation of object's complexity
- |
-
| <static> | -
- fabric.PathGroup.fromObject(object)
-
-
- |
-
| - |
- getObjects()
-
-
- |
-
| - |
- initialize(paths, options)
-
- Constructor
- |
-
| - |
- initProperties()
-
-
- |
-
| - |
- isSameColor()
-
-
- |
-
| - |
- render(ctx)
-
-
- |
-
| - |
- set(prop, value)
-
-
- |
-
| - |
- toDatalessObject()
-
-
- |
-
| - |
- toGrayscale()
-
- Makes path group grayscale
- |
-
| - |
- toObject()
-
-
- |
-
| - |
- toString()
-
- Returns a string representation of an object
- |
-
-
-
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDataURL, toggle, toJSON, transform -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Number} complexity - - - - - - - -
-
-
- Parameters: - -
- - {Object} object - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.PathGroup} - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Array} array of path objects included in this path group - - - - - - - -
-
-
- Parameters: - -
- - {Array} paths - - - - -
- - {Object} options - Optional - -
- Options object - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.PathGroup} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Boolean} true if all paths are of the same color (`fill`) - - - - - - - -
-
-
- Parameters: - -
- - ctx - - - - -
-
-
- Parameters: - -
- - {String} prop - - - - -
- - {Any} value - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.PathGroup} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} dataless object representation of an instance - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.PathGroup} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} object representation of an instance - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {String} string representation of an object - - - - - - - -
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Class fabric.Point +
+ + +
+
+
+
+
+
+
+
Defined in: point.class.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ fabric.Point(x, y)
+
+
+ |
+
| Method Attributes | +Method Name and Description | +
|---|---|
| + |
+ add(that)
+
+
+ |
+
| + |
+ addEquals(that)
+
+
+ |
+
| + |
+ distanceFrom(that)
+
+
+ |
+
| + |
+ divide(scalar)
+
+
+ |
+
| + |
+ divideEquals(scalar)
+
+
+ |
+
| + |
+ eq(that)
+
+
+ |
+
| + |
+ gt(that)
+
+
+ |
+
| + |
+ gte(that)
+
+
+ |
+
| + |
+ init(x, y)
+
+
+ |
+
| + |
+ lerp(that, t)
+
+
+ |
+
| + |
+ lt(that)
+
+
+ |
+
| + |
+ lte(that)
+
+
+ |
+
| + |
+ max(that)
+
+
+ |
+
| + |
+ min(that)
+
+
+ |
+
| + |
+ multiply(scalar)
+
+
+ |
+
| + |
+ multiplyEquals(scalar)
+
+
+ |
+
| + |
+ scalarAdd(scalar)
+
+
+ |
+
| + |
+ scalarAddEquals(scalar, thisArg)
+
+
+ |
+
| + |
+ scalarSubtract(scalar)
+
+
+ |
+
| + |
+ scalarSubtractEquals(scalar)
+
+
+ |
+
| + |
+ setFromPoint(that)
+
+
+ |
+
| + |
+ setXY(x, y)
+
+
+ |
+
| + |
+ subtract(that)
+
+
+ |
+
| + |
+ subtractEquals(that)
+
+
+ |
+
| + |
+ swap(that)
+
+
+ |
+
| + |
+ toString()
+
+
+ |
+
-
+
- Parameters: + +
- + {Number} x + + + + +
- + {Number} y + + + + +
-
+
- Returns: + +
- {fabric.Point} thisArg + +
- HTML template: Codeview 1.1.1 -
-
+
- Parameters: + +
- + {fabric.Point} that + + + + +
-
+
- Returns: + +
- {fabric.Point} new Point instance with added values + +
+ + +
-
+
- Parameters: + +
- + {fabric.Point} that + + + + +
-
+
- Returns: + +
- {fabric.Point} thisArg + +
+ + +
-
+
- Parameters: + +
- + that + + + + +
+ + +
-
+
- Parameters: + +
- + scalar + + + + +
+ + +
-
+
- Parameters: + +
- + scalar + + + + +
+ + +
-
+
- Parameters: + +
- + that + + + + +
+ + +
-
+
- Parameters: + +
- + that + + + + +
+ + +
-
+
- Parameters: + +
- + that + + + + +
+ + +
-
+
- Parameters: + +
- + {Number} x + + + + +
- + {Number} y + + + + +
+ + +
-
+
- Parameters: + +
- + that + + + + +
- + t + + + + +
+ + +
-
+
- Parameters: + +
- + that + + + + +
+ + +
-
+
- Parameters: + +
- + that + + + + +
+ + +
-
+
- Parameters: + +
- + that + + + + +
+ + +
-
+
- Parameters: + +
- + that + + + + +
+ + +
-
+
- Parameters: + +
- + scalar + + + + +
+ + +
-
+
- Parameters: + +
- + scalar + + + + +
+ + +
-
+
- Parameters: + +
- + {Number} scalar + + + + +
-
+
- Returns: + +
- {fabric.Point} new Point with added value + +
+ + +
-
+
- Parameters: + +
- + {Number} scalar + + + + +
- + {fabric.Point} thisArg + + + + +
+ + +
-
+
- Parameters: + +
- + scalar + + + + +
+ + +
-
+
- Parameters: + +
- + scalar + + + + +
+ + +
-
+
- Parameters: + +
- + that + + + + +
+ + +
-
+
- Parameters: + +
- + x + + + + +
- + y + + + + +
+ + +
-
+
- Parameters: + +
- + {fabric.Point} that + + + + +
-
+
- Returns: + +
- {fabric.Point} new Point object with subtracted values + +
+ + +
-
+
- Parameters: + +
- + {fabric.Point} that + + + + +
-
+
- Returns: + +
- {fabric.Point} thisArg + +
+ + +
-
+
- Parameters: + +
- + that + + + + +
+ + +
- - Class fabric .Point -
- -- -
- - - --
-
-
-
-
- Defined in: point.class.js - - - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - |
-
- fabric.Point(x, y)
-
-
- |
-
| Method Attributes | -Method Name and Description | -
|---|---|
| - |
- add(that)
-
-
- |
-
| - |
- addEquals(that)
-
-
- |
-
| - |
- distanceFrom(that)
-
-
- |
-
| - |
- divide(scalar)
-
-
- |
-
| - |
- divideEquals(scalar)
-
-
- |
-
| - |
- eq(that)
-
-
- |
-
| - |
- gt(that)
-
-
- |
-
| - |
- gte(that)
-
-
- |
-
| - |
- init(x, y)
-
-
- |
-
| - |
- lerp(that, t)
-
-
- |
-
| - |
- lt(that)
-
-
- |
-
| - |
- lte(that)
-
-
- |
-
| - |
- max(that)
-
-
- |
-
| - |
- min(that)
-
-
- |
-
| - |
- multiply(scalar)
-
-
- |
-
| - |
- multiplyEquals(scalar)
-
-
- |
-
| - |
- scalarAdd(scalar)
-
-
- |
-
| - |
- scalarAddEquals(scalar, thisArg)
-
-
- |
-
| - |
- scalarSubtract(scalar)
-
-
- |
-
| - |
- scalarSubtractEquals(scalar)
-
-
- |
-
| - |
- setFromPoint(that)
-
-
- |
-
| - |
- setXY(x, y)
-
-
- |
-
| - |
- subtract(that)
-
-
- |
-
| - |
- subtractEquals(that)
-
-
- |
-
| - |
- swap(that)
-
-
- |
-
| - |
- toString()
-
-
- |
-
-
-
- Parameters: - -
- - {Number} x - - - - -
- - {Number} y - - - - -
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Point} thisArg - - - - - - -
-
-
- Parameters: - -
- - {fabric.Point} that - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Point} new Point instance with added values - - - - - - - -
-
-
- Parameters: - -
- - {fabric.Point} that - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Point} thisArg - - - - - - - -
-
-
- Parameters: - -
- - that - - - - -
-
-
- Parameters: - -
- - scalar - - - - -
-
-
- Parameters: - -
- - scalar - - - - -
-
-
- Parameters: - -
- - that - - - - -
-
-
- Parameters: - -
- - that - - - - -
-
-
- Parameters: - -
- - that - - - - -
-
-
- Parameters: - -
- - {Number} x - - - - -
- - {Number} y - - - - -
-
-
- Parameters: - -
- - that - - - - -
- - t - - - - -
-
-
- Parameters: - -
- - that - - - - -
-
-
- Parameters: - -
- - that - - - - -
-
-
- Parameters: - -
- - that - - - - -
-
-
- Parameters: - -
- - that - - - - -
-
-
- Parameters: - -
- - scalar - - - - -
-
-
- Parameters: - -
- - scalar - - - - -
-
-
- Parameters: - -
- - {Number} scalar - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Point} new Point with added value - - - - - - - -
-
-
- Parameters: - -
- - {Number} scalar - - - - -
- - {fabric.Point} thisArg - - - - -
-
-
- Parameters: - -
- - scalar - - - - -
-
-
- Parameters: - -
- - scalar - - - - -
-
-
- Parameters: - -
- - that - - - - -
-
-
- Parameters: - -
- - x - - - - -
- - y - - - - -
-
-
- Parameters: - -
- - {fabric.Point} that - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Point} new Point object with subtracted values - - - - - - - -
-
-
- Parameters: - -
- - {fabric.Point} that - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Point} thisArg - - - - - - - -
-
-
- Parameters: - -
- - that - - - - -
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Class fabric.Polygon +
+ + +
+
+
Extends
+ fabric.Object.
+
+
+ Polygon
+
+
+
Defined in: polygon.class.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ fabric.Polygon()
+
+
+ |
+
| Field Attributes | +Field Name and Description | +
|---|---|
| <static> | +
+
+ fabric.Polygon.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Polygon.fromElement`)
+ |
+
| + |
+
+ type
+
+
+ |
+
-
+
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties +
| Method Attributes | +Method Name and Description | +
|---|---|
| + |
+ complexity()
+
+ Returns complexity of an instance
+ |
+
| <static> | +
+ fabric.Polygon.fromElement(element, options)
+
+ Returns fabric.Polygon instance from an SVG element
+ |
+
| <static> | +
+ fabric.Polygon.fromObject(object)
+
+ Returns fabric.Polygon instance from an object representation
+ |
+
| + |
+ initialize(points, options)
+
+ Constructor
+ |
+
| + |
+ toObject()
+
+ Returns object representation of an instance
+ |
+
-
+
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform +
- HTML template: Codeview 1.1.1 -
+ + +
-
+
- Returns: + +
- {Number} complexity of this instance + +
+ + +
-
+
- Parameters: + +
- + {SVGElement} element + + +
- Element to parse + +
- + {Object} options + + +
- Options object + +
-
+
- Returns: + +
- {fabric.Polygon} + +
+ + +
-
+
- Parameters: + +
- + {Object} object + + +
- Object to create an instance from + +
-
+
- Returns: + +
- {fabric.Polygon} + +
+ + +
-
+
- Parameters: + +
- + {Array} points + + +
- Array of points + +
- + {Object} options + + +
- Options object + +
-
+
- Returns: + +
- {fabric.Polygon} thisArg + +
+ + +
-
+
- Returns: + +
- {Object} object representation of an instance + +
- - Class fabric .Polygon -
- -- Polygon -
- - - --
-
-
-
-
- Defined in: polygon.class.js - - -
- Extends - fabric.Object - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - |
-
- fabric.Polygon()
-
-
- |
-
| Field Attributes | -Field Name and Description | -
|---|---|
| <static> | -
-
- fabric.Polygon.ATTRIBUTE_NAMES
-
- List of attribute names to account for when parsing SVG element (used by `fabric.Polygon.fromElement`)
- |
-
| - |
-
- type
-
-
- |
-
-
-
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties -
| Method Attributes | -Method Name and Description | -
|---|---|
| - |
- complexity()
-
- Returns complexity of an instance
- |
-
| <static> | -
- fabric.Polygon.fromElement(element, options)
-
- Returns fabric.Polygon instance from an SVG element
- |
-
| <static> | -
- fabric.Polygon.fromObject(object)
-
- Returns fabric.Polygon instance from an object representation
- |
-
| - |
- initialize(points, options)
-
- Constructor
- |
-
| - |
- toObject()
-
- Returns object representation of an instance
- |
-
-
-
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Number} complexity of this instance - - - - - - - -
-
-
- Parameters: - -
- - {SVGElement} element - - -
- Element to parse - -
- - {Object} options - - -
- Options object - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Polygon} - - - - - - - -
-
-
- Parameters: - -
- - {Object} object - - -
- Object to create an instance from - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Polygon} - - - - - - - -
-
-
- Parameters: - -
- - {Array} points - - -
- Array of points - -
- - {Object} options - - -
- Options object - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Polygon} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} object representation of an instance - - - - - - - -
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Class fabric.Polyline +
+ + +
+
+
Extends
+ fabric.Object.
+
+
+ Polyline
+
+
+
Defined in: polyline.class.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ fabric.Polyline()
+
+
+ |
+
| Field Attributes | +Field Name and Description | +
|---|---|
| <static> | +
+
+ fabric.Polyline.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Polyline.fromElement`)
+ |
+
| + |
+
+ type
+
+
+ |
+
-
+
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties +
| Method Attributes | +Method Name and Description | +
|---|---|
| + |
+ complexity()
+
+ Returns complexity of an instance
+ |
+
| <static> | +
+ fabric.Polyline.fromElement(element, options)
+
+ Returns fabric.Polyline instance from an SVG element
+ |
+
| <static> | +
+ fabric.Polyline.fromObject(object)
+
+ Returns fabric.Polyline instance from an object representation
+ |
+
| + |
+ initialize(points, options)
+
+ Constructor
+ |
+
| + |
+ toObject()
+
+ Returns object representation of an instance
+ |
+
-
+
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform +
- HTML template: Codeview 1.1.1 -
+ + +
-
+
- Returns: + +
- {Number} complexity + +
+ + +
-
+
- Parameters: + +
- + {SVGElement} element + + +
- Element to parse + +
- + {Object} options + Optional + +
- Options object + +
-
+
- Returns: + +
- {Object} instance of fabric.Polyline + +
+ + +
-
+
- Parameters: + +
- + {Object} object + Optional + +
- Object to create an instance from + +
-
+
- Returns: + +
- {fabric.Polyline} + +
+ + +
-
+
- Parameters: + +
- + {Array} points + + +
- array of points + +
- + {Object} options + Optional + +
- Options object + +
-
+
- Returns: + +
- {Object} thisArg + +
+ + +
-
+
- Returns: + +
- {Object} Object representation of an instance + +
- - Class fabric .Polyline -
- -- Polyline -
- - - --
-
-
-
-
- Defined in: polyline.class.js - - -
- Extends - fabric.Object - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - |
-
- fabric.Polyline()
-
-
- |
-
| Field Attributes | -Field Name and Description | -
|---|---|
| - |
-
- type
-
-
- |
-
-
-
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties -
| Method Attributes | -Method Name and Description | -
|---|---|
| - |
- complexity()
-
- Returns complexity of an instance
- |
-
| <static> | -
- fabric.Polyline.fromElement(element, options)
-
- Returns fabric.Polyline instance from an SVG element
- |
-
| <static> | -
- fabric.Polyline.fromObject(object)
-
- Returns fabric.Polyline instance from an object representation
- |
-
| - |
- initialize(points, options)
-
- Constructor
- |
-
| - |
- toObject()
-
- Returns object representation of an instance
- |
-
-
-
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Number} complexity - - - - - - - -
-
-
- Parameters: - -
- - {SVGElement} element - - -
- Element to parse - -
- - {Object} options - Optional - -
- Options object - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} instance of fabric.Polyline - - - - - - - -
-
-
- Parameters: - -
- - {Object} object - Optional - -
- Object to create an instance from - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Polyline} - - - - - - - -
-
-
- Parameters: - -
- - {Array} points - - -
- array of points - -
- - {Object} options - Optional - -
- Options object - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} Object representation of an instance - - - - - - - -
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Class fabric.Rect +
+ + +
+
+
Extends
+ fabric.Object.
+
+
+ Rect
+
+
+
Defined in: rect.class.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ fabric.Rect()
+
+
+ |
+
| Field Attributes | +Field Name and Description | +
|---|---|
| <static> | +
+
+ fabric.Rect.ATTRIBUTE_NAMES
+
+ List of attribute names to account for when parsing SVG element (used by `fabric.Rect.fromElement`)
+ |
+
| + |
+
+ options
+
+
+ |
+
| + |
+
+ type
+
+
+ |
+
-
+
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties +
| Method Attributes | +Method Name and Description | +
|---|---|
| + |
+ complexity()
+
+
+ |
+
| <static> | +
+ fabric.Rect.fromElement(element, options)
+
+ Returns fabric.Rect instance from an SVG element
+ |
+
| <static> | +
+ fabric.Rect.fromObject(object)
+
+ Returns fabric.Rect instance from an object representation
+ |
+
| + |
+ initialize(options)
+
+ Constructor
+ |
+
-
+
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform +
- HTML template: Codeview 1.1.1 -
+ + +
+ + +
-
+
- Returns: + +
- {Number} complexity + +
+ + +
-
+
- Parameters: + +
- + element + + +
- {SVGElement} element to parse + +
- + options + + +
- {Object} options object + +
-
+
- Returns: + +
- {fabric.Rect} instance of fabric.Rect + +
+ + +
-
+
- Parameters: + +
- + object + + +
- {Object} object to create an instance from + +
-
+
- Returns: + +
- {Object} instance of fabric.Rect + +
+ + +
-
+
- Parameters: + +
- + options + + +
- {Object} options object + +
-
+
- Returns: + +
- {Object} thisArg + +
- - Class fabric .Rect -
- -- Rect -
- - - --
-
-
-
-
- Defined in: rect.class.js - - -
- Extends - fabric.Object - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - |
-
- fabric.Rect()
-
-
- |
-
| Field Attributes | -Field Name and Description | -
|---|---|
| - |
-
- options
-
-
- |
-
| - |
-
- type
-
-
- |
-
-
-
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties -
| Method Attributes | -Method Name and Description | -
|---|---|
| - |
- complexity()
-
-
- |
-
| <static> | -
- fabric.Rect.fromElement(element, options)
-
-
- |
-
| <static> | -
- fabric.Rect.fromObject(object)
-
-
- |
-
| - |
- initialize(options)
-
- Constructor
- |
-
-
-
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Number} complexity - - - - - - - -
-
-
- Parameters: - -
- - element - - -
- {SVGElement} element to parse - -
- - options - - -
- {Object} options object - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Rect} instance of fabric.Rect - - - - - - - -
-
-
- Parameters: - -
- - object - - -
- {Object} object to create an instance from - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} instance of fabric.Rect - - - - - - - -
-
-
- Parameters: - -
- - options - - -
- {Object} options object - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} thisArg - - - - - - - -
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Class fabric.Text +
+ + +
+
+
Extends
+ fabric.Object.
+
+
+ Text
+
+
+
Defined in: text.class.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ fabric.Text()
+
+
+ |
+
| Field Attributes | +Field Name and Description | +
|---|---|
| + |
+
+ options
+
+
+ |
+
| + |
+
+ type
+
+
+ |
+
-
+
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties +
| Method Attributes | +Method Name and Description | +
|---|---|
| <static> | +
+ fabric.Text.fromElement(element)
+
+ Returns fabric.Text instance from an SVG element (not yet implemented)
+ |
+
| <static> | +
+ fabric.Text.fromObject(object)
+
+ Returns fabric.Text instance from an object representation
+ |
+
| + |
+ getText()
+
+ Returns actual text value of an instance
+ |
+
| + |
+ initialize(text, options)
+
+ Constructor
+ |
+
| + |
+ render(ctx)
+
+ Renders text instance on a specified context
+ |
+
| + |
+ set(name, value)
+
+ Sets specified property to a specified value
+ |
+
| + |
+ setColor(value)
+
+ Sets "color" of an instance (alias of `set('fill', …)`)
+ |
+
| + |
+ setFontsize(value)
+
+ Sets fontsize of an instance and updates its coordinates
+ |
+
| + |
+ setText(value)
+
+ Sets text of an instance, and updates its coordinates
+ |
+
| + |
+ toObject()
+
+ Returns object representation of an instance
+ |
+
| + |
+ toString()
+
+ Returns string representation of an instance
+ |
+
-
+
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, complexity, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, transform +
- HTML template: Codeview 1.1.1 -
+ + +
-
+
- Parameters: + +
- + element + + + + +
-
+
- Returns: + +
- {fabric.Text} an instance + +
+ + +
-
+
- Parameters: + +
- + {Object} object + + +
- to create an instance from + +
-
+
- Returns: + +
- {fabric.Text} an instance + +
+ + +
-
+
- Returns: + +
- {String} + +
+ + +
-
+
- Parameters: + +
- + {String} text + + + + +
- + {Object} options + Optional + + + +
-
+
- Returns: + +
- {fabric.Text} thisArg + +
+ + +
-
+
- Parameters: + +
- + ctx + + +
- {CanvasRenderingContext2D} context to render on + +
+ + +
-
+
- Parameters: + +
- + {String} name + + + + +
- + {Any} value + + + + +
-
+
- Returns: + +
- {fabric.Text} thisArg + +
+ + +
-
+
- Parameters: + +
- + {String} value + + + + +
-
+
- Returns: + +
- {fabric.Text} thisArg + +
+ + +
-
+
- Parameters: + +
- + {Number} value + + + + +
-
+
- Returns: + +
- {fabric.Text} thisArg + +
+ + +
-
+
- Parameters: + +
- + {String} value + + + + +
-
+
- Returns: + +
- {fabric.Text} thisArg + +
+ + +
-
+
- Returns: + +
- {Object} Object representation of text object + +
+ + +
-
+
- Returns: + +
- {String} String representation of text object + +
- - Class fabric .Text -
- -- Text -
- - - --
-
-
-
-
- Defined in: text.class.js - - -
- Extends - fabric.Object - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - |
-
- fabric.Text()
-
-
- |
-
| Field Attributes | -Field Name and Description | -
|---|---|
| - |
-
- options
-
-
- |
-
| - |
-
- type
-
-
- |
-
-
-
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, stateProperties -
| Method Attributes | -Method Name and Description | -
|---|---|
| <static> | -
- fabric.Text.fromElement(element)
-
-
- |
-
| <static> | -
- fabric.Text.fromObject(object)
-
- Returns fabric.Text instance from an object representation
- |
-
| - |
- getText()
-
-
- |
-
| - |
- initialize(text, options)
-
- Constructor
- |
-
| - | - - - | -
| - |
- render(ctx)
-
-
- |
-
| - |
- set(name, value)
-
- Sets specified property to a specified value
- |
-
| - |
- setColor(value)
-
-
- |
-
| - |
- setFontsize(value)
-
-
- |
-
| - |
- setText(value)
-
- Sets text of an instance, and updates its coordinates
- |
-
| - |
- toObject()
-
-
- |
-
| - |
- toString()
-
- Returns string representation of an instance
- |
-
-
-
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, complexity, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, saveState, scale, scaleToHeight, scaleToWidth, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, transform -
-
-
- Parameters: - -
- - element - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Text} an instance - - - - - - - -
-
-
- Parameters: - -
- - {Object} object - - -
- to create an instance from - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Text} an instance - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {String} - - - - - - - -
-
-
- Parameters: - -
- - {String} text - - - - -
- - {Object} options - Optional - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Text} thisArg - - - - - - - -
-
-
- Parameters: - -
- - ctx - - -
- {CanvasRenderingContext2D} context to render on - -
-
-
- Parameters: - -
- - {String} name - - - - -
- - {Any} value - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Text} thisArg - - - - - - - -
-
-
- Parameters: - -
- - {String} value - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Text} thisArg - - - - - - - -
-
-
- Parameters: - -
- - {Number} value - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Text} thisArg - - - - - - - -
-
-
- Parameters: - -
- - {String} value - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {fabric.Text} thisArg - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} Object representation of text object - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {String} String representation of text object - - - - - - - -
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Class fabric.Triangle +
+ + +
+
+
Extends
+ fabric.Object.
+
+
+ Triangle
+
+
+
Defined in: triangle.class.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ fabric.Triangle()
+
+
+ |
+
| Field Attributes | +Field Name and Description | +
|---|---|
| + |
+
+ type
+
+
+ |
+
-
+
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties +
| Method Attributes | +Method Name and Description | +
|---|---|
| + |
+ complexity()
+
+ Returns complexity of an instance
+ |
+
| <static> | +
+ fabric.Triangle.fromObject(object)
+
+ Returns fabric.Triangle instance from an object representation
+ |
+
| + |
+ initialize(options)
+
+ Constructor
+ |
+
-
+
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform +
- HTML template: Codeview 1.1.1 -
-
+
- Returns: + +
- {Number} complexity of this instance + +
+ + +
-
+
- Parameters: + +
- + object + + +
- {Object} object to create an instance from + +
-
+
- Returns: + +
- {Object} instance of Canvas.Triangle + +
+ + +
-
+
- Parameters: + +
- + options + + +
- {Object} options object + +
-
+
- Returns: + +
- {Object} thisArg + +
- - Class fabric .Triangle -
- -- Triangle -
- - - --
-
-
-
-
- Defined in: triangle.class.js - - -
- Extends - fabric.Object - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - |
-
- fabric.Triangle()
-
-
- |
-
| Field Attributes | -Field Name and Description | -
|---|---|
| - |
-
- type
-
-
- |
-
-
-
- Fields borrowed from class fabric.Object:
- FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, options, rotate, stateProperties -
| Method Attributes | -Method Name and Description | -
|---|---|
| - |
- complexity()
-
- Returns complexity of an instance
- |
-
| <static> | -
- fabric.Triangle.fromObject(object)
-
- Returns fabric.Triangle instance from an object representation
- |
-
| - |
- initialize(options)
-
- Constructor
- |
-
-
-
- Methods borrowed from class fabric.Object:
- callSuper, clone, cloneAsImage, drawBorders, drawCorners, fxRemove, fxStraighten, get, getAngle, getCenter, getHeight, getWidth, hasStateChanged, intersectsWithObject, intersectsWithRect, isActive, isContainedWithinRect, isType, render, saveState, scale, scaleToHeight, scaleToWidth, set, setActive, setAngle, setCoords, setOpacity, setOptions, setSourcePath, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toObject, toString, transform -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Number} complexity of this instance - - - - - - - -
-
-
- Parameters: - -
- - object - - -
- {Object} object to create an instance from - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} instance of Canvas.Triangle - - - - - - - -
-
-
- Parameters: - -
- - options - - -
- {Object} options object - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Object} thisArg - - - - - - - -
+
Classes
+-
+
+
- _global_ + +
- Array + +
- fabric + +
- fabric.Circle + +
- fabric.Color + +
- fabric.Element + +
- fabric.Element#cache + +
- fabric.Ellipse + +
- fabric.Group + +
- fabric.Image + +
- fabric.Intersection + +
- fabric.Line + +
- fabric.Object + +
- fabric.Path + +
- fabric.PathGroup + +
- fabric.Point + +
- fabric.Polygon + +
- fabric.Polyline + +
- fabric.Rect + +
- fabric.Text + +
- fabric.Triangle + +
- fabric.util + +
- fabric.util.array + +
- fabric.util.object + +
- fabric.util.string + +
- Function + +
- String + +
+ +
+ + Namespace fabric +
+ + +
+
+
+
+
+
+
+
Defined in: parser.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ fabric
+
+
+ |
+
| Method Attributes | +Method Name and Description | +
|---|---|
| <static> | +
+ fabric.log(Values)
+
+ Wrapper around `console.log` (when available)
+ |
+
| <static> | +
+ fabric.parseAttributes(element, attributes)
+
+ Returns an object of attributes' name/value, given element and an array of attribute names;
+Parses parent "g" nodes recursively upwards.
+ |
+
| <static> | +
+ fabric.parseElements(elements, options)
+
+
+ |
+
| <static> | +
+ fabric.parsePointsAttribute(points)
+
+
+ |
+
| <static> | +
+ fabric.parseStyleAttribute(element)
+
+
+ |
+
| <static> | +
+ fabric.parseSVGDocument(doc, callback)
+
+
+ |
+
| <static> | +
+ fabric.parseTransformAttribute(attributeValue)
+
+
+ |
+
| <static> | +
+ fabric.warn(Values)
+
+ Wrapper around `console.warn` (when available)
+ |
+
+ Defined in: fabric.js. + + +
-
+
- Parameters: + +
- + {Any} Values + + +
- to log + +
+ + +
-
+
- Parameters: + +
- + {DOMElement} element + + +
- Element to parse + +
- + {Array} attributes + + +
- Array of attributes to parse + +
-
+
- Returns: + +
- {Object} object containing parsed attributes' names/values + +
+ + +
-
+
- Parameters: + +
- + {Array} elements + + +
- Array of elements to parse + +
- + {Object} options + + +
- Options object + +
-
+
- Returns: + +
- {Array} Array of corresponding instances (transformed from SVG elements) + +
+ + +
-
+
- Parameters: + +
- + points + + +
- {String} points attribute string + +
-
+
- Returns: + +
- {Array} array of points + +
+ + +
-
+
- Parameters: + +
- + {SVGElement} element + + +
- Element to parse + +
-
+
- Returns: + +
- {Object} Objects with values parsed from style attribute of an element + +
+ + +
-
+
- Parameters: + +
- + {SVGDocument} doc + + +
- SVG document to parse + +
- + {Function} callback + + +
- Callback to call when parsing is finished; It's being passed an array of elements (parsed from a document). + +
+ + +
-
+
- Parameters: + +
- + attributeValue + + +
- {String} string containing attribute value + +
-
+
- Returns: + +
- {Array} array of 6 elements representing transformation matrix + +
+ + +
+ Defined in: fabric.js. + + +
-
+
- Parameters: + +
- + {Any} Values + + +
- to log as a warning + +
+
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Namespace fabric.util.array +
+ + +
+
+
+
+
+
+
+
Defined in: lang_array.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + | + + + | +
| Method Attributes | +Method Name and Description | +
|---|---|
| <static> | +
+ fabric.util.array.invoke(array, method)
+
+ Invokes method on all items in a given array
+ |
+
| <static> | +
+ fabric.util.array.max(array, byProperty)
+
+ Finds maximum value in array (not necessarily "first" one)
+ |
+
| <static> | +
+ fabric.util.array.min(array, byProperty)
+
+ Finds minimum value in array (not necessarily "first" one)
+ |
+
- HTML template: Codeview 1.1.1 -
-
+
- Parameters: + +
- + {Array} array + + +
- Array to iterate over + +
- + {String} method + + +
- Name of a method to invoke + +
+ + +
+ + +
- - Namespace fabric .util .array -
- -- -
- - - --
-
-
-
-
- Defined in: lang_array.js - - - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - | - - - | -
| Method Attributes | -Method Name and Description | -
|---|---|
| <static> | -
- fabric.util.array.invoke(array, method)
-
- Invokes method on all items in a given array
- |
-
| <static> | -
- fabric.util.array.max(array, byProperty)
-
- Finds maximum value in array (not necessarily "first" one)
- |
-
| <static> | -
- fabric.util.array.min(array, byProperty)
-
- Finds minimum value in array (not necessarily "first" one)
- |
-
-
-
- Parameters: - -
- - {Array} array - - -
- Array to iterate over - -
- - {String} method - - -
- Name of a method to invoke - -
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Namespace fabric.util +
+ + +
+
+
+
+
+
+
+
Defined in: util.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + |
+
+ fabric.util
+
+
+ |
+
| Method Attributes | +Method Name and Description | +
|---|---|
| <static> | +
+ fabric.util.addClass(element, className)
+
+ Adds class to an element
+ |
+
| <static> | +
+ fabric.util.addListener(element, eventName, handler)
+
+ Adds an event listener to an element
+ |
+
| <static> | +
+ fabric.util.animate(options)
+
+ Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
+ |
+
| <static> | +
+ fabric.util.createClass()
+
+ Helper for creation of "classes"
+ |
+
| <static> | +
+ fabric.util.degreesToRadians(degrees)
+
+ Transforms degrees to radians.
+ |
+
| <static> | +
+ fabric.util.falseFunction()
+
+ Function which always returns `false`.
+ |
+
| <static> | +
+ fabric.util.fireEvent(eventName, memo)
+
+ Fires event with an optional memo object
+ |
+
| <static> | +
+ fabric.util.getById(id)
+
+ Takes id and returns an element with that id (if one exists in a document)
+ |
+
| <static> | +
+ fabric.util.getElementOffset(element)
+
+ Returns offset for a given element
+ |
+
| <static> | +
+ fabric.util.getPointer(event)
+
+ Cross-browser wrapper for getting event's coordinates
+ |
+
| <static> | +
+ fabric.util.getRandomInt(min, max)
+
+ Returns random number between 2 specified ones.
+ |
+
| <static> | +
+ fabric.util.getScript(url, callback)
+
+ Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
+ |
+
| <static> | +
+ fabric.util.makeElement(tagName, attributes)
+
+ Creates specified element with specified attributes
+ |
+
| <static> | +
+ fabric.util.makeElementUnselectable(element)
+
+ Makes element unselectable
+ |
+
| <static> | +
+ fabric.util.observeEvent(eventName, handler)
+
+
+ |
+
| <static> | +
+ fabric.util.removeFromArray(array, value)
+
+ Removes value from an array.
+ |
+
| <static> | +
+ fabric.util.removeListener(element, eventName, handler)
+
+ Removes an event listener from an element
+ |
+
| <static> | +
+ fabric.util.request(url, options)
+
+ Cross-browser abstraction for sending XMLHttpRequest
+ |
+
| <static> | +
+ fabric.util.setStyle(element, styles)
+
+ Cross-browser wrapper for setting element's style
+ |
+
| <static> | +
+ fabric.util.toArray(arrayLike)
+
+ Converts an array-like object (e.g.
+ |
+
| <static> | +
+ fabric.util.toFixed(number, fractionDigits)
+
+ A wrapper around Number#toFixed, which contrary to native method returns number, not string.
+ |
+
| <static> | +
+ fabric.util.wrapElement(element, wrapper, attributes)
+
+ Wraps element with another element
+ |
+
- HTML template: Codeview 1.1.1 -
+
+ <static>
- Namespace fabric .util
-
-
-
-
-
-
-
-
-
-
-
- - Defined in: util.js
-
-
-
-
-
-
-
-
-
- Namespace Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
- fabric.util
-
-
-
-
-
-
+ fabric.util.addClass(element, className)
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.util.addClass(element, className)
-
- Adds class to an element
-
-
-
-
- <static>
-
- fabric.util.addListener(element, eventName, handler)
-
- Adds an event listener to an element
-
-
-
-
- <static>
-
- fabric.util.animate(options)
-
- Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
-
-
-
-
- <static>
-
- fabric.util.createClass()
-
- Helper for creation of "classes"
-
-
-
-
- <static>
-
- fabric.util.degreesToRadians(degrees)
-
- Transforms degrees to radians.
-
-
-
-
- <static>
-
- fabric.util.falseFunction()
-
- Function which always returns `false`.
-
-
-
-
- <static>
-
- fabric.util.fireEvent(eventName, memo)
-
- Fires event with an optional memo object
-
-
-
-
- <static>
-
- fabric.util.getById(id)
-
- Takes id and returns an element with that id (if one exists in a document)
-
-
-
-
- <static>
-
- fabric.util.getElementOffset(element)
-
- Returns offset for a given element
-
-
-
-
- <static>
-
- fabric.util.getPointer(event)
-
- Cross-browser wrapper for getting event's coordinates
-
-
-
-
- <static>
-
- fabric.util.getRandomInt(min, max)
-
- Returns random number between 2 specified ones.
-
-
-
-
- <static>
-
- fabric.util.getScript(url, callback)
-
- Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
-
-
-
-
- <static>
-
- fabric.util.makeElement(tagName, attributes)
-
- Creates specified element with specified attributes
-
-
-
-
- <static>
-
- fabric.util.makeElementUnselectable(element)
-
- Makes element unselectable
-
-
-
-
- <static>
-
- fabric.util.observeEvent(eventName, handler)
-
-
-
-
-
-
- <static>
-
- fabric.util.removeFromArray(array, value)
-
- Removes value from an array.
-
-
-
-
- <static>
-
- fabric.util.removeListener(element, eventName, handler)
-
- Removes an event listener from an element
-
-
-
-
- <static>
-
- fabric.util.request(url, options)
-
- Cross-browser abstraction for sending XMLHttpRequest
-
-
-
-
- <static>
-
- fabric.util.setStyle(element, styles)
-
- Cross-browser wrapper for setting element's style
-
-
-
-
- <static>
-
- fabric.util.toArray(arrayLike)
-
- Converts an array-like object (e.g.
-
-
-
-
- <static>
-
- fabric.util.toFixed(number, fractionDigits)
-
- A wrapper around Number#toFixed, which contrary to native method returns number, not string.
-
-
-
-
- <static>
-
- fabric.util.wrapElement(element, wrapper, attributes)
-
- Wraps element with another element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Namespace Detail
-
-
-
- fabric.util
-
-
-
-
-
-
-
-
+
+ Adds class to an element
+
+
+ Defined in: dom_misc.js.
+
-
-
-
-
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+ - Element to add class to
+
+ -
+ {String} className
+
+
+ - Class to add to an element
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.addListener(element, eventName, handler)
+
+
+
+ Adds an event listener to an element
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+
+
+ -
+ {String} eventName
+
+
+
+
+ -
+ {Function} handler
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+ <static>
+
+
+ fabric.util.animate(options)
+
+
+
+ Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} options
+ Optional
+
+ - Animation options
+
+ -
+ {Function} options.onChange
+ Optional
+
+ - Callback; invoked on every value change
+
+ -
+ {Function} options.onComplete
+ Optional
+
+ - Callback; invoked when value change is completed
+
+ -
+ {Number} options.startValue
+ Optional, Default: 0
+
+ - Starting value
+
+ -
+ {Number} options.endValue
+ Optional, Default: 100
+
+ - Ending value
+
+ -
+ {Function} options.easing
+ Optional
+
+ - Easing function
+
+ -
+ {Number} options.duration
+ Optional, Default: 500
+
+ - Duration of change
+
+
+
+
+
+
+
+
+
-
+
-
-
-
- Method Detail
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.addClass(element, className)
-
-
-
- Adds class to an element
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to add class to
-
- -
- {String} className
-
-
- - Class to add to an element
-
-
-
-
-
+
+ <static>
+
+
+ fabric.util.createClass()
+
+
+
+ Helper for creation of "classes"
+
+
+ Defined in: lang_class.js.
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Number}
+ fabric.util.degreesToRadians(degrees)
+
+
+
+ Transforms degrees to radians.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {Number} degrees
-
-
- fabric.util.addListener(element, eventName, handler)
-
-
-
- Adds an event listener to an element
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
-
-
- -
- {String} eventName
-
-
-
-
- -
- {Function} handler
-
-
-
-
-
-
-
-
+
+ - value in degrees
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} value in radians
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Boolean}
+ fabric.util.falseFunction()
+
+
+
+ Function which always returns `false`.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
-
-
-
-
- <static>
-
-
-
-
- fabric.util.animate(options)
-
-
-
- Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} options
- Optional
-
- - Animation options
-
- -
- {Function} options.onChange
- Optional
-
- - Callback; invoked on every value change
-
- -
- {Function} options.onComplete
- Optional
-
- - Callback; invoked when value change is completed
-
- -
- {Number} options.startValue
- Optional, Default: 0
-
- - Starting value
-
- -
- {Number} options.endValue
- Optional, Default: 100
-
- - Ending value
-
- -
- {Function} options.easing
- Optional
-
- - Easing function
-
- -
- {Number} options.duration
- Optional, Default: 500
-
- - Duration of change
-
-
-
-
-
+ - {Boolean}
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.fireEvent(eventName, memo)
+
+
+
+ Fires event with an optional memo object
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} eventName
-
-
- fabric.util.createClass()
-
-
-
- Helper for creation of "classes"
-
-
-
- Defined in: lang_class.js.
-
-
-
-
-
-
-
-
-
-
+
+
+
+ -
+ {Object} memo
+ Optional
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {HTMLElement|null}
+ fabric.util.getById(id)
+
+
+
+ Takes id and returns an element with that id (if one exists in a document)
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String|HTMLElement} id
- {Number}
-
- fabric.util.degreesToRadians(degrees)
-
-
-
- Transforms degrees to radians.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} degrees
-
-
- - value in degrees
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} value in radians
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement|null}
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Object}
+ fabric.util.getElementOffset(element)
+
+
+
+ Returns offset for a given element
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {HTMLElement} element
- {Boolean}
-
- fabric.util.falseFunction()
-
-
-
- Function which always returns `false`.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Boolean}
-
-
-
-
-
-
-
-
-
+
+ - Element to get offset for
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Object} Object with "left" and "top" properties
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.getPointer(event)
+
+
+
+ Cross-browser wrapper for getting event's coordinates
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {Event} event
-
-
- fabric.util.fireEvent(eventName, memo)
-
-
-
- Fires event with an optional memo object
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} eventName
-
-
-
-
- -
- {Object} memo
- Optional
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {Number}
+ fabric.util.getRandomInt(min, max)
+
+
+
+ Returns random number between 2 specified ones.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {Number} min
- {HTMLElement|null}
+
+ - lower limit
+
+ -
+ {Number} max
- fabric.util.getById(id)
-
-
-
- Takes id and returns an element with that id (if one exists in a document)
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String|HTMLElement} id
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement|null}
-
-
-
-
-
-
-
-
-
+
+ - upper limit
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number} random value (between min and max)
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.getScript(url, callback)
+
+
+
+ Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} url
- {Object}
+
+ - URL of a script to load
+
+ -
+ {Function} callback
- fabric.util.getElementOffset(element)
-
-
-
- Returns offset for a given element
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to get offset for
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Object} Object with "left" and "top" properties
-
-
-
-
-
-
-
-
-
+
+ - Callback to execute when script is finished loading
+
+
+
+
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.makeElement(tagName, attributes)
+
+
+
+ Creates specified element with specified attributes
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} tagName
-
-
- fabric.util.getPointer(event)
-
-
-
- Cross-browser wrapper for getting event's coordinates
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Event} event
-
-
-
-
-
-
-
-
+
+ - Type of an element to create
+
+ -
+ {Object} attributes
+ Optional
+
+ - Attributes to set on an element
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} Newly created element
+
+
+
+
+
-
+
+
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.makeElementUnselectable(element)
+
+
+
+ Makes element unselectable
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {HTMLElement} element
- {Number}
-
- fabric.util.getRandomInt(min, max)
-
-
-
- Returns random number between 2 specified ones.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number} min
-
-
- - lower limit
-
- -
- {Number} max
-
-
- - upper limit
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number} random value (between min and max)
-
-
-
-
-
-
-
-
-
+
+ - Element to make unselectable
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} Element that was passed in
+
+
+
+
+
-
+
+
+
+ <static>
+
+
+ fabric.util.observeEvent(eventName, handler)
+
+
+
+
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
-
-
-
-
- <static>
-
+ -
+ {String} eventName
+
+
+
+ -
+ {Function} handler
-
- fabric.util.getScript(url, callback)
-
-
-
- Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.makeElement(tagName, attributes)
-
-
-
- Creates specified element with specified attributes
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} tagName
-
-
- - Type of an element to create
-
- -
- {Object} attributes
- Optional
-
- - Attributes to set on an element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} Newly created element
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.makeElementUnselectable(element)
-
-
-
- Makes element unselectable
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to make unselectable
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} Element that was passed in
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.observeEvent(eventName, handler)
-
-
-
-
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Removes value from an array.
+
+
+
+ <static>
+
+ {Array}
+ fabric.util.removeFromArray(array, value)
+
+
+
+ Removes value from an array.
Presence of value (and its position in an array) is determined via `Array.prototype.indexOf`
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Array} array
-
-
-
-
- -
- {Any} value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Array} original array
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.removeListener(element, eventName, handler)
-
-
-
- Removes an event listener from an element
-
-
-
- Defined in: dom_event.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
-
-
- -
- {String} eventName
-
-
-
-
- -
- {Function} handler
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {XMLHttpRequest}
-
- fabric.util.request(url, options)
-
-
-
- Cross-browser abstraction for sending XMLHttpRequest
-
-
-
- Defined in: dom_request.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} url
-
-
- - URL to send XMLHttpRequest to
-
- -
- {Object} options
- Optional
-
- - Options object
-
- -
- {String} options.method
- Optional, Default: "GET"
-
-
-
- -
- {Function} options.onComplete
-
-
- - Callback to invoke when request is completed
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {XMLHttpRequest} request
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.setStyle(element, styles)
-
-
-
- Cross-browser wrapper for setting element's style
-
-
-
- Defined in: dom_style.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
-
-
- -
- {Object} styles
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} Element that was passed as a first argument
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Converts an array-like object (e.g. arguments or NodeList) to an array
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} arrayLike
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Array}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {Number}
-
- fabric.util.toFixed(number, fractionDigits)
-
-
-
- A wrapper around Number#toFixed, which contrary to native method returns number, not string.
-
-
-
- Defined in: misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Number | String} number
-
-
- - number to operate on
-
- -
- {Number} fractionDigits
-
-
- - number of fraction digits to "leave"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {Number}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
- {HTMLElement}
-
- fabric.util.wrapElement(element, wrapper, attributes)
-
-
-
- Wraps element with another element
-
-
-
- Defined in: dom_misc.js.
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {HTMLElement} element
-
-
- - Element to wrap
-
- -
- {HTMLElement|String} wrapper
-
-
- - Element to wrap with
-
- -
- {Object} attributes
- Optional
-
- - Attributes to set on a wrapper
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {HTMLElement} wrapper
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Array} array
+
+
+
+
+ -
+ {Any} value
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array} original array
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.removeListener(element, eventName, handler)
+
+
+
+ Removes an event listener from an element
+
+
+ Defined in: dom_event.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+
+
+ -
+ {String} eventName
+
+
+
+
+ -
+ {Function} handler
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+ <static>
+
+ {XMLHttpRequest}
+ fabric.util.request(url, options)
+
+
+
+ Cross-browser abstraction for sending XMLHttpRequest
+
+
+ Defined in: dom_request.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} url
+
+
+ - URL to send XMLHttpRequest to
+
+ -
+ {Object} options
+ Optional
+
+ - Options object
+
+ -
+ {String} options.method
+ Optional, Default: "GET"
+
+
+
+ -
+ {Function} options.onComplete
+
+
+ - Callback to invoke when request is completed
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {XMLHttpRequest} request
+
+
+
+
+
+
+
-
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.setStyle(element, styles)
+
+
+
+ Cross-browser wrapper for setting element's style
+
+
+ Defined in: dom_style.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+
+
+ -
+ {Object} styles
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} Element that was passed as a first argument
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Array}
+ fabric.util.toArray(arrayLike)
+
+
+
+ Converts an array-like object (e.g. arguments or NodeList) to an array
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} arrayLike
+
+
+
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Array}
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {Number}
+ fabric.util.toFixed(number, fractionDigits)
+
+
+
+ A wrapper around Number#toFixed, which contrary to native method returns number, not string.
+
+
+ Defined in: misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Number | String} number
+
+
+ - number to operate on
+
+ -
+ {Number} fractionDigits
+
+
+ - number of fraction digits to "leave"
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {Number}
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {HTMLElement}
+ fabric.util.wrapElement(element, wrapper, attributes)
+
+
+
+ Wraps element with another element
+
+
+ Defined in: dom_misc.js.
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {HTMLElement} element
+
+
+ - Element to wrap
+
+ -
+ {HTMLElement|String} wrapper
+
+
+ - Element to wrap with
+
+ -
+ {Object} attributes
+ Optional
+
+ - Attributes to set on a wrapper
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {HTMLElement} wrapper
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
+
diff --git a/docs/symbols/fabric.util.object.html b/docs/symbols/fabric.util.object.html
index 2611614b..c0a90b2a 100644
--- a/docs/symbols/fabric.util.object.html
+++ b/docs/symbols/fabric.util.object.html
@@ -1,4 +1,5 @@
-
+
@@ -6,342 +7,464 @@
JsDoc Reference - fabric.util.object
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Namespace fabric.util.object
+
+
+
+
+
+
+
+ fabric.util.object
+
+
+
Defined in: lang_object.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.util.object.clone(object)
+
+ Creates an empty object and copies all enumerable properties of another object to it
+
+
+
+
+ <static>
+
+ fabric.util.object.extend(destination, source)
+
+ Copies all enumerable properties of one object to another
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+
+ fabric.util.object.clone(object)
+
+
+
+ Creates an empty object and copies all enumerable properties of another object to it
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} object
+
+
+ - Object to clone
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <static>
+
+
+ fabric.util.object.extend(destination, source)
+
+
+
+ Copies all enumerable properties of one object to another
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {Object} destination
+
+
+ - Where to copy to
+
+ -
+ {Object} source
+
+
+ - Where to copy from
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Namespace fabric .util .object
-
-
-
- fabric.util.object
-
-
-
-
-
-
-
-
- - Defined in: lang_object.js
-
-
-
-
-
-
-
-
-
- Namespace Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.util.object.clone(object)
-
- Creates an empty object and copies all enumerable properties of another object to it
-
-
-
-
- <static>
-
- fabric.util.object.extend(destination, source)
-
- Copies all enumerable properties of one object to another
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.object.clone(object)
-
-
-
- Creates an empty object and copies all enumerable properties of another object to it
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} object
-
-
- - Object to clone
-
-
-
-
-
-
-
-
-
-
-
-
- <static>
-
-
-
-
- fabric.util.object.extend(destination, source)
-
-
-
- Copies all enumerable properties of one object to another
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {Object} destination
-
-
- - Where to copy to
-
- -
- {Object} source
-
-
- - Where to copy from
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/fabric.util.string.html b/docs/symbols/fabric.util.string.html
index 50a1c219..d0846484 100644
--- a/docs/symbols/fabric.util.string.html
+++ b/docs/symbols/fabric.util.string.html
@@ -1,4 +1,5 @@
-
+
@@ -6,378 +7,472 @@
JsDoc Reference - fabric.util.string
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-Classes
-
+
+
+
+
+
+Classes
- - _global_
+ - _global_
- - Array
+ - Array
- - fabric . Circle
+ - fabric
- - fabric . Color
+ - fabric.Circle
- - fabric . Element
+ - fabric.Color
- - fabric . Element#cache
+ - fabric.Element
- - fabric . Ellipse
+ - fabric.Element#cache
- - fabric . Group
+ - fabric.Ellipse
- - fabric . Image
+ - fabric.Group
- - fabric . Intersection
+ - fabric.Image
- - fabric . Line
+ - fabric.Intersection
- - fabric . Object
+ - fabric.Line
- - fabric . Path
+ - fabric.Object
- - fabric . PathGroup
+ - fabric.Path
- - fabric . Point
+ - fabric.PathGroup
- - fabric . Polygon
+ - fabric.Point
- - fabric . Polyline
+ - fabric.Polygon
- - fabric . Rect
+ - fabric.Polyline
- - fabric . Text
+ - fabric.Rect
- - fabric . Triangle
+ - fabric.Text
- - fabric . util
+ - fabric.Triangle
- - fabric . util . array
+ - fabric.util
- - fabric . util . object
+ - fabric.util.array
- - fabric . util . string
+ - fabric.util.object
- - Function
+ - fabric.util.string
- - String
+ - Function
+
+ - String
+
+
+
+
+
+
+
+
+ Namespace fabric.util.string
+
+
+
+
+
+
+
+
+
+
+
Defined in: lang_string.js.
+
+
+
+
+
+
+ Namespace Summary
+
+
+ Constructor Attributes
+ Constructor Name and Description
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+ Method Attributes
+ Method Name and Description
+
+
+
+
+
+ <static>
+
+ fabric.util.string.camelize(string)
+
+ Camelizes a string
+
+
+
+
+ <static>
+
+ fabric.util.string.capitalize(string)
+
+ Capitalizes a string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+ Method Detail
+
- Generated by JsDoc Toolkit 2.4.0 on Fri Oct 15 2010 13:14:02 GMT-0400 (EDT)
- HTML template: Codeview 1.1.1
-
+
+ <static>
+
+ {String}
+ fabric.util.string.camelize(string)
+
+
+
+ Camelizes a string
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} string
+
+
+ - String to camelize
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} Camelized version of a string
+
+
+
+
+
+
+
+
+
+ <static>
+
+ {String}
+ fabric.util.string.capitalize(string)
+
+
+
+ Capitalizes a string
+
+
+
+
+
+
+
+
+ - Parameters:
+
+ -
+ {String} string
+
+
+ - String to capitalize
+
+
+
+
+
+
+
+
+ - Returns:
+
+ - {String} Capitalized version of a string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
- Namespace fabric .util .string
-
-
-
-
-
-
-
-
-
-
-
-
- - Defined in: lang_string.js
-
-
-
-
-
-
-
-
-
- Namespace Summary
-
-
- Constructor Attributes
- Constructor Name and Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Summary
-
-
-
- Method Attributes
- Method Name and Description
-
-
-
-
-
-
- <static>
-
- fabric.util.string.camelize(string)
-
- Camelizes a string
-
-
-
-
- <static>
-
- fabric.util.string.capitalize(string)
-
- Capitalizes a string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Method Detail
-
-
-
-
-
-
-
-
- Camelizes a string
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} string
-
-
- - String to camelize
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} Camelized version of a string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Capitalizes a string
-
-
-
-
-
-
-
-
-
-
- - Parameters:
-
- -
- {String} string
-
-
- - String to capitalize
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Returns:
-
- - {String} Capitalized version of a string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 19 2010 16:02:48 GMT-0400 (EDT)
-
-
diff --git a/docs/symbols/src/src_circle.class.js.html b/docs/symbols/src/src_circle.class.js.html
index 0e78bb5a..1433b6b5 100644
--- a/docs/symbols/src/src_circle.class.js.html
+++ b/docs/symbols/src/src_circle.class.js.html
@@ -24,110 +24,113 @@
17 */
18 fabric.Circle = fabric.util.createClass(fabric.Object, /** @scope fabric.Circle.prototype */ {
19
- 20 /** @property */
- 21 type: 'circle',
- 22
- 23 /**
- 24 * Constructor
- 25 * @method initialize
- 26 * @param {Object} [options] Options object
- 27 * @return {fabric.Circle} thisArg
- 28 */
- 29 initialize: function(options) {
- 30 options = options || { };
- 31
- 32 this.set('radius', options.radius || 0);
- 33 this.callSuper('initialize', options);
+ 20 /**
+ 21 * @property
+ 22 * @type String
+ 23 */
+ 24 type: 'circle',
+ 25
+ 26 /**
+ 27 * Constructor
+ 28 * @method initialize
+ 29 * @param {Object} [options] Options object
+ 30 * @return {fabric.Circle} thisArg
+ 31 */
+ 32 initialize: function(options) {
+ 33 options = options || { };
34
- 35 var radiusBy2ByScale = this.get('radius') * 2 * this.get('scaleX');
- 36 this.set('width', radiusBy2ByScale).set('height', radiusBy2ByScale);
- 37 },
- 38
- 39 /**
- 40 * Returns object representation of an instance
- 41 * @method toObject
- 42 * @return {Object} object representation of an instance
- 43 */
- 44 toObject: function() {
- 45 return extend(this.callSuper('toObject'), {
- 46 radius: this.get('radius')
- 47 });
- 48 },
- 49
- 50 /**
- 51 * @private
- 52 * @method _render
- 53 * @param ctx {CanvasRenderingContext2D} context to render on
- 54 */
- 55 _render: function(ctx, noTransform) {
- 56 ctx.beginPath();
- 57 ctx.arc(noTransform ? this.left : 0, noTransform ? this.top : 0, this.radius, 0, piBy2, false);
- 58 ctx.closePath();
- 59 if (this.fill) {
- 60 ctx.fill();
- 61 }
- 62 if (this.stroke) {
- 63 ctx.stroke();
+ 35 this.set('radius', options.radius || 0);
+ 36 this.callSuper('initialize', options);
+ 37
+ 38 var radiusBy2ByScale = this.get('radius') * 2 * this.get('scaleX');
+ 39 this.set('width', radiusBy2ByScale).set('height', radiusBy2ByScale);
+ 40 },
+ 41
+ 42 /**
+ 43 * Returns object representation of an instance
+ 44 * @method toObject
+ 45 * @return {Object} object representation of an instance
+ 46 */
+ 47 toObject: function() {
+ 48 return extend(this.callSuper('toObject'), {
+ 49 radius: this.get('radius')
+ 50 });
+ 51 },
+ 52
+ 53 /**
+ 54 * @private
+ 55 * @method _render
+ 56 * @param ctx {CanvasRenderingContext2D} context to render on
+ 57 */
+ 58 _render: function(ctx, noTransform) {
+ 59 ctx.beginPath();
+ 60 ctx.arc(noTransform ? this.left : 0, noTransform ? this.top : 0, this.radius, 0, piBy2, false);
+ 61 ctx.closePath();
+ 62 if (this.fill) {
+ 63 ctx.fill();
64 }
- 65 },
- 66
- 67
- 68 /**
- 69 * Returns complexity of an instance
- 70 * @method complexity
- 71 * @return {Number} complexity of this instance
- 72 */
- 73 complexity: function() {
- 74 return 1;
- 75 }
- 76 });
- 77
- 78 /**
- 79 * List of attribute names to account for when parsing SVG element (used by `fabric.Circle.fromElement`)
- 80 * @static
- 81 * @see: http://www.w3.org/TR/SVG/shapes.html#CircleElement
- 82 */
- 83 fabric.Circle.ATTRIBUTE_NAMES = 'cx cy r fill fill-opacity stroke stroke-width transform'.split(' ');
- 84
- 85 /**
- 86 * Returns fabric.Circle instance from an SVG element
- 87 * @static
- 88 * @method fabric.Circle.fromElement
- 89 * @param element {SVGElement} element to parse
- 90 * @param options {Object} options object
- 91 * @throws {Error} If value of `r` attribute is missing or invalid
- 92 * @return {Object} instance of fabric.Circle
- 93 */
- 94 fabric.Circle.fromElement = function(element, options) {
- 95 options || (options = { });
- 96 var parsedAttributes = fabric.parseAttributes(element, fabric.Circle.ATTRIBUTE_NAMES);
- 97 if (!isValidRadius(parsedAttributes)) {
- 98 throw Error('value of `r` attribute is required and can not be negative');
- 99 }
-100 if ('left' in parsedAttributes) {
-101 parsedAttributes.left -= (options.width / 2) || 0;
+ 65 if (this.stroke) {
+ 66 ctx.stroke();
+ 67 }
+ 68 },
+ 69
+ 70
+ 71 /**
+ 72 * Returns complexity of an instance
+ 73 * @method complexity
+ 74 * @return {Number} complexity of this instance
+ 75 */
+ 76 complexity: function() {
+ 77 return 1;
+ 78 }
+ 79 });
+ 80
+ 81 /**
+ 82 * List of attribute names to account for when parsing SVG element (used by `fabric.Circle.fromElement`)
+ 83 * @static
+ 84 * @see: http://www.w3.org/TR/SVG/shapes.html#CircleElement
+ 85 */
+ 86 fabric.Circle.ATTRIBUTE_NAMES = 'cx cy r fill fill-opacity stroke stroke-width transform'.split(' ');
+ 87
+ 88 /**
+ 89 * Returns fabric.Circle instance from an SVG element
+ 90 * @static
+ 91 * @method fabric.Circle.fromElement
+ 92 * @param element {SVGElement} element to parse
+ 93 * @param options {Object} options object
+ 94 * @throws {Error} If value of `r` attribute is missing or invalid
+ 95 * @return {Object} instance of fabric.Circle
+ 96 */
+ 97 fabric.Circle.fromElement = function(element, options) {
+ 98 options || (options = { });
+ 99 var parsedAttributes = fabric.parseAttributes(element, fabric.Circle.ATTRIBUTE_NAMES);
+100 if (!isValidRadius(parsedAttributes)) {
+101 throw Error('value of `r` attribute is required and can not be negative');
102 }
-103 if ('top' in parsedAttributes) {
-104 parsedAttributes.top -= (options.height / 2) || 0;
+103 if ('left' in parsedAttributes) {
+104 parsedAttributes.left -= (options.width / 2) || 0;
105 }
-106 return new fabric.Circle(extend(parsedAttributes, options));
-107 };
-108
-109 /**
-110 * @private
-111 */
-112 function isValidRadius(attributes) {
-113 return (('radius' in attributes) && (attributes.radius > 0));
-114 }
-115
-116 /**
-117 * Returns fabric.Circle instance from an object representation
-118 * @static
-119 * @method fabric.Circle.fromObject
-120 * @param {Object} object Object to create an instance from
-121 * @return {Object} Instance of fabric.Circle
-122 */
-123 fabric.Circle.fromObject = function(object) {
-124 return new fabric.Circle(object);
-125 }
-126 })();
-
- - - --
-
-
-
-
- Defined in: util.js - - - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - |
-
- fabric.util
-
-
- |
-
| Method Attributes | -Method Name and Description | -
|---|---|
| <static> | -
- fabric.util.addClass(element, className)
-
- Adds class to an element
- |
-
| <static> | -
- fabric.util.addListener(element, eventName, handler)
-
- Adds an event listener to an element
- |
-
| <static> | -
- fabric.util.animate(options)
-
- Changes value from one to another within certain period of time, invoking callbacks as value is being changed.
- |
-
| <static> | -
- fabric.util.createClass()
-
- Helper for creation of "classes"
- |
-
| <static> | -
- fabric.util.degreesToRadians(degrees)
-
- Transforms degrees to radians.
- |
-
| <static> | -
- fabric.util.falseFunction()
-
- Function which always returns `false`.
- |
-
| <static> | -
- fabric.util.fireEvent(eventName, memo)
-
- Fires event with an optional memo object
- |
-
| <static> | -
- fabric.util.getById(id)
-
- Takes id and returns an element with that id (if one exists in a document)
- |
-
| <static> | -
- fabric.util.getElementOffset(element)
-
- Returns offset for a given element
- |
-
| <static> | -
- fabric.util.getPointer(event)
-
- Cross-browser wrapper for getting event's coordinates
- |
-
| <static> | -
- fabric.util.getRandomInt(min, max)
-
- Returns random number between 2 specified ones.
- |
-
| <static> | -
- fabric.util.getScript(url, callback)
-
- Inserts a script element with a given url into a document; invokes callback, when that script is finished loading
- |
-
| <static> | -
- fabric.util.makeElement(tagName, attributes)
-
- Creates specified element with specified attributes
- |
-
| <static> | -
- fabric.util.makeElementUnselectable(element)
-
- Makes element unselectable
- |
-
| <static> | -
- fabric.util.observeEvent(eventName, handler)
-
-
- |
-
| <static> | -
- fabric.util.removeFromArray(array, value)
-
- Removes value from an array.
- |
-
| <static> | -
- fabric.util.removeListener(element, eventName, handler)
-
- Removes an event listener from an element
- |
-
| <static> | -
- fabric.util.request(url, options)
-
- Cross-browser abstraction for sending XMLHttpRequest
- |
-
| <static> | -
- fabric.util.setStyle(element, styles)
-
- Cross-browser wrapper for setting element's style
- |
-
| <static> | -
- fabric.util.toArray(arrayLike)
-
- Converts an array-like object (e.g.
- |
-
| <static> | -
- fabric.util.toFixed(number, fractionDigits)
-
- A wrapper around Number#toFixed, which contrary to native method returns number, not string.
- |
-
| <static> | -
- fabric.util.wrapElement(element, wrapper, attributes)
-
- Wraps element with another element
- |
-
+ Defined in: dom_misc.js. + - - - -
-
+
- Parameters: + +
- + {HTMLElement} element + + +
- Element to add class to + +
- + {String} className + + +
- Class to add to an element + +
+ +
+ Defined in: dom_event.js. + + +
-
+
- Parameters: + +
- + {HTMLElement} element + + + + +
- + {String} eventName + + + + +
- + {Function} handler + + + + +
+ +
+ Defined in: dom_misc.js. + + +
-
+
- Parameters: + +
- + {Object} options + Optional + +
- Animation options + +
- + {Function} options.onChange + Optional + +
- Callback; invoked on every value change + +
- + {Function} options.onComplete + Optional + +
- Callback; invoked when value change is completed + +
- + {Number} options.startValue + Optional, Default: 0 + +
- Starting value + +
- + {Number} options.endValue + Optional, Default: 100 + +
- Ending value + +
- + {Function} options.easing + Optional + +
- Easing function + +
- + {Number} options.duration + Optional, Default: 500 + +
- Duration of change + +
-
- Defined in: dom_misc.js. - - - -
-
-
- Parameters: - -
- - {HTMLElement} element - - -
- Element to add class to - -
- - {String} className - - -
- Class to add to an element - -
+ Defined in: lang_class.js. + + +
+ + +
+ Defined in: misc.js. + + +
-
+
- Parameters: - - -
- + {Number} degrees - - - fabric.util.addListener(element, eventName, handler) -
- Parameters: - -
- - {HTMLElement} element - - - - -
- - {String} eventName - - - - -
- - {Function} handler - - - - -
- value in degrees + +
- Defined in: dom_event.js. - - - -
-
-
-
+
- Returns: + +
- {Number} value in radians + +
+ + +
+ Defined in: misc.js. + + +
-
+
- Returns: - - -
- Parameters: - -
- - {Object} options - Optional - -
- Animation options - -
- - {Function} options.onChange - Optional - -
- Callback; invoked on every value change - -
- - {Function} options.onComplete - Optional - -
- Callback; invoked when value change is completed - -
- - {Number} options.startValue - Optional, Default: 0 - -
- Starting value - -
- - {Number} options.endValue - Optional, Default: 100 - -
- Ending value - -
- - {Function} options.easing - Optional - -
- Easing function - -
- - {Number} options.duration - Optional, Default: 500 - -
- Duration of change - -
- {Boolean} + +
- Defined in: dom_misc.js. - - - -
-
-
+ + +
+ Defined in: dom_event.js. + + +
-
+
- Parameters: - - -
- + {String} eventName - - - fabric.util.createClass() -
- + {Object} memo + Optional + + + +
- Defined in: lang_class.js. - - - -
+ + +
+ Defined in: dom_misc.js. + + +
-
+
- Parameters: - - -
- + {String|HTMLElement} id - {Number} - - fabric.util.degreesToRadians(degrees) -
- Parameters: - -
- - {Number} degrees - - -
- value in degrees - -
- Returns: - -
- {Number} value in radians - - - - - - - -
- Defined in: misc.js. - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- Returns: + +
- {HTMLElement|null} + +
+ + +
+ Defined in: dom_misc.js. + + +
-
+
- Parameters: - - -
- + {HTMLElement} element - {Boolean} - - fabric.util.falseFunction() -
- Returns: - -
- {Boolean} - - - - - - - -
- Element to get offset for + +
- Defined in: misc.js. - - - -
-
-
-
-
-
-
-
-
-
-
-
+
- Returns: + +
- {Object} Object with "left" and "top" properties + +
+ + +
+ Defined in: dom_event.js. + + +
-
+
- Parameters: - - -
- + {Event} event - - - fabric.util.fireEvent(eventName, memo) -
- Parameters: - -
- - {String} eventName - - - - -
- - {Object} memo - Optional - - - -
- Defined in: dom_event.js. - - - -
-
-
+ + +
+ Defined in: misc.js. + + +
-
+
- Parameters: - - -
- + {Number} min - {HTMLElement|null} + +
- lower limit + +
- + {Number} max - fabric.util.getById(id) -
- Parameters: - -
- - {String|HTMLElement} id - - - - -
- Returns: - -
- {HTMLElement|null} - - - - - - - -
- upper limit + +
- Defined in: dom_misc.js. - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- Returns: + +
- {Number} random value (between min and max) + +
+ + +
+ Defined in: dom_misc.js. + + +
-
+
- Parameters: - - -
- + {String} url - {Object} + +
- URL of a script to load + +
- + {Function} callback - fabric.util.getElementOffset(element) -
- Parameters: - -
- - {HTMLElement} element - - -
- Element to get offset for - -
- Returns: - -
- {Object} Object with "left" and "top" properties - - - - - - - -
- Callback to execute when script is finished loading + +
- Defined in: dom_misc.js. - - - -
-
-
-
-
-
-
-
-
-
-
-
-
+ + +
+ Defined in: dom_misc.js. + + +
-
+
- Parameters: - - -
- + {String} tagName - - - fabric.util.getPointer(event) -
- Parameters: - -
- - {Event} event - - - - -
- Type of an element to create + +
- + {Object} attributes + Optional + +
- Attributes to set on an element + +
- Defined in: dom_event.js. - - - -
-
-
-
+
- Returns: + +
- {HTMLElement} Newly created element + +
+ + +
+ Defined in: dom_misc.js. + + +
-
+
- Parameters: - - -
- + {HTMLElement} element - {Number} - - fabric.util.getRandomInt(min, max) -
- Parameters: - -
- - {Number} min - - -
- lower limit - -
- - {Number} max - - -
- upper limit - -
- Returns: - -
- {Number} random value (between min and max) - - - - - - - -
- Element to make unselectable + +
- Defined in: misc.js. - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- Returns: + +
- {HTMLElement} Element that was passed in + +
+ + +
+ Defined in: dom_event.js. + + +
-
+
- Parameters: - - -
- + {String} eventName + + + +
- + {Function} handler - - fabric.util.getScript(url, callback) -
- Defined in: dom_misc.js. - - - -
- Defined in: dom_misc.js. - - - -
-
-
- Parameters: - -
- - {String} tagName - - -
- Type of an element to create - -
- - {Object} attributes - Optional - -
- Attributes to set on an element - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {HTMLElement} Newly created element - - - - - - - -
- Defined in: dom_misc.js. - - - -
-
-
- Parameters: - -
- - {HTMLElement} element - - -
- Element to make unselectable - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {HTMLElement} Element that was passed in - - - - - - - -
- Defined in: dom_event.js. - - - -
+ + +
- Defined in: misc.js. - - - -
-
-
- Parameters: - -
- - {Array} array - - - - -
- - {Any} value - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Array} original array - - - - - - - -
- Defined in: dom_event.js. - - - -
-
-
- Parameters: - -
- - {HTMLElement} element - - - - -
- - {String} eventName - - - - -
- - {Function} handler - - - - -
- Defined in: dom_request.js. - - - -
-
-
- Parameters: - -
- - {String} url - - -
- URL to send XMLHttpRequest to - -
- - {Object} options - Optional - -
- Options object - -
- - {String} options.method - Optional, Default: "GET" - - - -
- - {Function} options.onComplete - - -
- Callback to invoke when request is completed - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {XMLHttpRequest} request - - - - - - - -
- Defined in: dom_style.js. - - - -
-
-
- Parameters: - -
- - {HTMLElement} element - - - - -
- - {Object} styles - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {HTMLElement} Element that was passed as a first argument - - - - - - - -
- Defined in: dom_misc.js. - - - -
-
-
- Parameters: - -
- - {Object} arrayLike - - - - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Array} - - - - - - - -
- Defined in: misc.js. - - - -
-
-
- Parameters: - -
- - {Number | String} number - - -
- number to operate on - -
- - {Number} fractionDigits - - -
- number of fraction digits to "leave" - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {Number} - - - - - - - -
- Defined in: dom_misc.js. - - - -
-
-
- Parameters: - -
- - {HTMLElement} element - - -
- Element to wrap - -
- - {HTMLElement|String} wrapper - - -
- Element to wrap with - -
- - {Object} attributes - Optional - -
- Attributes to set on a wrapper - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {HTMLElement} wrapper - - - - - - - -
+ Defined in: misc.js. + +
-
+
- Parameters: + +
- + {Array} array + + + + +
- + {Any} value + + + + +
-
+
- Returns: + +
- {Array} original array + +
+ +
+ Defined in: dom_event.js. + + +
-
+
- Parameters: + +
- + {HTMLElement} element + + + + +
- + {String} eventName + + + + +
- + {Function} handler + + + + +
- + +
+ Defined in: dom_request.js. + + +
-
+
- Parameters: + +
- + {String} url + + +
- URL to send XMLHttpRequest to + +
- + {Object} options + Optional + +
- Options object + +
- + {String} options.method + Optional, Default: "GET" + + + +
- + {Function} options.onComplete + + +
- Callback to invoke when request is completed + +
-
+
- Returns: + +
- {XMLHttpRequest} request + +
-
+ Defined in: dom_style.js. + + +
-
+
- Parameters: + +
- + {HTMLElement} element + + + + +
- + {Object} styles + + + + +
-
+
- Returns: + +
- {HTMLElement} Element that was passed as a first argument + +
+ + +
+ Defined in: dom_misc.js. + + +
-
+
- Parameters: + +
- + {Object} arrayLike + + + + +
-
+
- Returns: + +
- {Array} + +
+ + +
+ Defined in: misc.js. + + +
-
+
- Parameters: + +
- + {Number | String} number + + +
- number to operate on + +
- + {Number} fractionDigits + + +
- number of fraction digits to "leave" + +
-
+
- Returns: + +
- {Number} + +
+ + +
+ Defined in: dom_misc.js. + + +
-
+
- Parameters: + +
- + {HTMLElement} element + + +
- Element to wrap + +
- + {HTMLElement|String} wrapper + + +
- Element to wrap with + +
- + {Object} attributes + Optional + +
- Attributes to set on a wrapper + +
-
+
- Returns: + +
- {HTMLElement} wrapper + +
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Namespace fabric.util.object +
+ + +
+
+
+
+ fabric.util.object
+
+
+
Defined in: lang_object.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + | + + + | +
| Method Attributes | +Method Name and Description | +
|---|---|
| <static> | +
+ fabric.util.object.clone(object)
+
+ Creates an empty object and copies all enumerable properties of another object to it
+ |
+
| <static> | +
+ fabric.util.object.extend(destination, source)
+
+ Copies all enumerable properties of one object to another
+ |
+
- HTML template: Codeview 1.1.1 -
-
+
- Parameters: + +
- + {Object} object + + +
- Object to clone + +
+ + +
-
+
- Parameters: + +
- + {Object} destination + + +
- Where to copy to + +
- + {Object} source + + +
- Where to copy from + +
- - Namespace fabric .util .object -
- -- fabric.util.object -
- - - --
-
-
-
-
- Defined in: lang_object.js - - - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - | - - - | -
| Method Attributes | -Method Name and Description | -
|---|---|
| <static> | -
- fabric.util.object.clone(object)
-
- Creates an empty object and copies all enumerable properties of another object to it
- |
-
| <static> | -
- fabric.util.object.extend(destination, source)
-
- Copies all enumerable properties of one object to another
- |
-
-
-
- Parameters: - -
- - {Object} object - - -
- Object to clone - -
-
-
- Parameters: - -
- - {Object} destination - - -
- Where to copy to - -
- - {Object} source - - -
- Where to copy from - -
Classes
- + ++
Classes
-
-
- _global_ +
- _global_ -
- Array +
- Array -
- fabric . Circle +
- fabric -
- fabric . Color +
- fabric.Circle -
- fabric . Element +
- fabric.Color -
- fabric . Element#cache +
- fabric.Element -
- fabric . Ellipse +
- fabric.Element#cache -
- fabric . Group +
- fabric.Ellipse -
- fabric . Image +
- fabric.Group -
- fabric . Intersection +
- fabric.Image -
- fabric . Line +
- fabric.Intersection -
- fabric . Object +
- fabric.Line -
- fabric . Path +
- fabric.Object -
- fabric . PathGroup +
- fabric.Path -
- fabric . Point +
- fabric.PathGroup -
- fabric . Polygon +
- fabric.Point -
- fabric . Polyline +
- fabric.Polygon -
- fabric . Rect +
- fabric.Polyline -
- fabric . Text +
- fabric.Rect -
- fabric . Triangle +
- fabric.Text -
- fabric . util +
- fabric.Triangle -
- fabric . util . array +
- fabric.util -
- fabric . util . object +
- fabric.util.array -
- fabric . util . string +
- fabric.util.object -
- Function +
- fabric.util.string -
- String +
- Function + +
- String
+ +
+ + Namespace fabric.util.string +
+ + +
+
+
+
+
+
+
+
Defined in: lang_string.js.
+
+
| Constructor Attributes | +Constructor Name and Description | +
|---|---|
| + | + + + | +
| Method Attributes | +Method Name and Description | +
|---|---|
| <static> | +
+ fabric.util.string.camelize(string)
+
+ Camelizes a string
+ |
+
| <static> | +
+ fabric.util.string.capitalize(string)
+
+ Capitalizes a string
+ |
+
- HTML template: Codeview 1.1.1 -
-
+
- Parameters: + +
- + {String} string + + +
- String to camelize + +
-
+
- Returns: + +
- {String} Camelized version of a string + +
+ + +
-
+
- Parameters: + +
- + {String} string + + +
- String to capitalize + +
-
+
- Returns: + +
- {String} Capitalized version of a string + +
- - Namespace fabric .util .string -
- -- -
- - - --
-
-
-
-
- Defined in: lang_string.js - - - -
| Constructor Attributes | -Constructor Name and Description | -
|---|---|
| - | - - - | -
| Method Attributes | -Method Name and Description | -
|---|---|
| <static> | -
- fabric.util.string.camelize(string)
-
- Camelizes a string
- |
-
| <static> | -
- fabric.util.string.capitalize(string)
-
- Capitalizes a string
- |
-
-
-
- Parameters: - -
- - {String} string - - -
- String to camelize - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {String} Camelized version of a string - - - - - - - -
-
-
- Parameters: - -
- - {String} string - - -
- String to capitalize - -
-
-
-
-
-
-
-
-
-
-
- Returns: - -
- {String} Capitalized version of a string - - - - - - - -