ksvg / com.github.nwillc.ksvg.attributes / HasAttributesImpl

HasAttributesImpl

(JS, JVM) open class HasAttributesImpl : HasAttributes

A basic implementation of HasAttributes.

Constructors

(JS, JVM)

<init>

A basic implementation of HasAttributes.

<init>(validation: Boolean)

Properties

(JS, JVM)

attributes

The attributes are simply labels with associated values.

open val attributes: MutableMap<String, String?>
(JS, JVM)

id

All things that can have attributes can have an id attribute.

open var id: String?
(JS, JVM)

validation

Should we attempt to validated values correctness when assign them?

open var validation: Boolean

Functions

(JS, JVM)

getAttributes

Return the attribute map, with possible processing based on the renderMode.

open fun getAttributes(renderMode: RenderMode): MutableMap<String, String?>