attr

fun attr(name: String, value: String)

Sets an attribute on the SVG element with a string value.

Parameters

name

The name of the attribute.

value

The value of the attribute as a string.


fun attr(name: String, value: Number)

Sets an attribute on the SVG element with a numeric value.

Parameters

name

The name of the attribute.

value

The value of the attribute as a number.