Skip to content

Commit

Permalink
svg line element added
Browse files Browse the repository at this point in the history
  • Loading branch information
hbasria authored and paveldedik committed May 6, 2024
1 parent b1af6f7 commit 5f952ea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ludic/attrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,13 @@ class CircleAttrs(SvgAttrs, total=False):
r: str


class LineAttrs(SvgAttrs, total=False):
x1: str
x2: str
y1: str
y2: str


class PathAttrs(SvgAttrs, total=False):
d: str

Expand Down
5 changes: 5 additions & 0 deletions ludic/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
StyleAttrs,
SvgAttrs,
CircleAttrs,
LineAttrs,
PathAttrs,
PolylineAttrs,
TdAttrs,
Expand Down Expand Up @@ -209,6 +210,10 @@ class circle(Element[AnyChildren, CircleAttrs]):
html_name = "circle"


class line(Element[AnyChildren, LineAttrs]):
html_name = "line"


class path(Element[AnyChildren, PathAttrs]):
html_name = "path"

Expand Down

0 comments on commit 5f952ea

Please sign in to comment.