UNPKG

@antv/t8

Version:

T8 is a text visualization solution for unstructured data within the AntV technology stack, and it is a declarative T8 markdown syntax that can be used to describe the content of data interpretation reports.

20 lines (17 loc) 745 B
'use strict'; var PARAGRAPH_TRANSFORM_MAP = { headline: 'h1', heading1: 'h1', heading2: 'h2', heading3: 'h3', heading4: 'h4', heading5: 'h5', heading6: 'h6', }; var getElementFontSize = function (paragraphType, themeSeedToken) { var _a, _b; var fontSizeMultiple = (_a = themeSeedToken === null || themeSeedToken === void 0 ? void 0 : themeSeedToken.fontSizeMultiples[PARAGRAPH_TRANSFORM_MAP[paragraphType]]) !== null && _a !== void 0 ? _a : 1; return ((_b = themeSeedToken === null || themeSeedToken === void 0 ? void 0 : themeSeedToken.fontSize) !== null && _b !== void 0 ? _b : 12) * fontSizeMultiple; }; exports.getElementFontSize = getElementFontSize; //# sourceMappingURL=getElementFontSize.js.map