lab.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { Mix } from './plots/mix';
  2. /** 实验室图表所处的阶段 */
  3. export var Stage;
  4. (function (Stage) {
  5. Stage["DEV"] = "DEV";
  6. Stage["BETA"] = "BETA";
  7. Stage["STABLE"] = "STABLE";
  8. })(Stage || (Stage = {}));
  9. /**
  10. * 不同阶段打印一些消息给开发者
  11. * @param stage
  12. */
  13. export function notice(stage, plotType) {
  14. console.warn(stage === Stage.DEV
  15. ? "Plot '".concat(plotType, "' is in DEV stage, just give us issues.")
  16. : stage === Stage.BETA
  17. ? "Plot '".concat(plotType, "' is in BETA stage, DO NOT use it in production env.")
  18. : stage === Stage.STABLE
  19. ? "Plot '".concat(plotType, "' is in STABLE stage, import it by \"import { ").concat(plotType, " } from '@antv/g2plot'\".")
  20. : 'invalid Stage type.');
  21. }
  22. /**
  23. * 实验室图表,实验室中的图表分成不同的阶段。
  24. */
  25. var Lab = /** @class */ (function () {
  26. function Lab() {
  27. }
  28. Object.defineProperty(Lab, "MultiView", {
  29. get: function () {
  30. notice(Stage.STABLE, 'MultiView');
  31. return Mix;
  32. },
  33. enumerable: false,
  34. configurable: true
  35. });
  36. return Lab;
  37. }());
  38. export { Lab };
  39. //# sourceMappingURL=lab.js.map