js-web-screen-shot
Version:
web端自定义截屏插件(原生JS版)
27 lines (26 loc) • 1.72 kB
TypeScript
import { UserToolbarCallback } from "../../../../lib/type/components/toolbar";
import cropBoxStore from "../../../../store/CropBoxStore";
import toolBarStore from "../../../../store/ToolBarStore";
import textInputStore from "../../../../store/TextInputStore";
import screenShotCanvasStore from "../../../../store/ScreenShotCanvasStore";
import userParamStore from "../../../../store/UserParamStore";
import { ToolName } from "../../../../lib/type/editor/toolNames";
import drawingDataStore from "../../../../store/DrawingDataStore";
import screenDomStore from "../../../../store/dom/ScreenDomStore";
import toolPanelDomStore from "../../../../store/dom/ToolPanelDomStore";
type ToolContext = {
cropBoxStore: typeof cropBoxStore;
toolBarStore: typeof toolBarStore;
textInputStore: typeof textInputStore;
screenDomStore: typeof screenDomStore;
toolPanelDomStore: typeof toolPanelDomStore;
screenShotCanvasStore: typeof screenShotCanvasStore;
userParamStore: typeof userParamStore;
drawingDataStore: typeof drawingDataStore;
destroyDom: () => void;
};
export declare const configureToolContext: (overrides: Partial<ToolContext>) => void;
export declare function drawCutOutBoxWithoutPixel(screenShotCanvas: CanvasRenderingContext2D, screenShotController: HTMLCanvasElement, ScreenShotImageController: HTMLCanvasElement): void;
export declare function toolClickEvent(toolName: ToolName, index: number, mouseEvent: MouseEvent, completeCallback: Function | undefined, closeCallback: Function | undefined): void;
export declare function toolClickEventForUserDefined(index: number, toolName: ToolName, activeIcon: string, clickFn: UserToolbarCallback, mouseEvent: MouseEvent): void;
export {};