@mescius/dsimageviewer
Version:
Document Solutions Image Viewer
35 lines (34 loc) • 1.42 kB
TypeScript
/// <reference path="../../vendor/i18next.d.ts" />
//@ts-ignore
import { i18n } from "i18next";
import { IImageLayer } from "../../ImageViewer/Layers/types";
import { ImageFormatCode } from "../../ImageViewer/Models";
import { IImageViewer, ToolbarItemType } from "../../ImageViewer/Models/IImageViewer";
import { PaintToolsPluginOptions } from "./PaintToolsPluginOptions";
export declare function mirrorImage(ctx: CanvasRenderingContext2D, image: HTMLImageElement, x?: number, y?: number, horizontal?: boolean, vertical?: boolean): void;
export declare class PaintToolsPlugin {
readonly id: string;
options: PaintToolsPluginOptions;
private _initialized;
private _paintLayer;
private _viewer;
constructor(options?: PaintToolsPluginOptions);
get isReady(): boolean;
get instanceId(): string;
get paintLayer(): IImageLayer;
get naturalSize(): {
width: number;
height: number;
};
get effectsToolbarLayout(): ToolbarItemType[];
get paintToolbarLayout(): ToolbarItemType[];
get textToolbarLayout(): ToolbarItemType[];
get viewer(): IImageViewer;
initialize(viewer: any): void;
dispose(): void;
get in17n(): i18n;
isImageFormatSupported(imageFormat: ImageFormatCode | string, allowUnknown?: boolean): boolean;
removePaintLayer(): void;
private _onBeforeOpen;
private _ensureOptions;
}