react-d3-graph
Version:
React component to build interactive and configurable graphs with d3 effortlessly
20 lines (18 loc) • 527 B
JavaScript
/**
* @module Link/const
* @description
* A set of constants that facilitate readability regarding links.
*/
/**
* @typedef {Object} LINE_TYPES
* @property {string} STRAIGHT - a straight line.
* @property {string} CURVE_SMOOTH - a slight curve between two nodes
* @property {string} CURVE_FULL - a semicircumference trajectory unites source and target nodes.
* @memberof Link/const
*/
const LINE_TYPES = {
STRAIGHT: "STRAIGHT",
CURVE_SMOOTH: "CURVE_SMOOTH",
CURVE_FULL: "CURVE_FULL",
};
export { LINE_TYPES };