Skip to content

Commit

Permalink
Adding DisplayedTrailsProperty, DisplayedProperty => TypeScript, addi…
Browse files Browse the repository at this point in the history
…ng Node rootedDisplayChangedEmitter, pdomVisibleProperty, see phetsims/scenery#1621
  • Loading branch information
jonathanolson committed Apr 2, 2024
1 parent b656fbd commit 4776040
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions js/TinyForwardingProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ export default class TinyForwardingProperty<ValueType> extends TinyProperty<Valu
// Guard against double initialization
private phetioInitialized?: boolean;

public constructor( value: ValueType, targetPropertyInstrumented: boolean, onBeforeNotify?: TinyPropertyOnBeforeNotify<ValueType> ) {
/**
* @param value
* @param [targetPropertyInstrumented] - For phet-io support only, set to false if the target Property is not instrumented
* @param [onBeforeNotify]
*/
public constructor( value: ValueType, targetPropertyInstrumented = false, onBeforeNotify?: TinyPropertyOnBeforeNotify<ValueType> ) {
super( value, onBeforeNotify );

if ( targetPropertyInstrumented ) {
Expand Down Expand Up @@ -88,9 +93,10 @@ export default class TinyForwardingProperty<ValueType> extends TinyProperty<Valu
/**
* Sets (or unsets if `null` is provided) the Property that we use for forwarding changes.
*
* @param node - The container of TinyForwardingProperty which supports updateLinkedElementForProperty()
* @param tandemName - null if the Property does not support PhET-iO instrumentation
* @param newTargetProperty - null to "unset" forwarding.
* @param node - (For phet-io support only):
* The container of TinyForwardingProperty which supports updateLinkedElementForProperty()
* @param tandemName - null if the Property does not support PhET-iO instrumentation
* @returns the passed in Node, for chaining.
*/
public setTargetProperty<NodeType extends NodeLike, NodeParam extends ( NodeType | null )>(
Expand Down

0 comments on commit 4776040

Please sign in to comment.