Isaiah Odhner
56617c993f
Fix a minor thing
2019-10-27 01:14:10 -04:00
Isaiah Odhner
f046671ee3
Update TODO
2019-10-27 01:11:41 -04:00
Isaiah Odhner
4d84d55080
Make body background same as background_color
2019-10-27 00:35:06 -04:00
Isaiah Odhner
f817876612
Draw Randomly more reproducibly
2019-10-27 00:05:52 -04:00
Isaiah Odhner
953107a65c
Automatically dedupe helper layer updates
...
This way I don't need to think about it.
2019-10-26 18:00:29 -04:00
Isaiah Odhner
6f2476d10b
Update news
2019-10-26 17:34:16 -04:00
Isaiah Odhner
6e1f523d1b
Make it easier to update news
2019-10-26 17:28:48 -04:00
Isaiah Odhner
254a448aa8
Paste selection in top left of viewport
2019-10-26 17:28:07 -04:00
Isaiah Odhner
3a1f4a37ca
This is not an issue
...
It zooms to 4x, which isn't one of the options.
2019-10-26 16:53:40 -04:00
Isaiah Odhner
59e680bc6a
Implement inverty rectangle for viewport preview
2019-10-26 16:48:53 -04:00
Isaiah Odhner
455051d91c
Show accurate preview rect near bounds of canvas
2019-10-26 14:50:24 -04:00
Isaiah Odhner
e6350ff7f7
Rescale viewport when zooming
...
For zooming out with the Magnifier tool, and zooming in other ways.
2019-10-26 14:15:43 -04:00
Isaiah Odhner
6ac7fe726a
Fix rendered preview when zooming out
2019-10-26 13:55:41 -04:00
Isaiah Odhner
6ff574baf0
Preview and zoom to specific viewport
2019-10-26 13:47:49 -04:00
Isaiah Odhner
3e0ca7a687
Hide preview if you would be zooming out
2019-10-26 13:35:42 -04:00
Isaiah Odhner
47bb0b075b
Zoom towards mouse generally
...
Start implementing viewport preview and zooming in on a specific location
2019-10-26 13:25:26 -04:00
Isaiah Odhner
229c5122cc
Fix typo
2019-10-26 12:57:43 -04:00
Isaiah Odhner
252fce7abd
Prevent layout shift while loading
...
Fix dynamic cursor offset if you 1. load a new empty session (remove the whole hash from the URL), 2. switch to the brush or eraser tool, 3. see the cursor offset on the canvas
Fix flash of UI where there's no menu bar while loading, that caused the shift in UI that caused the cursor offset to be wrong.
2019-10-26 12:30:41 -04:00
Isaiah Odhner
a911ccdfa3
Move this as well
...
It's asynchronous so it should technically be fine but it feels better down here.
2019-10-25 15:52:10 -04:00
Isaiah Odhner
5a31607837
Fix canvas visual & logical size mismatch
...
If you used the handles to size the document, and then loaded an empty document by opening the app in a new tab, it would show the canvas as if it was the default-default size but actually using your new custom default size for the resolution.
`$canvas_area.on("resize", ...)` handler was not registered soon enough in the setup
2019-10-25 15:46:52 -04:00
Isaiah Odhner
d59779dcfe
Refactor
2019-10-24 20:12:56 -04:00
Isaiah Odhner
249e5a4497
Don't show complex message when undoing
2019-10-24 20:08:52 -04:00
Isaiah Odhner
5c2b7c7d4e
Name return
2019-10-24 20:01:49 -04:00
Isaiah Odhner
d29bc6c2bd
Fix logic
2019-10-24 20:01:41 -04:00
Isaiah Odhner
1cd48cabfc
Improve recovery dialog
2019-10-24 20:01:41 -04:00
Isaiah Odhner
89d3f038ed
Merge the two dialogs
...
They both should have the disclaimer that autosave is disabled while the dialog is open, and they could just be one.
2019-10-24 17:31:23 -04:00
Isaiah Odhner
1465076675
Allow undoing multiple times in restore dialog
2019-10-24 17:23:13 -04:00
Isaiah Odhner
bf71a767af
Warn user when browser clears canvas due to memory usage
...
TODO: detect selection canvas going blank
TODO: allow undoing multiple times
2019-10-23 17:38:51 -04:00
Isaiah Odhner
bc69f1a794
Clamp brush sizes after context loss
...
just in case
2019-10-23 16:42:38 -04:00
Isaiah Odhner
3ae98432c5
Restore brush after context loss
2019-10-23 16:42:38 -04:00
Isaiah Odhner
dbb9cb5d32
Handle WebGL context loss
2019-10-21 23:43:16 -04:00
Isaiah Odhner
689c22b83c
Rescale pointer position when zooming
2019-10-21 17:10:07 -04:00
Isaiah Odhner
37683461f4
Fix accessing pointer which might not exist
...
e.g. if you select the brush and zoom the browser without moving the mouse over the canvas beforehand
2019-10-21 17:08:52 -04:00
Isaiah Odhner
08d120d543
Improve performance!
2019-10-21 14:34:03 -04:00
Isaiah Odhner
1501b6a6a4
Abut them buttons!
2019-10-21 13:28:12 -04:00
Isaiah Odhner
c87f8b483b
Fix text toolbar button icon centering
...
Don't ask me why that was there
2019-10-21 13:21:44 -04:00
Isaiah Odhner
a98cf0f473
Clean up and disable vertical text button
2019-10-21 13:10:55 -04:00
Isaiah Odhner
0ff1ca16f6
Fix font selector showing as empty in some cases
...
- Case one: Font box shown, then shown again; this didn't work because the serialized value needed was `"Arial"` (quoted) not `Arial`
- Case two: Font box shown before font availability data loaded
- Make it easier to avoid name collision bugs by renaming the global `font` -> `text_tool_font`
- Include other properties that belong to that object in its initialization (as documentation)
2019-10-21 12:17:06 -04:00
Isaiah Odhner
14cb62f2fd
Flash is dead; update Font Detective
2019-10-21 12:07:14 -04:00
Isaiah Odhner
779eacf7ee
Make window close buttons accessible in small viewports
2019-10-18 20:51:37 -04:00
Christian Liebel
d30843a089
Apply window bounds after pointerup
2019-10-18 20:51:36 -04:00
Christian Liebel
b051c2b6c9
Assign high z-index to popups instead of menu bar
2019-10-18 20:51:36 -04:00
Isaiah Odhner
ce2c5ab45e
Fix shape stroke offset (for line width > 1)
...
Broken in c871f14b6d
(found with git bisect)
2019-10-10 20:28:25 -04:00
Isaiah Odhner
61b22adbc6
Redesign layout of About Paint
...
Move the View Project News button into the header row.
2019-10-10 12:19:20 -04:00
Isaiah Odhner
aed00ce022
WIP no relayout on load
2019-10-10 11:23:51 -04:00
Isaiah Odhner
b6cf2e0289
Make news window max size smaller
...
This way it highlights the news at the top more, gives it more importance.
2019-10-10 00:42:53 -04:00
Isaiah Odhner
232af6e981
Simplify news styles
2019-10-10 00:41:49 -04:00
Isaiah Odhner
9eb2a871fe
Fix event listeners after closing About Paint
2019-10-10 00:31:32 -04:00
Isaiah Odhner
4b074f6cc4
Move news styles into `#news > style`
...
This way it'll use the CSS defined for the HTML its using.
2019-10-10 00:11:11 -04:00
Isaiah Odhner
5d7d135ed8
View Project News from Help > About Paint
2019-10-09 23:34:21 -04:00