CanvasDrawPath
interface CanvasDrawPathFunctions
beginPath
abstract fun beginPath()clip
abstract fun clip(
fillRule: CanvasFillRule = definedExternally)abstract fun clip(
path: Path2D,
fillRule: CanvasFillRule = definedExternally)fill
abstract fun fill(
fillRule: CanvasFillRule = definedExternally)abstract fun fill(
path: Path2D,
fillRule: CanvasFillRule = definedExternally)isPointInPath
abstract fun isPointInPath(
x: Double,
y: Double,
fillRule: CanvasFillRule = definedExternally
): Booleanabstract fun isPointInPath(
path: Path2D,
x: Double,
y: Double,
fillRule: CanvasFillRule = definedExternally
): BooleanisPointInStroke
abstract fun isPointInStroke(x: Double, y: Double): Booleanabstract fun isPointInStroke(
path: Path2D,
x: Double,
y: Double
): BooleanresetClip
abstract fun resetClip()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