SVG Tags N-S
Air is proud to provide first class SVG support. The entire SVG specification is supported.
Path
Path(
*children,
d=None,
pathLength=None,
class_=None,
id=None,
style=None,
**kwargs,
)
Bases: CaseTag
Defines a path
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
children
|
Renderable
|
Tags, strings, or other rendered content. |
()
|
d
|
str | None
|
Path data defining the shape. |
None
|
pathLength
|
float | None
|
Total path 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
|
AttributeType
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 | |
Pattern
Pattern(
*children,
x=None,
y=None,
width=None,
height=None,
patternUnits=None,
patternContentUnits=None,
patternTransform=None,
href=None,
viewBox=None,
preserveAspectRatio=None,
class_=None,
id=None,
style=None,
**kwargs,
)
Bases: CaseTag
Defines a pattern
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
children
|
Renderable
|
Tags, strings, or other rendered content. |
()
|
x
|
str | float | None
|
X-coordinate shift of pattern tile. |
None
|
y
|
str | float | None
|
Y-coordinate shift of pattern tile. |
None
|
width
|
str | float | None
|
Width of pattern tile. |
None
|
height
|
str | float | None
|
Height of pattern tile. |
None
|
patternUnits
|
str | None
|
Coordinate system for position/size. |
None
|
patternContentUnits
|
str | None
|
Coordinate system for contents. |
None
|
patternTransform
|
str | None
|
Additional transformation. |
None
|
href
|
str | None
|
Reference to template pattern. |
None
|
viewBox
|
str | None
|
Viewport bounds for pattern. |
None
|
preserveAspectRatio
|
str | None
|
Aspect ratio handling. |
None
|
class_
|
str | None
|
Substituted as the DOM |
None
|
id
|
str | None
|
DOM ID attribute. |
None
|
style
|
str | None
|
Inline style attribute. |
None
|
**kwargs
|
AttributeType
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 | |
Polygon
Polygon(
*children,
points=None,
pathLength=None,
class_=None,
id=None,
style=None,
**kwargs,
)
Bases: CaseTag
Defines a polygon
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
children
|
Renderable
|
Tags, strings, or other rendered content. |
()
|
points
|
str | None
|
List of x,y coordinate pairs. |
None
|
pathLength
|
float | None
|
Total path 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
|
AttributeType
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 | |
Polyline
Polyline(
*children,
points=None,
pathLength=None,
class_=None,
id=None,
style=None,
**kwargs,
)
Bases: CaseTag
Defines a polyline
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
children
|
Renderable
|
Tags, strings, or other rendered content. |
()
|
points
|
str | None
|
List of x,y coordinate pairs. |
None
|
pathLength
|
float | None
|
Total path 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
|
AttributeType
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 | |
RadialGradient
RadialGradient(
*children,
cx=None,
cy=None,
r=None,
fx=None,
fy=None,
fr=None,
gradientUnits=None,
gradientTransform=None,
href=None,
spreadMethod=None,
class_=None,
id=None,
style=None,
**kwargs,
)
Bases: CaseTag
Defines a radial gradient
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
children
|
Renderable
|
Tags, strings, or other rendered content. |
()
|
cx
|
str | float | None
|
X-coordinate of end circle. |
None
|
cy
|
str | float | None
|
Y-coordinate of end circle. |
None
|
r
|
str | float | None
|
Radius of end circle. |
None
|
fx
|
str | float | None
|
X-coordinate of start circle. |
None
|
fy
|
str | float | None
|
Y-coordinate of start circle. |
None
|
fr
|
str | float | None
|
Radius of start circle. |
None
|
gradientUnits
|
str | None
|
Coordinate system. |
None
|
gradientTransform
|
str | None
|
Additional transformation. |
None
|
href
|
str | None
|
Reference to template gradient. |
None
|
spreadMethod
|
str | None
|
Gradient behavior. |
None
|
class_
|
str | None
|
Substituted as the DOM |
None
|
id
|
str | None
|
DOM ID attribute. |
None
|
style
|
str | None
|
Inline style attribute. |
None
|
**kwargs
|
AttributeType
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 | |
Rect
Rect(
*children,
x=None,
y=None,
width=None,
height=None,
rx=None,
ry=None,
pathLength=None,
class_=None,
id=None,
style=None,
**kwargs,
)
Bases: CaseTag
Defines a rectangle
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
children
|
Renderable
|
Tags, strings, or other rendered content. |
()
|
x
|
str | float | None
|
X-coordinate. |
None
|
y
|
str | float | None
|
Y-coordinate. |
None
|
width
|
str | float | None
|
Width. |
None
|
height
|
str | float | None
|
Height. |
None
|
rx
|
str | float | None
|
Horizontal corner radius. |
None
|
ry
|
str | float | None
|
Vertical corner radius. |
None
|
pathLength
|
float | None
|
Total perimeter 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
|
AttributeType
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 | |
Script
Script(
*children,
type=None,
href=None,
crossorigin=None,
fetchpriority=None,
class_=None,
id=None,
style=None,
**kwargs,
)
Bases: CaseTag
Defines a script
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
children
|
Renderable
|
Tags, strings, or other rendered content. |
()
|
type
|
str | None
|
Script MIME type. |
None
|
href
|
str | None
|
External script URL. |
None
|
crossorigin
|
str | None
|
CORS credentials flag. |
None
|
fetchpriority
|
str | None
|
Fetch priority hint (experimental). |
None
|
class_
|
str | None
|
Substituted as the DOM |
None
|
id
|
str | None
|
DOM ID attribute. |
None
|
style
|
str | None
|
Inline style attribute. |
None
|
**kwargs
|
AttributeType
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 | |
Set
Set(
*children,
to=None,
attributeName=None,
begin=None,
dur=None,
class_=None,
id=None,
style=None,
**kwargs,
)
Bases: CaseTag
Sets an attribute value
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
children
|
Renderable
|
Tags, strings, or other rendered content. |
()
|
to
|
str | None
|
Value to apply for animation duration. |
None
|
attributeName
|
str | None
|
Target attribute to set. |
None
|
begin
|
str | None
|
Animation start time. |
None
|
dur
|
str | None
|
Animation duration. |
None
|
class_
|
str | None
|
Substituted as the DOM |
None
|
id
|
str | None
|
DOM ID attribute. |
None
|
style
|
str | None
|
Inline style attribute. |
None
|
**kwargs
|
AttributeType
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 | |
Stop
Stop(
*children,
offset=None,
stop_color=None,
stop_opacity=None,
class_=None,
id=None,
style=None,
**kwargs,
)
Bases: CaseTag
Defines a gradient stop
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
children
|
Renderable
|
Tags, strings, or other rendered content. |
()
|
offset
|
str | float | None
|
Position along gradient vector. |
None
|
stop_color
|
str | None
|
Color of gradient stop. |
None
|
stop_opacity
|
str | float | None
|
Opacity of gradient stop. |
None
|
class_
|
str | None
|
Substituted as the DOM |
None
|
id
|
str | None
|
DOM ID attribute. |
None
|
style
|
str | None
|
Inline style attribute. |
None
|
**kwargs
|
AttributeType
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 | |
Style
Style(
*children,
type=None,
media=None,
class_=None,
id=None,
style=None,
**kwargs,
)
Bases: CaseTag
Defines style information
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
children
|
Renderable
|
Tags, strings, or other rendered content. |
()
|
type
|
str | None
|
Style sheet language MIME type. |
None
|
media
|
str | None
|
Media query for when styles apply. |
None
|
class_
|
str | None
|
Substituted as the DOM |
None
|
id
|
str | None
|
DOM ID attribute. |
None
|
style
|
str | None
|
Inline style attribute. |
None
|
**kwargs
|
AttributeType
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 | |
Svg
Svg(
*children,
width=None,
height=None,
x=None,
y=None,
viewBox=None,
preserveAspectRatio=None,
class_=None,
id=None,
style=None,
**kwargs,
)
Bases: CaseTag
Defines an SVG document fragment
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
children
|
Renderable
|
Tags, strings, or other rendered content. |
()
|
width
|
str | float | None
|
Displayed width of viewport. |
None
|
height
|
str | float | None
|
Displayed height of viewport. |
None
|
x
|
str | float | None
|
X-coordinate of container. |
None
|
y
|
str | float | None
|
Y-coordinate of container. |
None
|
viewBox
|
str | None
|
SVG viewport coordinates. |
None
|
preserveAspectRatio
|
str | None
|
Aspect ratio handling. |
None
|
class_
|
str | None
|
Substituted as the DOM |
None
|
id
|
str | None
|
DOM ID attribute. |
None
|
style
|
str | None
|
Inline style attribute. |
None
|
**kwargs
|
AttributeType
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 | |
Switch
Switch(
*children, class_=None, id=None, style=None, **kwargs
)
Bases: CaseTag
Defines conditional processing
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
children
|
Renderable
|
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
|
AttributeType
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1772 1773 1774 1775 1776 1777 1778 1779 1780 | |
Symbol
Symbol(
*children,
width=None,
height=None,
x=None,
y=None,
viewBox=None,
preserveAspectRatio=None,
refX=None,
refY=None,
class_=None,
id=None,
style=None,
**kwargs,
)
Bases: CaseTag
Defines a reusable symbol
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
children
|
Renderable
|
Tags, strings, or other rendered content. |
()
|
width
|
str | float | None
|
Width of symbol. |
None
|
height
|
str | float | None
|
Height of symbol. |
None
|
x
|
str | float | None
|
X-coordinate. |
None
|
y
|
str | float | None
|
Y-coordinate. |
None
|
viewBox
|
str | None
|
Viewport bounds for symbol. |
None
|
preserveAspectRatio
|
str | None
|
Aspect ratio handling. |
None
|
refX
|
str | float | None
|
X reference point. |
None
|
refY
|
str | float | None
|
Y reference point. |
None
|
class_
|
str | None
|
Substituted as the DOM |
None
|
id
|
str | None
|
DOM ID attribute. |
None
|
style
|
str | None
|
Inline style attribute. |
None
|
**kwargs
|
AttributeType
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 | |