Skip to content

groupSVGElements

groupSVGElements(elements, options?): FabricObject<Partial<FabricObjectProps>, SerializedObjectProps, ObjectEvents>

Defined in: src/util/misc/groupSVGElements.ts:12

TODO experiment with different layout manager and svg results ( fixed fit content ) Groups SVG elements (usually those retrieved from SVG document)

Parameters

elements

FabricObject<Partial<FabricObjectProps>, SerializedObjectProps, ObjectEvents>[]

FabricObject(s) parsed from svg, to group

options?

Partial<GroupProps>

Returns

FabricObject<Partial<FabricObjectProps>, SerializedObjectProps, ObjectEvents>

Static