contants.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.DEFAULT_OPTIONS = void 0;
  4. var plot_1 = require("../../core/plot");
  5. var utils_1 = require("../../utils");
  6. /**
  7. * 饼图默认配置项
  8. */
  9. exports.DEFAULT_OPTIONS = (0, utils_1.deepAssign)({}, plot_1.Plot.getDefaultOptions(), {
  10. legend: {
  11. position: 'right',
  12. radio: {},
  13. },
  14. tooltip: {
  15. shared: false,
  16. showTitle: false,
  17. showMarkers: false,
  18. },
  19. label: {
  20. layout: { type: 'limit-in-plot', cfg: { action: 'ellipsis' } },
  21. },
  22. /** 饼图样式, 不影响暗黑主题 */
  23. pieStyle: {
  24. stroke: 'white',
  25. lineWidth: 1,
  26. },
  27. /** 饼图中心文本默认样式 */
  28. statistic: {
  29. title: {
  30. style: { fontWeight: 300, color: '#4B535E', textAlign: 'center', fontSize: '20px', lineHeight: 1 },
  31. },
  32. content: {
  33. style: {
  34. fontWeight: 'bold',
  35. color: 'rgba(44,53,66,0.85)',
  36. textAlign: 'center',
  37. fontSize: '32px',
  38. lineHeight: 1,
  39. },
  40. },
  41. },
  42. /** 默认关闭 text-annotation 动画 */
  43. theme: {
  44. components: {
  45. annotation: {
  46. text: {
  47. animate: false,
  48. },
  49. },
  50. },
  51. },
  52. });
  53. //# sourceMappingURL=contants.js.map