UPlot.js
"use strict";
var uPlot = require("/uPlot/dist/uPlot.cjs.js");
exports.setSizeImpl = uplot => width => height => () => {
uplot.setSize({width, height});
};
exports.setDataImpl = uplot => data => () => {
uplot.setData(data);
};
exports.destroyImpl = uplot => () => {
uplot.destroy();
uplot = null;
};
exports.initializeImpl = element => opts => () => {
console.log("opts", opts);
return new uPlot(opts, [], element);
};