120 Commits

Author SHA1 Message Date
Oscar Lorentzon
204e45c89a refactor: use spherical literal for panoramas 2021-03-22 11:56:49 +01:00
Oscar Lorentzon
d7417c0dde refactor: precompute camera matrix inverses
Improve performance for tags, popups, spatial,
render camera etc by avoiding costly
matrix inversion for each unproject.
2021-03-22 11:56:49 +01:00
Oscar Lorentzon
c40d25ab00 refactor: rename key to id 2021-03-22 11:56:49 +01:00
Oscar Lorentzon
dd2fc56539 refactor: replace pano with spherical 2021-03-16 08:19:29 +01:00
Oscar Lorentzon
15b3e6a27d chore: remove deprecated functionality
Remove double click zoom handler becasue of interfering
behavior, unused components, deprecated configuration
values.
2021-03-16 08:19:29 +01:00
Oscar Lorentzon
b562a0b06c chore: build with rollup
Migrate to Rollup.
Emit umd, minified umd, module, type declarations
and source maps.
Work around problems with Falcor by using
virtual module.

Migrate to Jest.
Run tests in with CommonJS modules becasue ES6
is not supported.
Work around dependency problems by bootstrap
to ensure they are not loaded during test.

Remove all unused dependencies.

Create state transition matrix to avoid
circular dependencies.

chore: tsc and rollup watch build
chore: incremental watch build
Remove unused dependencies.
chore: use existing type packages
chore: mock favicon
chore: improve watch build
chore: fix styles build
chore: specific commonjs build for tests
chore: reset spec files
refactor: explicit state transition matrix
chore: make src commands work
chore: working unit tests and lib
chore: add serve docs script
chore: remove unused bundle config
chore: refactor rollup config to avoid duplication
fix: falcor imports
fix: transition from source to target

Fixes #87
Fixes #100
Fixes #159
Fixes #208
2021-03-15 11:23:22 +01:00
Oscar Lorentzon
491f9c04c8 refactor: move support logic to utils 2021-02-24 08:53:07 +01:00
Oscar Lorentzon
2b2ed31c4f feat(spatial): option for original position altitude
Add option for visualizing the original position altitude
instead of flat lines.
Deprecate positionsVisible property.
Add altitude property to fill interface and node class.
2021-01-20 08:26:13 +01:00
Oscar Lorentzon
1d4c7c48ee feat(spatial): apply graph filter on spatial cameras
Filter spatial cameras based on graph filter function.
Emit filter function from graph service.
Use threejs layer for interactive object filtering.
2021-01-20 08:10:17 +01:00
Oscar Lorentzon
d85473d4e1 feat(viewer): add public api to remove viewer
Release all internal resources on remove.
2021-01-13 11:07:50 +01:00
Oscar Lorentzon
87683453e6 chore: key commands for all spatial props
Add key commands for all spatial config options
in debug page.
2021-01-13 10:35:01 +01:00
Oscar Lorentzon
ae9fc71134 feat: load clusters from url
Add JSON inflator class to be able to reuse
in data providers.
2020-12-02 18:25:17 +01:00
Oscar Lorentzon
a913a99a9f feat: remove obsolete stats component 2020-11-06 17:22:06 +01:00
Oscar Lorentzon
2099a10da3 refactor(api): rename client id to more general client token 2020-11-04 18:00:33 +01:00
Oscar Lorentzon
9cdc57b4d6 refactor(api): require data and geometry provider base params 2020-10-26 17:58:59 +01:00
Oscar Lorentzon
8e82214957 chore: update viewer ctor calls in debug pages 2020-10-08 17:37:50 +02:00
Oscar Lorentzon
81ec52e708 feat: add spatial debug page 2020-10-05 18:16:25 +02:00
Oscar Lorentzon
e90702647c feat(tag): allow rects to be created in any direction
Allow creating rectangles in any direction by both
dragging and clicking.
2017-09-24 11:38:45 +00:00
Oscar Lorentzon
55d1a41aad refactor(tag): use viewport coords for create tag calc
Use viewport coords for calculations in create tag.
Use transform for pixel translations.
Round pixel translations to ensure that DOM rendered
elements are not blurred.
2017-08-04 06:25:02 +00:00
Oscar Lorentzon
83479a8750 refactor(tag): simplify tag mode
Add tag mode enum to merge two settings into one.
Use tag mode enum in component and creator.
Remove unused geometry type.
2017-06-19 11:41:02 +00:00
Oscar Lorentzon
7dd2ee9c50 refactor(tag): change tag component api
Add methods for adding, removing and getting tags.
Keep tags when deactivating.
Create render tags in tag set.
Remove set tags method.
Emit tag component on tags changed, tags
can be retrived with getAll method.
2017-06-19 11:40:49 +00:00
Oscar Lorentzon
448da3b08b Enable stats component by default. 2017-03-24 10:59:00 +00:00
Oscar Lorentzon
63016a7851 Add markers in batches and log performance. 2017-03-23 21:42:41 +00:00
Oscar Lorentzon
090d1245ab Structure and add comments to marker example. 2017-03-23 09:45:38 +00:00
Oscar Lorentzon
e085722974 Do not set properties equal to default values. 2017-03-21 09:56:58 +00:00
Oscar Lorentzon
bdb65fb4f0 Do not create new marker if an interactive marker was clicked. 2017-03-21 07:28:24 +00:00
Oscar Lorentzon
c152af1b9e Hide indicator circle when dragging marker. 2017-03-21 06:50:23 +00:00
Oscar Lorentzon
06ca57e717 Keep markers dragged in map draggable in viewer. 2017-03-20 15:08:27 +00:00
Oscar Lorentzon
efcaa4037f Make created markers draggable in debug page. 2017-03-20 11:54:35 +00:00
Oscar Lorentzon
06b1e65501 Add marker debug files. 2017-03-17 10:22:51 +00:00
Oscar Lorentzon
bb86fb5698 2.3.0 2017-01-09 16:06:50 +01:00
Oscar Lorentzon
e37f7afe85 Set filter and token in navigator.
Cache nodes based on navigator state depending on if
a key have been requested and if a key has been moved
to.

Unit test navigator methods.
2016-11-16 11:00:14 +01:00
Oscar Lorentzon
ea1406f85f Include filter expression type in docs. 2016-11-07 12:17:13 +01:00
Oscar Lorentzon
6ea740c71b Remove js suffix from dist output files. 2016-10-28 11:16:16 +02:00
Oscar Lorentzon
f456d2d04b Only update bounding box when slider plane enabled. 2016-10-26 08:57:17 +02:00
Oscar Lorentzon
628c70e547 Fill render mode as default. 2016-10-25 20:10:19 +02:00
Oscar Lorentzon
47ab4ce162 Component options struct on viewer options.
Separate component options from library options.
Rename imageplane component to imagePlane.
2016-10-25 20:04:24 +02:00
Oscar Lorentzon
b2000d08f5 Remove unused debug logic for tags. 2016-09-23 08:46:41 +02:00
Oscar Lorentzon
90fa0bae0f Build everything to dist folder.
Node server does not need build folder because it generates
javascript and sourcemap on the fly.
2016-07-13 07:08:49 -04:00
Oscar Lorentzon
91ec8c2a26 Make it possible to set color and size values to zero.
Make it possible to set icon and text properties to null.
Add set options methods on tags to be able to set multiple
properties at once.
2016-07-05 08:13:49 -04:00
Oscar Lorentzon
99c7dd85ce Create polygon tags.
Add support for creating new polygons.
Remove last vertex by clicking it.
Abort creation by clicking original vertext when fewer than 4.
Complete polygon by clicking original vertex.
2016-07-05 08:13:49 -04:00
Oscar Lorentzon
ca89367230 Merge player and sequence components.
New name for combined functionality is sequence component.
2016-06-02 10:16:52 +02:00
Oscar Lorentzon
3a31c45fce Min and max width configurable. 2016-06-02 08:30:45 +02:00
Oscar Lorentzon
225716a9a2 Render symbol for spot tag.
Expose point geometry and spot tag in public API.
Add debug functionality for creating spot tags and
point geometries.
2016-05-16 10:54:59 +02:00
Oscar Lorentzon
b47cb6396c Adjust create tag point when render camera changes.
Adjust to make sure that geometry point follows mouse when
zooming and panning.
Clear tag set and tag creator on deactivation.
2016-05-13 21:48:00 +02:00
Oscar Lorentzon
a310ee4387 Expose tag component API in namespace.
Define what classes should be exposed in component ts file.
Import all properties as TagComponent and export in global
Mapillary object.
2016-05-13 11:39:52 +02:00
Oscar Lorentzon
54b4f4a82e Dispose subscriptions on deactivation.
Only emit geometry created and tags changed events when activated.
2016-05-13 10:06:28 +02:00
Oscar Lorentzon
1effd2871d Emit events for observables on tag component. 2016-05-12 16:35:32 +02:00
Oscar Lorentzon
d961beb17e Move tag events from component to tag class.
Remove symbol click event from API.
2016-05-12 14:56:28 +02:00
Oscar Lorentzon
24010e9f9f Rename LineTag to OutlineTag.
Rename CreateLineTag to OutlineCreateTag.
2016-05-11 09:12:39 +02:00