Skip to content

Commit

Permalink
arrows scale linearly with force range, see #phetsims/inverse-square-…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Dec 18, 2017
1 parent 9a15e2f commit e05fe2c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion js/atomic/view/CoulombsLawAtomicView.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ define( function( require ) {
defaultDirection: 'left',
arrowColor: '#66f',
forceArrowHeight: 70,

// TODO: scale factor for the arrow so that it has requested size, calculate this if design team likes the feel
// see https://github.com/phetsims/inverse-square-law-common/issues/21
maxArrowWidth: 50000
} );

var chargeNode2 = new ChargeNode(
Expand All @@ -69,7 +73,11 @@ define( function( require ) {
otherObjectLabel: charge1AbbreviatedString,
defaultDirection: 'right',
arrowColor: '#f66',
forceArrowHeight: 120
forceArrowHeight: 120,

// TODO: scale factor for the arrow so that it has requested size, calculate this if design team likes the feel,
// see https://github.com/phetsims/inverse-square-law-common/issues/21
maxArrowWidth: 50000
} );

this.addChild( chargeNode1 );
Expand Down

0 comments on commit e05fe2c

Please sign in to comment.