function LayoutConstants() { | |
} | |
/** | |
* Layout Quality: 0:draft, 1:default, 2:proof | |
*/ | |
LayoutConstants.QUALITY = 1; | |
/** | |
* Default parameters | |
*/ | |
LayoutConstants.DEFAULT_CREATE_BENDS_AS_NEEDED = false; | |
LayoutConstants.DEFAULT_INCREMENTAL = false; | |
LayoutConstants.DEFAULT_ANIMATION_ON_LAYOUT = true; | |
LayoutConstants.DEFAULT_ANIMATION_DURING_LAYOUT = false; | |
LayoutConstants.DEFAULT_ANIMATION_PERIOD = 50; | |
LayoutConstants.DEFAULT_UNIFORM_LEAF_NODE_SIZES = false; | |
// ----------------------------------------------------------------------------- | |
// Section: General other constants | |
// ----------------------------------------------------------------------------- | |
/* | |
* Margins of a graph to be applied on bouding rectangle of its contents. We | |
* assume margins on all four sides to be uniform. | |
*/ | |
LayoutConstants.DEFAULT_GRAPH_MARGIN = 15; | |
/* | |
* Whether to consider labels in node dimensions or not | |
*/ | |
LayoutConstants.NODE_DIMENSIONS_INCLUDE_LABELS = false; | |
/* | |
* Default dimension of a non-compound node. | |
*/ | |
LayoutConstants.SIMPLE_NODE_SIZE = 40; | |
/* | |
* Default dimension of a non-compound node. | |
*/ | |
LayoutConstants.SIMPLE_NODE_HALF_SIZE = LayoutConstants.SIMPLE_NODE_SIZE / 2; | |
/* | |
* Empty compound node size. When a compound node is empty, its both | |
* dimensions should be of this value. | |
*/ | |
LayoutConstants.EMPTY_COMPOUND_NODE_SIZE = 40; | |
/* | |
* Minimum length that an edge should take during layout | |
*/ | |
LayoutConstants.MIN_EDGE_LENGTH = 1; | |
/* | |
* World boundaries that layout operates on | |
*/ | |
LayoutConstants.WORLD_BOUNDARY = 1000000; | |
/* | |
* World boundaries that random positioning can be performed with | |
*/ | |
LayoutConstants.INITIAL_WORLD_BOUNDARY = LayoutConstants.WORLD_BOUNDARY / 1000; | |
/* | |
* Coordinates of the world center | |
*/ | |
LayoutConstants.WORLD_CENTER_X = 1200; | |
LayoutConstants.WORLD_CENTER_Y = 900; | |
module.exports = LayoutConstants; | |