Commit Graph
153 Commits
Author SHA1 Message Date
James Smith d00f30fdbb remove left/top from resize
not needed
2024-05-10 12:13:34 +01:00
James Smith 9b0f1a7201 somehow the camera got rotated 180 degrees. Weird 2024-05-10 10:46:35 +01:00
James Smith 5a70cdee1f use worker-compatible 3MF loader 2024-05-10 10:04:15 +01:00
James Smith 525ccca7d9 get controls keyboard inputs working 2024-05-09 17:15:03 +01:00
James Smith 02e2452746 load button click 2024-05-09 15:27:27 +01:00
James Smith b21dbbdf7e detect canvas intersection and autoload 2024-05-09 13:49:50 +01:00
James Smith 55116b3b6e refactor UI-side code into a class so we can encapsulate it for each canvas 2024-05-09 13:09:56 +01:00
James Smith 071e12b167 capture pointer events over canvas and prevent default behaviour 2024-05-09 12:38:45 +01:00
James Smith 7fc33167bf lint 2024-05-09 12:38:01 +01:00
James Smith cbaf3d195a fix orbit controls target 2024-05-09 11:57:43 +01:00
James Smith 8e3149af4f improve resize to handle position and pixel ratio as well as size 2024-05-09 11:57:35 +01:00
James Smith 5c009bfc60 typecheck: explicit string conversion 2024-05-09 10:09:38 +01:00
James Smith c90a022f0e lint: return types and string templating 2024-05-09 10:09:38 +01:00
James Smith 1571ba4e5c lint: indentation 2024-05-09 10:09:38 +01:00
James Smith dbcbb7a499 lint: autocorrections 2024-05-09 10:09:38 +01:00
James Smith 350ca7af91 some typing for the progress bars 2024-05-09 10:09:38 +01:00
James Smith 1a4a5e5afa stub preventDefault 2024-05-09 10:09:38 +01:00
James Smith 7f1401d9c7 make event transfer handler type safe 2024-05-09 10:09:37 +01:00
James Smith 186f29d385 some type safety improvements 2024-05-09 10:09:37 +01:00
James Smith 3fa34828ae remove unused ObjectPreview type 2024-05-09 10:09:37 +01:00
James Smith d2e72ded5d add type hint for real canvas 2024-05-09 10:09:37 +01:00
James Smith 8e63e716af rename ObjectPreview to OffscreenRenderer 2024-05-09 10:09:37 +01:00
James Smith f422494024 no need to export 2024-05-09 10:09:37 +01:00
James Smith f1fab2490f remove deprecated event types, we can do everything with pointer 2024-05-09 10:09:36 +01:00
James Smith 491ec5ecba rename back to CanvasProxy 2024-05-09 10:09:36 +01:00
James Smith 7dd072e6b2 limit frame rate to 60fps 2024-05-09 10:09:36 +01:00
James Smith 547b5e60a0 actual working orbit controls! 2024-05-09 10:09:36 +01:00
James Smith 89b284bff3 move actual offscreen canvas inside the proxy 2024-05-09 10:09:36 +01:00
James Smith 0e6cb88aec move DOMElementProxy to its own file 2024-05-09 10:09:36 +01:00
James Smith a7dec86fe3 pass UI events through to web worker 2024-05-09 10:09:35 +01:00
James Smith 16cf683da1 link up load progress and get UI to prompt loading 2024-05-09 10:09:35 +01:00
James Smith e640b83781 simplify worker communication with comlink 2024-05-09 10:09:35 +01:00
James Smith df30aa7e03 remove old commented code 2024-05-09 10:08:05 +01:00
James Smith 878485384f add in requestAnimationFrame to rendering process 2024-05-09 10:08:05 +01:00
James Smith 4d1f97a08e move setup into constructor 2024-05-09 10:08:05 +01:00
James Smith 280f39b937 handle resizing and proper settings of canvas resolution 2024-05-09 10:08:05 +01:00
James Smith 44eda31c46 increase canvas resolution to a fixed but higher amount 2024-05-09 10:08:05 +01:00
James Smith ef6313dbbd basic progress bar operational 2024-05-09 10:08:04 +01:00
James Smith 51655bbafd working offscreen rendering 2024-05-09 10:08:04 +01:00
James Smith d9c67cfe19 set aria-disabled on active indicator 2024-05-02 22:08:47 +01:00
James Smith 2e9d682ca4 fix pause state updating
and disable pause-on-focus behaviour until we can work out how to differentiate keyboard and mouse focus
2024-05-02 21:36:43 +01:00
James Smith 7a4e57607c set aria-live attribute dynamically 2024-05-02 15:28:12 +01:00
James Smith 624e93cbe2 add more accessible rotation control code 2024-05-02 15:01:44 +01:00
James Smith 036d08ddde fix aria-valuenow percentage display 2024-04-22 16:06:34 +01:00
James Smith 7593a33480 fix scan button by moving i18n load after Rails.start() 2024-02-16 22:26:21 +00:00
James Smith 8954416c2c add i18n to window in typecheck 2024-02-07 15:33:00 +00:00
James Smith c5f900db05 add i18n for strings in 3d renderer javascript 2024-02-07 14:18:56 +00:00
James Smith 01a896b024 Load javascript-side translations 2024-02-07 14:15:50 +00:00
James Smith 075ff031d5 remove actioncable boilerplate 2024-01-30 09:03:00 +00:00
James Smith dcb1b19006 rename root modules 2023-12-05 22:22:05 +00:00