From 870367ec52563ee321d5e90d6f95db3ff5b018df Mon Sep 17 00:00:00 2001 From: zepumph Date: Thu, 19 Sep 2019 13:37:18 -0800 Subject: [PATCH] add ` => { return ` as bad text and fix usages, https://github.com/phetsims/chipper/issues/790 --- .../scenery-pdom/presentation-examples/bar-chart.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/presentations/csun-2019/scenery-pdom/presentation-examples/bar-chart.html b/presentations/csun-2019/scenery-pdom/presentation-examples/bar-chart.html index 220bc63..391d55e 100644 --- a/presentations/csun-2019/scenery-pdom/presentation-examples/bar-chart.html +++ b/presentations/csun-2019/scenery-pdom/presentation-examples/bar-chart.html @@ -58,7 +58,7 @@ class AxisLabel extends scenery.Text { constructor( labelString, rotation ) { - super( labelString, { + super( labelString, { fontSize: 15, rotation: rotation } ); @@ -106,7 +106,7 @@ } ); // layout variables - const maxDisplayedHits = _.maxBy( data, ( entry ) => { return entry.numHits; } ).numHits * 1.3; + const maxDisplayedHits = _.maxBy( data, entry => entry.numHits ).numHits * 1.3; const widthPerBar = chartWidth / data.length; const barSpacing = widthPerBar * 0.25; @@ -138,7 +138,7 @@ const barHeight = ( entry.numHits / maxDisplayedHits ) * chartHeight; const bar = new Bar( entry, barSpacing + ( i * widthPerBar ), chartHeight - barHeight, widthPerBar - barSpacing, barHeight ); - bar.opacity = Math.min( 0.4 + entry.numHits / maxDisplayedHits, 1 ); + bar.opacity = Math.min( 0.4 + entry.numHits / maxDisplayedHits, 1 ); barsNode.addChild( bar ); label.centerTop = bar.centerBottom;