Skip to content

Commit

Permalink
revert to VSlider, #50
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jan 10, 2022
1 parent 648c462 commit 9edfd03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/demo/DemoLinearEquationPlot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { Node } from '../../../scenery/js/imports.js';
import { RichText } from '../../../scenery/js/imports.js';
import { Text } from '../../../scenery/js/imports.js';
import { VBox } from '../../../scenery/js/imports.js';
import VSlider from '../../../sun/js/VSlider.js';
import AxisArrowNode from '../AxisArrowNode.js';
import bamboo from '../bamboo.js';
import ChartRectangle from '../ChartRectangle.js';
Expand All @@ -27,7 +28,6 @@ import GridLineSet from '../GridLineSet.js';
import TickLabelSet from '../TickLabelSet.js';
import LinearEquationPlot from '../LinearEquationPlot.js';
import TickMarkSet from '../TickMarkSet.js';
import HSlider from '../../../sun/js/HSlider.js';

class DemoLinearEquationPlot extends Node {

Expand Down Expand Up @@ -74,7 +74,7 @@ class DemoLinearEquationPlot extends Node {
decimalPlaces: 1,
align: 'center'
} );
const mSlider = new HSlider( mProperty, mProperty.range, {
const mSlider = new VSlider( mProperty, mProperty.range, {
constrainValue: ( value: number ) => Utils.roundToInterval( value, 0.1 ) // 1 decimal place
} );
const mControl = new VBox( {
Expand All @@ -89,7 +89,7 @@ class DemoLinearEquationPlot extends Node {
decimalPlaces: 0,
align: 'center'
} );
const bSlider = new HSlider( bProperty, bProperty.range, {
const bSlider = new VSlider( bProperty, bProperty.range, {
constrainValue: ( value: number ) => Utils.roundSymmetric( value ) // integers
} );
const bControl = new VBox( {
Expand Down

0 comments on commit 9edfd03

Please sign in to comment.