Skip to content

Commit

Permalink
update doc, #140
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Feb 6, 2024
1 parent da42cba commit a56b378
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/pointslope/view/PointSlopeEquationNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,8 @@ export default class PointSlopeEquationNode extends EquationNode {
};
lineProperty.link( lineObserver ); // unlink in dispose

// If dynamic strings change, update the layout. xNode.boundsProperty and yNode.boundsProperty are RichText that
// are observing a StringProperty. slopeUndefinedStringProperty is used in this.updateLayout.
// If dynamic strings change, update the layout. xNode and yNode are RichText that are observing a StringProperty,
// observing localBoundsProperty to prevent 'stack size exceeded'. slopeUndefinedStringProperty is used in this.updateLayout.
const dynamicStringMultilink = Multilink.lazyMultilink(
[ xText.localBoundsProperty, yText.localBoundsProperty, GraphingLinesStrings.slopeUndefinedStringProperty ],
() => updateLayout( lineProperty.value )
Expand Down
4 changes: 2 additions & 2 deletions js/slopeintercept/view/SlopeInterceptEquationNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ export default class SlopeInterceptEquationNode extends EquationNode {
};
lineProperty.link( lineObserver ); // unlink in dispose

// If dynamic strings change, update the layout. xNode.boundsProperty and yNode.boundsProperty are RichText that
// are observing a StringProperty. slopeUndefinedStringProperty is used in this.updateLayout.
// If dynamic strings change, update the layout. xNode and yNode are RichText that are observing a StringProperty,
// observing localBoundsProperty to prevent 'stack size exceeded'. slopeUndefinedStringProperty is used in this.updateLayout.
const dynamicStringMultilink = Multilink.lazyMultilink(
[ xText.localBoundsProperty, yText.localBoundsProperty, GraphingLinesStrings.slopeUndefinedStringProperty ],
() => updateLayout( lineProperty.value )
Expand Down

0 comments on commit a56b378

Please sign in to comment.