Path2D

open external class Path2D : CanvasPath(source)

Exposes the JavaScript Path2D to Kotlin

Since Kotlin

1.1

Constructors

Link copied to clipboard
constructor(path: Path2D)
constructor(paths: Array<Path2D>, fillRule: CanvasFillRule = definedExternally)
constructor(d: String)
constructor()

Functions

Link copied to clipboard
fun addPath(path: Path2D, transform: dynamic = definedExternally)
Since Kotlin 1.1
Link copied to clipboard
open override fun arc(x: Double, y: Double, radius: Double, startAngle: Double, endAngle: Double, anticlockwise: Boolean)
Since Kotlin 1.1
Link copied to clipboard
open override fun arcTo(x1: Double, y1: Double, x2: Double, y2: Double, radius: Double)
open override fun arcTo(x1: Double, y1: Double, x2: Double, y2: Double, radiusX: Double, radiusY: Double, rotation: Double)
Since Kotlin 1.1
Link copied to clipboard
open override fun bezierCurveTo(cp1x: Double, cp1y: Double, cp2x: Double, cp2y: Double, x: Double, y: Double)
Since Kotlin 1.1
Link copied to clipboard
open override fun closePath()
Since Kotlin 1.1
Link copied to clipboard
open override fun ellipse(x: Double, y: Double, radiusX: Double, radiusY: Double, rotation: Double, startAngle: Double, endAngle: Double, anticlockwise: Boolean)
Since Kotlin 1.1
Link copied to clipboard
open override fun lineTo(x: Double, y: Double)
Since Kotlin 1.1
Link copied to clipboard
open override fun moveTo(x: Double, y: Double)
Since Kotlin 1.1
Link copied to clipboard
open override fun quadraticCurveTo(cpx: Double, cpy: Double, x: Double, y: Double)
Since Kotlin 1.1
Link copied to clipboard
open override fun rect(x: Double, y: Double, w: Double, h: Double)
Since Kotlin 1.1