UNPKG

quill-image-resizor

Version:

A module for Quill rich text editor to allow images to be resized.

18 lines (17 loc) 584 B
import { default as ImageResizor } from '../ImageResizor'; import { BaseModule } from './BaseModule'; export declare class Resize extends BaseModule { boxes: HTMLDivElement[]; dragBox: HTMLDivElement | null; dragStartX: number; preDragWidth: number; constructor(imageResizor: ImageResizor); onCreate: () => void; onDestroy: () => void; positionBoxes: () => void; addBox: (cursor: any) => void; handleMousedown: (evt: MouseEvent) => void; handleMouseup: () => void; handleDrag: (evt: any) => void; setCursor: (value: any) => void; }