Commit Graph

913 Commits (d0cd8217be47307449d3a176b240cbb6e410c8b9)

Author SHA1 Message Date
Isaiah Odhner bc1afbab52 Add Safari pinned tab icon 2019-09-29 13:22:04 -04:00
Isaiah Odhner 278ee910c3 Comment quick undo code and rename var 2019-09-28 23:37:14 -04:00
Yanrishatum 435271d5d2 Fix quick undo for mouse
Resolves #9
2019-09-28 23:33:48 -04:00
Isaiah Odhner 701058ede0 Upgrade to jQuery 3.4.1 with CDN & fallback 2019-09-28 13:48:44 -04:00
Isaiah Odhner 1ec5a60b86 Tweak splash screen 2019-09-28 11:45:47 -04:00
Isaiah Odhner 87c93e1200 Maybe keep using the favicon.ico 2019-09-27 22:33:10 -04:00
Isaiah Odhner d5c9b8219e Fix favicon size selection in chrome 2019-09-27 22:10:18 -04:00
Isaiah Odhner aa8475030c Remove deprecated "density" and include small icons 2019-09-27 22:01:52 -04:00
Isaiah Odhner f70a7c0548 Make JS Paint installable
- Use new vector icon
- Use https://www.favicon-generator.org to create a template for what icons are needed etc.
- Tweak paths and add and update metadata
2019-09-27 19:22:10 -04:00
Isaiah Odhner 0e2bb14091 Create vector icon 2019-09-25 16:19:40 -04:00
Isaiah Odhner a70cec382b Fix fill bucket tool 2019-09-24 16:09:13 -04:00
Isaiah Odhner ae555b9a41 Fix scrollbars after Konami Code finishes 2019-09-21 20:45:12 -04:00
Isaiah Odhner 2b9486c9af Stop trying to disable font smoothing
https://github.com/1j01/jspaint/issues/130
2019-09-21 13:42:14 -04:00
Isaiah Odhner e0d30bf34f npm audit fix 2019-09-21 13:07:56 -04:00
Isaiah Odhner e375d7190d Update other deps 2019-09-21 12:54:01 -04:00
Isaiah Odhner 00e25455d0 Clean up 2019-09-21 12:37:12 -04:00
Isaiah Odhner 71887dff92 Update Electron + Electron Forge and fix clipboard support
Fix clipboard support by updating Electron to a version that supports the Async Clipboard API with images, and remove the old code that was specifically for electron!
2019-09-21 12:37:12 -04:00
Isaiah Odhner c871f14b6d Fix remaining lint errors
- Deal with "no-redeclare" properly, by using `let`
- I still have eslint ignoring global variable stuff.
2019-09-21 11:59:30 -04:00
Isaiah Odhner 2babccdb49 Fix more lint errors 2019-09-21 11:33:01 -04:00
Isaiah Odhner cb4376c68c Fix lint errors and more Extras menu logic 2019-09-21 11:24:22 -04:00
Isaiah Odhner 0fdcbc554a Fix Extras menu visibility logic 2019-09-21 10:57:29 -04:00
Isaiah Odhner d9064f70c7 Work on text copy/paste, but the menus don't allow it 2019-09-21 10:43:20 -04:00
Isaiah Odhner 23fee3df4d Make tool transparent mode a bool 2019-09-21 10:01:26 -04:00
Isaiah Odhner 9c1bfdb831 Improve error message when local storage unavailable 2019-09-21 09:31:16 -04:00
Isaiah Odhner 0fc2170bb5 Handle local storage unavailable in storage manager 2019-09-21 09:24:47 -04:00
Isaiah Odhner f7c0d431c5 Refactor transparency detection 2019-09-21 02:04:59 -04:00
Isaiah Odhner 69146d7279 Return to multiple tools 2019-09-21 01:59:56 -04:00
Isaiah Odhner d986c5ad99 Fix selecting previous tool after eyedropper or magnifier 2019-09-21 01:50:02 -04:00
Isaiah Odhner a5acf95387 Fix error message 2019-09-21 00:38:34 -04:00
Isaiah Odhner c0938c89de Improve Firebase quota message 2019-09-20 14:12:27 -04:00
Isaiah Odhner fee30a9df6 Fix Firebase event cleanup
- Simplify with destructuring
- Don't pass error_callback
2019-09-20 14:02:01 -04:00
Isaiah Odhner 874e50fc3e Go thru eslint problems
- And pull maximal stuff out of most try-catches (with empty catches)
- Simplify Firebase event cleanup by structuring data
2019-09-20 13:15:21 -04:00
Isaiah Odhner 5a4abc4591 Rename textbox object OnCanvasTextBox 2019-09-20 12:34:14 -04:00
Isaiah Odhner b9fadfd708 Rename selection object OnCanvasSelection
Avoid potential conflict with global Selection built into browsers
2019-09-20 12:31:03 -04:00
Isaiah Odhner 08e6bd0258 Order the tools at least
I would add special cases, but this seems to be a good order for pencil/brush + eraser, and airbrush + brush

https://i.imgur.com/buIcywb.png
2019-09-20 12:00:56 -04:00
Isaiah Odhner aa5fba8869 Ctrl also makes sense
this feature doesn't tho

(There's a version of this feature that could be actually really fun and useful, where all the tools have effects that can act as stages in a pipeline, with a specified order, so like airbrush + text stamps text in a scattered pattern for instance)

(this is the Goat Simulator version of this feature, for now)
2019-09-20 11:52:23 -04:00
Isaiah Odhner da7689d785 Toggle tools
and make it so the airbrush + brush work whichever you select first
2019-09-20 11:06:43 -04:00
Isaiah Odhner cc01ea1496 Select multiple tools haha this sucks
It's not even bad in a fun way, because the tools share state and basically one wins, for the most part.

You can combine airbrush and brush which is nice... altho you have to select airbrush second for it to be continuous over time.

If you select select as the last thing you can use it with other tools, and then with Ctrl+I to invert, you can do something like this: https://i.imgur.com/DXbc2GT.png
2019-09-20 11:06:43 -04:00
Isaiah Odhner 35c2af0143 Don't close Load from URL if URL invalid 2019-09-17 18:53:35 -04:00
Isaiah Odhner 07a37d944e execCommand works in Firefox for copy/cut 2019-09-17 18:37:00 -04:00
Isaiah Odhner a40f4ccabf Simplify things 2019-09-17 17:52:01 -04:00
Isaiah Odhner 38efcc3990 Fix some error handling stuff 2019-09-17 17:41:48 -04:00
Isaiah Odhner 7c97a53128 Fix old clipboard functionality
except copying in a jspaint instance in a browser without async clipboard support and pasting into a browser with async clipboard support
2019-09-17 17:34:58 -04:00
Isaiah Odhner 96ea75569e Fix some things 2019-09-17 17:28:30 -04:00
Isaiah Odhner 09ff712a5f Set up eslint 2019-09-17 16:32:12 -04:00
Isaiah Odhner 4d53972a03 Add URL validity checking 2019-09-17 16:32:11 -04:00
Isaiah Odhner ad37213b54 Use the Async Clipboard API
Copy/paste real image data, both from keyboard shortcuts AND from the menus now!
2019-09-14 00:42:28 -04:00
Isaiah Odhner 49f969bd48 Revert "Probably want this"
This reverts commit eeec63223c.

jQuery isn't necessarily loaded here.
2019-07-07 01:27:22 -04:00
Isaiah Odhner 21b9a31afe Improve title
Maybe this will make it show up nicer in Google?
Currently Google is transforming "untitled - Paint" to "Paint: untitled" for the title of the page; maybe this would make it more confident in using the original title, since it lines up with the domain name, and is more than one word? idk
2019-07-07 01:24:49 -04:00
Isaiah Odhner cbd5e09c19 Make HTML more valid, and clean up quotes 2019-07-07 01:14:58 -04:00