@antv/g2plot
Version:
An interactive and responsive charting library
43 lines • 1.38 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Lab = exports.notice = exports.Stage = void 0;
var mix_1 = require("./plots/mix");
/** 实验室图表所处的阶段 */
var Stage;
(function (Stage) {
Stage["DEV"] = "DEV";
Stage["BETA"] = "BETA";
Stage["STABLE"] = "STABLE";
})(Stage = exports.Stage || (exports.Stage = {}));
/**
* 不同阶段打印一些消息给开发者
* @param stage
*/
function notice(stage, plotType) {
console.warn(stage === Stage.DEV
? "Plot '" + plotType + "' is in DEV stage, just give us issues."
: stage === Stage.BETA
? "Plot '" + plotType + "' is in BETA stage, DO NOT use it in production env."
: stage === Stage.STABLE
? "Plot '" + plotType + "' is in STABLE stage, import it by \"import { " + plotType + " } from '@antv/g2plot'\"."
: 'invalid Stage type.');
}
exports.notice = notice;
/**
* 实验室图表,实验室中的图表分成不同的阶段。
*/
var Lab = /** @class */ (function () {
function Lab() {
}
Object.defineProperty(Lab, "MultiView", {
get: function () {
notice(Stage.STABLE, 'MultiView');
return mix_1.Mix;
},
enumerable: false,
configurable: true
});
return Lab;
}());
exports.Lab = Lab;
//# sourceMappingURL=lab.js.map
;