From 2345da8acd5eafe51a483b47c041fb5e2fe97af7 Mon Sep 17 00:00:00 2001 From: zepumph Date: Fri, 22 Jan 2021 09:29:02 -0900 Subject: [PATCH] rename phet.joist.sim.display -> phet.joist.display, https://github.com/phetsims/joist/issues/684 --- js/take-snapshot.js | 4 ++-- visual-diff/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/take-snapshot.js b/js/take-snapshot.js index 2221f95..6a71293 100644 --- a/js/take-snapshot.js +++ b/js/take-snapshot.js @@ -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 ); } ); } @@ -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' ); diff --git a/visual-diff/index.js b/visual-diff/index.js index 2e94ddf..104f68d 100644 --- a/visual-diff/index.js +++ b/visual-diff/index.js @@ -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 ); } /**