@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.
24 lines (20 loc) • 563 B
JavaScript
;
var styledFactory = require('./utils/styledFactory.js');
var getEntityStyle = function (theme) {
return {
display: 'inline-block',
alignItems: 'center',
boxSizing: 'border-box',
fontFamily: theme.fontFamily,
lineHeight: '1.5em',
borderRadius: '2px',
color: theme.colorEntityBase,
margin: '0 2px',
};
};
var Entity = styledFactory.createStyledComponent({
element: 'span',
factoryStyles: getEntityStyle,
});
exports.Entity = Entity;
//# sourceMappingURL=entity.js.map