import { ReferencesHandler } from './referenceshandler.js'; import { AttributeState } from './attributestate.js'; import { TextMeasure } from './textmeasure.js'; import { StyleSheets } from './stylesheets.js'; import { jsPDF, type Matrix } from '../jspdf.js'; import { Viewport } from './viewport.js'; import { Length, type LengthOptions } from '../utils/length.js'; /** * * @package * @param values * @constructor * @property pdf * @property attributeState Keeps track of parent attributes that are inherited automatically * @property refsHandler The handler that will render references on demand * @property styleSheets * @property textMeasure * @property transform The current transformation matrix * @property withinClipPath */ export declare class Context { pdf: jsPDF; svg2pdfParameters: Svg2pdfParameters; attributeState: AttributeState; viewport: Viewport; refsHandler: ReferencesHandler; styleSheets: StyleSheets; textMeasure: TextMeasure; transform: Matrix; withinClipPath: boolean; withinUse: boolean; constructor(pdf: jsPDF, values: ContextOptions); getLength(options?: LengthOptions): Length; clone(values?: { viewport?: Viewport; attributeState?: AttributeState; transform?: Matrix; withinClipPath?: boolean; withinUse?: boolean; }): Context; } export interface ContextOptions { svg2pdfParameters: Svg2pdfParameters; viewport: Viewport; attributeState?: AttributeState; refsHandler: ReferencesHandler; styleSheets: StyleSheets; textMeasure: TextMeasure; transform?: Matrix; withinClipPath?: boolean; withinUse?: boolean; } export interface Svg2pdfParameters { element: Element; x?: number; y?: number; width?: number; height?: number; loadExternalStyleSheets?: boolean; } //# sourceMappingURL=context.d.ts.map