Skip to content

Commit

Permalink
Nest magnifying glass options, see phetsims/circuit-construction-kit-…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Dec 14, 2020
1 parent 5863e54 commit 818e9d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion js/common/view/EnergyBarGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ class EnergyBarGraph extends Node {

const zoomButtonOptions = {
baseColor: ColorConstants.LIGHT_BLUE,
magnifyingGlassRadius: 6,
magnifyingGlassOptions: {
glassRadius: 6
},

xMargin: 7,
yMargin: 5,
Expand Down
4 changes: 3 additions & 1 deletion js/graphs/view/EnergyGraphZoomButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ class EnergyGraphZoomButton extends ZoomButton {
options = merge( {
in: true, // true: zoom-in button, false: zoom-out button
scaleDelta: 1, // how much to change scaleProperty when zooming in or out
magnifyingGlassRadius: 6,
magnifyingGlassOptions: {
glassRadius: 6
},
xMargin: 4,
yMargin: 4,
touchAreaXDilation: 3,
Expand Down

0 comments on commit 818e9d6

Please sign in to comment.