shot-web-screen
Version:
截屏、截图插件、capture screen
31 lines (30 loc) • 1.11 kB
TypeScript
import { OPTION } from '../types/index';
declare class ToolOption {
/**
* @func 创建配置栏dom
* @desc
* @param {
* sizeClickEvent, 大小点击事件处理
* colorClcikEvent, 颜色点击事件处理
* defaultOption 默认选择的配置用于设置状态
* }
* @return {}
*/
createOptionDom(sizeClickEvent: (e: MouseEvent) => void, colorClcikEvent: (e: MouseEvent) => void, defaultOption: OPTION): HTMLDivElement;
createSizeDom(sizeClickEvent: (e: MouseEvent) => void, defaultOption: OPTION): HTMLDivElement;
createColorDom(colorClcikEvent: (e: MouseEvent) => void, defaultOption: OPTION): HTMLDivElement;
createIconDom(): HTMLDivElement;
/**
* @func 参照工具栏位置信息设置配置栏位置
* @desc
* @param {
* toolBox 工具栏dom
* optionDom 配置栏dom
* activeTool 当前active的工具栏
* }
* @return {}
*/
setToolsPosition(toolDom: HTMLElement, optionDom: HTMLElement, activeTool: string): void;
}
declare const _default: ToolOption;
export default _default;