adaptive-scale

1.0.0 • Public • Published

Adaptive Scale

This small library can scale any size according to other size with multiple scale policies.

Currently Supported Scale Policies

  • ExactFit - Fill the container size. Aspect ratio not preserved. No Borders. Can't Crop.
  • NoBorder - Fill the container size. Aspect ratio preserved. No Borders. Can Crop.
  • FullHeight - Fill the container height. Aspect ratio preserved. Vertical Borders. Can Crop.
  • FullWidth - Fill the container width. Aspect ratio preserved. Horizontal Borders. Can Crop.
  • ShowAll - Fill the container width or height. Aspect ratio preserved. Vertical or Horizontal Borders. Can't Crop.

Usage

TODO

Package Sidebar

Install

npm i adaptive-scale

Weekly Downloads

57

Version

1.0.0

License

MIT

Unpacked Size

286 kB

Total Files

18

Last publish

Collaborators

  • treenode