tiptap-extension-resize-image
Version:
A tiptap image resizing extension for React, Vue, Next, and VanillaJS. Additionally, it can align the image position.
19 lines • 644 B
TypeScript
import { ImageElements, ResizeLimits } from '../types';
export declare class ResizeController {
private elements;
private dispatchNodeView;
private resizeLimits;
private state;
private pendingWidth;
private rafId;
constructor(elements: ImageElements, dispatchNodeView: () => void, resizeLimits?: ResizeLimits);
private scheduleWidthUpdate;
private flushWidth;
private cancelScheduledWidth;
private handleMouseMove;
private handleMouseUp;
private handleTouchMove;
private handleTouchEnd;
createResizeHandle(index: number): HTMLElement;
}
//# sourceMappingURL=resize-controller.d.ts.map