reorder options

This commit is contained in:
Oliver Gorwits
2017-12-26 11:15:21 +00:00
parent 015a1debe0
commit 885cb92bd3

View File

@@ -71,32 +71,32 @@ $.getJSON('[% uri_for('/ajax/data/device/netmap') %]?[% my_query %]', function(m
jQuery(document).ready(function() { jQuery(document).ready(function() {
window.graph = netGobrechtsD3Force('netmap_pane') window.graph = netGobrechtsD3Force('netmap_pane')
// .debug(true) // .debug(true)
[% '.showLegend(false)' IF NOT params.colorgroups %] .width( parseInt(jQuery('#netmap_pane').parent().css('width')) )
.height( window.innerHeight - 100 )
.showSelfLinks(true)
.wrapLabels(true) .wrapLabels(true)
.lassoMode(true) .lassoMode(true)
.dragMode(true) .dragMode(true)
.nodeEventToOpenLink('dblclick')
.nodeLinkTarget('none')
.labelDistance(2)
.linkDistance(120)
.zoomMode(true) .zoomMode(true)
.pinMode(true) .pinMode(true)
.nodeEventToStopPinMode('none') [% '.showLegend(false)' IF NOT params.colorgroups %]
.showLinkDirection(false) .showLinkDirection(false)
.colorScheme('color20') .colorScheme('color20')
.preventLabelOverlappingOnForceEnd( .preventLabelOverlappingOnForceEnd(
(mapdata['v3']['newnodes'] && ('[% params.mapshow %]' == 'neighbors')) (mapdata['v3']['newnodes'] && ('[% params.mapshow %]' == 'neighbors'))
? true : false ? true : false
) )
.width( parseInt(jQuery('#netmap_pane').parent().css('width')) ) .nodeEventToStopPinMode('none')
.height( window.innerHeight - 100 )
.showSelfLinks(true)
.showTooltips(true) .showTooltips(true)
.tooltipPosition('svgTopLeft') .tooltipPosition('svgTopLeft')
.nodeEventToOpenLink('dblclick')
.nodeLinkTarget('none')
.minNodeRadius(4) .minNodeRadius(4)
.maxNodeRadius(14) .maxNodeRadius(14)
.minZoomFactor(0.1) .minZoomFactor(0.1)
.maxZoomFactor(10) .maxZoomFactor(10)
.labelDistance(2)
.linkDistance(120)
.charge(-550) .charge(-550)
.gravity(0.3); .gravity(0.3);