UNPKG

@dfnivo/sankey

Version:

<a href="https://nivo.rocks"><img alt="nivo" src="https://raw.githubusercontent.com/plouc/nivo/master/nivo.png" width="216" height="68"/></a>

97 lines (96 loc) 2.38 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { sankeyAlignmentPropMapping: function() { return sankeyAlignmentPropMapping; }, sankeyAlignmentPropKeys: function() { return sankeyAlignmentPropKeys; }, sankeyAlignmentFromProp: function() { return sankeyAlignmentFromProp; }, svgDefaultProps: function() { return svgDefaultProps; } }); var _d3Sankey = require("d3-sankey"); var _sankeyNodeTooltip = require("./SankeyNodeTooltip"); var _sankeyLinkTooltip = require("./SankeyLinkTooltip"); var sankeyAlignmentPropMapping = { center: _d3Sankey.sankeyCenter, justify: _d3Sankey.sankeyJustify, start: _d3Sankey.sankeyLeft, end: _d3Sankey.sankeyRight }; var sankeyAlignmentPropKeys = Object.keys(sankeyAlignmentPropMapping); var sankeyAlignmentFromProp = function(prop) { return sankeyAlignmentPropMapping[prop]; }; var svgDefaultProps = { layout: "horizontal", align: "center", sort: "auto", colors: { scheme: "nivo" }, nodeOpacity: 0.75, nodeHoverOpacity: 1, nodeHoverOthersOpacity: 0.15, nodeThickness: 12, nodeSpacing: 12, nodeInnerPadding: 0, nodeBorderWidth: 1, nodeBorderColor: { from: "color", modifiers: [ [ "darker", 0.5 ] ] }, nodeBorderRadius: 0, linkOpacity: 0.25, linkHoverOpacity: 0.6, linkHoverOthersOpacity: 0.15, linkContract: 0, linkBlendMode: "multiply", enableLinkGradient: false, enableLabels: true, label: "id", labelPosition: "inside", labelPadding: 9, labelOrientation: "horizontal", labelTextColor: { from: "color", modifiers: [ [ "darker", 0.8 ] ] }, isInteractive: true, nodeTooltip: _sankeyNodeTooltip.SankeyNodeTooltip, linkTooltip: _sankeyLinkTooltip.SankeyLinkTooltip, legends: [], layers: [ "links", "nodes", "labels", "legends" ], role: "img", animate: true, motionConfig: "gentle" }; //# sourceMappingURL=props.js.map