minor style improvements

This commit is contained in:
2024-06-20 22:44:15 +02:00
parent ef73f98dd0
commit fd5b147e86
3 changed files with 22 additions and 9 deletions

View File

@ -26,17 +26,26 @@
let xr = cx + w / 2
y -= h / 2
shapes += draw.line((x0, y), (xl, y))
shapes += draw.line((xr, y), (x1, y))
shapes += draw.rect(
(x0, y),
(x1, y - 3),
stroke: none,
fill: white
)
shapes += draw.line((x0, y), (x1, y))
//shapes += draw.line((x0, y), (xl, y))
//shapes += draw.line((xr, y), (x1, y))
y -= 3
shapes += draw.line((x0, y), (xl, y))
shapes += draw.line((xr, y), (x1, y))
shapes += draw.line((x0, y), (x1, y))
//shapes += draw.line((x0, y), (xl, y))
//shapes += draw.line((xr, y), (x1, y))
shapes += draw.content(
((x0 + x1) / 2, y + 1.5),
elmt.name,
anchor: "center",
padding: (5pt, 3pt),
frame: "rect"
frame: "rect",
fill: COL-SEP-NAME
)
y -= h / 2
y -= Y-SPACE