UNPKG

ag-charts-community

Version:

Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue

24 lines (23 loc) 1.38 kB
import { BaseProperties, type NormalisedTextOrSegments, callWithContext } from 'ag-charts-core'; import type { AgChartOverlayRendererParams, DatumDefault, ImageSegment, Renderer } from 'ag-charts-types'; import type { LocaleManager } from '../../locale/localeManager'; import type { BBox } from '../../scene/bbox'; import type { AnimationManager } from '../interaction/animationManager'; export declare const DEFAULT_OVERLAY_CLASS = "ag-charts-overlay"; export declare const DEFAULT_OVERLAY_DARK_CLASS = "ag-charts-dark-overlay"; export declare function imageSegmentStyle(segment: ImageSegment): Partial<CSSStyleDeclaration>; export declare class Overlay extends BaseProperties { protected className: string; protected defaultMessageId: string; enabled: boolean; text?: NormalisedTextOrSegments; renderer?: Renderer<AgChartOverlayRendererParams<DatumDefault>, HTMLElement>; private content?; private rendererAsText?; focusBox?: BBox; constructor(className: string, defaultMessageId: string); getText(localeManager: LocaleManager): string; getElement(callers: Parameters<typeof callWithContext>[0], animationManager: AnimationManager | undefined, localeManager: LocaleManager, rect: BBox): HTMLElement; private appendImageSegment; removeElement(cleanup?: () => void | undefined, animationManager?: AnimationManager): void; }