Remarks
Use this class in a IVisualCreator implementation to group several SvgVisuals.
The class cannot be used to group HtmlCanvasVisuals.
Note that each child visual may only appear once in the list of children. Adding a visual a second time results in undefined behavior. When changing the order of the child visuals, make sure to remove a visual first before adding it at another index.
See Also
Developer's Guide
Members
Constructors
Initializes a new instance of the SvgVisualGroup class.
Properties
Property Value
Gets or sets the SVG element of this visual.
Gets or sets a transform that is applied to the children of the container.
Property Value
See Also
Developer's Guide
Methods
Static Methods
Creates a new SvgVisualGroup with the given tag object and a properly typed SvgVisual.svgElement property.
tag object and a properly typed SvgVisual.svgElement property.The purpose of this factory method is to get an instance of SvgVisualGroup with an attached user-provided object as TaggedSvgVisual<gType, TTag>.tag with type-safety and a better-matching type of the SvgVisual.svgElement property.
Note that this method still returns an instance of the SvgVisualGroup class, since the returned type is just a TypeScript type. The main benefit is the added type-safety.
Parameters
- tag: TTag
- The object to set to the SvgVisual as TaggedSvgVisual<gType, TTag>.tag.
Return Value
- SvgVisualGroup & TaggedSvgVisual<SVGGElement, TTag>
- A properly typed SvgVisual for the given element and tag value.
See Also
API
- from