Take absolute value to ensure that projected points are
always positive, i.e. corresponds to the upper right
quadrant part of the image border.
Simple unit tests on render camera field of view.
Calculate vertical field of view for fill and
letterbox based on quarter of image boundary.
Refactor render camera to handle internal behavior
internally.
Refactor unit tests.
Downgrade node types version because of observable type
compatibility issue.
Remove unsupported generics from empty calls.
Use observable create for API call wrapping
becasue of non compatible type when using
observable from promise.
Add frame generator because it was removed
from RxJS 6.
When no WebGL components are activated the canvas should either
not be created at all or created and maintained. If the canvas
is not resized correctly it will behave incorrectly. Therefore
do not create it at all for non WebGL state. This will result in
that interactive components like mouse and keyboard will not
function for non WebGL functionality.
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.
Extending Error does not create instances of the created error classes.
Act accordingly in unit test error type checks.
Upgrade three js typings for compatibility.
Error derived classes does not need to create stack trace
explicitly.
Use tilde ranges for ts dev deps for future compatibility.
Set both properties immediately if current node is set.
Store both properties if current node is not set and apply
when first node is set.
Clamp values to valid zoom and basic coordiantes.
Fixes#115
Handle size and render mode changes by operating on render camera
that has subscribtion. Use the latest render camera for each new
frame.
Disable all render service unit tests that because some of them
fail randomly because of #116 but this bugfix is critical for
library users so change is required.
When the first hash is added to the GL renderer the
frame subscription is initiated. It will not render
for the frame of the render hash but needs to render
for the next frame. Therefor needs render is set on
the render camera.
Clear hash before clearing renderer to ensure that
one empty render is drawn.
Unit test when clearing one of multiple renders.
GLRenderer should render one extra time after the last render
hash has been cleared and the frame subscription has been
disposed to ensure that the canvas is cleared.
Edit unit test to ensure that no extra frame is needed for
content to be cleared.
Change GL renderer unit tests to use render service mock.
Share render collection observble to run only once.
Replay render camera frame to ensure a value is always
retrieved.
Expose reference lat, lon, alt position on state.
Reset reference position when current node is to far
and the transition is motionless only.
Calculate translation for each node set on state before
creating transform. Use reference position for computing
translation.
Expose reference observable on state service.
Use reference observable in marker component.