Skip to content

Commit

Permalink
rename GRAPH_VIEW_WIDTH to CHART_RECTANGLE_WIDTH, #304
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Mar 21, 2023
1 parent 3daef26 commit 5e6ca3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/common/CalculusGrapherConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ const CalculusGrapherConstants = {
GRAPH_X_MARGIN: 15,
GRAPH_Y_MARGIN: 10,

// width of all graphs, regardless of how many we have
GRAPH_VIEW_WIDTH: 612,
// width of ChartRectangle for all GraphNode instances, in view coordinates
CHART_RECTANGLE_WIDTH: 612,

// If we had a single GraphNode instance, this would be the height of its ChartRectangle, in view coordinates.
SINGLE_CHART_RECTANGLE_HEIGHT: 490,
Expand Down
2 changes: 1 addition & 1 deletion js/common/view/GraphNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default class GraphNode extends Node {

// chart transform for the graph
this.chartTransform = new ChartTransform( {
viewWidth: CalculusGrapherConstants.GRAPH_VIEW_WIDTH,
viewWidth: CalculusGrapherConstants.CHART_RECTANGLE_WIDTH,
viewHeight: options.chartRectangleHeight,
modelXRange: CalculusGrapherConstants.CURVE_X_RANGE,
modelYRange: new Range( -DEFAULT_MAX_Y, DEFAULT_MAX_Y )
Expand Down

0 comments on commit 5e6ca3d

Please sign in to comment.