Class fabric.Rect
Extends
fabric.Object.
Rect
Defined in: rect.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, rotate, stateProperties
Method Attributes | Method Name and Description |
---|---|
<static> |
fabric.Rect.fromElement(element, options)
|
<static> |
fabric.Rect.fromObject(object)
|
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
{Object}
options
{String}
type
Method Detail
{Number}
complexity()
- Returns:
- {Number} complexity
<static>
{fabric.Rect}
fabric.Rect.fromElement(element, options)
- Parameters:
- element
- {SVGElement} element to parse
- options
- {Object} options object
- Returns:
- {fabric.Rect} instance of fabric.Rect
<static>
{Object}
fabric.Rect.fromObject(object)
- Parameters:
- object
- {Object} object to create an instance from
- Returns:
- {Object} instance of fabric.Rect
{Object}
initialize(options)
Constructor
- Parameters:
- options
- {Object} options object
- Returns:
- {Object} thisArg