phetsims / tangible

Library for handling tangible input for PhET Simulations.
MIT License
0 stars 2 forks source link

Hide beholder through api #5

Closed zepumph closed 3 years ago

zepumph commented 3 years ago

Discussed during my meeting with @Petroochio over in https://github.com/phetsims/tangible/issues/4#issuecomment-780805193.

For now I will just add this line to my script, which successfully hides things from the sim. Unfortunately it seems to need to be called after Update, not just after init. So I will do this for now. Likely there is an update coming soon, so this issue is to remove this workaround once the library supports fully hiding things.

    stepTimer.addListener( () => {

        // Mechamarkers stuff
        this.Beholder.update( Date.now() );

        // TODO: this is only temporary until we can hide this through the library, 
        document.getElementById( 'beholder-overlay' ).style.display = 'none';
       } );
zepumph commented 3 years ago

Oops, I see that I can just use present as a param. Closing