for the add and edit functions. The data the user is supplied with in these functions has been described in the code below.
for the add and edit functions. The data the user is supplied with in these functions has been described in the code below.
For the add data, you can add any and all options that are accepted for node creation as described above. The same goes for edit, however only the fields described
For the add data, you can add any and all options that are accepted for node creation as described above. The same goes for edit, however only the fields described
in the code below contain information on the selected node. The callback for connect accepts any options that are used for edge creation. Only the callback for delete selected
in the code below contain information on the selected node. The callback for connect accepts any options that are used for edge creation. Only the callback for delete selected
requires the same data structure that is supplied to the user.
requires the same data structure that is supplied to the user. <br/><br/>
<b>If there is no injected function supplied for the edit operation, the button will not be shown in the toolbar.</b>
</p>
</p>
<preclass="prettyprint">
<preclass="prettyprint">
// If a variable is not supplied, the default value is used.
// If a variable is not supplied, the default value is used.
zoomLevel=77.5271985/(numberOfNodes+187.266146)+4.76710517e-05;// this is obtained from fitting a dataset from 5 points with scale levels that looked good.
zoomLevel=49.07548/(numberOfNodes+142.05338)+9.1444e-04;// this is obtained from fitting a dataset from 5 points with scale levels that looked good.
}
else{
zoomLevel=12.662/(numberOfNodes+7.4147)+0.0964822;// this is obtained from fitting a dataset from 5 points with scale levels that looked good.
}
}
}
else{
else{
zoomLevel=30.5062972/(numberOfNodes+19.93597763)+0.08413486;// this is obtained from fitting a dataset from 5 points with scale levels that looked good.
zoomLevel=77.5271985/(numberOfNodes+187.266146)+4.76710517e-05;// this is obtained from fitting a dataset from 5 points with scale levels that looked good.
}
else{
zoomLevel=30.5062972/(numberOfNodes+19.93597763)+0.08413486;// this is obtained from fitting a dataset from 5 points with scale levels that looked good.