Also allows for downloadCanvas to open image in new tab. This may be
useful for debugging anything that has a canvas (such as overmasking).
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
Sometimes before this I used mouse.listen.window.left.onclick = () =>
{thing}. Now it throws an error telling me not to do this.
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
Blue masking means SD will try to keep image as-is under the mask. Red
masking means SD will try to replace whatever is under the mask. (Red is
default masking, Blue is inverted masking)
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
Allows for selections and dreams to be sent to the resource manager,
allows resource deselection when clicking on the currently selected
item, put some extra comments and allow saving of a selected canvas area
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
Former-commit-id: 963312115d4827de1c8d4fac88a97dd64db7fa15
Also updates a lot of other things (brush size now independent from
scale factor, split some files, and a lot other things; removed erase
safeguard as now erase is supported by undo/redo; tried adding github
prettier autoformatting to pull requests;
may have some other things as well
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
Former-commit-id: 0ba21f23c69f9dca2c3189a838b945900b01f81d
input.js is now responsible for processing mouse input and translating
it to relevant events. This allows for less bloat on the main logic in
index.js and easy implementation of new functionality
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>