Class Index | File Index

Classes


Class fabric.PathGroup


Extends fabric.Path.
PathGroup
Defined in: path_group.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, rotate, selectable, stateProperties
Method Summary
Method Attributes Method Name and Description
 
Returns number representation of object's complexity
<static>  
fabric.PathGroup.fromObject(object)
Creates fabric.Triangle instance from an object representation
 
Returns all paths in this path group
 
initialize(paths, options)
Constructor
 
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
 
Returns dataless object representation of this path group
 
Makes path group grayscale
 
Returns object representation of this path group
 
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, setGradientFill, setOpacity, setOptions, setSourcePath, setupState, straighten, toDataURL, toggle, toJSON, transform
Class Detail
fabric.PathGroup()
Field Detail
{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

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Jun 28 2011 18:47:44 GMT-0400 (EDT)