import { Annotation, AnnotationView } from "./annotation"; import type * as visuals from "../../core/visuals"; import type * as p from "../../core/properties"; import type { BaseTextView } from "../text/base_text"; import { BaseText } from "../text/base_text"; import type { View } from "../../core/build_views"; import type { GraphicsBox } from "../../core/graphics"; import { Padding, BorderRadius } from "../common/kinds"; import type { LRTB, XY, SXY, Corners } from "../../core/util/bbox"; import type { Context2d } from "../../core/util/canvas"; import type { Size } from "../../core/layout"; import * as mixins from "../../core/property_mixins"; export declare abstract class TextAnnotationView extends AnnotationView { model: TextAnnotation; visuals: TextAnnotation.Visuals; protected _text_view: BaseTextView; children_views(): View[]; lazy_initialize(): Promise; protected _init_text(): Promise; update_layout(): void; connect_signals(): void; remove(): void; has_finished(): boolean; get displayed(): boolean; abstract get anchor(): XY; abstract get origin(): SXY; abstract get angle(): number; get padding(): LRTB; get border_radius(): Corners; protected _text_box: GraphicsBox; protected _rect: { sx: number; sy: number; width: number; height: number; angle: number; anchor: XY; padding: LRTB; border_radius: Corners; }; protected _get_size(): Size; compute_geometry(): void; protected _paint(ctx: Context2d): void; } export declare namespace TextAnnotation { type Attrs = p.AttrsOf; type Props = Annotation.Props & { text: p.Property; padding: p.Property; border_radius: p.Property; } & Mixins; type Mixins = mixins.Text & mixins.BorderLine & mixins.BackgroundFill & mixins.BackgroundHatch; type Visuals = Annotation.Visuals & { text: visuals.Text; border_line: visuals.Line; background_fill: visuals.Fill; background_hatch: visuals.Hatch; }; } export interface TextAnnotation extends TextAnnotation.Attrs { } export declare abstract class TextAnnotation extends Annotation { properties: TextAnnotation.Props; __view_type__: TextAnnotationView; constructor(attrs?: Partial); } //# sourceMappingURL=text_annotation.d.ts.map