Class Index | File Index

Classes


Class fabric.Circle


Extends fabric.Object.
Circle
Defined in: circle.class.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
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)
 
Fields borrowed from class fabric.Object:
FX_DURATION, FX_TRANSITION, includeDefaultValues, MIN_SCALE_LIMIT, NUM_FRACTION_DIGITS, rotate, selectable, stateProperties
Method Summary
Method Attributes Method Name and Description
 
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
 
Returns horizontal radius of an object (according to how an object is scaled)
 
Returns vertical radius of an object (according to how an object is scaled)
 
initialize(options)
Constructor
 
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, setGradientFill, setOpacity, setOptions, setSourcePath, setupState, straighten, toDatalessObject, toDataURL, toggle, toGrayscale, toJSON, toString, transform
Class Detail
fabric.Circle()
Field Detail
<static> fabric.Circle.ATTRIBUTE_NAMES
List of attribute names to account for when parsing SVG element (used by fabric.Circle.fromElement)

{String} type
Method Detail
{Number} complexity()
Returns complexity of an instance
Returns:
{Number} complexity of this instance

<static> {Object} fabric.Circle.fromElement(element, options)
Returns fabric.Circle instance from an SVG element
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

<static> {Object} fabric.Circle.fromObject(object)
Returns fabric.Circle instance from an object representation
Parameters:
{Object} object
Object to create an instance from
Returns:
{Object} Instance of fabric.Circle

{Number} getRadiusX()
Returns horizontal radius of an object (according to how an object is scaled)
Returns:
{Number}

{Number} getRadiusY()
Returns vertical radius of an object (according to how an object is scaled)
Returns:
{Number}

{fabric.Circle} initialize(options)
Constructor
Parameters:
{Object} options Optional
Options object
Returns:
{fabric.Circle} 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 Jun 28 2011 18:47:43 GMT-0400 (EDT)