/** * @license * Copyright 2011 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * @file ToolboxResizer class for Blockly * @author dev@varwin.com (Varwin Developers) * * @class */ import * as Blockly from '../blockly.js'; interface InitOptions { minWidth: number; maxWidth?: number | null; } /** * Class for toolbox resizer. */ export declare class ToolboxResizer implements Blockly.IComponent { private workspace_; private flyoutWorkspace_; private toolbox; id: string; private htmlDiv_; private toolboxHtmlDiv; private minWidth; private maxWidth; private initialClientX; private initialWidth; private readonly throttleResizeToolbox; private onWorkspaceChangeWrapper; constructor(workspace: Blockly.WorkspaceSvg, toolbox: Blockly.Toolbox, flyout: Blockly.IFlyout); init({ minWidth, maxWidth }?: InitOptions): void; dispose(): void; protected createDom_(): void; position(): void; flyoutEventsListener(event: Blockly.Events.Abstract): void; hide(): void; show(): void; getMaxWidth(): number; onMouseDown_(e: MouseEvent): void; onMouseMove_: (e: MouseEvent) => void; onMouseUp_: (e: MouseEvent) => void; setToolboxSearchWidth(width?: number): void; calculateNewWidth(e: MouseEvent): number; resizeToolbox(newWidth: number): void; } export {}; //# sourceMappingURL=toolbox_resizer.d.ts.map