You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
87 KiB
JavaScript
7 lines
87 KiB
JavaScript
5 years ago
|
/**
|
||
|
* D3 Force Network Chart - v3.1.0 - 2019-04-28
|
||
|
* https://github.com/ogobrecht/d3-force-apex-plugin
|
||
|
* Copyright (c) 2015-2019 Ottmar Gobrecht - MIT license
|
||
|
*/
|
||
|
|
||
|
function netGobrechtsD3Force(t,e,o,n){"use strict";var g={conf:{},confDefaults:{},data:{},dom:{},events:{},lib:{},main:{},status:{},tools:{},version:"3.1.0"},p={};return g.main.init=function(){g.dom.containerId=t||"D3Force"+Math.floor(1e6*Math.random()),g.confUser=e||{},g.status.apexPluginId=o,g.status.apexPageItemsToSubmit=!(!n||""===n)&&n.replace(/\s/g,"").split(","),g.main.setupConfiguration(),g.main.setupDom(),g.main.setupFunctionReferences()},g.main.setupConfiguration=function(){g.conf.debug=g.status.apexPluginId&&1===apex.jQuery("#pdebug").length,g.status.debugPrefix="D3 Force in DOM container #"+g.dom.containerId+": ",g.status.customize=!1,g.status.customizeCurrentMenu="nodes",g.status.customizeCurrentTabPosition=null,g.status.forceTickCounter=0,g.status.forceStartTime=0,g.status.forceRunning=!1,g.status.graphStarted=!1,g.status.graphRendering=!1,g.status.graphReady=!1,g.status.graphOldPositions=null,g.status.sampleData=!1,g.status.wrapLabelsOnNextTick=!1,g.status.labelFontSize=null,g.status.resizeTriggered=!1,g.confDefaults.minNodeRadius={display:!0,relation:"node",type:"number",val:6,options:[12,11,10,9,8,7,6,5,4,3,2,1]},g.confDefaults.maxNodeRadius={display:!0,relation:"node",type:"number",val:18,options:[36,34,32,30,28,26,24,22,20,18,16,14,12]},g.confDefaults.colorScheme={display:!0,relation:"node",type:"text",val:"color20",options:["color20","color20b","color20c","color10","direct"]},g.confDefaults.dragMode={display:!0,relation:"node",type:"bool",val:!0,options:[!0,!1]},g.confDefaults.pinMode={display:!0,relation:"node",type:"bool",val:!1,options:[!0,!1]},g.confDefaults.nodeEventToStopPinMode={display:!0,relation:"node",type:"text",val:"contextmenu",options:["none","dblclick","contextmenu"]},g.confDefaults.onNodeContextmenuPreventDefault={display:!0,relation:"node",type:"bool",val:!1,options:[!0,!1]},g.confDefaults.nodeEventToOpenLink={display:!0,relation:"node",type:"text",val:"dblclick",options:["none","click","dblclick","contextmenu"]},g.confDefaults.nodeLinkTarget={display:!0,relation:"node",type:"text",val:"_blank",options:["none","_blank","nodeID","domContainerID"]},g.confDefaults.showLabels={display:!0,relation:"label",type:"bool",val:!0,options:[!0,!1]},g.confDefaults.wrapLabels={display:!0,relation:"label",type:"bool",val:!1,options:[!0,!1]},g.confDefaults.labelSplitCharacter={display:!0,relation:"label",type:"text",val:"none",options:["none","^","`","°","\\","|","/","#",":","::"]},g.confDefaults.wrappedLabelWidth={display:!0,relation:"label",type:"number",val:80,options:[200,190,180,170,160,150,140,130,120,110,100,90,80,70,60,50,40]},g.confDefaults.wrappedLabelLineHeight={display:!0,relation:"label",type:"number",val:1.2,options:[1.5,1.4,1.3,1.2,1.1,1]},g.confDefaults.labelsCircular={display:!0,relation:"label",type:"bool",val:!1,options:[!0,!1]},g.confDefaults.labelDistance={display:!0,relation:"label",type:"number",val:12,options:[30,28,26,24,22,20,18,16,14,12,10,8,6,4,2]},g.confDefaults.preventLabelOverlappingOnForceEnd={display:!0,relation:"label",type:"bool",val:!1,options:[!0,!1]},g.confDefaults.labelPlacementIterations={display:!0,relation:"label",type:"number",val:250,options:[2e3,1e3,500,250,125]},g.confDefaults.showTooltips={display:!0,relation:"node",type:"bool",val:!0,options:[!0,!1]},g.confDefaults.tooltipPosition={display:!0,relation:"node",type:"text",val:"svgTopRight",options:["node","svgTopLeft","svgTopRight"]},g.confDefaults.alignFixedNodesToGrid={display:!0,relation:"node",type:"bool",val:!1,options:[!0,!1]},g.confDefaults.gridSize={display:!0,relation:"node",type:"number",val:50,options:[150,140,130,120,110,100,90,80,70,60,50,40,30,20,10]},g.confDefaults.linkDistance={display:!0,relation:"link",type:"number",val:80,options:[120,110,100,90,80,70,60,50,40,30,20]},g.confDefaults.showLinkDirection={display:!0,relation:"link",type:"bool",val:!0,options:[!0,!1]},g.confDefaults.showSelfLinks={display:!0,relation:"link",type:"bool",val:!0,options:[!0,!1]},g.confDefaults.selfLinkDistance={display:!0,relation:"link",type:"number",val:20,options:[30,28,26,24,22,20,18,16,14,12,10,8]},g.con
|