Skip to content

Commit

Permalink
rename phet.joist.sim.display -> phet.joist.display, phetsims/joist#684
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jan 22, 2021
1 parent dbe6190 commit 2345da8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/take-snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function sendFuzz( averageEventQuantity ) {
}

function getScreenshot( callback ) {
iframe.contentWindow.phet.joist.sim.display.foreignObjectRasterization( function( url ) {
iframe.contentWindow.phet.joist.display.foreignObjectRasterization( function( url ) {
callback( url );
} );
}
Expand Down Expand Up @@ -226,7 +226,7 @@ window.addEventListener( 'message', function( evt ) {
random = new iframe.contentWindow.phet.dot.Random( options );

iframe.contentWindow.phet.joist.launchSimulation();
iframe.contentWindow.phet.joist.sim.display.interactive = false;
iframe.contentWindow.phet.joist.display.interactive = false;
}
else if ( data.type === 'load' ) {
console.log( 'loaded' );
Expand Down
2 changes: 1 addition & 1 deletion visual-diff/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ body.addEventListener( 'mouseup', e => {

// Capture a screenshot from the given iframe
function getScreenshot( iframe, callback ) {
iframe.contentWindow.phet.joist.sim.display.canvasSnapshot( callback );
iframe.contentWindow.phet.joist.display.canvasSnapshot( callback );
}

/**
Expand Down

0 comments on commit 2345da8

Please sign in to comment.