import type { EditorPlugin, IEditor, PluginEvent } from 'roosterjs-editor-types'; /** * @internal * MouseUpPlugin help trigger MouseUp event even when mouse up happens outside editor * as long as the mouse was pressed within Editor before */ export default class MouseUpPlugin implements EditorPlugin { private editor; private mouseUpEventListerAdded; private mouseDownX; private mouseDownY; /** * Get a friendly name of this plugin */ getName(): string; /** * Initialize this plugin. This should only be called from Editor * @param editor Editor instance */ initialize(editor: IEditor): void; /** * Dispose this plugin */ dispose(): void; /** * Handle events triggered from editor * @param event PluginEvent object */ onPluginEvent(event: PluginEvent): void; private removeMouseUpEventListener; private onMouseUp; }