Skip to content

Commit

Permalink
use PlusMinusZoomButtonGroup in bamboo demos, phetsims/circuit-constr…
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Dec 14, 2020
1 parent 2d6891b commit 02ab1c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/demo/DemoChartCanvasNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Property from '../../../axon/js/Property.js';
import Range from '../../../dot/js/Range.js';
import Vector2 from '../../../dot/js/Vector2.js';
import Orientation from '../../../phet-core/js/Orientation.js';
import ZoomButtonGroup from '../../../scenery-phet/js/ZoomButtonGroup.js';
import PlusMinusZoomButtonGroup from '../../../scenery-phet/js/PlusMinusZoomButtonGroup.js';
import Node from '../../../scenery/js/nodes/Node.js';
import Text from '../../../scenery/js/nodes/Text.js';
import Color from '../../../scenery/js/util/Color.js';
Expand Down Expand Up @@ -55,7 +55,7 @@ class DemoChartCanvasNode extends Node {

const zoomLevelProperty = new NumberProperty( 1, { range: new Range( 1, 4 ) } );

const zoomButtonGroup = new ZoomButtonGroup( zoomLevelProperty, {
const zoomButtonGroup = new PlusMinusZoomButtonGroup( zoomLevelProperty, {
orientation: 'horizontal',
left: chartRectangle.right + 10,
bottom: chartRectangle.bottom
Expand Down
4 changes: 2 additions & 2 deletions js/demo/DemoLinePlot.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import NumberProperty from '../../../axon/js/NumberProperty.js';
import Range from '../../../dot/js/Range.js';
import Vector2 from '../../../dot/js/Vector2.js';
import Orientation from '../../../phet-core/js/Orientation.js';
import ZoomButtonGroup from '../../../scenery-phet/js/ZoomButtonGroup.js';
import PlusMinusZoomButtonGroup from '../../../scenery-phet/js/PlusMinusZoomButtonGroup.js';
import Node from '../../../scenery/js/nodes/Node.js';
import Text from '../../../scenery/js/nodes/Text.js';
import AxisNode from '../AxisNode.js';
Expand Down Expand Up @@ -52,7 +52,7 @@ class DemoLinePlot extends Node {

const zoomLevelProperty = new NumberProperty( 1, { range: new Range( 1, 4 ) } );

const zoomButtonGroup = new ZoomButtonGroup( zoomLevelProperty, {
const zoomButtonGroup = new PlusMinusZoomButtonGroup( zoomLevelProperty, {
orientation: 'horizontal',
left: chartRectangle.right + 10,
bottom: chartRectangle.bottom
Expand Down

0 comments on commit 02ab1c0

Please sign in to comment.