Group class

Inheritance
Available extensions
Annotations
  • @JS('fabric.Group')

Constructors

Group(List objects, [dynamic options, bool isAlreadyGrouped])

Properties

angle ↔ dynamic
getter/setter pairinherited
borderColor ↔ dynamic
getter/setter pairinherited
cacheProperties → dynamic
no setterinherited
canvas Canvas?
getter/setter pairinherited
cornerSize ↔ dynamic
Size of object's controlling corners (in pixels) @type Number @default
getter/setter pairinherited
dirty ↔ dynamic
getter/setter pairinherited
getStateProperties → dynamic

Available on FabricObject, provided by the FabricObjectExtension extension

no setter
group ↔ dynamic
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
height num
getter/setter pairinherited
id ↔ dynamic
getter/setter pairinherited
left ↔ dynamic
getter/setter pairinherited
originX ↔ dynamic
getter/setter pairinherited
originY ↔ dynamic
getter/setter pairinherited
propertyObjects List<FabricObject>

Available on Group, provided by the GroupExtension extension

_objects
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
rx num
getter/setter pairinherited
ry num
getter/setter pairinherited
scaleX num
getter/setter pairinherited
scaleY num
getter/setter pairinherited
selectable ↔ dynamic
getter/setter pairinherited
stateProperties → dynamic
no setterinherited
statePropertiesAsMap Map<String, dynamic>?

Available on FabricObject, provided by the FabricObjectExtension extension

no setter
statePropertiesKeys List<String>

Available on FabricObject, provided by the FabricObjectExtension extension

no setter
strokeUniform ↔ dynamic
getter/setter pairinherited
strokeWidth ↔ dynamic
getter/setter pairinherited
top ↔ dynamic
getter/setter pairinherited
type ↔ dynamic
getter/setter pairinherited
width num
getter/setter pairinherited

Methods

adjustPosition(String to) → void
inherited
bringForward([bool intersecting]) FabricObject
functions from object stacking mixin
inherited
bringToFront() FabricObject
Moves an object to the top of the stack of drawn objects
inherited
calcCoords([bool absolute]) → dynamic
Calculate and returns the .coords of an object. @chainable
inherited
center() FabricObject
inherited
centerH() FabricObject
inherited
centerV() FabricObject
inherited
clone(Function callback, [List<String> propertiesToInclude]) → void
inherited
forEachObject(void callback(FabricObject element, num index, List<FabricObject> array), [dynamic context]) → dynamic
Executes given function for each object in this group
inherited
get(dynamic propName) → dynamic
inherited
getBoundingRect([bool absolute, bool calculate]) BoundingRect
Returns coordinates of object's bounding rectangle (left, top, width, height) the box is intented as aligned to axis of canvas.
inherited
getCenterPoint() Point
Returns the real center coordinates of the object
inherited
getObjects([String type]) List<FabricObject>
Returns an array of children objects of this instance Type parameter introduced in 1.3.10
getPointByOrigin(String originX, String originY) Point
Returns the coordinates of the object as if it has a different origin
inherited
getScaledHeight() num
inherited
getScaledWidth() num
inherited
moveTo(num index) FabricObject
Moves an object to specified level in stack of drawn objects
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDeselect(dynamic options) bool
inherited
onSelect(dynamic options) bool
This callback function is called every time _discardActiveObject or _setActiveObject try to to select this object. If the function returns true, the process is cancelled
inherited
rotate(num angle) FabricObject
inherited
saveState([dynamic options]) FabricObject
Saves state of an object
inherited
scale(num value) FabricObject
Scales an object (equally by x and y)
inherited
scaleToHeight(num value, [bool absolute]) FabricObject
Scales an object to a given height, with respect to bounding box (scaling by x/y equally)
inherited
scaleToWidth(num value, [bool absolute]) FabricObject
Scales an object to a given width, with respect to bounding box (scaling by x/y equally)
inherited
sendBackwards([bool intersecting]) FabricObject
Moves an object down in stack of drawn objects
inherited
sendToBack() FabricObject
Moves an object to the bottom of the stack of drawn objects
inherited
set(dynamic propNameOrMap, [dynamic val]) FabricObject
rect.set('fill', 'red'); rect.set({ strokeWidth: 5, stroke: 'rgba(100,200,200,0.5)' }); rect.set('angle', 15).set('flipY', true);
inherited
setAngle(num angle) → dynamic
inherited
setCoords() → dynamic
inherited
setPositionByOrigin(Point pos, String originX, String originY) → void
Sets the position of the object taking into consideration the object's origin
inherited
toActiveSelection() ActiveSelection
inherited
toGroup() Group
inherited
toLocalPoint(Point point, String originX, String originY) Point
Returns the point in local coordinates
inherited
toObject([List<String> propertiesToInclude]) → dynamic
inherited
toString() String
A string representation of this object.
inherited
translateToCenterPoint(Point point, String originX, String originY) Point
functions from object origin mixin
inherited
translateToOriginPoint(Point center, String originX, String originY) Point
Translates the coordinates from center to origin coordinates (based on the object's dimensions)
inherited
viewportCenter() FabricObject
inherited
viewportCenterH() FabricObject
inherited
viewportCenterV() FabricObject
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited