@mescius/dsimageviewer
Version:
Document Solutions Image Viewer
16 lines (15 loc) • 767 B
TypeScript
import { PaintCommandName, PointerTriggerType } from "../../../ImageViewer/Layers/types";
import { PointLocation } from "../../../ImageViewer/Models/SelectionBoxTypes";
import { PaintCommandBase, PaintExecuteOptions } from "./PaintCommands";
export declare class CommitSelectedRegionImageCommand extends PaintCommandBase {
clippedCanvas: HTMLCanvasElement;
x: number;
y: number;
resetCopiedImage: boolean;
name: PaintCommandName;
point: PointLocation;
trigger: PointerTriggerType;
opacity?: number;
constructor(clippedCanvas: HTMLCanvasElement, x: number, y: number, resetCopiedImage: boolean);
execute(mainCtx: CanvasRenderingContext2D, backCtx: CanvasRenderingContext2D, options: PaintExecuteOptions): void;
}