Skip to content

Commit

Permalink
In the MADNode, increase dot radii and move first horizontal line dow…
Browse files Browse the repository at this point in the history
…n a bit, see #180
  • Loading branch information
samreid committed May 18, 2023
1 parent df0404b commit 12b8b4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/variability/view/MADNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class MADNode extends CAVPlotNode {
const mean = _.mean( sortedDots.map( dot => dot.valueProperty.value ) );

// Underneath the accordion box title
let y = 55;
let y = 60;
sortedDots.forEach( dot => {
const x1 = this.modelViewTransform.modelToViewX( dot.valueProperty.value! );
const x2 = this.modelViewTransform.modelToViewX( mean );
Expand All @@ -106,7 +106,7 @@ export default class MADNode extends CAVPlotNode {

// If the line is too short, show a dot to make it visible
if ( Math.abs( x2 - x1 ) < 1E-4 ) {
children.push( new Circle( 1, {
children.push( new Circle( 1.5, {
fill: 'black',
center: line.center
} ) );
Expand Down

0 comments on commit 12b8b4e

Please sign in to comment.