Companion

object Companion

Functions

Link copied to clipboard
fun colorToHexString(color: Color, withAlpha: Boolean): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getData(path: String): Promise<JsAny?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

fun measureText(fontName: String, fontSize: int, fontStyle: String, text: String, context: CanvasRenderingContext2D): Rectangle2D

Clients should use getTextBounds

Link copied to clipboard
fun scaleIcon(symbolID: String, icon: SVGInfo): SVGInfo
Link copied to clipboard
fun setColorAlpha(color: Color, alpha: float): Color

Create a copy of the {@Color} object with the passed alpha value.

Link copied to clipboard
fun setSVGFrameColors(symbolID: String, svg: String, strokeColor: Color, fillColor: Color): String

For Renderer Use Only Assumes a fresh SVG String from the SVGLookup with its default values

Link copied to clipboard
fun setSVGSPCMColors(symbolID: String, svg: String, strokeColor: Color, fillColor: Color): String

fun setSVGSPCMColors(symbolID: String, svg: String, strokeColor: Color, fillColor: Color, isOutline: Boolean): String

For Renderer Use Only Changes colors for single point control measures