import { ObjectManager } from "../../ObjectManager"; import { AnnotationBase, type AnnotationBaseProperties } from "./AnnotationBase"; import type { Color } from "../../Types"; import type { MarkupAnnotation } from "./MarkupAnnotation"; /** * Defines properties of a {@link PopupAnnotation}. */ export type PopupAnnotationProperties = AnnotationBaseProperties & { type: "popup"; /** * A value specifying whether the pop-up annotation should initially * be displayed open. */ open?: boolean; /** * The popup window color. */ color?: Color; }; /** * Reprensets an annotation displays text in a popup window for entry and editing. * It shall not appear alone but is associated with a {@link MarkupAnnotation}, * its parent annotation, and shall be used for editing the parent's text. */ export declare class PopupAnnotation extends AnnotationBase { /** * Creates a new {@link PopupAnnotation}. * * @param om - {@link ObjectManager} that controls the lifetime of the {@link PopupAnnotation}. */ constructor(om: ObjectManager); /** * Creates a new {@link PopupAnnotation}. */ constructor(); /** * Gets the parent {@link MarkupAnnotation} of the current annotation. * This property changes when the {@link MarkupAnnotation#referenceAnnotation} is changed. */ get parent(): MarkupAnnotation | null; /** * Gets or sets a value specifying whether the pop-up annotation should initially * be displayed open. */ get open(): boolean; /** * Gets or sets a value specifying whether the pop-up annotation should initially * be displayed open. */ set open(value: boolean); /** * Gets or sets the popup window color. */ get color(): Color; /** * Gets or sets the popup window color. */ set color(value: Color); }