Class: VisualPanel

VisualPanel(visualArray, options)

A visual panel.

Constructor

new VisualPanel(visualArray, options)

Create a visual panel.
Parameters:
Name Type Description
visualArray Array.<Object> An array of visuals.
options Object Configuration options.
Author:
  • Lawrence Fyfe
Source:

Methods

addPanel(panel)

Add an panel to this panel.
Parameters:
Name Type Description
panel VisualPanel The panel to add.
Source:

addVisual(visual)

Add the specified visual to this panel.
Parameters:
Name Type Description
visual visual The visual to add.
Source:

addVisualSet(visualSet)

Add the specified visual set to this panel.
Parameters:
Name Type Description
visualSet VisualSet The visual set to add.
Source:

clearVisuals()

Clear all visuals from this panel.
Source:

draw()

Draw this panel and any panels that it contains.
Source:

drawItemProperties(parentElement, properties)

Draw any properties of a visual including the names of the properties and their values.
Parameters:
Name Type Description
parentElement d3.selection The parent element.
properties Array An array of properties.
Source:

drawPanelItems()

Draw controls for visuals.
Source:

drawPanelSelect()

Draw a select list of any panels that this panel contains.
Source:

drawVisualSetControls()

Draw a select list of visuals in a visual set and then draw controls for those visuals.
Source:

drawVisualSetItemControls()

Draw controls for visuals in a visual set.
Source:

erase()

Erase this panel.
Source:

initialize(parentElement)

Initialize this panel by attaching it to the specified parent element.
Parameters:
Name Type Description
parentElement d3.selection The parent element.
Source:

removeVisual(visualToRemove)

Remove the specified visual from this panel.
Parameters:
Name Type Description
visualToRemove visual The visual to remove.
Source: