jspaint/TODO.md

216 lines
8.2 KiB
Markdown
Raw Normal View History

2014-05-18 08:47:46 +00:00
# ![](images/icons/32x32.png) JS Paint Todo
2014-05-18 08:47:46 +00:00
2017-10-26 04:02:46 +00:00
### Help
* Resizable panes
* Resizable window
* Link-esque things
* Popups (I'd probably make the text within the popups selectable)
* Related topics (I'd probably make this a heading with links instead of the weird context menu thing)
* Add topics
* In "Tips and Tricks" (which is just a lame section)
* Transparency
* Multi-user / collaboration / "To share the document On-Line" or whatever
2017-10-26 04:02:46 +00:00
* Index
* Search
* Keyboard support
### Visual
* Warning sign for "Save changes to X?" dialog
* Error symbol for error message dialogs
* 3D inset border for inputs - SVG `image-border`?
2017-10-26 04:02:46 +00:00
* The window close button uses text; font rendering is not consistent
* The progress bar (Rendering GIF) is left native
* Menu separator spacing
2019-10-27 05:11:41 +00:00
* Minor color differences (0x808080 != 0x7b7b7b) - use a palette for consistency?
2017-10-26 04:02:46 +00:00
* I want to give most things a revisit later on for Pixel Perfection
2019-10-27 05:11:41 +00:00
* Fill bucket and airbrush cursors are supposed to have inverty parts
2017-10-30 05:23:01 +00:00
* Custom cursors in Edge; apparently they require `.cur` files? ugh
2018-01-10 03:42:38 +00:00
* The canvas-area's border is different in Firefox and Edge from Chrome
2017-10-26 04:02:46 +00:00
### Issues
2017-10-30 05:23:01 +00:00
* If you click on a menu item (up/down) and then move over to a menu item and click (up/down) it does nothing (and you can repeat this)
2017-10-26 04:02:46 +00:00
* Can't glide thru tool options in Firefox, mobile Chrome;
might be a pointer events spec interpretation issue, and it could easily be that the more technically correct browsers are where it's not working
(Note: not a thing allowed by MS Paint)
2014-09-29 01:19:39 +00:00
2014-09-29 01:19:39 +00:00
### Menus
2015-06-29 04:33:22 +00:00
* Keyboard navigation of submenus
* <kbd>Alt</kbd> (by itself)?
2014-10-27 01:16:43 +00:00
2014-09-29 01:19:39 +00:00
### Components / Windows
2017-06-02 04:59:44 +00:00
* Use the ghost when dragging on a component window's title bar
* Make the component ghost account for the window's title bar
2014-05-22 08:20:59 +00:00
### Extended editing
2014-05-18 08:47:46 +00:00
* Transparency
2017-10-26 04:02:46 +00:00
* Color opacity slider
2018-08-24 06:22:46 +00:00
* Toggle between blend and copy (overwrite) modes
2018-11-15 07:44:46 +00:00
* Maybe equivalize any rgba(X, X, X, 0) in fill algorithm?
2017-10-26 04:02:46 +00:00
There'd still be the possibility of 1/255th opacity pixels,
2017-10-30 05:23:01 +00:00
but if you're creating colors from the combination of a color picker and an opacity slider,
you might naturally introduce differing zero-opacity color values a lot.
2014-09-29 21:12:32 +00:00
2019-12-15 03:24:52 +00:00
* Documents with multiple sub-images
2014-09-29 21:12:32 +00:00
* Component to switch between sub-images
* Deal with undo/redo for sub-images
* Animated GIFs
* Transparency ([jnordberg/gif.js issue #5](https://github.com/jnordberg/gif.js/issues/5))
* Animated Transparent APNGs
2019-10-27 20:45:56 +00:00
* APNG Library: [UPNG.js](https://github.com/photopea/UPNG.js/)
2014-09-29 21:12:32 +00:00
* Multi-size Icons
* Windows ICO ([jBinary can read](https://jdataview.github.io/jBinary.Repo/demo/#ico) and presumably write ICO files)
2014-09-29 21:12:32 +00:00
* Mac ICNS
* Layered images?
* Photoshop PSD ([via psd.js](https://github.com/trevorlinton/psd.js))
* OpenRaster ORA ([via ora.js](https://github.com/zsgalusz/ora.js/tree/master))
2014-05-18 08:47:46 +00:00
* Online (multi-user) and local (single-user) sessions
2016-03-24 16:38:37 +00:00
* See [sessions.js](src/sessions.js)
2017-10-26 04:02:46 +00:00
* Issues
* You get interrupted if you try to make a selection when there's a selection
* You get interrupted if you try to draw at the same time as another person (you basically have to take turns - lame!)
* Cursors from other users that go outside the parent can cause the page to be scrollable
2014-10-24 00:54:05 +00:00
2014-09-22 10:13:18 +00:00
2014-11-25 05:39:16 +00:00
### Device support
2014-05-18 08:47:46 +00:00
* Pan tool for touchscreens without multitouch?
2014-09-22 10:13:18 +00:00
2014-05-18 08:47:46 +00:00
2015-06-22 00:01:12 +00:00
* Enlarge GUI elements on touch devices
2017-06-02 04:59:44 +00:00
* Menus
2015-06-16 01:29:30 +00:00
2014-09-29 01:19:39 +00:00
* You can't use the Eraser/Color Eraser tool as a "Color Eraser" without a secondary mouse button
2017-10-26 04:02:46 +00:00
* Make sure anything that uses hovering is paralleled on mobile (tooltips, `:hover` effects)
2014-09-29 01:19:39 +00:00
2014-11-27 16:27:58 +00:00
* Access to functionality that would normally require a keyboard (with a numpad!)
2019-10-27 20:45:56 +00:00
* Numpad +/-: Increase/Decrease brush size, Double/Halve selection size, ...
2014-09-29 01:19:39 +00:00
* Shift (toggle): Proportional, Smear / Trail Selection, "Snap to 8 directions" / "Octosnap"?
2017-10-26 04:02:46 +00:00
* Ctrl+Select: Crop tool or "Crop to selection" option
2014-05-22 08:20:59 +00:00
2014-08-08 21:44:46 +00:00
2019-10-27 05:11:41 +00:00
* Don't drag toolbars out into windows with touch
* Unless with two fingers perhaps
* I might want to use multitouch on the tool buttons for MultiTools tho...
2019-10-27 05:11:41 +00:00
2014-09-29 01:19:39 +00:00
### Tools
2014-09-22 10:13:18 +00:00
2014-10-24 07:17:24 +00:00
* Free-Form Select
* Passive: create no undoables until you do something
2016-09-24 06:03:50 +00:00
* You should be able to make a selection, then change the secondary color, then drag the selection cutting it out with the color you selected
* See [On-Canvas Objects](#on-canvas-objects) for Selection
2014-09-22 10:13:18 +00:00
2014-10-02 19:29:25 +00:00
* Select
* Passive: create no undoables until you do something
2016-09-24 06:03:50 +00:00
* You should be able to make a selection, then change the secondary color, then drag the selection cutting it out with the color you selected
* See [On-Canvas Objects](#on-canvas-objects) for Selection
2014-10-02 19:29:25 +00:00
2014-09-20 17:36:56 +00:00
* Text
2016-11-05 19:52:44 +00:00
* Expand box to make room for new lines
* If it would go over the edge of the canvas, reject the input (at least, that's what mspaint does)
2014-10-02 19:29:25 +00:00
* Minimum size of 3em x 1em
* Initially and while resizing
* Add padding left to text area when font has glyphs that extend left, like italic f in Times New Roman
2014-09-20 17:36:56 +00:00
* Store position of FontBox
2014-11-27 16:27:58 +00:00
* Save text and record transformations so the image can be saved as
2017-10-26 04:02:46 +00:00
SVG (or HTML?) with invisible selectable transformed text elements?
2014-09-20 17:36:56 +00:00
2014-09-29 01:19:39 +00:00
* **Options**
* In MS Paint, visual area =/= selection highlight area =/= clickable area
2014-09-20 17:36:56 +00:00
2014-09-22 10:13:18 +00:00
2014-09-29 01:19:39 +00:00
* **Shape Styles and Strokes**
* Shapes: respond to Ctrl (It's complicated)
* Handle patterns (black and white mode)
* Still needed for brush and fill and right click with the eraser tool (i.e. replace color)
* Check to make sure patterns are aligned properly for all the tools
* There's supposed to be a mapping between color values and pattern fills, used by the text tool and for the palette when switching between modes (colors should be kept between going to black and white mode and back)
### On-Canvas Objects
2019-09-20 16:34:14 +00:00
* `OnCanvasSelection`
* Proportionally resize selection while holding Shift
2018-01-18 06:56:44 +00:00
(or maybe by default? I feel like it should be the default, tbh.)
2014-11-27 16:27:58 +00:00
* Don't cut until you drag or do something else
2017-10-26 04:02:46 +00:00
(In MS Paint, you can make a selection, change the background color
and drag it, leaving the new background color behind.)
2019-09-20 16:34:14 +00:00
* `OnCanvasTextBox`
* See Text tool
2018-08-25 02:20:45 +00:00
### Desktop App (Electron)
2016-03-24 16:00:40 +00:00
Electron boilerplate stuff:
2019-02-16 18:42:34 +00:00
2018-08-24 01:45:25 +00:00
* [Set up Content-Security-Policy](https://electronjs.org/docs/tutorial/security)
* Remember window position/state
2018-08-24 02:50:10 +00:00
* Add icon to built executable
2018-08-24 01:45:25 +00:00
* Set up autoupdating
* Keep window hidden until loaded (`show: false`, [`ready-to-show`](https://electronjs.org/docs/api/browser-window#event-ready-to-show))
* Ideally name the executable `jspaint.exe` instead of `JS Paint.exe`
2019-02-16 18:42:34 +00:00
Functionality:
2018-08-25 02:20:45 +00:00
* A dialog when closing
* Subwindows as separate windows
* Document recovery without having to know about File > Manage Storage - pop up contextually with a dialog when you need it
2019-02-16 18:42:34 +00:00
* Show link URLs when you hover over them, in the status bar (because we have a status bar! haha) (there's this API: [event: update-target-url](https://github.com/electron/electron/blob/master/docs/api/web-contents.md#event-update-target-url), which gave me the idea, or it could be implemented with mouse events)
2018-08-25 02:20:45 +00:00
* Recent files (could also be implemented for 98.js.org in the future)
2018-11-15 07:44:46 +00:00
* Create a landing page / home page for the desktop app (similar to https://desktop.webamp.org/ or https://desktop.github.com/) - (perhaps https://desktop.jspaint.app/) - and/or for JS Paint in general (perhaps https://jspaint.app/about/)
2018-08-25 02:20:45 +00:00
* Remove usage of `prompt` (and ideally `alert`/`confirm` too! shouldn't be using these anyways!)
2019-02-16 18:42:34 +00:00
* macOS: `open-file` event, `setRepresentedFilename`, `setDocumentEdited` etc.
2018-11-15 07:44:46 +00:00
* Windows: maybe handle `session-end` event and ask to save?
* Detect if file changes on disk, ask if you want to reload it?
2016-03-24 16:00:40 +00:00
2014-08-16 01:57:01 +00:00
### Also
2014-10-18 06:34:44 +00:00
* Anything marked `@TODO` or `@FIXME` in the source code
2014-09-29 01:19:39 +00:00
* See [Issues on GitHub](https://github.com/1j01/jspaint/issues)
2014-09-29 01:19:39 +00:00
* Improve README
2015-10-19 19:11:10 +00:00
* More images! Animated GIFs perhaps? :)
2014-09-29 01:19:39 +00:00
* CSS
* DRY, especially button styles - SVG `border-image`?
2017-05-23 03:58:35 +00:00
* Comment stuff?
* Use a CSS preprocessor
* DRY
* Clearer `z-index` handling?
* Color-swap themes (maybe even load Windows theme files)
2016-09-24 06:03:50 +00:00
* Stuff should go in an OS GUI library with themes for Windows 98 and other OSes
2014-09-29 01:19:39 +00:00
* JS
2017-06-02 04:59:44 +00:00
* Everything is in random files! "`functions.js`", REALLY?
2016-03-24 16:00:40 +00:00
* `$Window` has a `$Button` facility; `$FormWindow` overrides it with essentially a better one
* Make code clearer / improve code quality: https://codeclimate.com/github/1j01/jspaint
2014-10-01 18:45:19 +00:00
2014-10-18 06:34:44 +00:00
* Images
2017-10-26 04:02:46 +00:00
* Use a shared sprite sheet per theme (and optimize it I guess)