Class fabric.PathGroup
Extends
fabric.Path.
PathGroup
Defined in: path_group.class.js.
Constructor Attributes | Constructor Name and Description |
---|---|
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 Attributes | Method Name and Description |
---|---|
Returns number representation of object's complexity
|
|
<static> |
fabric.PathGroup.fromObject(object)
|
initialize(paths, options)
Constructor
|
|
render(ctx)
|
|
set(prop, value)
|
|
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
<static>
{fabric.PathGroup}
fabric.PathGroup.fromObject(object)
- 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