Skip to content

Commit

Permalink
convert code in file to TS, see #12
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed May 23, 2022
1 parent cc855aa commit 7738ff8
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions js/tappi-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: '',
Expand All @@ -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
Expand Down

0 comments on commit 7738ff8

Please sign in to comment.