A collection of rendering functions, typically using the D3 library.
initD3(api, zoomer)
api
: reverse linkage to topoForce modulenode()
: reference to D3 node selectionlink()
: reference to D3 link selectionlinkLabel()
: reference to D3 link label selectioninstVisible()
: returns true if instance panel is visibleposNode(node, forUpdate)
: position node (see topoModel.js)showHosts()
: returns true if hosts are to be displayedrestyleLinkElement(ldata, immediate)
: link stylingupdateLinkLabelModel()
: update link labelslinkConfig()
: ref to link configuration datadeviceScale()
: scale value for devices (based on current zoom)linkWidthScale()
: scale value for links (based on current zoom)zoomer
: zoomer objectdestroyD3()
incDevLabIndex()
setDevLabIndex(mode)
mode
: label mode index (0, 1, 2)hostLabel(d)
d
: host model datadeviceLabel(d)
d
: device model datatrimLabel(label)
label
: label to trimupdateDeviceLabel(d)
d
: device model dataupdateHostLabel(d)
d
: host model dataupdateDeviceColors(d)
d
: device model data (optional)deviceExisting(d)
d
: device model datahostExisting(d)
d
: host model datadeviceEnter(d)
d
: device model datahostEnter(d)
d
: host model datahostExit(d)
d
: host model datadeviceExit(d)
d
: device model datalinkEntering(d)
d
: link model dataapplyLinklabels()
transformLabel(p, id)
p
: position dataid
: link idapplyPortLabels(data, portLabelG)
data
: port label dataportLabelG
: port label SVG grouping elementapplyNumLinkLabels(data, lblsG)
data
: link label datalblsG
: link label SVG grouping element