Skip to content

Commit

Permalink
Rename Property, see #27
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jun 11, 2021
1 parent 7451fa7 commit 9e1cecd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/demo/DemoMultiplePlots.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ class DemoMultiplePlots extends VBox {
} );

const linear = new Transform1( x => x, x => x );
const logProperty = new Property( linear );
const controls = new VerticalAquaRadioButtonGroup( logProperty, [
const transformProperty = new Property( linear );
const controls = new VerticalAquaRadioButtonGroup( transformProperty, [
{ node: new Text( 'linear', { fontSize: 14 } ), value: linear },
{
node: new Text( 'log', { fontSize: 14 } ), value: new Transform1( Math.log, Math.exp, {
Expand All @@ -125,7 +125,7 @@ class DemoMultiplePlots extends VBox {
} )
}
] );
logProperty.link( type => chartTransform.setYTransform( type ) );
transformProperty.link( type => chartTransform.setYTransform( type ) );

const readout = new Text( 'Press/Drag to show point', {
fontSize: 30,
Expand Down

0 comments on commit 9e1cecd

Please sign in to comment.