Fabians
4699e6794c
reformatting again for 88 width
2022-04-04 19:21:28 +03:00
Fabians
1c7436e7ff
extra prefer-const & object-shorthand
2022-04-04 19:00:24 +03:00
Gergő Jedlicska
569b4688fa
style(all): reformat with print width 88
2022-03-29 19:46:49 +02:00
Fabians
aa5e94d640
chore: reformatting everything with prettier
2022-03-29 17:12:31 +03:00
Gergő Jedlicska
eea8ef0380
Merge branch 'main' into dim/bubbles
2022-03-16 15:54:46 +01:00
Dimitrie Stefanescu
7c7035ac6d
feat(viewer): adds a zoom to object id function
...
see relevant discussion here:
https://speckle.community/t/camera-positioning-in-speckle-viewer/2394/10
2022-02-23 19:01:28 +00:00
Dimitrie Stefanescu
43f422c30e
feat(viewer): extra overlay capabilities + better selection logic (fixes dupe selection)
2022-02-08 12:13:07 +00:00
Dimitrie Stefanescu
8dc6cc790b
feat(viewer): adds extra selection info & get section box method
2022-02-06 19:56:58 +00:00
Dimitrie Stefanescu
48a6c0f69c
feat(frontend): syncs selection, updates logic to include selection target in pos
2022-02-06 18:42:56 +00:00
Dimitrie Stefanescu
8792319545
feat(frontend): more bubbles legwork
2022-02-05 10:49:11 +00:00
cristi8
ad1624ef37
viewer fixes
2022-01-17 13:22:59 +02:00
Cristian Balas
1f378b9823
Viewer fixes ( #495 )
2021-12-13 18:06:09 +02:00
Dimitrie Stefanescu
18f0140465
fix(viewer/frontend): fixes aspect ratio refresh and camera NaN position on ze
...
this was a really fustrating debug session: because we're setting `display:none` on the renderer dom
element if the vue renderer comp is destroyed (to keep one instance alive always), this would
trigger the on window resize function. In turn, this would set the camera aspect ratio from a div
thats 0x0px. Needless to say, things would refuse to work thereafterwards and a full page refresh
would be needed to reinstantiate the renderer.
2021-11-23 23:23:24 +00:00
Dimitrie Stefanescu
aa493632bc
feat(viewer): handles block selection correctly
2021-11-16 20:14:44 +00:00
Dimitrie Stefanescu
c53789fd89
feat(viewer): latest changes with @cristi8's help on block selection (still WIP)
2021-11-16 18:33:39 +00:00
Dimitrie Stefanescu
5ac2ff3f80
feat(viewer): clipping planes: impl in filtering materials; hidden in screenshots
2021-11-16 07:10:12 +00:00
Dimitrie Stefanescu
f5e6e14dd4
feat(viewer): better ortho clipping handling
2021-11-15 09:09:45 +00:00
Dimitrie Stefanescu
77038046db
feat(viewer): adds special handling of front/top/etc views in ortho mode
2021-11-14 21:15:17 +00:00
Dimitrie Stefanescu
b589508fdb
feat(viewer): fixes ortho camera zooms/bounding/etc
2021-11-14 20:09:58 +00:00
Dimitrie Stefanescu
a5e626b17b
feat(viewer): tyding up a bit
2021-11-14 11:14:02 +00:00
Dimitrie Stefanescu
2562094d58
feat(viewer): various fixes, fiddles
2021-11-14 11:13:23 +00:00
Dimitrie Stefanescu
fb546f5a39
feat(viewer): fixes some weird edge cases on ortho camera
...
(a few more remain)
2021-11-13 17:56:50 +00:00
Dimitrie Stefanescu
c6e2a26c39
feat(viewer): better selection handling post rotations
2021-11-13 16:59:38 +00:00
Dimitrie Stefanescu
235faf8c09
feat(viewer): adds ortho camera 🧊
2021-11-13 14:28:55 +00:00
Dimitrie Stefanescu
f34e89f564
feat(viewer): section box + more
2021-11-12 20:27:45 +00:00
cristi8
38eca4dbdc
WIP viewer
2021-10-25 15:46:37 +03:00
Dimitrie Stefanescu
3a3fd7d963
refactor(viewer): linting yay
2021-07-05 09:11:44 +01:00
Dimitrie Stefanescu
921a82caee
style(viewer): cleanup
2021-05-20 17:56:39 +01:00
Dimitrie Stefanescu
90abe98986
feat(viewer): handles block object selection
2021-05-20 17:54:47 +01:00
Dimitrie Stefanescu
3e95142a36
feat(viewer): adds support for 🌈 meshes
2021-05-10 22:15:05 +01:00
Dimitrie Stefanescu
b1f963451f
feat(viewer): adds handling for named views (partly closes #193 )
2021-05-10 17:15:44 +01:00
Dimitrie Stefanescu
f327aa5f8a
improvement(viewer): selection events now emit actual object user metadata
2021-05-07 12:13:42 +01:00
Dimitrie Stefanescu
23ef3e8f30
feat(viewer): adds method to customise camera max polar angle at runtime
...
this controls wether the camera can look from down upwards - by default this is off, but now it can
be easily re-enabled.
2021-04-26 21:11:03 +01:00
Dimitrie Stefanescu
acc5e75528
fix(viewer): adds null checks on obj doubleclick events
2021-04-26 20:57:22 +01:00
Dimitrie Stefanescu
5eeeae53a1
feat(viewer): adds selection & doubleclick events
2021-04-26 20:57:03 +01:00
Dimitrie Stefanescu
a5dcff873e
feat(viewer): adds buttons for some of the new functionality in the example app
2021-04-23 20:02:08 +01:00
Dimitrie Stefanescu
3165b8ad01
feat(viewer): adds rotateTo func for top, bottom, side, etc. views
2021-04-23 19:47:29 +01:00
Dimitrie Stefanescu
f3ada78463
feat(viewer): adds native screenshot capability (image/png)
2021-04-23 16:21:38 +01:00
Dimitrie Stefanescu
c11630fc14
feat(viewer): adds several optional parameters to various functions
...
(1) post load function skipping; (2) zoom fit; (3) zoom transitions; (4) camera rotation;
2021-04-23 15:34:40 +01:00
Dimitrie Stefanescu
400f01baf6
fix(viewer): selecting curves now working as it should
...
split up selection handling logic per object type, and not supporting points because of bbox issues
and general zoom to object constraints (for now)
2021-02-25 19:08:27 +00:00
Dimitrie Stefanescu
fd03ed789b
feat(viewer): adds optional inclusion box test for selection helper
2021-02-21 22:42:59 +00:00
Dimitrie Stefanescu
73dca8dc3a
refactor(viewer): cleanup
2021-02-21 22:02:22 +00:00
Dimitrie Stefanescu
0cd249dc51
feat(viewer): adds zoom on section box toggle
2021-02-21 21:24:28 +00:00
Dimitrie Stefanescu
399982c519
refactor(viewer): moved zoom methods to interactions class & refactored clipping planes assignment
2021-02-21 21:19:58 +00:00
Dimitrie Stefanescu
6abf2d7e14
feat(viewer): interaction methods for section boxes
2021-02-21 21:11:58 +00:00
Dimitrie Stefanescu
6fe560840e
feat(viewer): section box now 💯
2021-02-21 13:39:44 +00:00
Dimitrie Stefanescu
db2a3f01f6
feat(viewer): intermeidate step
2021-02-20 23:05:54 +00:00