Update script.js

This commit is contained in:
Logan Hunt 2022-12-21 00:43:30 -07:00 committed by GitHub
parent e5378336d8
commit 15459eecb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,8 +93,7 @@ const loop = () => {
(a, label) => Math.max(ctx.measureText(label).width, a),
-Infinity
);
console.log(state.maxYLabelWidth);
state.gridBoxWidth =
state.width - state.maxYLabelWidth - state.yLabelPadding;
state.gridBoxHeight = state.height - 2.5 * FONT_HEIGHT_PX; // 2.5 to include bottom part of tall letters ("g", "y", etc.)