SVG

class SVG(val root: Xml, val warningProcessor: (message: String) -> Unit? = null) : SizedDrawable

Constructors

Link copied to clipboard
constructor(str: String)
constructor(root: Xml, warningProcessor: (message: String) -> Unit? = null)

Types

Link copied to clipboard
open inner class CircleSvgElement(val xml: Xml) : SVG.SvgElement
Link copied to clipboard
object Companion
Link copied to clipboard
Link copied to clipboard
open inner class EllipseSvgElement(val xml: Xml) : SVG.SvgElement
Link copied to clipboard
open inner class LineSvgElement(val xml: Xml) : SVG.SvgElement
Link copied to clipboard
object Mappings
Link copied to clipboard
open inner class PathSvgElement(val xml: Xml) : SVG.SvgElement
Link copied to clipboard
interface PathToken
Link copied to clipboard
data class PathTokenCmd(val id: Char) : SVG.PathToken
Link copied to clipboard
data class PathTokenNumber(val value: Double) : SVG.PathToken
Link copied to clipboard
open inner class PolySvgElement(val xml: Xml) : SVG.SvgElement
Link copied to clipboard
open inner class RectSvgElement(val xml: Xml) : SVG.SvgElement
Link copied to clipboard
class SvgDef(val def: Xml)
Link copied to clipboard
open inner class SvgElement(val xml: Xml) : DOM.DomElement
Link copied to clipboard
open inner class TextSvgElement(val xml: Xml) : SVG.SvgElement

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val dom: DOM
Link copied to clipboard
Link copied to clipboard
open override val height: Int
Link copied to clipboard
Link copied to clipboard
val root: Xml
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val warningProcessor: (message: String) -> Unit? = null
Link copied to clipboard
open override val width: Int
Link copied to clipboard
val x: Int
Link copied to clipboard
val y: Int

Functions

Link copied to clipboard
Link copied to clipboard
open override fun draw(c: Context2d)
Link copied to clipboard
fun <T : Bitmap> Drawable.draw(out: T): T
Link copied to clipboard
Link copied to clipboard
fun SizedDrawable.raster(scaleX: Double = 1.0, scaleY: Double = scaleX): NativeImage
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Drawable.renderToImage(width: Int, height: Int): NativeImage
fun Drawable.renderToImage(width: Int, height: Int, native: Boolean): Bitmap
Link copied to clipboard
fun SizedDrawable.scaled(sx: Number = 1.0, sy: Number = sx): SizedDrawable
Link copied to clipboard
suspend fun SizedDrawable.showImageAndWait(kind: Int = 0)
Link copied to clipboard
fun Drawable.toShape(width: Int, height: Int): Shape
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun SizedDrawable.toSvg(scale: Double = 1.0): Xml
fun Drawable.toSvg(width: Int, height: Int, scale: Double = 1.0): Xml
Link copied to clipboard
Link copied to clipboard