PathOption

Represents path rendering options for SVG elements.

Props

The following table outlines the props for the PathOption:

NameTypeDefaultDescription
cx
number
-

X-coordinate for circle center.

cy
number
-

Y-coordinate for circle center.

d
string
-

SVG path data string.

dashArray
string | null
-

Dash array pattern for the path stroke, or null for solid line.

fill
string
-

Fill color for the path.

height
number
-

Height for element sizing.

href
string
-

URL reference for image elements.

id
string
-

Unique identifier for the path element.

opacity
number
-

Opacity value for the path (0 to 1).

rx
number
-

X-radius for rounded rectangle corners.

ry
number
-

Y-radius for rounded rectangle corners.

stroke
string
-

Stroke color for the path outline.

strokeWidth
number
-

Stroke width for the path outline in pixels.

width
number
-

Width for element sizing.

x
number
-

X-coordinate for element positioning.

y
number
-

Y-coordinate for element positioning.