import { MarkupAnnotation, type MarkupAnnotationProperties } from "./MarkupAnnotation"; import { type Color } from "../../Types"; import { type Point } from "../../Types"; /** * Base type for {@link PolygonAnnotationProperties} and {@link PolyLineAnnotationProperties}. */ export type PolygonAnnotationBaseProperties = MarkupAnnotationProperties & { /** * The interior color with which to fill the annotation's elements. */ fillColor?: Color; /** * The points of polygon or polyline. * The coordinates of points are relative to the upper left corner of the page's * media box, with the Y (vertical) coordinates increasing from top to bottom. */ points?: Point[]; /** * The line width in points. */ lineWidth?: number; /** * The line dash pattern. Null means a solid line. */ lineDashPattern?: number[]; }; /** * Base class for {@link PolygonAnnotation} and {@link PolyLineAnnotation}. */ export declare class PolygonAnnotationBase extends MarkupAnnotation { /** * Gets or sets the interior color with which to fill the annotation's elements. */ get fillColor(): Color; /** * Gets or sets the interior color with which to fill the annotation's elements. */ set fillColor(value: Color); /** * Gets or sets the points of polygon or polyline. * The coordinates of points are relative to the upper left corner of the page's * media box, with the Y (vertical) coordinates increasing from top to bottom. * * Note that if the annotation is associated with more than one page, * the media box of the first of those pages is used to calculate the coordinates. */ get points(): Point[] | null; /** * Gets or sets the points of polygon or polyline. * The coordinates of points are relative to the upper left corner of the page's * media box, with the Y (vertical) coordinates increasing from top to bottom. * * Note that if the annotation is associated with more than one page, * the media box of the first of those pages is used to calculate the coordinates. */ set points(value: Point[] | null); /** * Gets or sets the points of polygon or polyline in PDF user space coordinates. * The positive X axis extends horizontally to the right, and the positive Y axis * extends vertically upward, with the origin usually in the lower left corner of the page. * * @see {@link points} */ get pdfPoints(): Point[] | null; /** * Gets or sets the points of polygon or polyline in PDF user space coordinates. * The positive X axis extends horizontally to the right, and the positive Y axis * extends vertically upward, with the origin usually in the lower left corner of the page. * * @see {@link points} */ set pdfPoints(value: Point[] | null); /** * 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); }