Skip to content

Commit

Permalink
Add assertions to remind devs that there should be a LinkedElement to…
Browse files Browse the repository at this point in the history
… the associated Property and that the Property itself should be featured, see phetsims/sun#920
  • Loading branch information
samreid committed Dec 30, 2024
1 parent f6efef3 commit e2045b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion js/view/ammeterReadoutTypeProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import circuitConstructionKitCommon from '../circuitConstructionKitCommon.js';
import AmmeterReadoutType from '../model/AmmeterReadoutType.js';

const ammeterReadoutTypeProperty = new EnumerationProperty( CCKCQueryParameters.ammeterReadout === 'magnitude' ? AmmeterReadoutType.MAGNITUDE : AmmeterReadoutType.SIGNED, {
tandem: Tandem.PREFERENCES.createTandem( 'ammeterReadoutTypeProperty' )
tandem: Tandem.PREFERENCES.createTandem( 'ammeterReadoutTypeProperty' ),
phetioFeatured: true
} );

circuitConstructionKitCommon.register( 'ammeterReadoutTypeProperty', ammeterReadoutTypeProperty );
Expand Down
3 changes: 2 additions & 1 deletion js/view/schematicTypeProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import SchematicType from './SchematicType.js';
const schematicTypeProperty = new EnumerationProperty( CCKCQueryParameters.schematicStandard === 'ieee' ? SchematicType.IEEE :
CCKCQueryParameters.schematicStandard === 'iec' ? SchematicType.IEC :
SchematicType.BRITISH, {
tandem: Tandem.PREFERENCES.createTandem( 'schematicTypeProperty' )
tandem: Tandem.PREFERENCES.createTandem( 'schematicTypeProperty' ),
phetioFeatured: true
} );

circuitConstructionKitCommon.register( 'schematicTypeProperty', schematicTypeProperty );
Expand Down

0 comments on commit e2045b3

Please sign in to comment.