Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug draw and erase functionality in new connected front-end #30

Closed
2 of 3 tasks
thaije opened this issue Jan 30, 2020 · 2 comments
Closed
2 of 3 tasks

Debug draw and erase functionality in new connected front-end #30

thaije opened this issue Jan 30, 2020 · 2 comments
Assignees
Labels
bug Work on something that isn't working front-end Work related to the front end

Comments

@thaije
Copy link
Collaborator

thaije commented Jan 30, 2020

The new HTML frontend has been connected to MATRXS in thenew-frontend branch.
Drawing and erasing works, however a few bugs emerged:

  • The draw and erase icons are missing when the icons are pressed top right
  • Drawing/erasing does not work when the mousebutton is held down. In that case only 1 tile is selected.
  • Draw objects
@thaije thaije added bug Work on something that isn't working HTML-visualizer labels Jan 30, 2020
@wiardjorritsma
Copy link
Collaborator

Another bug: draw tool is active by default

@thaije
Copy link
Collaborator Author

thaije commented Feb 5, 2020

To make it able for also drawing over objects, we can do the following:

On every location, there is always a background tile, and potentially a number of objects. Background tiles have a click listener for drawing in the draw mode. Objects have click listeners (right mouse button) for the context menu, and left mouse button for draw in draw mode.

If the user draws over an object, a semi-transparent object is added on top on this location. That object is invisible for mouse clicks, but used as an indication to the user that that location has been selected / drawn (e.g. semi-transparent red). The erase functionality removes this top object again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Work on something that isn't working front-end Work related to the front end
Projects
None yet
Development

No branches or pull requests

4 participants