diff --git a/js/tappi-main.ts b/js/tappi-main.ts index b7962de..9fda7dd 100644 --- a/js/tappi-main.ts +++ b/js/tappi-main.ts @@ -6,19 +6,16 @@ * @author Jesse Greenberg */ -// @ts-nocheck - -import Sim from '../../joist/js/Sim.js'; +import Sim, { SimOptions } from '../../joist/js/Sim.js'; import simLauncher from '../../joist/js/simLauncher.js'; import Tandem from '../../tandem/js/Tandem.js'; import BasicsScreen from './demo/basics/BasicsScreen.js'; import PatternsScreen from './demo/patterns/PatternsScreen.js'; import tappiStrings from './tappiStrings.js'; -// import vibrationManager from './vibrationManager.js'; const tappiTitleString = tappiStrings.tappi.title; -const simOptions = { +const simOptions: SimOptions = { credits: { //TODO fill in credits, all of these fields are optional, see joist.CreditsNode leadDesign: '', @@ -29,13 +26,6 @@ const simOptions = { soundDesign: '', thanks: '' } - - // NOTE: Sim.js no longer takes this option, but this was the way we passed it to the sim to test HTML5 vibration. - // It was an option for Sim.js so that we didn't create dependencies on tappi because it is experimental. But - // TypeScript requires references for typing so we decided to just remove the option for now since tappi is - // abandoned for the most part. If coming back to this, look into initializing and stepping the vibrationManager. - // See https://github.com/phetsims/joist/issues/794 - // vibrationManager: vibrationManager }; // launch the sim - beware that scenery Image nodes created outside of simLauncher.launch() will have zero bounds