Commit Graph

53 Commits

Author SHA1 Message Date
hey24sheep
39e10560c9 increased zoomRatio to 0.005 2021-09-17 14:07:54 +05:30
kovacsv
f9e8be8ed0 Make ctrl+zoom dependent of mouse movement diff, and clean-up code. 2021-09-17 08:07:26 +02:00
hey24sheep
089f4a0fc9 disable zoom on movement along x-axis 2021-09-16 16:38:53 +05:30
hey24sheep
31f58ade96 ctrl zoom feature 2021-09-13 22:17:34 +05:30
kovacsv
9bdd924b2f Remove mesh isolation by ctrl+click. 2021-08-17 19:28:22 +02:00
kovacsv
471a6cd3fa Minor modification. 2021-08-17 19:20:44 +02:00
kovacsv
fe2836d632 Do not prevent default event for handlers that registered for the whole document, because in this case selection won't work. 2021-08-15 19:13:41 +02:00
kovacsv
9901ba1f4c Add sphere to function names where a sphere is expected. 2021-07-27 08:14:31 +02:00
kovacsv
743c4dcf1b Remove unused variable. 2021-07-25 16:44:11 +02:00
kovacsv
9405aff3dd Make mesh visibility options available from context menu #102 2021-07-24 13:49:22 +02:00
kovacsv
d992b42541 Use arrow callback instead of function. 2021-07-22 21:11:58 +02:00
kovacsv
e49bd60561 Add the possibility to add environment map to self-hosted viewer. 2021-07-20 21:08:02 +02:00
kovacsv
3f30909b2e Use Physically Based Rendering when possible #99 2021-07-19 19:31:12 +02:00
kovacsv
682976075d Add more self-host examples. 2021-07-17 21:49:29 +02:00
kovacsv
239a4df91c Add possibility to init only one viewer manually. 2021-07-17 09:50:23 +02:00
kovacsv
ec4bc495a2 Add reset to defaults button to settings panel. 2021-07-13 06:42:30 +02:00
kovacsv
fec23eb236 Add more eslint rules. 2021-07-12 18:41:38 +02:00
kovacsv
5851aedb1d Use arrow callbacks everywhere. 2021-07-12 08:49:12 +02:00
kovacsv
b063321a5b Rename url parameters for default and background color. 2021-07-11 15:44:22 +02:00
kovacsv
2b38556eff Change canvas background color #85 2021-06-25 08:41:34 +02:00
kovacsv
14d11a0c41 Set background color when using the viewer on your website #92 2021-06-24 19:36:15 +02:00
kovacsv
f4b8ca18c6 Callback instead of return value because of async loading. 2021-06-24 18:24:12 +02:00
kovacsv
5a027f193f Return the created viewer elements so later modifications are possible. 2021-06-24 18:20:33 +02:00
Viktor Kovacs
756c6376c2 Visual glitches on mobile #75 2021-06-03 08:29:12 +02:00
Viktor Kovacs
377ab38e6c All materials render black on some mobile devices #69 2021-05-29 14:07:41 +02:00
Viktor Kovacs
e9509d1696 Use wheel event instead of deprecated DOMMouseScroll and mousewheel. 2021-05-09 15:38:32 +02:00
Viktor Kovacs
31635229af Remove dead code (also contained a typo). 2021-05-09 15:21:59 +02:00
Viktor Kovacs
7b7a989b1e Fix object detection under mouse. 2021-05-05 08:09:08 +02:00
Viktor Kovacs
72e45a8030 Separate class to store geometry. 2021-04-30 07:49:36 +02:00
Viktor Kovacs
0d329ea37b Add Rhino exporter. 2021-04-25 18:01:52 +02:00
Viktor Kovacs
b47d6b0ce4 Maintain device pixel ratio during resize, so the render won't be blurry when the users set the scale for the whole webpage. 2021-04-25 15:33:36 +02:00
Viktor Kovacs
ba0d642512
Revert "Add optional edge displaying and settings" 2021-04-25 15:19:17 +02:00
X-Ryl669
8a5782b8ec Add optional edge displaying and settings 2021-04-23 17:55:35 +02:00
Viktor Kovacs
8c6029d52d Hi-DPI aware #60
Take device pixel ration in consideration when initializing renderer and when saving to a fixed size png.
2021-04-22 08:10:43 +02:00
Viktor Kovacs
2740de7098 Handle invalid camera when moving. 2021-04-20 15:20:11 +02:00
Viktor Kovacs
615bab3c4d Do not call camera move when the new camera is invalid. 2021-04-20 15:17:05 +02:00
Viktor Kovacs
3f5d29f9fc Handle instances in rhino importer. 2021-04-16 14:47:18 +02:00
Viktor Kovacs
e9305ba33c Export as png #39 2021-04-11 12:24:41 +02:00
Viktor Kovacs
3607ab3649 Always use texture buffer instead of url in case of export. 2021-04-09 08:25:00 +02:00
Viktor Kovacs
6fbbdf4b69 Make a parameter from default color instead of the a member in importer. 2021-04-07 15:07:12 +02:00
Viktor Kovacs
8a29a6c682 Default color handling (switched off). 2021-04-05 12:22:59 +02:00
Viktor Kovacs
ca4e0ef1d4 Default color handling during embedding and engine usage. 2021-04-05 10:20:26 +02:00
Viktor Kovacs
d43477d726 Self-hosted viewers should detect size automatically based on the size of the container div #43
Now the viewer's size is based on the parent container's size (not the width and height attribute) so it's possible to style the parent container with css and even use it in fullscreen.
2021-04-02 18:52:00 +02:00
Viktor Kovacs
cafb7171f9 Add parameter handling utilities. 2021-04-02 10:49:01 +02:00
Viktor Kovacs
8e7bebaf5f Rename urlutils to paramutils. 2021-04-02 10:38:53 +02:00
Viktor Kovacs
6d23481619 Use the camera recommended by the importer in case of no camera defined during embedding or self-hosting. 2021-04-02 10:05:47 +02:00
Viktor Kovacs
473da09052 Add function to reload the same model again. 2021-04-02 10:05:18 +02:00
Viktor Kovacs
d8aa2feac3 Separate entities for url parameter handling. 2021-04-01 15:04:17 +02:00
Viktor Kovacs
c770b84e26 Replace tabs with spaces everywhere. 2021-03-31 18:02:14 +02:00
Viktor Kovacs
e48c1b51e1 Pan with middle mouse #41 2021-03-31 16:20:50 +02:00