diff options
author | Logan Hunt <loganhunt@simponic.xyz> | 2022-12-21 00:43:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-21 00:43:30 -0700 |
commit | 15459eecb2ec8ec108476478b0cdc15a6532974e (patch) | |
tree | fa43f8b3e250fa39facaa825a0f7da734b46da7d | |
parent | e5378336d88fea08a095ab34f0747b7285ac4d84 (diff) | |
download | simponic.xyz-15459eecb2ec8ec108476478b0cdc15a6532974e.tar.gz simponic.xyz-15459eecb2ec8ec108476478b0cdc15a6532974e.zip |
Update script.js
-rw-r--r-- | ft-visualizer/js/script.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ft-visualizer/js/script.js b/ft-visualizer/js/script.js index 4eea7c2..7bd4f6e 100644 --- a/ft-visualizer/js/script.js +++ b/ft-visualizer/js/script.js @@ -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.) |