UNPKG

@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.

16 lines 665 B
import { FunctionalComponent, JSX } from 'preact'; type SvgPreactFC = FunctionalComponent<JSX.SVGAttributes<SVGSVGElement>>; /** * Custom hook that provides an SVG wrapper component and its calculated size * * This hook creates an SVG container that automatically sizes itself based on * the font size of its parent element. This allows charts to scale properly * within text content. * * @returns [Svg, size] - A tuple containing: * - Svg: A component to wrap SVG content * - size: The calculated size based on parent font size */ export declare const useSvgWrapper: () => [SvgPreactFC, number]; export {}; //# sourceMappingURL=useSvgWrapper.d.ts.map