constant.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.DEFAULT_OPTIONS = void 0;
  4. exports.DEFAULT_OPTIONS = {
  5. // 默认按照 name 字段对颜色进行分类
  6. colorField: 'name',
  7. rectStyle: {
  8. lineWidth: 1,
  9. stroke: '#fff',
  10. },
  11. hierarchyConfig: {
  12. tile: 'treemapSquarify',
  13. },
  14. label: {
  15. fields: ['name'],
  16. layout: {
  17. type: 'limit-in-shape',
  18. },
  19. },
  20. tooltip: {
  21. showMarkers: false,
  22. showTitle: false,
  23. },
  24. // 下钻交互配置,默认不开启
  25. drilldown: {
  26. enabled: false,
  27. breadCrumb: {
  28. position: 'bottom-left',
  29. rootText: '初始',
  30. dividerText: '/',
  31. textStyle: {
  32. fontSize: 12,
  33. fill: 'rgba(0, 0, 0, 0.65)',
  34. cursor: 'pointer',
  35. },
  36. activeTextStyle: {
  37. fill: '#87B5FF',
  38. },
  39. },
  40. },
  41. };
  42. //# sourceMappingURL=constant.js.map