Oscar Lorentzon
59a0ceb7d3
Remove new prefix from graph related classes.
2016-10-24 16:37:39 +02:00
Oscar Lorentzon
8c8bf56672
Make compass angle a fill property.
2016-10-18 10:13:30 +02:00
Oscar Lorentzon
45e84e8adf
Switch graph implementation throughout library.
...
Use new graph everywhere.
Switch map to edge streams where needed.
Change unit tests to comply with new node implementation.
2016-10-14 14:24:12 +02:00
Oscar Lorentzon
77239f6bf3
Restructure node class.
...
Make fields private. Provide getters only.
Add methods with clear names for setting properties.
Make internally used graph methods private.
2016-08-24 08:36:00 -04:00
Oscar Lorentzon
220a4e823a
Transform does not depend on node.
...
Avoid depending on node in transform. Depend only on api response
and image.
Change usages and tests.
2016-08-23 17:38:48 -04:00
Oscar Lorentzon
3838e77bd5
Support for holes in polygon geometry.
...
Validate holes in constructor.
Use holes in triangulation.
Render lines for each hole.
Unit tests on hole validation.
2016-08-04 11:23:00 -04:00
Oscar Lorentzon
89030047ad
TS lint scripts.
...
TS lint scripts for spec and src.
Fix all spec files to comply with linting.
Use lint script in pre commit hook.
2016-07-12 11:42:23 -04:00
Oscar Lorentzon
38af4c21a5
Unit test polygon geometry 2d logic.
2016-07-05 08:13:49 -04:00
Oscar Lorentzon
f9f54fb17c
Methods for adding and removing vertices on polygon geo.
...
Unit tests.
2016-07-05 08:13:49 -04:00
Oscar Lorentzon
aff3c14ccf
Enforce polygon array to be correct when creating geometry.
...
Unit tests.
2016-07-05 08:13:49 -04:00
Oscar Lorentzon
90b87b0614
Set needs render value correctly on resize.
...
Fixes #142 .
Unit tests.
2016-06-09 10:54:42 +02:00
Oscar Lorentzon
b41d39ad53
Migrate to typings 1.0.
...
Fixes #135
2016-06-07 14:53:35 +02:00
Oscar Lorentzon
c5c30195c6
Point geometry class.
...
Unit tests.
2016-05-15 19:18:54 +02:00
Oscar Lorentzon
d394e778ad
Rename polygon point to vertex.
2016-05-14 16:37:51 +02:00
Oscar Lorentzon
61d330792c
Do not create starting point if click is outside of photo.
...
Allow clicking outside when completing rectangle to make it easier
to finish at boundaries.
Handle panorama transforms differently regarding restrictions.
2016-05-13 08:26:32 +02:00
Oscar Lorentzon
33cef6eaa1
Do not allow right to pass left over boundary.
...
Vice versa for left to pass right.
Unit tests.
Validate completing point to ensure that click is not to the left
or top of starting point.
2016-05-12 11:58:40 +02:00
Oscar Lorentzon
b4f7bed12b
Throw for invalid rect parameter in ctor.
...
Unit test.
2016-05-11 14:39:22 +02:00
Oscar Lorentzon
664a195fea
Handle rectangles crossing image boundary.
...
Handle inverted rectangles crossing the basic x-axis at 0/1.
Different movement handling of panoramas and perspective images
to support moving panorama over image boundary while restricting
movement for perspective images.
Unit test rect coordinates after transformations.
2016-05-11 14:05:58 +02:00
Oscar Lorentzon
52b71b9161
Viewer options param to container.
2016-04-14 17:40:51 +02:00
Oscar Lorentzon
6089b7713a
Make render mode configurable in viewer options.
2016-04-01 08:25:02 +02:00
Oscar Lorentzon
f13f182b77
Export spatial marker interface and move to its own file.
2016-03-22 11:13:25 +01:00
Johan Gyllenspetz
d7bb6c299c
Update markercomponent to new API
2016-03-21 17:13:01 -07:00