ksvg / com.github.nwillc.ksvg.attributes / AttributeType

AttributeType

(JS, JVM) enum class AttributeType

An enumeration of attribute types and how to verify if a value is of this type.

Enum Values

(JS, JVM)

None

No validations will be performed on type none.

(JS, JVM)

Length

A length value, a number and optional unit.

(JS, JVM)

LengthOrPercentage

A length or percentage, a number and optional unit or percent sign.

(JS, JVM)

NumberList

A list of numbers separated by white space or commas.

(JS, JVM)

IdName

Any non empty character string without whitespace.

(JS, JVM)

Relative

A relative URL by id name.

(JS, JVM)

Path

A set of commands and coordinates.

(JS, JVM)

CssClass

CSS class names work imperfectly in some browsers so warn about them.

Functions

(JS, JVM)

verify

Verify a value is of the AttributeType.

fun verify(value: String): Unit

Inheritors

(JS, JVM)

CssClass

CSS class names work imperfectly in some browsers so warn about them.

(JS, JVM)

IdName

Any non empty character string without whitespace.

(JS, JVM)

Length

A length value, a number and optional unit.

(JS, JVM)

LengthOrPercentage

A length or percentage, a number and optional unit or percent sign.

(JS, JVM)

None

No validations will be performed on type none.

(JS, JVM)

NumberList

A list of numbers separated by white space or commas.

(JS, JVM)

Path

A set of commands and coordinates.

(JS, JVM)

Relative

A relative URL by id name.