VisDock

VisDock Libraries

VisDock is an interactive web-visualization framework written in JavaScript. VisDock allows visualization creators to import various VisDock tools into their host visuailzations for exploration and annotation purposes.

VisDock.js

VisDock.js library contains various tools: such tools include cross-cutting selection tools, pan/zoom tool, query management tools, and annotation tools. VisDock can be imported into any SVG rendered visualizations.

2D.js and IntersectionLibrary.js

These libraries provide functions to determine whether the user-drawn shapes or lines cross the boundaries of SVG objects. These files were obtained from Kevin Lindsey Software Development (www.kevlindev.com). Cross-cutting selections can be made between:

visdock.utils.js

2D.js and IntersectionLibrary.js provide functions to determine the intersection of any two SVG objects. For VisDock.js users, the type of intersection is limited to between user-drawn shapes (polygons, ellipses, and lines) and SVG objects in the host visualization. visdock.utils.js summarizes these intersections in a more compact form.

Functions for Initializations and Sub-classes

Once the users have drawn a shape using Polygon, Lasso, or Rectangle tool, the array of the x and y coordinates of the verticies will be passed to the VisDock event handler. This array cannot be used directly for the verification of intersection because the 2D.js and IntersectionUtilities.js libraries require specific object formats. The following functions initialize path, polygon, ellipse, and line elements from the In order to check the intersection between shapes, it may require to initialize the shapes as an SVG shape class before passing them as argument. Here are the functions that initialize such shapes. But note that not all shapes need to be initialized. We will explain further when an object needs to be initialized.

Other important functions:

Inside the visdock class are a few important functions that are desgined to aid proper display of the layers. The newly created layers have visibility and color attributes. Some of these functions can add/change these attributes as the users desire.

Go to VisDock Tutorials

Go to VisDock Examples