ucservice 1.4.6 → 1.4.7
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 +7 -7
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +7 -7
- package/dist/ucservice.umd.js.gz +0 -0
- package/dist/ucservice.umd.js.map +1 -1
- package/dist/ucservice.umd.min.js +1 -1
- 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.umd.js
CHANGED
|
@@ -13980,14 +13980,14 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
13980
13980
|
//视频横向留白
|
|
13981
13981
|
$(video).css('width', liHeight);
|
|
13982
13982
|
$(video).css('height', 'auto');
|
|
13983
|
-
$(video).css('left', 'calc(' +
|
|
13984
|
-
$(video).css('top', 'calc(-' +
|
|
13983
|
+
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
13984
|
+
$(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
|
|
13985
13985
|
} else {
|
|
13986
13986
|
//视频纵向留白
|
|
13987
13987
|
$(video).css('width', 'auto');
|
|
13988
13988
|
$(video).css('height', liWidth);
|
|
13989
|
-
$(video).css('left', 'calc(' + liWidth
|
|
13990
|
-
$(video).css('top', 'calc(
|
|
13989
|
+
$(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
|
|
13990
|
+
$(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
13991
13991
|
}
|
|
13992
13992
|
} else if (rotateIndex == 2) {
|
|
13993
13993
|
//2
|
|
@@ -14013,13 +14013,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14013
14013
|
$(video).css('width', liHeight);
|
|
14014
14014
|
$(video).css('height', 'auto');
|
|
14015
14015
|
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
14016
|
-
$(video).css('top', 'calc(-' +
|
|
14016
|
+
$(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
|
|
14017
14017
|
} else {
|
|
14018
14018
|
//视频纵向留白
|
|
14019
14019
|
$(video).css('width', 'auto');
|
|
14020
14020
|
$(video).css('height', liWidth);
|
|
14021
|
-
$(video).css('left', 'calc(' + liWidth
|
|
14022
|
-
$(video).css('top', 'calc(
|
|
14021
|
+
$(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
|
|
14022
|
+
$(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
14023
14023
|
}
|
|
14024
14024
|
}
|
|
14025
14025
|
},
|
package/dist/ucservice.umd.js.gz
CHANGED
|
Binary file
|