From c80e29cff2e5c5acfdf5cdd2043b5000b21b9e75 Mon Sep 17 00:00:00 2001 From: zepumph Date: Fri, 22 Jan 2021 09:27:58 -0900 Subject: [PATCH] rename phet.joist.sim.display -> phet.joist.display, https://github.com/phetsims/joist/issues/684 --- gravity-force-lab-basics_a11y_view.html | 2 +- js/view/GFLBScreenView.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gravity-force-lab-basics_a11y_view.html b/gravity-force-lab-basics_a11y_view.html index f94c843..4a79c79 100644 --- a/gravity-force-lab-basics_a11y_view.html +++ b/gravity-force-lab-basics_a11y_view.html @@ -492,7 +492,7 @@

PDOM & Descriptions for Gravity Force Lab: Basics

const simFrame = document.getElementById( 'iframe' ); const innerWindow = simFrame.contentWindow; - const PDOMRoot = innerWindow.phet.joist.sim.display.accessibleDOMElement; // copy of the parallel DOM + const PDOMRoot = innerWindow.phet.joist.display.accessibleDOMElement; // copy of the parallel DOM // get the alert dom elements from the iframe's inner document const ariaLiveElementsContainer = innerWindow.phet.joist.sim.utteranceQueue.getAriaLiveContainer(); diff --git a/js/view/GFLBScreenView.js b/js/view/GFLBScreenView.js index 84c17f4..df1261d 100644 --- a/js/view/GFLBScreenView.js +++ b/js/view/GFLBScreenView.js @@ -152,7 +152,7 @@ class GFLBScreenView extends ScreenView { // for self-voicing, we want to speek when the pointer is over elements, not down on them hitOnOver: true } ); - phet.joist.sim.display.addInputListener( this.shapeHitDetector ); + phet.joist.display.addInputListener( this.shapeHitDetector ); // Create the model-view transform. The primary units used in the model are meters, so significant zoom is used. // The multipliers for the 2nd parameter can be used to adjust where the point (0, 0) in the model, which is @@ -421,7 +421,7 @@ class GFLBScreenView extends ScreenView { speakerHighlighter.initialize(); // add the swipe listener - const swipeListener = new SwipeListener( phet.joist.sim.display._input ); + const swipeListener = new SwipeListener( phet.joist.display._input ); levelSpeakerModel.gestureControlProperty.link( gestureControl => { swipeListener.enabled = gestureControl; } );