@visactor/vtable
Version:
canvas table width high performance
15 lines (10 loc) • 552 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.createLegend = void 0;
const discrete_legend_1 = require("./discrete-legend/discrete-legend"), continue_legend_1 = require("./continue-legend/continue-legend");
function createLegend(option, table) {
return "color" === option.type || "size" === option.type ? new continue_legend_1.ContinueTableLegend(option, table) : new discrete_legend_1.DiscreteTableLegend(option, table);
}
exports.createLegend = createLegend;
//# sourceMappingURL=create-legend.js.map