js-web-screen-shot
Version:
web端自定义截屏插件(原生JS版)
39 lines (38 loc) • 1.53 kB
TypeScript
import { BRUSH_SIZE_PRESETS } from "../../lib/constants/brush";
export type BrushSizeKey = keyof typeof BRUSH_SIZE_PRESETS;
export interface BrushOptionConfig {
size: BrushSizeKey;
index: number;
baseClass: string;
activeClass?: string;
}
export declare const BRUSH_OPTIONS: BrushOptionConfig[];
export declare const COLOR_ITEM_COUNT = 10;
export declare const TOOLBAR_DOM: {
readonly customInsertOffset: 2;
readonly minWidthWhenIconsHidden: "24px";
readonly itemClass: "item-panel";
readonly undoDisabledClass: "undo-disabled";
readonly undoId: "undoPanel";
readonly undoTitle: "undo";
};
export declare const OPTION_PANEL_IDS: {
readonly textSize: "textSizePanel";
readonly textSelect: "textSelectPanel";
readonly brushSelect: "brushSelectPanel";
readonly colorSelect: "colorSelectPanel";
readonly colorList: "colorPanel";
readonly rightPanel: "rightPanel";
};
export declare const OPTION_PANEL_CLASSES: {
readonly textSizeContainer: "text-size-panel";
readonly textSelectContainer: "text-select-panel";
readonly textItem: "text-item";
readonly brushSelectPanel: "brush-select-panel";
readonly colorSelectPanel: "color-select-panel";
readonly colorPanel: "color-panel";
readonly colorItem: "color-item";
readonly pullDownArrow: "pull-down-arrow";
readonly rightPanel: "right-panel";
};
export declare const OPTION_PANEL_AUTO_HIDE_SELECTORS: readonly ["#colorSelectPanel", "#textSizePanel", "#textSelectPanel", "#colorPanel"];