Nativescript Doc
Preparing search index...
The search index is not available
Documentation
Documentation
ui-canvas
CanvasView
Class CanvasView
Hierarchy
GridLayout
CanvasView
Index
Constructors
constructor
Properties
cached
density
draw
Frame
Rate
hardware
Accelerated
shapes
Methods
_add
Array
From
Builder
_add
Child
From
Builder
add
Shape
insert
Shape
invalidate
on
Draw
on
Size
Changed
redraw
remove
Shape
Constructors
constructor
new
CanvasView
()
:
CanvasView
Returns
CanvasView
Properties
cached
cached
:
boolean
density
density
:
number
draw
Frame
Rate
drawFrameRate
:
boolean
hardware
Accelerated
hardwareAccelerated
:
boolean
shapes
shapes
:
ObservableArray
<
Shape
>
Methods
_add
Array
From
Builder
_addArrayFromBuilder
(
name
:
string
,
value
:
any
[]
)
:
any
Parameters
name
:
string
value
:
any
[]
Returns
any
_add
Child
From
Builder
_addChildFromBuilder
(
name
:
string
,
value
:
any
)
:
any
Parameters
name
:
string
value
:
any
Returns
any
_addChildFromBuilder
(
name
:
string
,
value
:
any
)
:
any
Parameters
name
:
string
value
:
any
Returns
any
add
Shape
addShape
(
shape
:
Shape
)
:
any
Parameters
shape
:
Shape
Returns
any
insert
Shape
insertShape
(
shape
:
Shape
,
atIndex
:
number
)
:
any
Parameters
shape
:
Shape
atIndex
:
number
Returns
any
invalidate
invalidate
()
:
any
Returns
any
on
Draw
onDraw
(
canvas
:
Canvas
)
:
any
Parameters
canvas
:
Canvas
Returns
any
on
Size
Changed
onSizeChanged
(
w
:
number
,
h
:
number
,
oldw
:
number
,
oldh
:
number
)
:
any
Parameters
w
:
number
h
:
number
oldw
:
number
oldh
:
number
Returns
any
redraw
redraw
()
:
any
Returns
any
remove
Shape
removeShape
(
shape
:
Shape
)
:
any
Parameters
shape
:
Shape
Returns
any
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
cached
density
draw
Frame
Rate
hardware
Accelerated
shapes
Methods
_add
Array
From
Builder
_add
Child
From
Builder
add
Shape
insert
Shape
invalidate
on
Draw
on
Size
Changed
redraw
remove
Shape
Nativescript Doc
Documentation
Loading...