Closed (fixed)
Project:
Graph API
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2012 at 14:57 UTC
Updated:
20 Jan 2013 at 10:20 UTC
function graphapi_settings_defaults() {
$result = array(
'label' => t('Graph'),
'settings' => array(
'global' => array(
'use_global' => FALSE,
),
'graph' => array(
'animate' => TRUE,
'background-color' => 'grey',
'height' => '800',
'menu' => TRUE,
'randomize' => TRUE,
'rankType' => 'TopBottom',
'rankDepth' => 2,
'showLinks' => FALSE,
'width' => '800',
),
'physics' => array(
'showForces' => FALSE,
'applyAttractToCenter' => TRUE,
'applyBoundingBox' => FALSE,
'applyBoxOverlap' => FALSE,
'applyCoulombsLaw' => TRUE,
'applyDamping' => TRUE,
'applyHookesLaw' => TRUE,
'applyCompass' => FALSE,
),
'links' => array(),
),
);
return $result;
}
Especially the physics part seems graph_phyz related.
Comments
Comment #1
s.daniel commentedNote: graph_phyz_default_config doesn't exist currently but is called in graph_phyz.module:
There is graph_phyz_graphapi_default_settings() and graph_phyz_default_settings()
I'm currently trying to understand how you intented the settings of the graphapi and the rendering modules to work together. If you have time to describe me what your goals for the settings structure, this would probably help me to implement the graphviz integration.
Comment #2
clemens.tolboom