CanvasDrawPath

JS
1.1
interface CanvasDrawPath
(source)

Functions

JS
1.1

beginPath

abstract fun beginPath()
JS
1.1

clip

abstract fun clip(
    fillRule: CanvasFillRule = definedExternally)
abstract fun clip(
    path: Path2D,
    fillRule: CanvasFillRule = definedExternally)
JS
1.1

fill

abstract fun fill(
    fillRule: CanvasFillRule = definedExternally)
abstract fun fill(
    path: Path2D,
    fillRule: CanvasFillRule = definedExternally)
JS
1.1

isPointInPath

abstract fun isPointInPath(
    x: Double,
    y: Double,
    fillRule: CanvasFillRule = definedExternally
): Boolean
abstract fun isPointInPath(
    path: Path2D,
    x: Double,
    y: Double,
    fillRule: CanvasFillRule = definedExternally
): Boolean
JS
1.1

isPointInStroke

abstract fun isPointInStroke(x: Double, y: Double): Boolean
abstract fun isPointInStroke(
    path: Path2D,
    x: Double,
    y: Double
): Boolean
JS
1.1

resetClip

abstract fun resetClip()
JS
1.1

stroke

abstract fun stroke()
abstract fun stroke(path: Path2D)

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