Class: Clickable
Defined in: interaction/Clickable.ts:17
Adds click detection to a mobject.
Constructors
Constructor
new Clickable(
mobject,scene,options):Clickable
Defined in: interaction/Clickable.ts:43
Create a new Clickable behavior.
Parameters
mobject
The mobject to make clickable
scene
The scene containing the mobject
options
Clickable configuration options
Returns
Clickable
Accessors
isEnabled
Get Signature
get isEnabled():
boolean
Defined in: interaction/Clickable.ts:60
Get whether clicking is enabled.
Returns
boolean
mobject
Get Signature
get mobject():
Mobject
Defined in: interaction/Clickable.ts:67
Get the mobject this clickable is attached to.
Returns
Methods
disable()
disable():
void
Defined in: interaction/Clickable.ts:193
Disable clicking.
Returns
void
dispose()
dispose():
void
Defined in: interaction/Clickable.ts:200
Clean up event listeners.
Returns
void
enable()
enable():
void
Defined in: interaction/Clickable.ts:186
Enable clicking.
Returns
void