Class Index | File Index

Classes


Class fabric.Polyline


Extends fabric.Object.
Polyline
Defined in: polyline.class.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
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
 
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
 
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
Class Detail
fabric.Polyline()
Field Detail
{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

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Oct 14 2010 21:41:43 GMT-0400 (EDT)