25 Commits

Author SHA1 Message Date
Oscar Lorentzon
2b4617bd7a feat(api): get static resources through data provider
Use data provider in node caching.
2020-10-05 18:07:55 +02:00
Oscar Lorentzon
c5d17b5f44 refactor: remove deprecated result selectors
Use map instead of result selectors for mergeMap, switchMap
combineLatest etc.
2018-06-14 07:26:15 +00:00
Oscar Lorentzon
1969bd83bc refactor: use pipe operators
Use pipe operators everywhere.
Fix errors becasue of piping more than nine operations.
2018-06-13 12:03:40 +00:00
Oscar Lorentzon
013f4db5a3 feat: observable for emitting image when changed 2018-06-04 09:12:40 +00:00
Oscar Lorentzon
e3250d8162 refactor: import rxjs operators in a single place 2018-04-17 12:50:59 +00:00
Oscar Lorentzon
8e9ed43a07 refactor: use urls class everywhere 2018-02-20 11:51:47 +01:00
Oscar Lorentzon
0760247f87 Set and handle XMLHttpRequest timeouts.
Set timeouts for mesh, image and image tiles to 15 sec.
Error subscriber for image timeouts and fallback to
empty mesh and complete for mesh timeout.
2017-01-05 08:46:00 +01:00
Oscar Lorentzon
7fc2b64778 Workaround rxjs subscribe with no args bug.
Complete all created subjects in tests.
Add noop function to all previously empty subscribe calls
to ensure that they are not completed prematurely because
of rxjs bug.
2017-01-04 10:38:38 +01:00
Oscar Lorentzon
fc3a930c65 Migrate to rxjs 5.0. 2016-12-21 11:37:43 +01:00
Oscar Lorentzon
bac29bcad7 Emit error when image load is aborted. 2016-11-16 13:49:47 +01:00
Oscar Lorentzon
dce3888125 Do not report progress when disposed.
When node cache has been disposed it should not
report progress or set the image or mesh.

Improve node cache docs.
2016-11-15 15:57:03 +01:00
Oscar Lorentzon
f391d6af0d Abort image and mesh requests on dispose.
Store the request objects and abort them if set.
Stored request objects are cleared on load, error or abort.
2016-11-11 15:33:28 +01:00
Oscar Lorentzon
986fea49d7 Store max resolution image in node cache.
Fixes #212
2016-11-10 14:38:01 +01:00
Oscar Lorentzon
5bbb8a0eeb Add reset sequence edges method on node. 2016-11-10 11:41:39 +01:00
Oscar Lorentzon
3afcb379ab Correct node and migration docs. 2016-10-26 20:58:04 +02:00
Oscar Lorentzon
4cbdac48cb Document node and related objects. 2016-10-26 10:32:43 +02:00
Oscar Lorentzon
59a0ceb7d3 Remove new prefix from graph related classes. 2016-10-24 16:37:39 +02:00
Oscar Lorentzon
58e2e2b496 Remove unused classes, tests and dependencies.
Remove graphlib and rest dependencies used in old graph and API.
Use new graph service, graph and node everywhere.
2016-10-24 16:23:46 +02:00
Oscar Lorentzon
7971542767 Fire public edges changed events from viewer.
Skip the first replayed item to avoid sending the same
information that was available through the node changed
event.
2016-10-21 16:58:55 +02:00
Oscar Lorentzon
8d54200d1a Propagate node asset caching errors.
Propagate image fetching errors to ensure that image is loaded.
Fallback to empty mesh when loading fails.
2016-10-18 11:55:37 +02:00
Oscar Lorentzon
3ac322731f Reset caching asset property in finally.
Use finally to avoid subscribing to the observable stream
within the node cache class. Let the class user decide
when to subscribe.
2016-10-14 14:24:12 +02:00
Oscar Lorentzon
4abd6a6231 Reset method on graph.
Reset method to reset all cached spatial information.
Reset spatial edges on all nodes.
2016-10-14 14:24:12 +02:00
Oscar Lorentzon
7318202999 Do not cache assets concurrently.
Avoid caching assets concurrently to ensure that a node
with assets cached is not uncached when a load status
object is set to null that was previously set to an
object instance.
2016-10-14 14:24:12 +02:00
Oscar Lorentzon
7dfbfe3c7b Emit edge status from node cache.
Emit status to make it possible to determine if
edges has been cached or not.
2016-10-14 14:24:12 +02:00
Oscar Lorentzon
9734e483f7 Move node cache to its own file. 2016-10-14 14:24:12 +02:00