Files
med-notes/.pnpm-store/v10/files/90/b8aa72fd8a906e06c7d409de72e84d2ea38f23e4650ef1491c70647ffe171883d9dbd7187c165964dd0d1e0c91ad4ff18bb65b576ce761657b0b8d95a7785d
2025-05-09 05:30:08 +02:00

47 lines
1.5 KiB
Plaintext

/**
* Basic text editor in order to create a FreeTex annotation.
*/
export class StampEditor extends AnnotationEditor {
static _type: string;
static _editorType: number;
/** @inheritdoc */
static initialize(l10n: any, uiManager: any): void;
static get supportedTypes(): any;
static get supportedTypesStr(): any;
/** @inheritdoc */
static isHandlingMimeForPasting(mime: any): any;
/** @inheritdoc */
static paste(item: any, parent: any): void;
static computeTelemetryFinalData(data: any): {
hasAltText: any;
hasNoAltText: any;
};
/** @inheritdoc */
static deserialize(data: any, parent: any, uiManager: any): Promise<AnnotationEditor | null>;
constructor(params: any);
/** @inheritdoc */
get telemetryFinalData(): {
type: string;
hasAltText: boolean;
};
mlGuessAltText(imageData?: null, updateAltTextData?: boolean): Promise<any>;
copyCanvas(maxDataDimension: any, maxPreviewDimension: any, createImageData?: boolean): {
canvas: HTMLCanvasElement | null;
width: any;
height: any;
imageData: {
width: any;
height: any;
data: Uint8ClampedArray;
} | null;
};
/** @inheritdoc */
getImageForAltText(): null;
/** @inheritdoc */
serialize(isForCopying?: boolean, context?: null): Object | null;
/** @inheritdoc */
renderAnnotationElement(annotation: any): null;
#private;
}
import { AnnotationEditor } from "./editor.js";