Commit Graph
53 Commits
Author SHA1 Message Date
James Smith 0a3b7ddac3 set renderer size to full canvas resolution, for pixel-perfect renderings. Resolves #452 2022-05-02 17:47:26 +01:00
Matthew Page e7188a4af5 lint fixes 2022-04-26 15:19:31 -07:00
Matthew Page 72379702b7 fix updating and add tests 2022-04-26 14:54:13 -07:00
Matthew Page b5e545e801 wip 2022-04-26 10:54:32 -07:00
Matthew Page 397753e7a1 wip 2022-04-22 09:37:29 -07:00
Matthew Page 849b356dd1 update to use selectize 2022-04-19 17:08:21 -07:00
Matthew Page 72bd274702 Minor tweaks to preview 2022-04-15 16:25:51 -07:00
Matthew Page 3f73298014 tslint fix 2022-04-15 11:15:11 -07:00
Matthew Page 7b216aad08 add support for select all to bulk edit 2022-04-13 09:47:22 -07:00
James Smith fba31060d5 offset default view in X 2022-01-06 22:02:21 +00:00
James Smith 2b89f4a9cf change Part to File, and combine with images 2022-01-06 17:14:30 +00:00
James Smith 90eceabe16 Configure grid size in mm with GRID_SIZE environment variable 2021-06-17 17:21:48 +01:00
James Smith b8758c725b calculate 10mm grid density automatically from size 2021-06-17 14:36:15 +01:00
James Smith 903ac34eff Disable zoom on model previews 2021-06-17 14:34:59 +01:00
James Smith a61f2d8014 show loading progress 2021-04-01 19:51:04 +01:00
James Smith c62d469c02 add loaders for 3mf and ply in view 2021-04-01 19:50:25 +01:00
James Smith aa59afe99b Replace rotation with orbit controls. Resolves #79
We could add autorotate back in easily using the autorotate property on orbitcontrols
2021-03-21 21:54:42 +00:00
James Smith a67c11d210 basic ts-standard linting 2021-03-19 11:44:10 +00:00
James Smith 95e5678d12 change all js to ts files 2021-03-19 10:30:19 +00:00
James Smith 728fb8b95d apply y_up setting to renderer 2021-03-19 10:30:18 +00:00
James Smith a452b09f93 fix cleanup errors 2021-03-07 01:34:40 +00:00
James Smith a10458720e start animation loop on load and cleanup when canvas goes off screen 2021-03-07 01:04:29 +00:00
James Smith e0c1cce089 only set up three.js context when the canvas becomes visible 2021-03-07 00:34:34 +00:00
James Smith 3f739cda2d don't need loading flag, intersection observer only fires on appear or disappear by default 2021-03-07 00:31:04 +00:00
James Smith 7e7114db65 refactor javascript into setup and onBecomeVisible methods 2021-03-07 00:22:59 +00:00
James Smith 58e15811bc use cocoon to edit model links 2021-03-01 23:20:54 +00:00
James Smith 68e51c49f2 Merge pull request #54 from Floppy/obj-loading
Load OBJ files properly
2021-02-25 01:45:54 +00:00
James Smith 38b1efec3a load all geometry from OBJ files
resolves #33
2021-02-25 01:40:50 +00:00
James Smith 2bd2ef0f82 temporary refactor of object creation 2021-02-25 01:33:52 +00:00
James Smith 87c8f83052 remove redundant THREE.Group 2021-02-25 01:29:57 +00:00
James Smith 906040eb24 add grid helper to scene, not loaded object 2021-02-24 22:59:03 +00:00
James Smith 59558c0fcf rotate entire scene 2021-02-24 22:58:30 +00:00
James Smith 3088e0940c automatically dispose of all geometry and materials in the scene 2021-02-24 22:56:51 +00:00
James Smith 96d36878e8 add bootstrap icons and make part buttons more compact 2021-02-24 00:14:49 +00:00
James Smith 98fcfb9e59 fix lint problems 2021-02-22 10:00:12 +00:00
James Smith f70776be7c Only load when the canvas becomes visible 2021-02-20 18:38:20 +00:00
James Smith f84913299b refactor preview renderer into a class 2021-02-20 18:14:08 +00:00
James Smith 9d9390ff16 shonky hack to show something for multi-mesh OBJ files 2021-02-13 11:45:47 +00:00
James Smith e24b9796be lint js 2021-02-09 22:03:02 +00:00
James Smith f196e73193 lets go synthwave 2021-02-09 22:03:02 +00:00
James Smith 15981ccea2 improve positioning 2021-02-09 22:03:01 +00:00
James Smith 64f5e32cde clean up after, and show a grid 2021-02-09 22:03:01 +00:00
James Smith 8a61f9c46a Load previews when turbolinks changes page 2021-02-09 22:03:01 +00:00
James Smith 15536f59a4 Replace lighting with flat shading based on normal direction
should be nice and fast
2021-02-09 22:03:00 +00:00
James Smith ec723c727f lint javascript and fix reports 2021-02-09 22:02:59 +00:00
James Smith dae88a8512 autocentre objects in view 2021-02-09 22:02:58 +00:00
James Smith 2d46211238 add stL loading 2021-02-09 22:02:57 +00:00
James Smith f510a59412 x rotation is weird, let's not do it 2021-02-09 00:14:42 +00:00
James Smith 89220b34e1 load OBJ files and render them 2021-02-08 23:08:01 +00:00
James Smith f1253dbacf auto fif to canvas area 2021-02-08 22:25:43 +00:00