CanvasTransform
Functions
getTransform
abstract fun getTransform(): DOMMatrix
resetTransform
abstract fun resetTransform()
rotate
abstract fun rotate(angle: Double)
scale
abstract fun scale(x: Double, y: Double)
setTransform
abstract fun setTransform(
a: Double,
b: Double,
c: Double,
d: Double,
e: Double,
f: Double)
abstract fun setTransform(
transform: dynamic = definedExternally)
transform
abstract fun transform(
a: Double,
b: Double,
c: Double,
d: Double,
e: Double,
f: Double)
translate
abstract fun translate(x: Double, y: Double)
Inheritors
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