ucservice 1.4.0 → 1.4.3
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 +16 -15
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +16 -15
- 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 +14 -13
package/dist/ucservice.umd.js
CHANGED
|
@@ -13974,16 +13974,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
13974
13974
|
|
|
13975
13975
|
if (videoWidth / videoHeight > liWidth / liHeight) {
|
|
13976
13976
|
//视频横向留白
|
|
13977
|
-
$(video).css('width',
|
|
13978
|
-
$(video).css('height',
|
|
13979
|
-
$(video).css('left', 'calc(' +
|
|
13980
|
-
$(video).css('top', 'calc(-' +
|
|
13977
|
+
$(video).css('width', 'auto');
|
|
13978
|
+
$(video).css('height', liWidth);
|
|
13979
|
+
$(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
13980
|
+
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
13981
13981
|
} else {
|
|
13982
13982
|
//视频纵向留白
|
|
13983
|
-
$(video).css('
|
|
13984
|
-
$(video).css('
|
|
13985
|
-
$(video).css('left', 'calc(' +
|
|
13986
|
-
$(video).css('top', 'calc(-' +
|
|
13983
|
+
$(video).css('width', liHeight);
|
|
13984
|
+
$(video).css('height', 'auto');
|
|
13985
|
+
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
13986
|
+
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
|
|
13987
13987
|
}
|
|
13988
13988
|
} else if (rotateIndex == 2) {
|
|
13989
13989
|
//2
|
|
@@ -14002,16 +14002,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14002
14002
|
|
|
14003
14003
|
if (videoWidth / videoHeight > liWidth / liHeight) {
|
|
14004
14004
|
//视频横向留白
|
|
14005
|
+
$(video).css('width', 'auto');
|
|
14006
|
+
$(video).css('height', liWidth);
|
|
14007
|
+
$(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
14008
|
+
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
14009
|
+
} else {
|
|
14010
|
+
//视频纵向留白
|
|
14005
14011
|
$(video).css('width', liHeight);
|
|
14006
14012
|
$(video).css('height', 'auto');
|
|
14007
14013
|
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
14008
14014
|
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
|
|
14009
|
-
} else {
|
|
14010
|
-
//视频纵向留白
|
|
14011
|
-
$(video).css('height', liWidth);
|
|
14012
|
-
$(video).css('width', 'auto');
|
|
14013
|
-
$(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
14014
|
-
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
14015
14015
|
}
|
|
14016
14016
|
}
|
|
14017
14017
|
},
|
|
@@ -14097,7 +14097,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14097
14097
|
videoFlagObj.find('button[name=rotateVideo]').click(function () {
|
|
14098
14098
|
let rotateIndex = Number($(this).attr("rotate-index"));
|
|
14099
14099
|
rotateIndex++;
|
|
14100
|
-
|
|
14100
|
+
rotateIndex %= 4;
|
|
14101
|
+
$(this).attr("rotate-index", rotateIndex);
|
|
14101
14102
|
let li = $(this).parent().parent()[0];
|
|
14102
14103
|
me.videoRotateSize(li, rotateIndex);
|
|
14103
14104
|
}); //接收音频事件
|
package/dist/ucservice.umd.js.gz
CHANGED
|
Binary file
|