Class fabric.Triangle
Extends
fabric.Object.
Triangle
Defined in: triangle.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 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
{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