import { ObjectManager } from "../../ObjectManager"; import { MarkupAnnotation, type MarkupAnnotationProperties } from "./MarkupAnnotation"; import { type BorderEffectProperties } from "./BorderEffect"; import { BorderEffect } from "./BorderEffect"; import { type Color } from "../../Types"; /** * Defines properties of a square annotation which displays a rectangle on a page. * When opened, a square annotation displays a pop-up window containing the text of the associated note. * @see {@link SquareAnnotation} */ export type SquareAnnotationProperties = MarkupAnnotationProperties & { type: "square"; /** * The {@link BorderEffectProperties} object defining effect applied to the annotation. */ borderEffect?: BorderEffectProperties; /** * The line width in points. * Not specified means 1. */ lineWidth?: number; /** * The line dash pattern. * Not specified means solid line. */ lineDashPattern?: number[]; /** * The fill color. * Not specified means no fill. */ fillColor?: Color; }; /** * Represents a square annotation which displays a rectangle on a page. * When opened, a square annotation displays a pop-up window containing the text of the associated note. */ export declare class SquareAnnotation extends MarkupAnnotation { /** * Creates a new {@link SquareAnnotation}. * * @param om - {@link ObjectManager} that controls the lifetime of the {@link SquareAnnotation}. */ constructor(om: ObjectManager); /** * Creates a new {@link SquareAnnotation}. */ constructor(); /** * Gets or sets the the border effect applied to the polygon. */ get borderEffect(): BorderEffect; /** * Gets or sets the the border effect applied to the polygon. */ set borderEffect(value: BorderEffect | BorderEffectProperties); /** * Gets or sets the line width in points. */ get lineWidth(): number; /** * Gets or sets the line width in points. */ set lineWidth(value: number); /** * Gets or sets the line dash pattern. Null means a solid line. */ get lineDashPattern(): number[] | null; /** * Gets or sets the line dash pattern. Null means a solid line. */ set lineDashPattern(value: number[] | null); /** * Gets or sets the fill color. */ get fillColor(): Color; /** * Gets or sets the fill color. */ set fillColor(value: Color); }