Search
Preparing search index...
The search index is not available
@motor/core
Options
All
Public
Public/Protected
All
Inherited
Menu
@motor/core
default
MotorCore
ScreenCanvas
Class ScreenCanvas
Hierarchy
MotorObj
ScreenCanvas
Index
Constructors
constructor
Methods
destroy
draw
Arrow
draw
Bulls
Eye
draw
Ellipse
draw
Image
draw
Line
draw
Point
draw
Polygon
draw
Rect
export
Image
get
Canvas
get
Context
is
Destroyed
reset
Graphics
roll
Back
Image
Data
set
Text
store
Image
Data
update
Canvas
Constructors
constructor
new
Screen
Canvas
(
container
:
Element
)
:
ScreenCanvas
Parameters
container:
Element
Returns
ScreenCanvas
Methods
destroy
destroy
(
)
:
undefined
Returns
undefined
draw
Arrow
draw
Arrow
(
startWindowPt
:
Vector2
, endPt
:
Vector2
, lineWidth
:
number
, color
:
Color
)
:
void
Parameters
startWindowPt:
Vector2
endPt:
Vector2
lineWidth:
number
color:
Color
Returns
void
draw
Bulls
Eye
draw
Bulls
Eye
(
point
:
Vector2
, radius
:
number
, strokeStyle
:
string
)
:
void
Parameters
point:
Vector2
radius:
number
strokeStyle:
string
Returns
void
draw
Ellipse
draw
Ellipse
(
startWindowPt
:
Vector2
, movement
:
Vector2
, lineWidth
:
number
, color
:
Color
)
:
void
Parameters
startWindowPt:
Vector2
movement:
Vector2
lineWidth:
number
color:
Color
Returns
void
draw
Image
draw
Image
(
canvas
:
HTMLCanvasElement
)
:
void
Parameters
canvas:
HTMLCanvasElement
Returns
void
draw
Line
draw
Line
(
proPoint
:
Vector2
, nextPoint
:
Vector2
, strokeStyle
:
string
, lineDash
:
number
[]
, lineWidth
:
number
)
:
void
Parameters
proPoint:
Vector2
nextPoint:
Vector2
strokeStyle:
string
lineDash:
number
[]
lineWidth:
number
Returns
void
draw
Point
draw
Point
(
point
:
Vector2
, radius
:
number
, fillStyle
:
string
)
:
void
Parameters
point:
Vector2
radius:
number
fillStyle:
string
Returns
void
draw
Polygon
draw
Polygon
(
ptAry
:
Vector2
[]
, lineWidth
:
number
, color
:
string
, onlyStroke
?:
boolean
, strokeColor
?:
string
)
:
void
Parameters
ptAry:
Vector2
[]
lineWidth:
number
color:
string
Optional
onlyStroke:
boolean
Optional
strokeColor:
string
Returns
void
draw
Rect
draw
Rect
(
startWindowPt
:
Vector2
, movement
:
Vector2
, lineWidth
:
number
, color
:
Color
)
:
void
Parameters
startWindowPt:
Vector2
movement:
Vector2
lineWidth:
number
color:
Color
Returns
void
export
Image
export
Image
(
type
?:
string
)
:
string
Parameters
Optional
type:
string
Returns
string
get
Canvas
get
Canvas
(
)
:
undefined
|
HTMLCanvasElement
Returns
undefined
|
HTMLCanvasElement
get
Context
get
Context
(
)
:
null
|
CanvasRenderingContext2D
Returns
null
|
CanvasRenderingContext2D
is
Destroyed
is
Destroyed
(
)
:
boolean
Returns
boolean
reset
Graphics
reset
Graphics
(
)
:
void
Returns
void
roll
Back
Image
Data
roll
Back
Image
Data
(
)
:
void
Returns
void
set
Text
set
Text
(
position
:
Vector2
, text
:
string
, color
:
Color
, fontStyle
:
string
)
:
void
Parameters
position:
Vector2
text:
string
color:
Color
fontStyle:
string
Returns
void
store
Image
Data
store
Image
Data
(
)
:
void
Returns
void
update
Canvas
update
Canvas
(
)
:
void
Returns
void
Exports
default
default.
Motor
Core
Screen
Canvas
constructor
destroy
draw
Arrow
draw
Bulls
Eye
draw
Ellipse
draw
Image
draw
Line
draw
Point
draw
Polygon
draw
Rect
export
Image
get
Canvas
get
Context
is
Destroyed
reset
Graphics
roll
Back
Image
Data
set
Text
store
Image
Data
update
Canvas