constant.js 1012 B

123456789101112131415161718192021222324252627282930313233
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.DEFAULT_OPTIONS = exports.WORD_CLOUD_COLOR_FIELD = void 0;
  4. var plot_1 = require("../../core/plot");
  5. var utils_1 = require("../../utils");
  6. /** 词云图 color 通道映射字段 */
  7. exports.WORD_CLOUD_COLOR_FIELD = 'color';
  8. /**
  9. * 词云图 默认配置项
  10. */
  11. exports.DEFAULT_OPTIONS = (0, utils_1.deepAssign)({}, plot_1.Plot.getDefaultOptions(), {
  12. timeInterval: 2000,
  13. legend: false,
  14. tooltip: {
  15. showTitle: false,
  16. showMarkers: false,
  17. showCrosshairs: false,
  18. fields: ['text', 'value', exports.WORD_CLOUD_COLOR_FIELD],
  19. formatter: function (datum) {
  20. return { name: datum.text, value: datum.value };
  21. },
  22. },
  23. wordStyle: {
  24. fontFamily: 'Verdana',
  25. fontWeight: 'normal',
  26. padding: 1,
  27. fontSize: [12, 60],
  28. rotation: [0, 90],
  29. rotationSteps: 2,
  30. rotateRatio: 0.5,
  31. },
  32. });
  33. //# sourceMappingURL=constant.js.map