Skip to content

InstanceRegistry

Overview

Tracks object allocations for reporting using binder.

@author Sam Reid (PhET Interactive Simulations) @author Michael Kauzmann (PhET Interactive Simulations)

Class InstanceRegistry

import { InstanceRegistry } from 'scenerystack/phet-core';

Static Methods

registerDataURL( repoName : string, typeName : string, instance : NodeLike )

Adds a screenshot of the given scenery Node

registerToolbox( instance : NodeLike )

Register a toolbox pattern node. There is no strict class for this, so this factored out method can be used by any constructor

registerHotkey( hotkeyData : HotkeyData )

Register a Hotkey for binder documentation.

Static Properties

componentMap : ComponentMap

Per named component, store image URIs of what their usages look like

hotkeys : SerializedHotkeyData[]

An array of all Hotkeys that have been registered.

Source Code

See the source for InstanceRegistry.ts in the phet-core repository.