pijul nest
guest [sign in]

Fork channel

Create a new channel as a copy of main.

Rename channel

Rename main to:

Delete channel

Delete main? This cannot be undone.

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);
};