ladybug_display.svg.svg module

Class for the entire SVG object.

class ladybug_display.svg.svg.SVG(xmlns=None, viewBox=None, preserveAspectRatio=None, x=None, y=None, width=None, height=None, class_=None, mask=None, opacity=None, clip_path=None, overflow=None, onunload=None, onabort=None, onerror=None, onresize=None, onscroll=None, onzoom=None)[source]

Bases: Element, GraphicsElementEvents, Color, Graphics

The svg element is a container that defines a new coordinate system and viewport.

It is used as the outermost element of SVG documents, but it can also be used to embed an SVG fragment inside an SVG or HTML document.

https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg

ToString()

Overwrite .NET ToString.

as_dict()
as_str()
CURSORS = {'auto', 'crosshair', 'default', 'e-resize', 'help', 'inherit', 'move', 'n-resize', 'ne-resize', 'nw-resize', 'pointer', 's-resize', 'se-resize', 'sw-resize', 'text', 'w-resize', 'wait'}
EVENTS = {'all', 'bounding-box', 'fill', 'none', 'painted', 'stroke', 'visible', 'visibleFill', 'visiblePainted', 'visibleStroke'}
INTERPOLATIONS = {'auto', 'inherit', 'linearRGB', 'sRGB'}
OVERFLOWS = {'auto', 'hidden', 'inherit', 'scroll', 'visible'}
RULES = {'evenodd', 'inherit', 'nonzero'}
property class_

[list of objs]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/class

property clip_path

[str]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/clip-path

property clip_rule

[str enum]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/clip-rule

property color

[str]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/color

property color_interpolation

[str enum]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/color-interpolation

property cursor

[str enum]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/cursor

property data

[dict]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/data

property display

[str]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/display

element_name = 'svg'
property elements

[list of objs]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/elements

property filter

[str]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/filter

property height

[number or length]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/height

property id

[str]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/id

property lang

[str]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/lang

property mask

[str]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/mask

property onabort

[str]

property onactivate

[str]

property onclick

[str]

property onerror

[str]

property onfocusin

[str]

property onfocusout

[str]

property onload

[str]

property onmousedown

[str]

property onmousemove

[str]

property onmouseout

[str]

property onmouseover

[str]

property onmouseup

[str]

property onresize

[str]

property onscroll

[str]

property onunload

[str]

property onzoom

[str]

property opacity

[number]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/opacity

property overflow

[str enum]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/overflow

property pointer_events

[str enum]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/pointer-events

property preserveAspectRatio

[obj]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/preserveAspectRatio

property style

[str]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/style

property tabindex

[int]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/tabindex

property text

[str]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/text

property transform_origin

[str]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/transform-origin

property viewBox

[obj]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/viewBox

property width

[number or length]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/width

property x

[number or length]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/x

property xmlns

[str]

property y

[number or length]

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/y