SVG Tags A-D
Air is proud to provide first class SVG support. The entire SVG specification is supported.
A
A(
*children,
href=None,
target=None,
download=None,
hreflang=None,
ping=None,
referrerpolicy=None,
rel=None,
type=None,
class_=None,
id=None,
style=None,
**kwargs,
)
Bases: CaseTag
Defines an SVG hyperlink
Parameters:
Name | Type | Description | Default |
---|---|---|---|
children
|
Any
|
Tags, strings, or other rendered content. |
()
|
href
|
str | None
|
Hyperlink target URL. |
None
|
target
|
str | None
|
Where to display linked URL (_self|_parent|_top|_blank). |
None
|
download
|
str | None
|
Instructs browser to download instead of navigate. |
None
|
hreflang
|
str | None
|
Human language of the linked URL. |
None
|
ping
|
str | None
|
Space-separated list of URLs for tracking. |
None
|
referrerpolicy
|
str | None
|
Referrer policy when fetching the URL. |
None
|
rel
|
str | None
|
Relationship to target object. |
None
|
type
|
str | None
|
MIME type of linked URL. |
None
|
class_
|
str | None
|
Substituted as the DOM |
None
|
id
|
str | None
|
DOM ID attribute. |
None
|
style
|
str | None
|
Inline style attribute. |
None
|
**kwargs
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
|
Animate
Animate(
*children,
attributeName=None,
attributeType=None,
values=None,
dur=None,
repeatCount=None,
repeatDur=None,
from_=None,
to=None,
by=None,
begin=None,
end=None,
calcMode=None,
class_=None,
id=None,
style=None,
**kwargs,
)
Bases: CaseTag
Defines animation on an SVG element
Parameters:
Name | Type | Description | Default |
---|---|---|---|
children
|
Any
|
Tags, strings, or other rendered content. |
()
|
attributeName
|
str | None
|
Target attribute to animate. |
None
|
attributeType
|
str | None
|
Type of target attribute. |
None
|
values
|
str | None
|
Values to animate through. |
None
|
dur
|
str | None
|
Total animation duration. |
None
|
repeatCount
|
str | float | None
|
Number of repetitions. |
None
|
repeatDur
|
str | None
|
Total duration for repeating. |
None
|
from_
|
str | None
|
Starting value (from is reserved). |
None
|
to
|
str | None
|
Ending value. |
None
|
by
|
str | None
|
Relative animation value. |
None
|
begin
|
str | None
|
Animation start time. |
None
|
end
|
str | None
|
Animation end time. |
None
|
calcMode
|
str | None
|
Interpolation mode (discrete|linear|paced|spline). |
None
|
class_
|
str | None
|
Substituted as the DOM |
None
|
id
|
str | None
|
DOM ID attribute. |
None
|
style
|
str | None
|
Inline style attribute. |
None
|
**kwargs
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
|
AnimateMotion
AnimateMotion(
*children,
path=None,
keyPoints=None,
rotate=None,
dur=None,
repeatCount=None,
begin=None,
class_=None,
id=None,
style=None,
**kwargs,
)
Bases: CaseTag
Defines how an element moves along a motion path
Parameters:
Name | Type | Description | Default |
---|---|---|---|
children
|
Any
|
Tags, strings, or other rendered content. |
()
|
path
|
str | None
|
Motion path using path syntax. |
None
|
keyPoints
|
str | None
|
Progress points along path (0-1 range). |
None
|
rotate
|
str | float | None
|
Rotation along path (Number|auto|auto-reverse). |
None
|
dur
|
str | None
|
Total animation duration. |
None
|
repeatCount
|
str | float | None
|
Number of repetitions. |
None
|
begin
|
str | None
|
Animation start time. |
None
|
class_
|
str | None
|
Substituted as the DOM |
None
|
id
|
str | None
|
DOM ID attribute. |
None
|
style
|
str | None
|
Inline style attribute. |
None
|
**kwargs
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
|
AnimateTransform
AnimateTransform(
*children,
type=None,
by=None,
from_=None,
to=None,
dur=None,
repeatCount=None,
begin=None,
class_=None,
id=None,
style=None,
**kwargs,
)
Bases: CaseTag
Animates transform attributes on an element
Parameters:
Name | Type | Description | Default |
---|---|---|---|
children
|
Any
|
Tags, strings, or other rendered content. |
()
|
type
|
str | None
|
Transformation type (rotate|scale|translate|skew). |
None
|
by
|
str | None
|
Relative animation value. |
None
|
from_
|
str | None
|
Starting transformation value. |
None
|
to
|
str | None
|
Ending transformation value. |
None
|
dur
|
str | None
|
Total animation duration. |
None
|
repeatCount
|
str | float | None
|
Number of repetitions. |
None
|
begin
|
str | None
|
Animation start time. |
None
|
class_
|
str | None
|
Substituted as the DOM |
None
|
id
|
str | None
|
DOM ID attribute. |
None
|
style
|
str | None
|
Inline style attribute. |
None
|
**kwargs
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
|
Circle
Circle(
*children,
cx=None,
cy=None,
r=None,
pathLength=None,
class_=None,
id=None,
style=None,
**kwargs,
)
Bases: CaseTag
Defines a circle
Parameters:
Name | Type | Description | Default |
---|---|---|---|
children
|
Any
|
Tags, strings, or other rendered content. |
()
|
cx
|
str | float | None
|
X-coordinate of center. |
None
|
cy
|
str | float | None
|
Y-coordinate of center. |
None
|
r
|
str | float | None
|
Radius. |
None
|
pathLength
|
float | None
|
Total circumference length in user units. |
None
|
class_
|
str | None
|
Substituted as the DOM |
None
|
id
|
str | None
|
DOM ID attribute. |
None
|
style
|
str | None
|
Inline style attribute. |
None
|
**kwargs
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
188 189 190 191 192 193 194 195 196 197 198 199 200 |
|
ClipPath
ClipPath(
*children,
clipPathUnits=None,
class_=None,
id=None,
style=None,
**kwargs,
)
Bases: CaseTag
Defines a clipping path
Parameters:
Name | Type | Description | Default |
---|---|---|---|
children
|
Any
|
Tags, strings, or other rendered content. |
()
|
clipPathUnits
|
str | None
|
Coordinate system (userSpaceOnUse|objectBoundingBox). |
None
|
class_
|
str | None
|
Substituted as the DOM |
None
|
id
|
str | None
|
DOM ID attribute. |
None
|
style
|
str | None
|
Inline style attribute. |
None
|
**kwargs
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
215 216 217 218 219 220 221 222 223 224 |
|
Defs
Defs(*children, class_=None, id=None, style=None, **kwargs)
Bases: CaseTag
Defines reusable objects
Parameters:
Name | Type | Description | Default |
---|---|---|---|
children
|
Any
|
Tags, strings, or other rendered content. |
()
|
class_
|
str | None
|
Substituted as the DOM |
None
|
id
|
str | None
|
DOM ID attribute. |
None
|
style
|
str | None
|
Inline style attribute. |
None
|
**kwargs
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
238 239 240 241 242 243 244 245 246 |
|
Desc
Desc(*children, class_=None, id=None, style=None, **kwargs)
Bases: CaseTag
Defines a description of an element
Parameters:
Name | Type | Description | Default |
---|---|---|---|
children
|
Any
|
Tags, strings, or other rendered content. |
()
|
class_
|
str | None
|
Substituted as the DOM |
None
|
id
|
str | None
|
DOM ID attribute. |
None
|
style
|
str | None
|
Inline style attribute. |
None
|
**kwargs
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
260 261 262 263 264 265 266 267 268 |
|