Skip to content

Commit

Permalink
Use PlusMinusZoomButtonGroup, see phetsims/circuit-construction-kit-c…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Dec 14, 2020
1 parent aa77b92 commit a7dbb72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/discrete/view/DiscreteChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import AssertUtils from '../../../../phetcommon/js/AssertUtils.js';
import Fraction from '../../../../phetcommon/js/model/Fraction.js';
import StringUtils from '../../../../phetcommon/js/util/StringUtils.js';
import MathSymbols from '../../../../scenery-phet/js/MathSymbols.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 RichText from '../../../../scenery/js/nodes/RichText.js';
import Text from '../../../../scenery/js/nodes/Text.js';
Expand Down Expand Up @@ -119,7 +119,7 @@ class DiscreteChart extends Node {
} );

// Zoom buttons for the x-axis range
const xZoomButtonGroup = new ZoomButtonGroup( xZoomLevelProperty, {
const xZoomButtonGroup = new PlusMinusZoomButtonGroup( xZoomLevelProperty, {
orientation: 'horizontal',
scale: FMWConstants.ZOOM_BUTTON_GROUP_SCALE,
left: chartRectangle.right + 6,
Expand Down
4 changes: 2 additions & 2 deletions js/discrete/view/SumChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import ChartCanvasNode from '../../../../bamboo/js/ChartCanvasNode.js';
import Range from '../../../../dot/js/Range.js';
import merge from '../../../../phet-core/js/merge.js';
import AssertUtils from '../../../../phetcommon/js/AssertUtils.js';
import ZoomButtonGroup from '../../../../scenery-phet/js/ZoomButtonGroup.js';
import PlusMinusZoomButtonGroup from '../../../../scenery-phet/js/PlusMinusZoomButtonGroup.js';
import HBox from '../../../../scenery/js/nodes/HBox.js';
import Tandem from '../../../../tandem/js/Tandem.js';
import FMWConstants from '../../common/FMWConstants.js';
Expand Down Expand Up @@ -115,7 +115,7 @@ class SumChart extends DiscreteChart {
} );

// Zoom buttons for the y-axis range
const yZoomButtonGroup = new ZoomButtonGroup( yZoomLevelProperty, {
const yZoomButtonGroup = new PlusMinusZoomButtonGroup( yZoomLevelProperty, {
orientation: 'vertical',
scale: FMWConstants.ZOOM_BUTTON_GROUP_SCALE,
left: this.chartRectangle.right + 6,
Expand Down

0 comments on commit a7dbb72

Please sign in to comment.