tiptap-extension-resize-image
Version:
A tiptap image resizing extension for React, Vue, Next, and VanillaJS. Additionally, it can align the image position.
7 lines • 297 B
TypeScript
import { ResizeLimits } from '../types';
/**
* Clamps a width value to the given resize limits.
* Always enforces a minimum of 0 to prevent invalid negative CSS values.
*/
export declare function clampWidth(width: number, limits: ResizeLimits): number;
//# sourceMappingURL=clamp-width.d.ts.map