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
|
Any
|
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
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 |
|
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
|
Any
|
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
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 |
|
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
|
Any
|
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
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 |
|
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
|
Any
|
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
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 |
|
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
|
Any
|
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
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 |
|
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
|
Any
|
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
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 |
|
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
|
Any
|
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
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 |
|
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
|
Any
|
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
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 |
|
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
|
Any
|
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
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 |
|
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
|
Any
|
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
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 |
|
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
|
Any
|
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
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 |
|
Switch
Switch(
*children, class_=None, id=None, style=None, **kwargs
)
Bases: CaseTag
Defines conditional processing
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
1766 1767 1768 1769 1770 1771 1772 1773 1774 |
|
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
|
Any
|
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
|
str | int | float | bool
|
Additional attributes. |
{}
|
Source code in src/air/tags/models/svg.py
1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 |
|