ucservice 2.5.7 → 2.5.8
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 +12 -4
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +12 -4
- 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/dist/ucservice.common.js
CHANGED
|
@@ -14219,18 +14219,22 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14219
14219
|
if (!isScale) {
|
|
14220
14220
|
$(video).css('width', liHeight);
|
|
14221
14221
|
$(video).css('height', 'auto');
|
|
14222
|
+
$(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
|
|
14223
|
+
} else {
|
|
14224
|
+
$(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
14222
14225
|
}
|
|
14223
14226
|
|
|
14224
14227
|
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
14225
|
-
$(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
|
|
14226
14228
|
} else {
|
|
14227
14229
|
//视频纵向留白
|
|
14228
14230
|
if (!isScale) {
|
|
14229
14231
|
$(video).css('width', 'auto');
|
|
14230
14232
|
$(video).css('height', liWidth);
|
|
14233
|
+
$(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
|
|
14234
|
+
} else {
|
|
14235
|
+
$(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
|
|
14231
14236
|
}
|
|
14232
14237
|
|
|
14233
|
-
$(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
|
|
14234
14238
|
$(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
14235
14239
|
}
|
|
14236
14240
|
} else if (rotateIndex == 2) {
|
|
@@ -14261,18 +14265,22 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14261
14265
|
if (!isScale) {
|
|
14262
14266
|
$(video).css('width', liHeight);
|
|
14263
14267
|
$(video).css('height', 'auto');
|
|
14268
|
+
$(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
|
|
14269
|
+
} else {
|
|
14270
|
+
$(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
14264
14271
|
}
|
|
14265
14272
|
|
|
14266
14273
|
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
14267
|
-
$(video).css('top', 'calc(-' + videoHeight * liHeight / videoWidth / 2 + 'px + ' + liHeight + 'px / 2)');
|
|
14268
14274
|
} else {
|
|
14269
14275
|
//视频纵向留白
|
|
14270
14276
|
if (!isScale) {
|
|
14271
14277
|
$(video).css('width', 'auto');
|
|
14272
14278
|
$(video).css('height', liWidth);
|
|
14279
|
+
$(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
|
|
14280
|
+
} else {
|
|
14281
|
+
$(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
|
|
14273
14282
|
}
|
|
14274
14283
|
|
|
14275
|
-
$(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
|
|
14276
14284
|
$(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
14277
14285
|
}
|
|
14278
14286
|
}
|
|
Binary file
|