|
@@ -484,6 +484,30 @@ class Path(BaseHTML):
|
|
|
d: Var[str | int | float]
|
|
|
|
|
|
|
|
|
+class G(BaseHTML):
|
|
|
+ """The SVG g component, used to group other SVG elements."""
|
|
|
+
|
|
|
+ tag = "g"
|
|
|
+
|
|
|
+ # The fill color of the group.
|
|
|
+ fill: Var[str | Color]
|
|
|
+
|
|
|
+ # The fill opacity of the group.
|
|
|
+ fill_opacity: Var[str | int | float]
|
|
|
+
|
|
|
+ # The stroke color of the group.
|
|
|
+ stroke: Var[str | Color]
|
|
|
+
|
|
|
+ # The stroke opacity of the group.
|
|
|
+ stroke_opacity: Var[str | int | float]
|
|
|
+
|
|
|
+ # The stroke width of the group.
|
|
|
+ stroke_width: Var[str | int | float]
|
|
|
+
|
|
|
+ # The transform applied to the group.
|
|
|
+ transform: Var[str]
|
|
|
+
|
|
|
+
|
|
|
class SVG(ComponentNamespace):
|
|
|
"""SVG component namespace."""
|
|
|
|
|
@@ -498,6 +522,7 @@ class SVG(ComponentNamespace):
|
|
|
linear_gradient = staticmethod(LinearGradient.create)
|
|
|
radial_gradient = staticmethod(RadialGradient.create)
|
|
|
defs = staticmethod(Defs.create)
|
|
|
+ g = staticmethod(G.create)
|
|
|
__call__ = staticmethod(Svg.create)
|
|
|
|
|
|
|
|
@@ -512,6 +537,7 @@ stop = Stop.create
|
|
|
linear_gradient = LinearGradient.create
|
|
|
radial_gradient = RadialGradient.create
|
|
|
defs = Defs.create
|
|
|
+g = G.create
|
|
|
area = Area.create
|
|
|
audio = Audio.create
|
|
|
image = img = Img.create
|