Skip to content

PointerOverlay

Overview

The PointerOverlay shows pointer locations in the scene. This is useful when recording a session for interviews or when a teacher is broadcasting a tablet session on an overhead projector. See https://github.com/phetsims/scenery/issues/111

Each pointer is rendered in a different <svg> so that CSS3 transforms can be used to make performance smooth on iPad.

@author Sam Reid (PhET Interactive Simulations)

Class PointerOverlay

import { PointerOverlay } from 'scenerystack/scenery';

Constructor

new PointerOverlay( display : Display, rootNode : Node )

Instance Methods

dispose()

Releases references

update()

Instance Properties

display : Display

(protected)

rootNode : Node

(protected)

pointerSVGContainer : HTMLDivElement

(protected)

domElement : HTMLDivElement

Source Code

See the source for PointerOverlay.ts in the scenery repository.