88 Commits

Author SHA1 Message Date
Oscar Lorentzon
8066b9c52a Use Typings instead of TSD.
Remove deprecated TSD dependency.
Use Typings to install type definitions.
Install rx typings from npm package.
2016-02-29 16:58:56 +01:00
Oscar Lorentzon
d14af591f7 Test that the correct API path is called for nav. 2016-02-24 14:27:45 +01:00
Kamil Nikel
20ca0b987d Rename enumerations with PascalCase
Fixes mapillar/mapillary-js#61
2016-02-08 12:12:01 +01:00
Oscar Lorentzon
db01f62645 Calculate required hashes for tile nodes.
When tiles are retrieved the the hashes required for all the
nodes to be worthy are calculated. The value is supplied to
the node.
2016-02-03 17:55:53 +01:00
Oscar Lorentzon
dd916f3778 Rename tile properties to row, col and size. 2016-02-01 20:36:01 +01:00
Oscar Lorentzon
3cba256995 Edges from worthy to non worthy nodes.
Edges from worthy nodes to non worthy should exist.
2016-02-01 15:55:13 +01:00
Oscar Lorentzon
831f849872 TilesService cache test using tile factory. 2016-02-01 15:46:36 +01:00
Oscar Lorentzon
d42884b648 Discard pano nodes from step and turn edges. 2016-01-25 13:26:31 +01:00
Oscar Lorentzon
5de0dc93a2 Unit test and correct world motion angle calc.
Calculate world motion for motion vector, not direction vector.
2016-01-21 16:45:59 +01:00
Johan Gyllenspetz
d14d6c1006 Codingstandard action adding _x for private, x$ for stream 2016-01-17 18:02:27 -08:00
Oscar Lorentzon
e446a3a9fd Remove EdgeConstants namespace. 2016-01-15 10:35:13 +01:00
Oscar Lorentzon
1f8d6c10f9 Rename edge direction enum to EdgeDirection. 2016-01-15 10:16:25 +01:00
Oscar Lorentzon
83bfe51ca9 Use for..of throughout lib. 2016-01-07 20:58:24 +01:00
Johan Gyllenspetz
4f2b48b17f Move APIv2 to navigator and add experimental moveCloseTo
* Add search/im/close2 to API
* Move APIv2 initialization to Navigator and push it down
* Add experimental moveCloseTo
2016-01-05 16:49:45 -08:00
Johan Gyllenspetz
eb6664e4d3 Rename MyGraph to Graph 2016-01-04 14:25:55 -08:00
Johan Gyllenspetz
29fc4cdc37 Remove pristine hack in GraphService 2016-01-04 14:16:46 -08:00
Johan Gyllenspetz
d32f43ecd7 Remove VCR homebrew 2015-12-28 22:26:25 -08:00
Johan Gyllenspetz
d1c750f41a Simplify both TilesService and GraphService by using distinct instead of a cache 2015-12-28 13:28:53 -08:00
Johan Gyllenspetz
67898af4c5 Simplified experimental GraphService add to active viewer 2015-12-18 22:51:33 -08:00
Johan Gyllenspetz
3a1c76a64c Further separation on experimantal GraphService 2015-12-18 17:41:50 -08:00
Johan Gyllenspetz
61927f835a Add experimental Observable GraphService 2015-12-18 12:32:55 -08:00
Oscar Lorentzon
9a132fc4a0 Move lat lon interfaces to graph folder. 2015-12-18 16:08:30 +01:00
Oscar Lorentzon
5b102e372b Remove calculate edges method from edge calculator.
Use sequence edges method in graph.
Add edges to graph with labels containing direction and
world motion.
Name edges with keys of source and destination node
as well as direction to make them unique.
2015-12-15 15:34:21 +01:00
Oscar Lorentzon
162c60d9aa Move direction prop to edge data.
Edge direction should be a property on edge data
to make suitable for the graph.
2015-12-15 15:18:18 +01:00
Oscar Lorentzon
56634cfb9e Edge calc method to compute sequence edges.
Unit tests.
2015-12-15 14:09:18 +01:00
Oscar Lorentzon
6794736a64 Test motion filtering for multiple edges of panos.
Ensure that only one pano edge is returned within a slice.
Test that left and right edges are filtered by forward edges.
2015-12-15 13:37:14 +01:00
Oscar Lorentzon
39ed9af154 Test that pano edges are preferred to step edges. 2015-12-15 13:01:29 +01:00
Oscar Lorentzon
02a3d522bd Multiple step directions for same motion test.
Test that multiple step edges for a pano node can be
returned if the viewing direction is different even
though the motion is the same.
2015-12-15 13:00:39 +01:00
Oscar Lorentzon
9e6ac60ed3 Step edge coeff unit tests for panos. 2015-12-15 11:46:24 +01:00
Oscar Lorentzon
88dec03e9f Single step edge threshold on direction tests. 2015-12-15 11:36:25 +01:00
Oscar Lorentzon
642a085e19 Compute step edges for panorama nodes.
Step edges are only calculated for slices not occupied
by pano edges.
Multiple step edges in different directions can exist
in the same slice.
Unit tests on single step edge results.
2015-12-15 11:23:30 +01:00
Oscar Lorentzon
269e002907 Handle occupied pano angles.
Filter potential edges if too close to another edge.
2015-12-15 10:48:40 +01:00
Oscar Lorentzon
697cd5c170 Compute rotation edges.
Unit tests.
2015-12-14 17:05:50 +01:00
Oscar Lorentzon
d8d9b83809 Return empty list for non panos.
Emtpy result for pano edges when node is not pano.
Unit test.
2015-12-14 14:14:37 +01:00
Oscar Lorentzon
51e90d1032 Node param for perspective to pano calc.
Use node param to return empty array if
node is full pano.

Unit test.
2015-12-14 14:07:41 +01:00
Oscar Lorentzon
14298c3f87 Node param to turn calc to handle panos.
Unit test for empty result for pano node.
2015-12-14 14:00:33 +01:00
Oscar Lorentzon
db3f9d5383 Test for empty result of step edge calc for panos. 2015-12-14 13:54:17 +01:00
Oscar Lorentzon
103581e15a Node input to step calc to determine if pano.
Make it possible to determine if node is full pano
within step node calc method to make it generic.
2015-12-14 13:49:28 +01:00
Oscar Lorentzon
e028252896 Potential edge full pano unit test. 2015-12-14 13:24:40 +01:00
Oscar Lorentzon
8c9b3a79d4 Shorter var names in edge calc unit tests. 2015-12-14 13:12:00 +01:00
Oscar Lorentzon
5c92a216b7 Perspective to pano edge coeff unit tests. 2015-12-14 13:06:35 +01:00
Oscar Lorentzon
3a9738ea68 Compute perspective to pano edges.
Only return a single edge with the most appropiate
characteristics regarding distance, direction and
connected component.
Unit test.
2015-12-14 09:45:24 +01:00
Oscar Lorentzon
1a3b587214 Potential edge sequence and merge cc unit tests. 2015-12-11 17:23:43 +01:00
Oscar Lorentzon
cb3acca187 Potential edge rotation unit tests. 2015-12-11 16:49:52 +01:00
Oscar Lorentzon
0ca3a746eb Potential edge vertical viewing direction change test. 2015-12-11 16:20:33 +01:00
Oscar Lorentzon
0b90aeebd7 Potential edge viewing direction change tests. 2015-12-11 15:50:53 +01:00
Oscar Lorentzon
dcfe56dbb9 Potential edge motion unit tests. 2015-12-11 15:32:04 +01:00
Oscar Lorentzon
b664c7fe27 Helper functions for potential node unit tests.
Helper functions for calculating translation, creating nodes
and creating sequences to avoid duplication.
2015-12-11 15:13:51 +01:00
Oscar Lorentzon
0d00fe5ca8 Potential edge distance unit test. 2015-12-11 15:02:00 +01:00
Oscar Lorentzon
6f9e0e69bf Add world motion azimuth on potential edge.
Azimuth according to spherical coordinate system counter
clockwise from X-axis.
2015-12-11 14:35:33 +01:00