cytoscape-react-fe-ml
Version:
126 lines (120 loc) • 2.51 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var graphLayout = {
auto: {
name: 'cose',
idealEdgeLength: 100,
nodeOverlap: 1000,
refresh: 20,
fit: true,
padding: 30,
randomize: false,
componentSpacing: 10,
nodeRepulsion: 400000,
edgeElasticity: 100,
nestingFactor: 5,
gravity: 80,
numIter: 2000,
initialTemp: 1000,
coolingFactor: 0.95,
minTemp: 1.0,
nodeDimensionsIncludeLabels: true
},
grid: {
name: 'grid',
fit: true,
padding: 30,
boundingBox: undefined,
avoidOverlap: true,
rows: undefined,
columns: undefined,
position() {},
animate: true,
animationDuration: 300,
ready: undefined,
stop: undefined
},
circle: {
name: 'circle',
fit: true,
padding: 30,
boundingBox: undefined,
avoidOverlap: true,
radius: undefined,
startAngle: 3 / 2 * Math.PI,
counterclockwise: false,
animate: true,
animationDuration: 300,
ready: undefined,
stop: undefined
},
breadthfirst: {
name: 'breadthfirst',
fit: true,
directed: false,
padding: 30,
circle: false,
spacingFactor: 2,
boundingBox: undefined,
avoidOverlap: true,
roots: undefined,
maximalAdjustments: 0,
maximal: true,
animate: true,
animationDuration: 300,
ready: undefined,
stop: undefined
},
concentric: {
name: 'concentric',
fit: true,
padding: 30,
startAngle: 3 / 2 * Math.PI,
counterclockwise: false,
minNodeSpacing: 80,
boundingBox: undefined,
avoidOverlap: true,
height: undefined,
width: undefined,
concentric(node) {
return node.degree();
},
levelWidth(nodes) {
return nodes.maxDegree() / 4;
},
animate: true,
animationDuration: 300,
ready: undefined,
stop: undefined
},
euler: {
name: 'euler',
springLength: () => 80,
springCoeff: () => 0.0008,
mass: () => 4,
gravity: -100,
pull: 0.03,
theta: 0.666,
dragCoeff: 0.02,
movementThreshold: 1,
timeStep: 20,
refresh: 100,
animate: 'end',
animationDuration: true,
animationEasing: undefined,
maxIterations: 1000,
maxSimulationTime: 4000,
ungrabifyWhileSimulating: false,
fit: true,
padding: 30,
boundingBox: undefined,
ready: () => {},
stop: () => {},
randomize: true
}
};
var _default = graphLayout;
exports.default = _default;