/** * @license * Copyright 2011 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * @file FlyoutResizer 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 flyout resizer. */ export declare class FlyoutResizer implements Blockly.IComponent { private workspace_; private toolbox_; private flyoutWorkspace_; private flyout_; id: string; private htmlDiv_; private minWidth; private maxWidth; private initialWidth; private initialClientX; private readonly throttleResizeFlyout; private onWorkspaceChangeWrapper; constructor(workspace: Blockly.WorkspaceSvg, flyout: Blockly.IFlyout); init({ minWidth, maxWidth }?: InitOptions): void; dispose(): void; protected createDom_(): void; flyoutEventsListener(event: Blockly.Events.Abstract): void; hide(): void; show(): void; getMaxWidth(): number; position(): void; onMouseDown_(e: MouseEvent): void; onMouseMove_: (e: MouseEvent) => void; onMouseUp_: (e: MouseEvent) => void; calculateNewWidth(e: MouseEvent): number; moveFlyout(newWidth: number): void; } export {}; //# sourceMappingURL=flyout_resizer.d.ts.map