Skip to content

Commit

Permalink
add Checkbox displayOnlyProperties, phetsims/sun#914
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Dec 13, 2024
1 parent cdb4c19 commit d809c63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/common/view/EnvironmentalFactorCheckbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default class EnvironmentalFactorCheckbox extends Checkbox {

const options = optionize4<EnvironmentalFactorCheckboxOptions, SelfOptions, CheckboxOptions>()(
{}, NaturalSelectionConstants.CHECKBOX_OPTIONS, {
phetioDisplayOnlyPropertyInstrumented: true,

// SelfOptions
clockSliceRange: DEFAULT_CLOCK_SLICE_RANGE,
Expand Down
3 changes: 2 additions & 1 deletion js/common/view/population/PopulationLegendCheckbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export default class PopulationLegendCheckbox extends Checkbox {
{}, NaturalSelectionConstants.CHECKBOX_OPTIONS, {
lineColor: 'black',
isLineDashed: false,
isDisposable: false
isDisposable: false,
phetioDisplayOnlyPropertyInstrumented: true
}, providedOptions );

// solid or dashed line
Expand Down

0 comments on commit d809c63

Please sign in to comment.