private class Tag(val name: String, block: Tag.() -> Unit)

Simple DSL for generating SVGs

Parameters

name

The name of the element

block

The block to execute, used for defining attributes and inner elements

Constructors

Link copied to clipboard
constructor(name: String, block: Tag.() -> Unit)

Properties

Link copied to clipboard

The attributes of the tag

Link copied to clipboard
Link copied to clipboard
private val tags: MutableList<Tag>

The inner tags of the tag

Functions

Link copied to clipboard
fun tag(name: String, block: Tag.() -> Unit)

Adds a new inner element

Link copied to clipboard
open override fun toString(): String