Horizontal1DTrack

Horizontal1DTrack

new Horizontal1DTrack()

Source:
Properties:
Name Type Description
each function iterate a fucntion to all Horizontal1DTrack's instances
instances Array all instances of this class
findInstanceBySvg function find a track instance given a svg element

Extends

  • EventEmitter

Classes

Horizontal1DTrack

Members

dataSet

Source:
Get data set

dataSet

Source:
Set dataset

(readonly) shape

Source:
line generate function

xScale

Source:
set x scale

Methods

applyTransform(transform, transformXAxisopt, transformYAxisopt, emitEventsopt)

Source:
Apply a transform to track
Parameters:
Name Type Attributes Default Description
transform * includes {k, x, y}
transformXAxis boolean <optional>
true default transform has effect on x axis
transformYAxis boolean <optional>
false default transform has no effect on x axis
emitEvents boolean <optional>
true whether to emit a event

draw(fnopt)

Source:
Draw content
Parameters:
Name Type Attributes Description
fn function <optional>
and external draw command function

drawAxis()

Source:
Draw axis

drawPath()

Source:
Draw path

drawPoints()

Source:
Draw data points

init()

Source:
Init function, could be rewrite

initBBox(parentDOM, margin)

Source:
Init the bounding box and offset of the track element
Parameters:
Name Type Description
parentDOM Document.Element
margin *

initBehaviourHandler()

Source:
Init the behaviour handler and behaviour relative settings

respondEvents(e)

Source:
respond to a HiCEvent if this is not the source of the event
Parameters:
Name Type Description
e HiCEvent

zoomed()

Source:
Zooming action callback

zoomedCallback(hicE)

Source:
Responding callback to other's triggered zoom event
Parameters:
Name Type Description
hicE HiCEvent