node package manager


This directory bundle ArcticViewer for Tomviz usage.


To update and build the given viewer, just run the following commands:

$ npm install
$ npm run build:release


Tomviz Web Viewer can be used inside any web site by loading the proper JavaScript library like below:

<script type="text/javascript" src=""></script>

Then you need to position a <div> into your web content with the following informations.


Look for an actual export to see what the viewer could actually look like based on the data visualized.

Additional arguments can be provided to remove control UI, disable mouse interaction, create animation...

Removing control UI

In order to remove the control UI, you can do so by adding data-no-ui attribute.

Removing mouse control

In order to remove the control via mouse interaction, you can do so by adding data-no-mouse attribute.

Initial state definition

Addition information can be provided to chose the exact camera angle and/or parameter setting. To achieve that you will have to provide a data-initialization attribute like the following example:

<div [...]

Adding animation

An animation can be achieved by changing several parameter at the same time but not the same time step. Below is an example that will make the data spin changing phi and while also changing the contour value but using a different pace. The unit is actually in milliseconds.


Step information

For local rendering and rotation animation, you may want to provide what is the amount you want to change a given parameter. To do so, just provide the step information for those parameters with the attribute data-step="azimuth=2&dolly=5"

Toggle interaction mode

When a viewer is used with data-no-ui, data-no-mouse and data-animation, you may feel helpless if you want to use the actual control panel to tune some parameter or the view. To do so, you will just need to double click on the view to toggle the current mode you are in. This will stop the animation and you will gain back the mouse interaction.