The canvas click event

On Click Event

key option type example notes
enable boolean true / false
mode string
array
"attract"
"bubble"
"pause"
"push"
"remove"
"repulse"
"trail"
"emitter"
"absorber"
"emitter" and "absorber" are not used by slim bundle

Hierarchy

  • IClickEvent

Implemented by

Properties

Properties

enable: boolean

This property enables or disables the click event

mode: SingleOrMultiple<string>

This property contains a ClickMode value or an array of those values. If this value is an array, every mode will be used on click.