CanvasTransform

JS
1.1
interface CanvasTransform
(source)

Functions

JS
1.1

getTransform

abstract fun getTransform(): DOMMatrix
JS
1.1

resetTransform

abstract fun resetTransform()
JS
1.1

rotate

abstract fun rotate(angle: Double)
JS
1.1

scale

abstract fun scale(x: Double, y: Double)
JS
1.1

setTransform

abstract fun setTransform(
    a: Double,
    b: Double,
    c: Double,
    d: Double,
    e: Double,
    f: Double)
abstract fun setTransform(
    transform: dynamic = definedExternally)
JS
1.1

transform

abstract fun transform(
    a: Double,
    b: Double,
    c: Double,
    d: Double,
    e: Double,
    f: Double)
JS
1.1

translate

abstract fun translate(x: Double, y: Double)

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