Skip to content

Commit

Permalink
Move TODOs, see #267 and #256
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jul 17, 2024
1 parent d4f8262 commit 2b32915
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion js/common/model/Gravity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class Gravity extends PhetioObject implements HasValueProperty {

this.nameProperty = options.nameProperty;

// TODO: Make sure gravityValueProperty is reset, see https://github.com/phetsims/density-buoyancy-common/issues/256
// TODO: Make sure gravityValueProperty is reset, see https://github.com/phetsims/density-buoyancy-common/issues/267
this.gravityValueProperty = new NumberProperty( options.value, {
// TODO: Instrumentation, see https://github.com/phetsims/density-buoyancy-common/issues/256
// tandem: options.tandem
Expand Down
2 changes: 1 addition & 1 deletion js/common/model/MappedWrappedProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type HasValueProperty = {
valueProperty: TProperty<number>;
};

// TODO: reset these, https://github.com/phetsims/density-buoyancy-common/issues/256
// TODO: reset these, https://github.com/phetsims/density-buoyancy-common/issues/267
export default abstract class MappedWrappedProperty<T extends HasValueProperty> extends Property<T> {
protected readonly dynamicValueProperty: TReadOnlyProperty<number>;
public readonly customValue: T;
Expand Down
6 changes: 3 additions & 3 deletions js/common/model/Material.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export type MaterialOptions = SelfOptions & StrictOmit<PhetioObjectOptions, 'tan

const MATERIALS_TANDEM = Tandem.GLOBAL_MODEL.createTandem( 'materials' );

// TODO: Resetting all Property instances that can/should be, https://github.com/phetsims/density-buoyancy-common/issues/256
// TODO: Resetting all Property instances that can/should be, https://github.com/phetsims/density-buoyancy-common/issues/267
// TODO: Material should wire up color properties https://github.com/phetsims/density-buoyancy-common/issues/256
// TODO: Material only needs one color Property, https://github.com/phetsims/density-buoyancy-common/issues/256
// TODO: Material should know its density range https://github.com/phetsims/density-buoyancy-common/issues/256
Expand Down Expand Up @@ -184,8 +184,8 @@ export default class Material extends PhetioObject implements HasValueProperty {

/**
* TODO: a couple thoughts. https://github.com/phetsims/density-buoyancy-common/issues/256
* 1. could this be solved is MaterialProperty.colorProperty was a dynamic property, then these usages would just link to that to update the THREE mesh.
* 2. At the very leas, move this to a prototype method on MaterialProperty.
* 1. could this be solved is MaterialProperty.colorProperty was a dynamic property, then these usages would just link to that to update the THREE mesh.
* 2. At the very least, move this to a prototype method on MaterialProperty.
*
* Keep a material's color and opacity to match the liquid color from a given Property<Material>
*
Expand Down

0 comments on commit 2b32915

Please sign in to comment.