*/
var body: String = ""
- /**
- * HTML tooltip of this SVG Element.
- */
- var tooltip: SVGTooltip? = null
-
/**
* Add a child element.
*/
children.forEach {
it.render(appendable, renderMode)
}
- tooltip?.let { (htmlId, html) ->
- appendable.append("<div id=\"$htmlId\" class=\"tooltip\">")
- appendable.append(html)
- appendable.append("</div>")
- }
appendable.append("</$name>\n")
}
}
*/
fun hasChildren(): Boolean = children.isNotEmpty()
- /**
- * Has tooltip
- */
- fun hasTooltip(): Boolean = tooltip != null
/**
* Has any content, i.e. a body and/or children.
*/
- fun hasContent(): Boolean = hasBody() || hasChildren() || hasTooltip()
+ fun hasContent(): Boolean = hasBody() || hasChildren()
/**
* Returns the rendered inline SVG as a String.