d

fun d(pathDataScope: SVGPathDataScope.() -> Unit)(source)

Set path data using a rich, type-safe DSL.


fun d(value: String)(source)

A way to set the path data directly.

You are highly encouraged to use the other d { ... } DSL builder method instead, as it is far more readable. However, in practice, users might get a crazy long path string from a designer or from a tool like Figma, so we begrudgingly allow setting this directly.