kotlin-stdlib
JS
kotlin-stdlib
/
org.w3c.dom
/
Path2D
Path2D
JS
open
external
class
Path2D
:
CanvasPath
Exposes the JavaScript
Path2D
to Kotlin
Constructors
Functions
Constructors
Path2D
Link copied to clipboard
JS
fun
Path2D
(
path
:
Path2D
)
Path2D
Link copied to clipboard
JS
fun
Path2D
(
paths
:
Array
<
Path2D
>
,
fillRule
:
CanvasFillRule
=
definedExternally
)
Path2D
Link copied to clipboard
JS
fun
Path2D
(
d
:
String
)
Path2D
Link copied to clipboard
JS
fun
Path2D
(
)
Functions
add
Path
Link copied to clipboard
JS
fun
addPath
(
path
:
Path2D
,
transform
:
dynamic
=
definedExternally
)
arc
Link copied to clipboard
JS
open
override
fun
arc
(
x
:
Double
,
y
:
Double
,
radius
:
Double
,
startAngle
:
Double
,
endAngle
:
Double
,
anticlockwise
:
Boolean
)
arc
To
Link copied to clipboard
JS
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
)
bezier
Curve
To
Link copied to clipboard
JS
open
override
fun
bezierCurveTo
(
cp1x
:
Double
,
cp1y
:
Double
,
cp2x
:
Double
,
cp2y
:
Double
,
x
:
Double
,
y
:
Double
)
close
Path
Link copied to clipboard
JS
open
override
fun
closePath
(
)
ellipse
Link copied to clipboard
JS
open
override
fun
ellipse
(
x
:
Double
,
y
:
Double
,
radiusX
:
Double
,
radiusY
:
Double
,
rotation
:
Double
,
startAngle
:
Double
,
endAngle
:
Double
,
anticlockwise
:
Boolean
)
line
To
Link copied to clipboard
JS
open
override
fun
lineTo
(
x
:
Double
,
y
:
Double
)
move
To
Link copied to clipboard
JS
open
override
fun
moveTo
(
x
:
Double
,
y
:
Double
)
quadratic
Curve
To
Link copied to clipboard
JS
open
override
fun
quadraticCurveTo
(
cpx
:
Double
,
cpy
:
Double
,
x
:
Double
,
y
:
Double
)
rect
Link copied to clipboard
JS
open
override
fun
rect
(
x
:
Double
,
y
:
Double
,
w
:
Double
,
h
:
Double
)