Skip to content

Commit

Permalink
Add PhET-iO instrumentation, see #45
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Mar 4, 2022
1 parent ea57934 commit ee1d082
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/common/CASConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import EnumerationProperty from '../../../axon/js/EnumerationProperty.js';
import PhetFont from '../../../scenery-phet/js/PhetFont.js';
import Tandem from '../../../tandem/js/Tandem.js';
import centerAndSpread from '../centerAndSpread.js';
import CASQueryParameters from './CASQueryParameters.js';
import PlotType from './model/PlotType.js';
Expand All @@ -23,8 +24,11 @@ const CASConstants = {
CHECKBOX_TEXT_MAX_WIDTH: 120,

// TODO: Should this be declared in main and passed through?
// TODO: This should be instrumented
PLOT_TYPE_PROPERTY: new EnumerationProperty( CASQueryParameters.plotType === 'dotPlot' ? PlotType.DOT_PLOT : PlotType.LINE_PLOT ),
// SR: I prefer that it is treated like a global, but

PLOT_TYPE_PROPERTY: new EnumerationProperty( CASQueryParameters.plotType === 'dotPlot' ? PlotType.DOT_PLOT : PlotType.LINE_PLOT, {
tandem: Tandem.GLOBAL_VIEW.createTandem( 'plotTypeProperty' )
} ),
ARROW_LINE_WIDTH: 0.5
};

Expand Down

0 comments on commit ee1d082

Please sign in to comment.