konva
0.10.0
konva
/
konva
/
Canvas
Canvas
open
external
class
Canvas
(
CanvasConfig
:
CanvasConfig
)
Content copied to clipboard
Constructors
Functions
Properties
Constructors
Canvas
Link copied to clipboard
fun
Canvas
(
CanvasConfig
:
CanvasConfig
)
Content copied to clipboard
Functions
get
Context
Link copied to clipboard
open
fun
getContext
(
)
:
CanvasRenderingContext2D
Content copied to clipboard
get
Height
Link copied to clipboard
open
fun
getHeight
(
)
:
Number
Content copied to clipboard
get
Pixel
Ratio
Link copied to clipboard
open
fun
getPixelRatio
(
)
:
Number
Content copied to clipboard
get
Width
Link copied to clipboard
open
fun
getWidth
(
)
:
Number
Content copied to clipboard
set
Height
Link copied to clipboard
open
fun
setHeight
(
val
:
Number
)
Content copied to clipboard
set
Pixel
Ratio
Link copied to clipboard
open
fun
setPixelRatio
(
val
:
Number
)
Content copied to clipboard
set
Size
Link copied to clipboard
open
fun
setSize
(
size
:
T$0
)
Content copied to clipboard
set
Width
Link copied to clipboard
open
fun
setWidth
(
val
:
Number
)
Content copied to clipboard
to
Data
URL
Link copied to clipboard
open
fun
toDataURL
(
mimeType
:
String
,
quality
:
Number
)
:
String
Content copied to clipboard
Properties
_canvas
Link copied to clipboard
open
var
_canvas
:
HTMLElement
Content copied to clipboard