Symbol#
- class svgwrite.container.Symbol(**extra)#
The symbol element is used to define graphical template objects which can be instantiated by a use element. The use of symbol elements for graphics that are used multiple times in the same document adds structure and semantics. Documents that are rich in structure may be rendered graphically, as speech, or as braille, and thus promote accessibility.
父类#
Parent Classes
SVG 属性#
SVG Attributes
class – string
为元素分配一个或多个 CSS 类名。
style – string
允许直接在指定元素上定义每个元素的 CSS 样式规则。
externalResourcesRequired – bool
False:如果文档渲染可以继续进行,即使外部资源不可用;否则为 True。
viewBox – 使用
svgwrite.mixins.ViewBox
接口。preserveAspectRatio – 使用
svgwrite.mixins.ViewBox
接口。
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
viewBox – use
svgwrite.mixins.ViewBox
interfacepreserveAspectRatio – use
svgwrite.mixins.ViewBox
interface
标准 SVG 属性#
Standard SVG Attributes