Skip to content

ContextLossFailureDialog

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/scenery-phet/blob/main/js/ContextLossFailureDialog.ts for the most up-to-date information.

Overview

Failure message displayed when a WebGL context loss is experienced and we can't recover. Offers a button to reload the simulation.

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class ContextLossFailureDialog

import { ContextLossFailureDialog } from 'scenerystack/sim';

Constructor

new ContextLossFailureDialog( providedOptions? : ContextLossFailureDialogOptions )

Instance Methods

dispose()

hide()

Invokes the reload callback when the dialog is hidden. See https://github.com/phetsims/scenery-phet/issues/373.

hideWithoutReload()

Hides the dialog without invoking the reload callback.

Type ContextLossFailureDialogOptions

import type { ContextLossFailureDialogOptions } from 'scenerystack/sim';

Source Code

See the source for ContextLossFailureDialog.ts in the scenery-phet repository.