Skip to content

Commit

Permalink
master => main, see phetsims/special-ops#192
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Aug 14, 2023
1 parent f34c994 commit 804becc
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ minified version [scenery.min.js](http://phetsims.github.io/scenery/dist/scenery

We have a [list of examples](https://phetsims.github.io/scenery/examples/) to get started from

The [PhET Development Overview](https://github.com/phetsims/phet-info/blob/master/doc/phet-development-overview.md) is
The [PhET Development Overview](https://github.com/phetsims/phet-info/blob/main/doc/phet-development-overview.md) is
the most complete guide to PhET Simulation Development. This guide includes how
to obtain simulation code and its dependencies, notes about architecture & design, how to test and build the sims, as
well as other important information.
Expand Down Expand Up @@ -65,4 +65,4 @@ Ensure you're in the kite directory and run `grunt --lint=false --report-media=f
MIT license, see [LICENSE](LICENSE)

### Contributing
If you would like to contribute to this repo, please read our [contributing guidelines](https://github.com/phetsims/community/blob/master/CONTRIBUTING.md).
If you would like to contribute to this repo, please read our [contributing guidelines](https://github.com/phetsims/community/blob/main/CONTRIBUTING.md).
8 changes: 4 additions & 4 deletions dist/scenery.debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -10484,7 +10484,7 @@ js_phetCore.register('merge', merge);
* For up-to-date examples on how to use this file, see WILDER/WilderOptionsPatterns.ts
*
* This pattern is still being solidified. Although the long term location of PhET's options pattern documentation
* can be found at https://github.com/phetsims/phet-info/blob/master/doc/phet-software-design-patterns.md#options-and-config,
* can be found at https://github.com/phetsims/phet-info/blob/main/doc/phet-software-design-patterns.md#options-and-config,
* that document is currently out of date. Please see https://github.com/phetsims/chipper/issues/1128 for current
* progress on this pattern.
*
Expand Down Expand Up @@ -11881,7 +11881,7 @@ js_phetCore.register('arrayRemove', arrayRemove);

/**
* EnumerationValue is the base class for enumeration value instances.
* See https://github.com/phetsims/phet-info/blob/master/doc/phet-software-design-patterns.md#enumeration
* See https://github.com/phetsims/phet-info/blob/main/doc/phet-software-design-patterns.md#enumeration
*
* PhET's Enumeration pattern is:
*
Expand Down Expand Up @@ -11982,7 +11982,7 @@ js_phetCore.register('inheritance', inheritance);
* This implementation auto-detects the enumeration values by Object.keys and instanceof. Every property that has a
* type matching the enumeration type is marked as a value. See sample usage in Orientation.ts.
*
* For general pattern see https://github.com/phetsims/phet-info/blob/master/doc/phet-software-design-patterns.md#enumeration
* For general pattern see https://github.com/phetsims/phet-info/blob/main/doc/phet-software-design-patterns.md#enumeration
*
* This creates 2-way maps (key-to-value and value-to-key) for ease of use and to enable phet-io serialization.
*
Expand Down Expand Up @@ -56311,7 +56311,7 @@ util_SceneryStyle.addRule(`.${ROOT_CLASS_NAME}{` +
// when the browser is left inactive for a few minutes. This z-index keeps the PDOM from interfering, while still
// allowing us to use `fixed`. If the PDOM elements are ever styled with position: 'absolute' (would require
// PDOM elements to be positioned relative to focusable ancestors rather than viewport), this could be removed.
// See https://github.com/phetsims/joist/blob/master/js/Heartbeat.js as well for the workaround.
// See https://github.com/phetsims/joist/blob/main/js/Heartbeat.js as well for the workaround.
'z-index: 1;' +
// JUST FOR DEBUGGING! So you can see the PDOM on top of other graphical content
// 'z-index: 5000;' +
Expand Down
12 changes: 6 additions & 6 deletions doc/accessibility/accessibility.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ <h2 id="pdom-api">Scenery's Accessibility API (powered by the PDOM)</h2>
The following explains how to use the accessibility functionality of Scenery. For more information and up-to-date
API
documentation, see <a
href="https://github.com/phetsims/scenery/blob/master/js/accessibility/pdom/ParallelDOM.js#L4">
href="https://github.com/phetsims/scenery/blob/main/js/accessibility/pdom/ParallelDOM.js#L4">
the source code</a>. On the side bar, options are categorized by
where they are introduced and explained. In this file there is little "traditional" documentation, rather
example-based explanation. The source code is the best place for specifics, documentation and implementation.
Expand Down Expand Up @@ -533,7 +533,7 @@ <h4 id="input">Input types</h4>
interactive
functionality, use <code>Node.addInputListener()</code>. The function takes in type
<code>Object.&lt;string, function&gt;</code> where the key is the name of the DOM Event you want to listen to. See
<a href="https://github.com/phetsims/scenery/blob/master/js/input/Input.js#L4">Input.js documentation</a> for an
<a href="https://github.com/phetsims/scenery/blob/main/js/input/Input.js#L4">Input.js documentation</a> for an
up-to-date list of supported scenery events, and the subset that come from the PDOM.
This event is more often than not different than the listener needed for a mouse. Don't forget to remove the
listener
Expand Down Expand Up @@ -585,7 +585,7 @@ <h4 id="interactive-content">Interactive Content</h4>
<p>
Once the PDOM structure is as desired, and you know what events are expected from interacting with that node,
use <code>Node.addInputListener()</code> to add event listeners to the PDOM events. See <a
href="https://github.com/phetsims/scenery/blob/master/js/input/Input.js">Input.js</a>
href="https://github.com/phetsims/scenery/blob/main/js/input/Input.js">Input.js</a>
and its documentation for up-to-date notes on the events that are supported from PDOM elements. Among these are
keydown, keyup, click, input, change, focus, and blur.
</p>
Expand All @@ -609,7 +609,7 @@ <h3 id="manipulating-pdom">Manipulating the PDOM</h3>
set the
<code>Node.tagName = null</code>, this will clear all accessible content of the node.</p>
<p>
Please see <a href="https://github.com/phetsims/scenery/blob/master/js/accessibility/pdom/ParallelDOM.js">the
Please see <a href="https://github.com/phetsims/scenery/blob/main/js/accessibility/pdom/ParallelDOM.js">the
ParallelDOM trait</a> for a complete and up-to-date list of getters/setters.
</p>

Expand Down Expand Up @@ -675,7 +675,7 @@ <h4 id="interactive-alerts">Interactive Alerts</h4>
All interactive alerts are powered with the <a
href="https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions">aria-live attribute</a>.
PhET manages alerts in a custom queue, see <a
href="https://github.com/phetsims/utterance-queue/blob/master/js/utteranceQueue.js">utteranceQueue.js</a>
href="https://github.com/phetsims/utterance-queue/blob/main/js/utteranceQueue.js">utteranceQueue.js</a>
Each accessible display is outfitted with an UtteranceQueue that can be passed alerts to it. All
PhET alerts should go through utteranceQueue, <code>aria-live</code> should not be added to elements in the
PDOM.
Expand Down Expand Up @@ -709,7 +709,7 @@ <h4>PhET Published Resources</h4>
</ul>
<h4>Source Code</h4>
<p>For up-to-date documentation and the latest API for accessibility in Scenery, please visit <a
href="https://github.com/phetsims/scenery/blob/master/js/accessibility/pdom/ParallelDOM.js">the source code</a>.
href="https://github.com/phetsims/scenery/blob/main/js/accessibility/pdom/ParallelDOM.js">the source code</a>.

<p>Good luck and happy coding!</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ <h3 id="FlowBox-align" class="index">align</h3>
For horizontal boxes, the values are: <code>'left', 'right', 'center', 'origin'</code>. For vertical boxes, the
values are:
<code>'top', 'bottom', 'center', 'origin'</code>. See
<a href="https://github.com/phetsims/scenery/blob/master/js/layout/LayoutAlign.ts">LayoutAlign</a> for more
<a href="https://github.com/phetsims/scenery/blob/main/js/layout/LayoutAlign.ts">LayoutAlign</a> for more
details
</p>

Expand Down
2 changes: 1 addition & 1 deletion examples/accessibility-slider.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ <h2>Scenery Accessibility Examples: Slider</h2>
<script type="text/javascript">
/**
* Note that this example solely uses Scenery, but PhET Interactive Simulation has created `AccessibleSlider.js` in a
* component library called "sun" (https://github.com/phetsims/sun/blob/master/js/accessibility/AccessibleSlider.js) as
* component library called "sun" (https://github.com/phetsims/sun/blob/main/js/accessibility/AccessibleSlider.js) as
* a mixin that solves much of the accessible-description related elements of this examples. AccessibleSlider is also
* used by sun/Slider.js, which is the visual, slider written with Scenery that PhET uses.
*
Expand Down
2 changes: 1 addition & 1 deletion js/accessibility/pdom/PDOMSiblingStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ SceneryStyle.addRule( `.${ROOT_CLASS_NAME
// when the browser is left inactive for a few minutes. This z-index keeps the PDOM from interfering, while still
// allowing us to use `fixed`. If the PDOM elements are ever styled with position: 'absolute' (would require
// PDOM elements to be positioned relative to focusable ancestors rather than viewport), this could be removed.
// See https://github.com/phetsims/joist/blob/master/js/Heartbeat.js as well for the workaround.
// See https://github.com/phetsims/joist/blob/main/js/Heartbeat.js as well for the workaround.
'z-index: 1;' +

// JUST FOR DEBUGGING! So you can see the PDOM on top of other graphical content
Expand Down

0 comments on commit 804becc

Please sign in to comment.