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.

24 lines 1.69 kB
import { SpecificEntityPhraseDescriptor } from '../types'; /** * Helper function to merge default and custom descriptor properties. * * Creates a new descriptor that combines properties from both input descriptors, * with special handling for the encoding object to ensure deep merging. * * @param defaultDescriptor - The base descriptor with default properties * @param customDescriptor - The custom descriptor with overriding properties * @returns A merged descriptor combining both inputs */ export declare function getMergedDescriptor(defaultDescriptor: SpecificEntityPhraseDescriptor, customDescriptor: SpecificEntityPhraseDescriptor): { style?: import("../types").CSSProperties | ((value: string, metadata: import("../..").EntityMetaData, themeSeedToken: import("../../theme").SeedTokenOptions) => import("../types").CSSProperties); tooltip?: false | (Omit<import("../../vis-components").TooltipProps, "children" | "title"> & { title: string | number | HTMLElement | ((value: string, metadata: import("../..").EntityMetaData) => HTMLElement | string | number); }); onClick?: (value: string, metadata: import("../..").EntityMetaData) => string; render?: HTMLElement | ((value: string, metadata: import("../..").EntityMetaData) => HTMLElement); classNames?: string[] | ((value: string, metadata: import("../..").EntityMetaData) => string[]); onHover?: (value: string, metadata: import("../..").EntityMetaData) => string; getText?: (value: string, metadata: import("../..").EntityMetaData) => string; getMarkdown?: (value: string, metadata: import("../..").EntityMetaData) => string; }; //# sourceMappingURL=getMergedDescriptor.d.ts.map