Class: JSONFileAspect

JSONFileAspect()

An JSONFileAspect folds visuals into a single simplified class.

Constructor

new JSONFileAspect()

Construct a new JSONFileAspect.
Author:
  • Lawrence Fyfe
Source:

Methods

clearTarget()

Clear all zoom-related values and draw the Timeframe.
Source:

draw()

Draw this aspect.
Source:

erase()

Erase this aspect.
Source:

initialize(parentElement, parentWidth, parentHeight)

Initialize this aspect.
Parameters:
Name Type Description
parentElement element The parent element.
parentWidth number The parent width.
parentHeight number The parent height.
Source:

loadFile(file)

Load a JSON file.
Parameters:
Name Type Description
file file a file.
Source:

saveToSVG()

Save the visual in this aspect to an SVG file.
Source:

zoomTarget()

Zoom into the specified time range.
Source: