Element.Ellipse¶
Generates an ellipse SVG element
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| cx | STRING | The x position of the center | ||
| cy | STRING | The y position of the center | ||
| rx | STRING | The x radius | ||
| ry | STRING | The y radius | ||
| attributes | STRING | BLANK() |
Optional: Direct SVG attributes to apply (e.g., "fill='none' stroke='blue'"), can generate with DaxLib.SVG.Attr.* or manually |
|
| transforms | STRING | BLANK() |
Optional: Transformation to apply (can be generated with DaxLib.SVG.Transforms) |
STRING
function 'DaxLib.SVG.Element.Ellipse' =
(
cx: STRING,
cy: STRING,
rx: STRING,
ry: STRING,
attributes: STRING = BLANK(),
transforms: STRING = BLANK()
) =>
"<ellipse" &
" cx='" & cx & "'" &
" cy='" & cy & "'" &
" rx='" & rx & "'" &
" ry='" & ry & "'" &
IF( NOT ISBLANK( attributes ), " " & attributes & " " ) &
IF( NOT ISBLANK( transforms ), " transform='" & transforms & "'" ) &
"/>"