v3.4.0
New feature
A new property objectFit
is here to let the developer choose how the image/video is adjusted to the parent container.
Possible values are:
contain
: the image will be adjusted to be fully visiblehorizontal-cover
: the image will horizontally fill the croppervertical-cover
: the image will vertically fill the cropper.
Defaults to "contain" (original behavior).
Commits
- Introduce the objectFit property (#236) 4d0bac1
- Bump browserslist from 4.14.5 to 4.16.6 (#252) 989e313
- Bump ssri from 6.0.1 to 6.0.2 (#237) a841e9a
- Bump ssri from 6.0.1 to 6.0.2 in /docs (#238) 78bc79b
- Bump url-parse from 1.4.7 to 1.5.1 (#243) 3528934
- Bump url-parse from 1.4.7 to 1.5.1 in /docs (#244) 2a760f5
- Bump lodash from 4.17.20 to 4.17.21 (#245) c3ca91b
- Bump lodash from 4.17.20 to 4.17.21 in /docs (#246) 3e8db20
- Bump hosted-git-info from 2.8.8 to 2.8.9 (#248) 9dea4cc
- Bump hosted-git-info from 2.8.8 to 2.8.9 in /docs (#249) b309e06
- Bump browserslist from 4.14.5 to 4.16.6 in /docs (#253) a02abba