@syncfusion/ej2-pdfviewer
Version:
Essential JS 2 PDF viewer Component
84 lines (83 loc) • 2.81 kB
TypeScript
import { PointModel } from '../primitives/point-model';
import { Rect } from '../primitives/rect';
import { Size } from '../primitives/size';
import { TextStyleModel } from './../core/appearance-model';
import { PathElement } from '../core/elements/path-element';
import { TextElement } from '../core/elements/text-element';
/**
* @param {SVGElement} node - node
* @private
* @returns {SVGElement[] | HTMLCollection} - child elements
*/
export declare function getChildNode(node: SVGElement): SVGElement[] | HTMLCollection;
/**
* @param {PathElement} element - element
* @param {PointModel[]} points - PointModel[]
* @private
* @returns {PointModel[]} - PointModel[]
*/
export declare function translatePoints(element: PathElement, points: PointModel[]): PointModel[];
/**
* @param {string} data - data
* @private
* @returns {Rect} - Rect
*/
export declare function measurePath(data: string): Rect;
/**
* @param {TextElement} text - text
* @param {TextStyleModel} style - style
* @param {string} content - content
* @param {number} maxWidth - maxWidth
* @param {number} maxHeight - maxHeight
* @param {string} textValue - textValue
* @private
* @returns {Size} - Size
*/
export declare function measureText(text: TextElement, style: TextStyleModel, content: string, maxWidth?: number, maxHeight?: number, textValue?: string): Size;
/**
* @param {string} elementId - elementId
* @param {string} contentId - contentId
* @private
* @returns {HTMLElement} - HTMLElement
*/
export declare function getDiagramElement(elementId: string, contentId?: string): HTMLElement;
/**
* @param {string} elementType - elementType
* @param {Object} attribute - attribute
* @private
* @returns {HTMLElement} - HTMLElement
*/
export declare function createHtmlElement(elementType: string, attribute: Object): HTMLElement;
/**
* @param {HTMLElement} element - element
* @param {Object} attributes - attributes
* @private
* @returns {void} - void
*/
export declare function setAttributeHtml(element: HTMLElement, attributes: Object): void;
/**
* @param {string} diagramId - diagramId
* @param {number} index - index
* @private
* @returns {SVGSVGElement} - SVGSVGElement
*/
export declare function getAdornerLayerSvg(diagramId: string, index?: number): SVGSVGElement;
/**
* @param {string} diagramId - diagramId
* @param {number} index - index
* @private
* @returns {SVGElement} - SVGElement
*/
export declare function getSelectorElement(diagramId: string, index?: number): SVGElement;
/**
* @private
* @returns {void} - void
*/
export declare function createMeasureElements(): void;
/**
* @param {string} source - source
* @param {Size} contentSize - contentSize
* @private
* @returns {Size} - Size
*/
export declare function measureImage(source: string, contentSize: Size): Size;