Nativescript Doc
Preparing search index...
The search index is not available
Documentation
Documentation
ui-canvas
Path
Class Path
Hierarchy (
View Summary
)
ProxyClass
Path
Index
Constructors
constructor
Methods
add
Arc
add
Circle
add
Cubic
Lines
add
Lines
add
Oval
add
Path
add
Rect
add
Round
Rect
arc
To
close
compute
Bounds
cubic
To
get
Fill
Type
get
Native
inc
Reserve
is
Empty
is
Inverse
Fill
Type
is
Rect
line
To
move
To
offset
quad
To
r
Cubic
To
reset
rewind
r
Line
To
r
Move
To
r
Quad
To
set
set
Cubic
Lines
set
Fill
Type
set
Last
Point
set
Lines
set
Native
toggle
Inverse
Fill
Type
transform
Constructors
constructor
new
Path
()
:
Path
Returns
Path
new
Path
(
param0
:
Path
)
:
Path
Parameters
param0
:
Path
Returns
Path
Methods
add
Arc
addArc
(
param0
:
RectF
,
param1
:
number
,
param2
:
number
)
:
void
Parameters
param0
:
RectF
param1
:
number
param2
:
number
Returns
void
add
Circle
addCircle
(
param0
:
number
,
param1
:
number
,
param2
:
number
,
param3
:
Direction
,
)
:
void
Parameters
param0
:
number
param1
:
number
param2
:
number
param3
:
Direction
Returns
void
add
Cubic
Lines
addCubicLines
(
points
:
number
[]
,
offset
?:
number
,
length
?:
number
,
close
?:
boolean
,
)
:
any
Parameters
points
:
number
[]
Optional
offset
:
number
Optional
length
:
number
Optional
close
:
boolean
Returns
any
add
Lines
addLines
(
points
:
number
[]
,
offset
?:
number
,
length
?:
number
,
close
?:
boolean
,
)
:
any
Parameters
points
:
number
[]
Optional
offset
:
number
Optional
length
:
number
Optional
close
:
boolean
Returns
any
add
Oval
addOval
(
param0
:
Rect
,
param1
:
Direction
)
:
void
Parameters
param0
:
Rect
param1
:
Direction
Returns
void
add
Path
addPath
(
param0
:
Path
,
param1
:
Matrix
)
:
void
Parameters
param0
:
Path
param1
:
Matrix
Returns
void
addPath
(
param0
:
Path
,
param1
:
number
,
param2
:
number
)
:
void
Parameters
param0
:
Path
param1
:
number
param2
:
number
Returns
void
addPath
(
param0
:
Path
)
:
void
Parameters
param0
:
Path
Returns
void
add
Rect
addRect
(
param0
:
number
,
param1
:
number
,
param2
:
number
,
param3
:
number
,
param4
:
Direction
,
)
:
void
Parameters
param0
:
number
param1
:
number
param2
:
number
param3
:
number
param4
:
Direction
Returns
void
addRect
(
param0
:
RectF
,
param1
:
Direction
)
:
void
Parameters
param0
:
RectF
param1
:
Direction
Returns
void
add
Round
Rect
addRoundRect
(
left
:
number
,
top
:
number
,
right
:
number
,
bottom
:
number
,
radx
:
number
,
rady
:
number
,
direction
:
Direction
,
)
:
void
Parameters
left
:
number
top
:
number
right
:
number
bottom
:
number
radx
:
number
rady
:
number
direction
:
Direction
Returns
void
addRoundRect
(
left
:
number
,
top
:
number
,
right
:
number
,
bottom
:
number
,
radii
:
number
[]
,
direction
:
Direction
,
)
:
void
Parameters
left
:
number
top
:
number
right
:
number
bottom
:
number
radii
:
number
[]
direction
:
Direction
Returns
void
addRoundRect
(
rect
:
RectF
,
radx
:
number
,
rady
:
number
,
direction
:
Direction
,
)
:
void
Parameters
rect
:
RectF
radx
:
number
rady
:
number
direction
:
Direction
Returns
void
addRoundRect
(
rect
:
RectF
,
radii
:
number
[]
,
param2
:
Direction
)
:
void
Parameters
rect
:
RectF
radii
:
number
[]
param2
:
Direction
Returns
void
arc
To
arcTo
(
param0
:
RectF
,
param1
:
number
,
param2
:
number
,
param3
:
boolean
)
:
void
Parameters
param0
:
RectF
param1
:
number
param2
:
number
param3
:
boolean
Returns
void
arcTo
(
param0
:
RectF
,
param1
:
number
,
param2
:
number
)
:
void
Parameters
param0
:
RectF
param1
:
number
param2
:
number
Returns
void
close
close
()
:
void
Returns
void
compute
Bounds
computeBounds
(
rect
:
RectF
,
exact
:
boolean
)
:
any
Parameters
rect
:
RectF
exact
:
boolean
Returns
any
cubic
To
cubicTo
(
param0
:
number
,
param1
:
number
,
param2
:
number
,
param3
:
number
,
param4
:
number
,
param5
:
number
,
)
:
void
Parameters
param0
:
number
param1
:
number
param2
:
number
param3
:
number
param4
:
number
param5
:
number
Returns
void
get
Fill
Type
getFillType
()
:
FillType
Returns
FillType
get
Native
getNative
()
:
any
Returns
any
inc
Reserve
incReserve
(
param0
:
number
)
:
void
Parameters
param0
:
number
Returns
void
is
Empty
isEmpty
()
:
boolean
Returns
boolean
is
Inverse
Fill
Type
isInverseFillType
()
:
boolean
Returns
boolean
is
Rect
isRect
(
param0
:
Rect
)
:
boolean
Parameters
param0
:
Rect
Returns
boolean
line
To
lineTo
(
param0
:
number
,
param1
:
number
)
:
void
Parameters
param0
:
number
param1
:
number
Returns
void
move
To
moveTo
(
param0
:
number
,
param1
:
number
)
:
void
Parameters
param0
:
number
param1
:
number
Returns
void
offset
offset
(
param0
:
number
,
param1
:
number
)
:
void
Parameters
param0
:
number
param1
:
number
Returns
void
offset
(
param0
:
number
,
param1
:
number
,
param2
:
Path
)
:
void
Parameters
param0
:
number
param1
:
number
param2
:
Path
Returns
void
quad
To
quadTo
(
param0
:
number
,
param1
:
number
,
param2
:
number
,
param3
:
number
)
:
void
Parameters
param0
:
number
param1
:
number
param2
:
number
param3
:
number
Returns
void
r
Cubic
To
rCubicTo
(
param0
:
number
,
param1
:
number
,
param2
:
number
,
param3
:
number
,
param4
:
number
,
param5
:
number
,
)
:
void
Parameters
param0
:
number
param1
:
number
param2
:
number
param3
:
number
param4
:
number
param5
:
number
Returns
void
reset
reset
()
:
void
Returns
void
rewind
rewind
()
:
void
Returns
void
r
Line
To
rLineTo
(
param0
:
number
,
param1
:
number
)
:
void
Parameters
param0
:
number
param1
:
number
Returns
void
r
Move
To
rMoveTo
(
param0
:
number
,
param1
:
number
)
:
void
Parameters
param0
:
number
param1
:
number
Returns
void
r
Quad
To
rQuadTo
(
param0
:
number
,
param1
:
number
,
param2
:
number
,
param3
:
number
)
:
void
Parameters
param0
:
number
param1
:
number
param2
:
number
param3
:
number
Returns
void
set
set
(
param0
:
Path
)
:
void
Parameters
param0
:
Path
Returns
void
set
Cubic
Lines
setCubicLines
(
points
:
number
[]
,
offset
?:
number
,
length
?:
number
,
close
?:
boolean
,
)
:
any
Parameters
points
:
number
[]
Optional
offset
:
number
Optional
length
:
number
Optional
close
:
boolean
Returns
any
set
Fill
Type
setFillType
(
param0
:
FillType
)
:
void
Parameters
param0
:
FillType
Returns
void
set
Last
Point
setLastPoint
(
param0
:
number
,
param1
:
number
)
:
void
Parameters
param0
:
number
param1
:
number
Returns
void
set
Lines
setLines
(
points
:
number
[]
,
offset
?:
number
,
length
?:
number
,
close
?:
boolean
,
)
:
any
Parameters
points
:
number
[]
Optional
offset
:
number
Optional
length
:
number
Optional
close
:
boolean
Returns
any
set
Native
setNative
(
object
:
any
)
:
any
Parameters
object
:
any
Returns
any
toggle
Inverse
Fill
Type
toggleInverseFillType
()
:
void
Returns
void
transform
transform
(
param0
:
Matrix
,
param1
:
Path
)
:
void
Parameters
param0
:
Matrix
param1
:
Path
Returns
void
transform
(
param0
:
Matrix
)
:
void
Parameters
param0
:
Matrix
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
add
Arc
add
Circle
add
Cubic
Lines
add
Lines
add
Oval
add
Path
add
Rect
add
Round
Rect
arc
To
close
compute
Bounds
cubic
To
get
Fill
Type
get
Native
inc
Reserve
is
Empty
is
Inverse
Fill
Type
is
Rect
line
To
move
To
offset
quad
To
r
Cubic
To
reset
rewind
r
Line
To
r
Move
To
r
Quad
To
set
set
Cubic
Lines
set
Fill
Type
set
Last
Point
set
Lines
set
Native
toggle
Inverse
Fill
Type
transform
Nativescript Doc
Documentation
Loading...