Skip to content

Commit

Permalink
add Common code components to binder through InstanceRegistry, phetsi…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph authored and marlitas committed Jun 28, 2022
1 parent 12c5d9f commit de5d5a1
Showing 1 changed file with 29 additions and 25 deletions.
54 changes: 29 additions & 25 deletions js/NumberPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,32 @@ define( function( require ) {
'use strict';

// modules
var AccessibleNumberSpinner = require( 'SUN/accessibility/AccessibleNumberSpinner' );
var BooleanProperty = require( 'AXON/BooleanProperty' );
var ButtonListener = require( 'SCENERY/input/ButtonListener' );
var Color = require( 'SCENERY/util/Color' );
var DerivedProperty = require( 'AXON/DerivedProperty' );
var Dimension2 = require( 'DOT/Dimension2' );
var FireOnHoldInputListener = require( 'SCENERY_PHET/buttons/FireOnHoldInputListener' );
var FocusHighlightPath = require( 'SCENERY/accessibility/FocusHighlightPath' );
var inherit = require( 'PHET_CORE/inherit' );
var LinearGradient = require( 'SCENERY/util/LinearGradient' );
var MathSymbols = require( 'SCENERY_PHET/MathSymbols' );
var Node = require( 'SCENERY/nodes/Node' );
var PaintColorProperty = require( 'SCENERY/util/PaintColorProperty' );
var Path = require( 'SCENERY/nodes/Path' );
var PhetFont = require( 'SCENERY_PHET/PhetFont' );
var PhetioObject = require( 'TANDEM/PhetioObject' );
var Property = require( 'AXON/Property' );
var Rectangle = require( 'SCENERY/nodes/Rectangle' );
var sceneryPhet = require( 'SCENERY_PHET/sceneryPhet' );
var Shape = require( 'KITE/Shape' );
var StringProperty = require( 'AXON/StringProperty' );
var SunConstants = require( 'SUN/SunConstants' );
var Tandem = require( 'TANDEM/Tandem' );
var Text = require( 'SCENERY/nodes/Text' );
var Util = require( 'DOT/Util' );
const AccessibleNumberSpinner = require( 'SUN/accessibility/AccessibleNumberSpinner' );
const BooleanProperty = require( 'AXON/BooleanProperty' );
const ButtonListener = require( 'SCENERY/input/ButtonListener' );
const Color = require( 'SCENERY/util/Color' );
const DerivedProperty = require( 'AXON/DerivedProperty' );
const Dimension2 = require( 'DOT/Dimension2' );
const FireOnHoldInputListener = require( 'SCENERY_PHET/buttons/FireOnHoldInputListener' );
const FocusHighlightPath = require( 'SCENERY/accessibility/FocusHighlightPath' );
const inherit = require( 'PHET_CORE/inherit' );
const InstanceRegistry = require( 'PHET_CORE/documentation/InstanceRegistry' );
const LinearGradient = require( 'SCENERY/util/LinearGradient' );
const MathSymbols = require( 'SCENERY_PHET/MathSymbols' );
const Node = require( 'SCENERY/nodes/Node' );
const PaintColorProperty = require( 'SCENERY/util/PaintColorProperty' );
const Path = require( 'SCENERY/nodes/Path' );
const PhetFont = require( 'SCENERY_PHET/PhetFont' );
const PhetioObject = require( 'TANDEM/PhetioObject' );
const Property = require( 'AXON/Property' );
const Rectangle = require( 'SCENERY/nodes/Rectangle' );
const sceneryPhet = require( 'SCENERY_PHET/sceneryPhet' );
const Shape = require( 'KITE/Shape' );
const StringProperty = require( 'AXON/StringProperty' );
const SunConstants = require( 'SUN/SunConstants' );
const Tandem = require( 'TANDEM/Tandem' );
const Text = require( 'SCENERY/nodes/Text' );
const Util = require( 'DOT/Util' );

/**
* @param {Property.<number>} valueProperty
Expand Down Expand Up @@ -440,6 +441,9 @@ define( function( require ) {
// a11y mixin
self.disposeAccessibleNumberSpinner();
};

// support for binder documentation, stripped out in builds and only runs when ?binder is specified
assert && phet.chipper.queryParameters.binder && InstanceRegistry.registerDataURL( 'scenery-phet', 'NumberPicker', this );
}

sceneryPhet.register( 'NumberPicker', NumberPicker );
Expand Down

0 comments on commit de5d5a1

Please sign in to comment.