Skip to content

EventType

Overview

This characterizes events that may be emitted from PhetioObjects to the PhET-iO data stream.

@author Michael Kauzmann (PhET Interactive Simulations)

Class EventType

import { EventType } from 'scenerystack/tandem';

Static Properties

USER : EventType

(readonly)

The user has taken an action, such as pressing a button or moving a mouse

[ TandemConstants.EVENT_TYPE_MODEL ] : EventType

(readonly)

An event was produced by the simulation model. This could be in response to a user event, or something that happens during the simulation step. Note the separation is not model vs view, but user-driven vs automatic.

WRAPPER : EventType

(readonly)

An event was triggered by the PhET-iO wrapper, via PhetioEngineIO.triggerEvent

OPT_OUT : EventType

(readonly)

These messages are suppressed, use this to opt a PhetioObject out of the data stream feature.

enumeration : Enumeration

(readonly)

phetioType

(readonly)

Source Code

See the source for EventType.ts in the tandem repository.