fabricjs-object-fit

CSS-like 'object-fit' and 'object-position' behavior for FabricJS.

Get Started →

Small

0 runtime dependencies.

CSS's object-fit

Supports the modes "cover", "contain", "fill", "scale-down" and "none".

CSS's object-position

Supports pixel values, percentage and tagged (X.LEFT, Y.TOP, ...).