Oscar Lorentzon
96411ce1cd
chore: update dependencies
2022-07-26 15:37:51 -07:00
Oscar Lorentzon
4a9551f6dd
test: camera projection
2022-07-26 09:34:30 -07:00
Oscar Lorentzon
f8fed7c19e
feat: export geometry functionality to public api
2022-07-26 09:34:30 -07:00
Oscar Lorentzon
8b59a86e66
test: add tests for projection service
2022-07-26 09:34:30 -07:00
Oscar Lorentzon
40a2d5e539
feat: add camera factory
...
Make it possible to register camera constructors.
Register default cameras.
Use camera factory when creating cameras.
2022-07-26 09:34:30 -07:00
Oscar Lorentzon
aeb2a506c3
fix: deactivate combined panning when not traversing
...
Combined panning is only relevant in street
level traversing states.
2022-06-03 16:41:47 -07:00
Oscar Lorentzon
91033ec93d
test: viewer and observer reset
2022-05-25 12:19:29 -07:00
Oscar Lorentzon
94cd65f581
feat: reset api method
...
Add viewer method to reset the internal state
by clearing the cache.
2022-05-25 12:19:29 -07:00
Oscar Lorentzon
3ac8f4459f
chore: remove slider component support
...
Breaking change removing the slider component completely.
2022-04-08 15:31:59 -07:00
Oscar Lorentzon
56618819b2
feat: gravity aligned traversing state
...
Rotate virtual camera to align with world gravity vector.
2022-03-11 17:07:18 -08:00
Oscar Lorentzon
a92b8716fd
test: emit position on reference change
2022-03-07 21:18:54 -08:00
Oscar Lorentzon
45a87c42c1
fix: handle focal and zoom interpolation properly
2022-02-01 19:27:54 -08:00
Oscar Lorentzon
7dca0186af
feat: add method to check if controls are attached
2022-01-30 12:12:14 -08:00
Oscar Lorentzon
3b38f5f25c
refactor: use delta instead of fps
2022-01-30 11:41:38 -08:00
Oscar Lorentzon
acea32b591
refactor: use smooth step instead of unit bezier
...
Remove UnitBezier dependency to simplify code,
limit the number of dependencies, and avoid
workarounds for unit tests.
2022-01-30 11:41:38 -08:00
Oscar Lorentzon
6899e78810
chore: upgrade threejs
2021-11-30 20:27:08 -08:00
Oscar Lorentzon
c6c2dcc0d9
chore: include flow declarations in distribution
...
Script to generate flow declarations from typescript
declarations.
Manually edit flow types to remove errors.
2021-11-10 21:05:05 +01:00
Oscar Lorentzon
b3c694f0b9
fix: detach custom camera controls correctly
...
Only detach once. Unit test.
Return camera controls in promise when detaching.
2021-11-08 16:30:29 +01:00
Oscar Lorentzon
a1df915da4
fix: viewer configuration as observables
...
Avoid setting static properties which affects
all future Viewers created in the same app.
Use observables instead.
2021-06-10 07:36:05 +02:00
Oscar Lorentzon
ecd856099a
feat: replace default data provider
...
Remove Falcor data provider and dependencies.
Add Graph API data provider.
Unit test.
2021-06-07 15:03:11 +02:00
Oscar Lorentzon
150bad00e3
fix: throw if graph image did not exist
...
Improve error message for non existing images.
2021-06-03 08:22:24 +02:00
Oscar Lorentzon
0d904a641b
fix: remove event listeners correctly
2021-06-03 08:04:17 +02:00
Oscar Lorentzon
11858978a2
refactor: rename mouse to pointer component
2021-05-24 09:37:26 +02:00
Oscar Lorentzon
ce785f5a5f
docs: add viewer options example
2021-05-24 08:37:19 +02:00
Oscar Lorentzon
494a5464f0
feat: clarify token and provider handling
...
Separate token and provider options.
Rename viewer token method for clarity.
Use access token wording everywhere.
2021-05-22 12:07:41 +02:00
Oscar Lorentzon
0691f7151b
docs: add custom render examples
2021-05-18 07:25:20 +02:00
Oscar Lorentzon
eae2a025ac
fix: do not rename error in external export
2021-05-04 08:15:43 +02:00
Oscar Lorentzon
03b50a99b0
fix: render visible items on spatial activation
...
Replay all cells for all subscriptions.
Ensure that valid spatially visualized
cells are not uncached in graph.
Reset scene completely on deactivation.
2021-05-04 08:01:35 +02:00
Oscar Lorentzon
89896b7de1
feat: export all errors externally
2021-05-03 10:43:28 +02:00
Oscar Lorentzon
4ddab59fce
feat: clamp tile level with min request level
...
Ensure that tiles are always requested.
2021-05-03 10:05:30 +02:00
Oscar Lorentzon
dd73429756
fix: invoke custom control methods only when active
2021-05-03 09:38:59 +02:00
Oscar Lorentzon
c82a780d6e
refactor: subscribe to pointer instead of mouse events
2021-05-03 09:28:18 +02:00
Oscar Lorentzon
983736f4d4
fix: handle custom state separately in spatial
2021-05-03 09:19:18 +02:00
Oscar Lorentzon
40d03e8d84
fix: set initial camera controls correctly
2021-05-03 08:54:13 +02:00
Oscar Lorentzon
6239a952b7
feat: spatial cell grid depth option
2021-04-29 22:15:15 +02:00
Oscar Lorentzon
8f5ad1c560
test: unit test spatial octree functionality
2021-04-29 22:15:15 +02:00
Oscar Lorentzon
7dba213f69
feat: emit load event on initial load
2021-04-29 21:59:45 +02:00
Oscar Lorentzon
bda990160d
feat: reuse tile url requests
...
Do not add urls if they already exist.
2021-04-29 21:47:43 +02:00
Oscar Lorentzon
43927cb1a7
test: unit test custom camera controls api
2021-04-27 08:23:04 +02:00
Oscar Lorentzon
1a03b04af9
feat: custom camera controls api
...
Allow MJS to be controlled by any camera
interaction logic through a custom
camera controls API with an interface
defining the required methods to
implement.
2021-04-27 08:23:04 +02:00
Oscar Lorentzon
f95fcdf765
feat: configurable initial camera controls
2021-04-24 16:12:14 +02:00
Oscar Lorentzon
2142e83c02
refactor: validate state transition in context
2021-04-24 16:12:14 +02:00
Oscar Lorentzon
5f39ab000b
refactor: make merge id string for consistency
2021-04-23 22:12:39 +02:00
Oscar Lorentzon
08ccde0ab2
feat: camera control mode api
...
Add camera control mode method to viewer
to give API user control over state
transitions between earth and street.
2021-04-23 18:28:17 +02:00
Oscar Lorentzon
b1dfb0f8d4
refactor: remove changed suffix from event
2021-04-23 18:28:17 +02:00
Oscar Lorentzon
20c36c8915
refactor: remove unused cluster contracts
2021-04-23 18:28:17 +02:00
Oscar Lorentzon
c3b3d8eb2a
feat: typed component names
2021-04-23 18:28:17 +02:00
Oscar Lorentzon
34e1416c2f
fix: types for filter expressions
2021-04-23 18:28:17 +02:00
Oscar Lorentzon
988c7a3362
refactor: simplify component names
2021-04-23 18:28:17 +02:00
Oscar Lorentzon
9dab08e250
refactor: clearer separation for fallback components
2021-04-23 18:28:17 +02:00