From 6899c4ce25cef9ff146f3fccf9d606c762ac4963 Mon Sep 17 00:00:00 2001 From: samreid Date: Mon, 14 Dec 2020 15:27:10 -0700 Subject: [PATCH] Nest magnifying glass options, see https://github.com/phetsims/circuit-construction-kit-common/issues/620 --- js/common/view/graph/ZoomButtonGroup.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/common/view/graph/ZoomButtonGroup.js b/js/common/view/graph/ZoomButtonGroup.js index 6168c390..b5cbbc12 100644 --- a/js/common/view/graph/ZoomButtonGroup.js +++ b/js/common/view/graph/ZoomButtonGroup.js @@ -33,7 +33,9 @@ class ZoomButtonGroup extends HBox { const zoomOutButton = new ZoomButton( { in: false, - magnifyingGlassRadius: MAGNIFYING_GLASS_RADIUS, + magnifyingGlassOptions:{ + glassRadius: MAGNIFYING_GLASS_RADIUS + }, listener: () => exponentProperty.set( exponentProperty.get() + 1 ), enabledPropertyOptions: { phetioReadOnly: true }, tandem: options.tandem.createTandem( 'zoomOutButton' ), @@ -45,7 +47,9 @@ class ZoomButtonGroup extends HBox { const zoomInButton = new ZoomButton( { in: true, - magnifyingGlassRadius: MAGNIFYING_GLASS_RADIUS, + magnifyingGlassOptions:{ + glassRadius: MAGNIFYING_GLASS_RADIUS + }, listener: () => exponentProperty.set( exponentProperty.get() - 1 ), enabledPropertyOptions: { phetioReadOnly: true }, tandem: options.tandem.createTandem( 'zoomInButton' ),