Skip to content

Commit

Permalink
add rulerInset option to ISLCRulerNode to allow inset customization, …
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarlow12 committed Sep 8, 2017
1 parent 1e8af63 commit 3e2c4a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/view/ISLCRulerNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ define( function( require ) {
snapToNearest: null,
majorTickLabels: [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10' ],
unitString: unitsCentimetersString,
backgroundFill: '#ddd'
backgroundFill: '#ddd',
rulerInset: RULER_INSET
}, options );

var majorTickLabels = options.majorTickLabels;
Expand All @@ -56,7 +57,7 @@ define( function( require ) {
rulerUnitString,
{
backgroundFill: options.backgroundFill,
insetsWidth: RULER_INSET,
insetsWidth: options.rulerInset,
minorTicksPerMajorTick: 4,
majorTickFont: new PhetFont( 12 ),
snapToNearest: options.snapToNearest ? options.snapToNearest : 0,
Expand Down

0 comments on commit 3e2c4a7

Please sign in to comment.