Group#
- class svgwrite.container.Group(**extra)#
The Group (SVG g) element is a container element for grouping together related graphics elements.
Grouping constructs, when used in conjunction with the desc and title elements, provide information about document structure and semantics. Documents that are rich in structure may be rendered graphically, as speech, or as braille, and thus promote accessibility.
A group of elements, as well as individual objects, can be given a name using the id attribute. Named groups are needed for several purposes such as animation and re-usable objects.
父类#
Parent Classes
SVG 属性#
SVG Attributes
class – string
为元素分配一个或多个 CSS 类名。
style – string
允许直接在指定元素上定义每个元素的 CSS 样式规则。
externalResourcesRequired – bool
False:如果文档渲染可以继续进行,即使外部资源不可用;否则为 True。
transform – 使用
svgwrite.mixins.Transform
接口。
class – string
assigns one or more css-class-names to an element
style – string
allows per-element css-style rules to be specified directly on a given element
externalResourcesRequired – bool
False: if document rendering can proceed even if external resources are unavailable else: True
transform – use
svgwrite.mixins.Transform
interface
标准 SVG 属性#
Standard SVG Attributes