npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

tomvizweb

v1.0.7

Published

Standalone application useful to load and explore Tomviz data products.

Downloads

31

Readme

This directory bundle ArcticViewer for Tomviz usage.

Build

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

$ npm install
$ npm run build:release

Usage

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

<script type="text/javascript" src="https://unpkg.com/tomvizweb"></script>

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

<div
  class="tomviz-data-viewer"
  data-url="./url/to/data.tomviz"
  data-viewport="600x500"
/>

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 [...]
  data-initialization="theta=10"
/>

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.

<div
  class="tomviz-data-viewer"
  data-url="./url/to/data.tomviz"
  data-viewport="600x500"

  data-no-ui
  data-no-mouse

  data-initialization="theta=10&contours=50"
  data-animation="phi=35&contours=1000"
/>

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.