@syncfusion/ej2-pdf
Version:
Feature-rich JavaScript PDF library with built-in support for loading and manipulating PDF document.
47 lines (46 loc) • 1.81 kB
TypeScript
import { PdfStringFormat } from '../../fonts';
import { PdfFont } from '../../fonts/pdf-standard-font';
import { _PdfTemplateValuePair, Point } from '../../pdf-type';
import { PdfGraphics, PdfBrush } from '../pdf-graphics';
import { PdfDynamicField } from './dynamic-field';
/**
* Represents an internal field that maintains multiple rendered values across different PdfGraphics contexts.
*
* @private
*/
export declare class PdfMultipleValueField extends PdfDynamicField {
/**
* Stores a mapping between PdfGraphics instances and their corresponding template value pairs.
*
* @private
*/
_templateValueMap: Map<PdfGraphics, _PdfTemplateValuePair>;
/**
* Initializes the base dynamic field with optional font, brush, and string format settings.
*
* @param {PdfFont} [font] - The font used for rendering the field text.
* @param {PdfBrush} [brush] - The brush used to define the text color.
* @param {PdfStringFormat} [stringFormat] - The format used for text layout and alignment.
* @returns {void}
* @private
*/
_initializeBase(font?: PdfFont, brush?: PdfBrush, stringFormat?: PdfStringFormat): void;
/**
* Performs rendering with value reuse logic.
*
* @private
* @param {PdfGraphics} graphics The graphics context.
* @param {Point} location The drawing location.
* @returns {void} Nothing.
*/
_performDraw(graphics: PdfGraphics, location: Point): void;
/**
* Default value resolver for multiple-value fields.
* Derived classes should override to provide actual values.
*
* @private
* @param {PdfGraphics} graphics The graphics context.
* @returns {string} The computed value (default empty string).
*/
_getValue(graphics: PdfGraphics): string;
}