constants.js 870 B

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