import { Point } from '@syncfusion/ej2-pdf'; /** * Represents an intersection point between two polygon edges with parametric positions. * * @private */ export declare class _PdfIntersection { /** * Intersection X coordinate. * * @private */ _x: number; /** * Intersection Y coordinate. * * @private */ _y: number; /** * Parametric position along the source edge. * * @private */ _toSource: number; /** * Parametric position along the clip edge. * * @private */ _toClip: number; constructor(s1: _PdfVertex, s2: _PdfVertex, c1: _PdfVertex, c2: _PdfVertex); /** * Returns whether the intersection lies strictly within both segments (0..1). * * @private * @returns {boolean} `true` if valid; otherwise, `false`. */ _isValid(): boolean; } /** * Polygon helper for clipping paths against redaction rectangles. * * @private */ export declare class _PdfPolygon { /** * First vertex in the closed linked list of vertices. * * @private */ _first: _PdfVertex; private _vertices; private _lastUnprocessed; private _firstIntersect; private _arrayVertices; /** * Global intersections found while clipping. * * @private */ _globalIntersections: Point[]; constructor(p: Point[], arrayVertices?: boolean); /** * Appends a vertex to the polygon's circular list. * * @private * @param {_PdfVertex} vertex Vertex to add. * @returns {void} nothing. */ _addVertex(vertex: _PdfVertex): void; /** * Inserts an intersection vertex in order between two vertices. * * @private * @param {_PdfVertex} vertex Intersection vertex. * @param {_PdfVertex} start Start vertex of the edge. * @param {_PdfVertex} end End vertex of the edge. * @returns {void} nothing. */ _insertVertex(vertex: _PdfVertex, start: _PdfVertex, end: _PdfVertex): void; /** * Returns the next non-intersection vertex from the given vertex. * * @private * @param {_PdfVertex} v Starting vertex. * @returns {_PdfVertex} The next source vertex. */ _getNext(v: _PdfVertex): _PdfVertex; /** * Finds the first unvisited intersection vertex to start a clipped polygon trace. * * @private * @returns {_PdfVertex} The first unvisited intersection vertex. */ _getFirstIntersect(): _PdfVertex; /** * Determines whether there is at least one unvisited intersection vertex. * * @private * @returns {boolean} `true` if work remains; otherwise, `false`. */ _hasUnprocessed(): boolean; /** * Returns the polygon's vertices as a point array. * * @private * @returns {Point[]} Polygon point list. */ _getPoints(): Point[]; /** * Clips this polygon by `clip` polygon and returns resulting paths. * * @private * @param {_PdfPolygon} clip The clipping polygon. * @param {boolean} sourceForwards Initial source traversal direction flag. * @param {boolean} clipForwards Initial clip traversal direction flag. * @returns {Point} Resulting polygon rings. */ _clip(clip: _PdfPolygon, sourceForwards: boolean, clipForwards: boolean): Point[][]; private _computeIntersections; private _setEntryExitFlags; private _constructClippedPolygons; private _handleEmptyResult; } /** * Vertex used by the polygon clipping algorithm with linked-list topology. * * @private */ export declare class _PdfVertex { /** * X coordinate. * * @private */ _x: number; /** * Y coordinate. * * @private */ _y: number; /** * Next vertex in the circular list. * * @private */ _next: _PdfVertex; /** * Previous vertex in the circular list. * * @private */ _prev: _PdfVertex; /** * Corresponding intersection vertex on the opposite polygon. * * @private */ _corresponding: _PdfVertex; /** * Parametric distance along the edge for intersections. * * @private */ _distance: number; /** * Indicates whether this intersection is an entry point. * * @private */ _isEntry: boolean; /** * Indicates whether this vertex is an intersection. * * @private */ _isIntersection: boolean; /** * Indicates whether this intersection vertex was visited. * * @private */ _visited: boolean; constructor(x: number, y: number); /** * Creates and returns an intersection vertex derived from this vertex edge. * * @private * @param {number} x Intersection X. * @param {number} y Intersection Y. * @param {number} distance Parametric distance along the edge. * @returns {_PdfVertex} The created intersection vertex. */ _createIntersection(x: number, y: number, distance: number): _PdfVertex; /** * Marks this vertex as visited, and propagates to the corresponding vertex. * * @private * @returns {void} nothing. */ _visit(): void; /** * Compares equality with another vertex . * * @private * @param {_PdfVertex} v Other vertex. * @returns {boolean} `true` if both coordinates match; otherwise, `false`. */ _equals(v: _PdfVertex): boolean; /** * Determines whether this vertex lies inside the given polygon. * * @private * @param {_PdfPolygon} poly Polygon to test against. * @returns {boolean} `true` if inside; otherwise, `false`. */ _isInside(poly: _PdfPolygon): boolean; }