constants.js 703 B

12345678910111213141516171819202122232425
  1. import { __assign } from "tslib";
  2. import { get } from '@antv/util';
  3. export var DEFAULT_TOOLTIP_OPTIONS = {
  4. showTitle: false,
  5. shared: true,
  6. showMarkers: false,
  7. customContent: function (x, data) { return "".concat(get(data, [0, 'data', 'y'], 0)); },
  8. containerTpl: '<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',
  9. itemTpl: '<span>{value}</span>',
  10. domStyles: {
  11. 'g2-tooltip': {
  12. padding: '2px 4px',
  13. fontSize: '10px',
  14. },
  15. },
  16. };
  17. /**
  18. * 默认配置项
  19. */
  20. export var DEFAULT_OPTIONS = {
  21. appendPadding: 2,
  22. tooltip: __assign({}, DEFAULT_TOOLTIP_OPTIONS),
  23. animation: {},
  24. };
  25. //# sourceMappingURL=constants.js.map