Skip to content

vizflow is an ES6 interactive visualization engine

License

Notifications You must be signed in to change notification settings

vizflow/vizflow

Repository files navigation

Vizflow

vizflow.js - a render-loop library written using EcmaScript.6 (ES6) with no other external dependencies.

Vizflow is a relatively small library for adding transition effects and interactive visualizations to HTML5 documents with a simpler design compared to other popular interactive visualization libraries like D3js.

Instead of focusing on specific applications such as data visualization, it only provides an engine for running animations, transition effects, simulations, games, etc., depending on the application. Vizflow is render-agnostic: its primary concern is to manage what happens at each point in time, rather than how each frame is rendered. In addition, due to the performance limitations of DOM-based rendering, it provides a number of helper modules for working with the 2D Canvas API.

Vizflow uses the symbol $Z (read as "bling Z" or "dollar Z") for defining its namespace.

Following the DRY and KISS guidelines, keeping the library simple-to-use, small, and efficient in terms of performance, especially on mobile devices, are the main goals of this project.

Examples

The file index.html included in this repository contains a demo, used for our homepage. Modify the index.html file to create your own interactive visualizations, simulations, and games with maximal flexibility and minimal overhead.

Load the index.html file locally to test the code in a development environment (requires a local web server such as live-server to be running).

The "examples" subdirectory contains the source code to the examples presented on the homepage.

Three Circles

The "three circles" examples showing an interactive stochastic dynamics simulation with three particles in a rectangular domain rendered as colored circles, using both Canvas and SVG. Clicking on a circle will randomly change its 2D (x, y) position and radius by sampling from appropriate uniform distributions for each of these variables.

pH Visualization/Game

The pH visualization is a learning game idea that is described here.

Election Fighter

Election Fighter is a game described here.

Prime Fruit

Prime Fruit is an idea for an educational game teaching the player about prime numbers and prime factorizations, and is described here.

Ball

This is a very basic example of sprite based animation showing a ball bounding inside a Canvas. It needs to be expanded to be used for performance testing by running with different numbers of balls and analyzing framerate degradation.

Deployment

Compile vizflow.js using browserify src/vizflow.js -t babelify | uglifyjs -o vizflow.js --source-map for running in a production environment. Similarly, run browserify src/module/vizflow-helper.js -t babelify | uglifyjs -o vizflow-helper.js --source-map to build the production-ready versions of the helper modules.

References

About

vizflow is an ES6 interactive visualization engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published