@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>
44 lines (43 loc) • 1.43 kB
JavaScript
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
function _objectSpread(target) {
for(var i = 1; i < arguments.length; i++){
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === "function") {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
}
ownKeys.forEach(function(key) {
_defineProperty(target, key, source[key]);
});
}
return target;
}
import { jsx as _jsx } from "react/jsx-runtime";
import { ResponsiveWrapper } from "@dfnivo/core";
import { Sankey } from "./Sankey";
export var ResponsiveSankey = function(props) {
return /*#__PURE__*/ _jsx(ResponsiveWrapper, {
children: function(param) {
var width = param.width, height = param.height;
return /*#__PURE__*/ _jsx(Sankey, _objectSpread({
width: width,
height: height
}, props));
}
});
};
//# sourceMappingURL=ResponsiveSankey.js.map