Skip to content

Conversation

@droundy
Copy link
Contributor

@droundy droundy commented Sep 24, 2020

I just added a configuration variable MAX_BOARD_SIZE_X. I also made board.js obey the existing MAX_BOARD_SIZE (which it wasn't), and made it so you can't zoom out beyond the width of the board. The latter isn't technically necessary, and could in cases of a very wide window be annoying, but I think it's better than letting users confuse themselves with a bunch of white space that they can't write on.

By opening a pull request, I certify that I hold the intellectual property of the code I am submitting, and I am granting the initial authors of WBO a perpetual, worldwide, non-exclusive, royalty-free, and irrevocable license to this code.

@lovasoa lovasoa linked an issue Sep 25, 2020 that may be closed by this pull request
Copy link
Owner

@lovasoa lovasoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, I'm ready to merge that. I agree that getting rid of the uneditable blank spaces is worth it, even if it is an inconvenience on screens with an unusual aspect ratio.

@lovasoa
Copy link
Owner

lovasoa commented Sep 25, 2020

Can you have a look at the failing tests too ?

@droundy
Copy link
Contributor Author

droundy commented Sep 25, 2020

It looks like the failing tests assume a given transformation matrix, which is getting broken by my code that sets the minimum zoom level.

On second thought, it seems odd that the max scaling should be reached, unless either the window is very big in the test, or the max board size is small...

droundy and others added 3 commits September 25, 2020 06:24
Co-authored-by: Ophir LOJKINE <pere.jobs@gmail.com>
Co-authored-by: Ophir LOJKINE <pere.jobs@gmail.com>
Co-authored-by: Ophir LOJKINE <pere.jobs@gmail.com>
@lovasoa
Copy link
Owner

lovasoa commented Sep 25, 2020

It looks like the cursor element (to which the transform should be applied) is not even present

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Configuration to set the width of the board?

2 participants