Class: Mouse
Constructors​
constructor​
• new Mouse(screen
)
Parameters​
Name | Type |
---|---|
screen | Screen |
Defined in​
Properties​
working​
• Private
working: boolean
= false
Defined in​
events​
• Private
events: IEvent
[] = []
Defined in​
eventElements​
• Private
eventElements: Element
[] = []
Defined in​
screen​
• Private
Readonly
screen: Screen
Defined in​
Methods​
isWorking​
â–¸ isWorking(): boolean
Returns​
boolean
Defined in​
start​
â–¸ start(): void
Returns​
void
Defined in​
stop​
â–¸ stop(): void
Returns​
void
Defined in​
hasEvents​
â–¸ hasEvents(): boolean
Returns​
boolean
Defined in​
runEvents​
â–¸ runEvents(): void
Returns​
void
Defined in​
checkPath​
â–¸ checkPath(element
, ctx
): void
Parameters​
Name | Type |
---|---|
element | Element |
ctx | RenderingContext2D |
Returns​
void
Defined in​
checkBoundingBox​
â–¸ checkBoundingBox(element
, boundingBox
): void
Parameters​
Name | Type |
---|---|
element | Element |
boundingBox | BoundingBox |
Returns​
void
Defined in​
mapXY​
â–¸ Private
mapXY(x
, y
): Point
Parameters​
Name | Type |
---|---|
x | number |
y | number |
Returns​
Defined in​
onClick​
â–¸ Private
onClick(event
): void
Parameters​
Name | Type |
---|---|
event | MouseEvent |
Returns​
void
Defined in​
onMouseMove​
â–¸ Private
onMouseMove(event
): void
Parameters​
Name | Type |
---|---|
event | MouseEvent |
Returns​
void