groupSVGElements
groupSVGElements(
elements,options?):FabricObject<Partial<FabricObjectProps>,SerializedObjectProps,ObjectEvents>
Defined in: src/util/misc/groupSVGElements.ts:11
TODO experiment with different layout manager and svg results ( fixed fit content ) Groups SVG elements (usually those retrieved from SVG document)
Parameters
Section titled “Parameters”elements
Section titled “elements”FabricObject<Partial<FabricObjectProps>, SerializedObjectProps, ObjectEvents>[]
FabricObject(s) parsed from svg, to group
options?
Section titled “options?”Partial<GroupProps>
Returns
Section titled “Returns”FabricObject<Partial<FabricObjectProps>, SerializedObjectProps, ObjectEvents>