CanvasText

JS
1.1
interface CanvasText
(source)

Functions

JS
1.1

fillText

abstract fun fillText(
    text: String,
    x: Double,
    y: Double,
    maxWidth: Double = definedExternally)
JS
1.1

measureText

abstract fun measureText(text: String): TextMetrics
JS
1.1

strokeText

abstract fun strokeText(
    text: String,
    x: Double,
    y: Double,
    maxWidth: Double = definedExternally)

Inheritors

JS
1.1

CanvasRenderingContext2D

Exposes the JavaScript CanvasRenderingContext2D to Kotlin

abstract class CanvasRenderingContext2D : 
    CanvasState,
    CanvasTransform,
    CanvasCompositing,
    CanvasImageSmoothing,
    CanvasFillStrokeStyles,
    CanvasShadowStyles,
    CanvasFilters,
    CanvasRect,
    CanvasDrawPath,
    CanvasUserInterface,
    CanvasText,
    CanvasDrawImage,
    CanvasHitRegion,
    CanvasImageData,
    CanvasPathDrawingStyles,
    CanvasTextDrawingStyles,
    CanvasPath,
    RenderingContext