@antv/t8
Version:
T8 is a text visualization solution for unstructured data within the AntV technology stack, and it is a declarative JSON Schema syntax that can be used to describe the content of data interpretation reports.
23 lines (20 loc) • 588 B
JavaScript
import { createStyledComponent } from './utils/styledFactory.js';
var getEntityStyle = function (theme) {
return {
display: 'inline-block',
alignItems: 'center',
boxSizing: 'border-box',
fontSize: "".concat(theme.fontSize, "px"),
fontFamily: theme.fontFamily,
lineHeight: '1.5em',
borderRadius: '2px',
color: theme.colorEntityBase,
margin: '0 2px',
};
};
var Entity = createStyledComponent({
element: 'span',
factoryStyles: getEntityStyle,
});
export { Entity };
//# sourceMappingURL=entity.js.map