@syncfusion/ej2-pdfviewer
Version:
Essential JS 2 PDF viewer Component
71 lines (70 loc) • 1.88 kB
TypeScript
import { Size } from '../../primitives/size';
import { DrawingElement } from './drawing-element';
import { Rect } from '../../primitives/rect';
/**
* @hidden
* PathElement takes care of how to align the path based on offsetX and offsetY
*/
export declare class PathElement extends DrawingElement {
/**
* set the id for each element
*/
constructor();
/**
* Gets or sets the geometry of the path element
*/
private pathData;
/**
* Gets the geometry of the path element
*
* @private
* @returns {string} - string
*/
/**
* Sets the geometry of the path element
*
* @param {string} value - value
* @private
*/
data: string;
/**
* Gets/Sets whether the path has to be transformed to fit the given x,y, width, height
*/
transformPath: boolean;
/**
* Gets/Sets the equivalent path, that will have the origin as 0,0
*/
absolutePath: string;
/** @private */
canMeasurePath: boolean;
/** @private */
absoluteBounds: Rect;
private points;
private pointTimer;
/**
* Measures the minimum space that is required to render the element
*
* @param {Size} availableSize - availableSize
* @private
* @returns {Size} - Size
*/
measure(availableSize: Size): Size;
/**
* Arranges the path element
*
* @param {Size} desiredSize - desiredSize
* @private
* @returns {Size} - Size
*/
arrange(desiredSize: Size): Size;
/**
* Translates the path to 0,0 and scales the path based on the actual size
*
* @param {string} pathData - pathData
* @param {Rect} bounds - bounds
* @param {Size} actualSize - actualSize
* @private
* @returns {string} - string
*/
updatePath(pathData: string, bounds: Rect, actualSize: Size): string;
}