Skip to content

Commit

Permalink
Use MagnifyingGlassZoomButtonGroup, see #620
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Dec 14, 2020
1 parent 0f28a6c commit 5e4ba01
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions js/view/CCKCChartNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import ScatterPlot from '../../../bamboo/js/ScatterPlot.js';
import SpanNode from '../../../bamboo/js/SpanNode.js';
import merge from '../../../phet-core/js/merge.js';
import Orientation from '../../../phet-core/js/Orientation.js';
import PlusMinusZoomButtonGroup from '../../../scenery-phet/js/PlusMinusZoomButtonGroup.js';
import MagnifyingGlassZoomButtonGroup from '../../../scenery-phet/js/MagnifyingGlassZoomButtonGroup.js';
import ShadedRectangle from '../../../scenery-phet/js/ShadedRectangle.js';
import WireNode from '../../../scenery-phet/js/WireNode.js';
import DragListener from '../../../scenery/js/listeners/DragListener.js';
Expand Down Expand Up @@ -173,13 +173,16 @@ class CCKCChartNode extends Node {
} )
} );

const zoomButtonGroup = new PlusMinusZoomButtonGroup( zoomLevelProperty, {
const zoomButtonGroup = new MagnifyingGlassZoomButtonGroup( zoomLevelProperty, {
orientation: 'vertical',
left: chartBackground.right + 2,
top: chartBackground.top,
magnifyingGlassNodeOptions: {
maxWidth: 15
},
buttonOptions: {
xMargin: 7,
yMargin: 7
xMargin: 3,
yMargin: 3
}
} );
zoomLevelProperty.link( zoomLevel => {
Expand Down

0 comments on commit 5e4ba01

Please sign in to comment.