ucservice 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ucservice.common.js +8 -8
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +8 -8
- package/dist/ucservice.umd.js.gz +0 -0
- package/dist/ucservice.umd.js.map +1 -1
- package/dist/ucservice.umd.min.js +2 -2
- package/dist/ucservice.umd.min.js.gz +0 -0
- package/dist/ucservice.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/scooper.video.js +7 -7
package/dist/ucservice.common.js
CHANGED
|
@@ -13965,16 +13965,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
13965
13965
|
|
|
13966
13966
|
if (videoWidth / videoHeight > liWidth / liHeight) {
|
|
13967
13967
|
//视频横向留白
|
|
13968
|
-
$(video).css('width',
|
|
13969
|
-
$(video).css('height',
|
|
13970
|
-
$(video).css('left', 'calc(' +
|
|
13971
|
-
$(video).css('top', 'calc(-' +
|
|
13968
|
+
$(video).css('width', 'auto');
|
|
13969
|
+
$(video).css('height', liWidth);
|
|
13970
|
+
$(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
13971
|
+
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
13972
13972
|
} else {
|
|
13973
13973
|
//视频纵向留白
|
|
13974
|
-
$(video).css('
|
|
13975
|
-
$(video).css('
|
|
13976
|
-
$(video).css('left', 'calc(' +
|
|
13977
|
-
$(video).css('top', 'calc(-' +
|
|
13974
|
+
$(video).css('width', liHeight);
|
|
13975
|
+
$(video).css('height', 'auto');
|
|
13976
|
+
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
13977
|
+
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
|
|
13978
13978
|
}
|
|
13979
13979
|
} else if (rotateIndex == 2) {
|
|
13980
13980
|
//2
|
|
Binary file
|