UNPKG

scichart

Version:

Fast WebGL JavaScript Charting Library and Framework

23 lines (22 loc) 963 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.calcTooltipHeight = exports.calcTooltipWidth = exports.defaultTooltipDataTemplate = void 0; /** @ignore */ var defaultTooltipDataTemplate = function (seriesInfo, tooltipTitle, tooltipLabelX, tooltipLabelY) { return seriesInfo.getValuesWithLabels(tooltipTitle, tooltipLabelX, tooltipLabelY, true); }; exports.defaultTooltipDataTemplate = defaultTooltipDataTemplate; /** @ignore */ var calcTooltipWidth = function (textLength, fontSize) { if (textLength === void 0) { textLength = 20; } if (fontSize === void 0) { fontSize = 13; } return textLength * 8 + 20; }; exports.calcTooltipWidth = calcTooltipWidth; /** @ignore */ var calcTooltipHeight = function (lines, fontSize) { if (lines === void 0) { lines = 2; } if (fontSize === void 0) { fontSize = 13; } return 17 * lines + 16; }; exports.calcTooltipHeight = calcTooltipHeight;