Skip to content

Commit

Permalink
rename getChartBounds to getChartRectangleBounds, #259, #304
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Mar 22, 2023
1 parent d589c69 commit 9f8941c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/common/view/GraphNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default class GraphNode extends Node {
stroke: graphType.strokeProperty,
discontinuousPointsFill: options.chartRectangleOptions.fill!,
plotBoundsMethod: CalculusGrapherConstants.PLOT_BOUNDS_METHOD, // see https://github.com/phetsims/calculus-grapher/issues/210
plotBounds: this.getChartBounds(), // see https://github.com/phetsims/calculus-grapher/issues/259
plotBounds: this.getChartRectangleBounds(), // see https://github.com/phetsims/calculus-grapher/issues/259
tandem: providedOptions.tandem.createTandem( 'curveNode' )
} );
}
Expand Down Expand Up @@ -334,7 +334,7 @@ export default class GraphNode extends Node {
} );
}

protected getChartBounds(): Bounds2 {
protected getChartRectangleBounds(): Bounds2 {
return this.chartRectangle.getShape().bounds;
}

Expand Down
4 changes: 2 additions & 2 deletions js/common/view/OriginalGraphNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default class OriginalGraphNode extends GraphNode {
lineWidth: 3 // see https://github.com/phetsims/calculus-grapher/issues/205
},
plotBoundsMethod: CalculusGrapherConstants.PLOT_BOUNDS_METHOD, // see https://github.com/phetsims/calculus-grapher/issues/210
plotBounds: this.getChartBounds(), // see https://github.com/phetsims/calculus-grapher/issues/259
plotBounds: this.getChartRectangleBounds(), // see https://github.com/phetsims/calculus-grapher/issues/259
isInteractiveProperty: DerivedProperty.not( predictEnabledProperty ),
visibleProperty: new DerivedProperty(
[ predictEnabledProperty, this.showOriginalCurveProperty ],
Expand All @@ -135,7 +135,7 @@ export default class OriginalGraphNode extends GraphNode {
stroke: CalculusGrapherColors.predictCurveStrokeProperty,
discontinuousPointsFill: options.chartRectangleOptions.fill!,
plotBoundsMethod: CalculusGrapherConstants.PLOT_BOUNDS_METHOD, // see https://github.com/phetsims/calculus-grapher/issues/210
plotBounds: this.getChartBounds(), // see https://github.com/phetsims/calculus-grapher/issues/259
plotBounds: this.getChartRectangleBounds(), // see https://github.com/phetsims/calculus-grapher/issues/259
isInteractiveProperty: predictEnabledProperty,
visibleProperty: predictEnabledProperty,
tandem: options.tandem.createTandem( 'predictCurveNode' )
Expand Down

0 comments on commit 9f8941c

Please sign in to comment.