@ezuikit/player-theme 2.1.0-beta.6 → 2.1.0-beta.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/constant.js +2 -2
- package/dist/index.js +10 -8
- package/dist/index.mjs +10 -8
- package/dist/index.umd.js +10 -8
- package/dist/style.js +2 -2
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/constant.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v2.1.0-beta.
|
|
3
|
-
* Copyright (c) 2026-01-
|
|
2
|
+
* @ezuikit/player-theme v2.1.0-beta.7
|
|
3
|
+
* Copyright (c) 2026-01-06 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
@@ -3755,10 +3755,10 @@ function _set_prototype_of$j(o, p) {
|
|
|
3755
3755
|
$popupContainer.appendChild(_this.$wrapper);
|
|
3756
3756
|
}
|
|
3757
3757
|
_this.on(EVENTS.videoInfo, function(originWidth, originHeight) {
|
|
3758
|
-
_this.
|
|
3758
|
+
_this.rerender(originWidth, originHeight);
|
|
3759
3759
|
});
|
|
3760
3760
|
_this.on(EVENTS.resize, function() {
|
|
3761
|
-
_this.
|
|
3761
|
+
_this.rerender();
|
|
3762
3762
|
});
|
|
3763
3763
|
return _this;
|
|
3764
3764
|
}
|
|
@@ -3768,7 +3768,7 @@ function _set_prototype_of$j(o, p) {
|
|
|
3768
3768
|
* @param {number} originWidth 画面宽度
|
|
3769
3769
|
* @param {number} originHeight 画面高度
|
|
3770
3770
|
* @returns {void}
|
|
3771
|
-
*/ _proto.
|
|
3771
|
+
*/ _proto.rerender = function rerender(originWidth, originHeight) {
|
|
3772
3772
|
if (originWidth === void 0) originWidth = 0;
|
|
3773
3773
|
if (originHeight === void 0) originHeight = 0;
|
|
3774
3774
|
var width = this.$wrapper.clientWidth;
|
|
@@ -3821,7 +3821,7 @@ function _set_prototype_of$j(o, p) {
|
|
|
3821
3821
|
_proto.setScaleMode = function setScaleMode(scaleMode) {
|
|
3822
3822
|
if (scaleMode === void 0) scaleMode = 0;
|
|
3823
3823
|
this._scaleMode = scaleMode;
|
|
3824
|
-
this.
|
|
3824
|
+
this.rerender();
|
|
3825
3825
|
};
|
|
3826
3826
|
_proto.destroy = function destroy() {
|
|
3827
3827
|
var _this_$wrapper;
|
|
@@ -9634,7 +9634,8 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9634
9634
|
}
|
|
9635
9635
|
function _renderTheme(theme, data) {
|
|
9636
9636
|
return _async_to_generator$1(function() {
|
|
9637
|
-
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions,
|
|
9637
|
+
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, // 重新计算画面渲染
|
|
9638
|
+
_theme_contentControl_rerender, _theme_contentControl, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, hasPtz, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4, _filterThemeData_header1, _filterThemeData_footer1, _filterThemeData_footer_btnList1;
|
|
9638
9639
|
return _ts_generator$1(this, function(_state) {
|
|
9639
9640
|
switch(_state.label){
|
|
9640
9641
|
case 0:
|
|
@@ -9816,6 +9817,7 @@ function _renderTheme(theme, data) {
|
|
|
9816
9817
|
}
|
|
9817
9818
|
}
|
|
9818
9819
|
theme.emit(EVENTS.control.mountedControls);
|
|
9820
|
+
(_theme_contentControl = theme.contentControl) == null ? void 0 : (_theme_contentControl_rerender = _theme_contentControl.rerender) == null ? void 0 : _theme_contentControl_rerender.call(_theme_contentControl);
|
|
9819
9821
|
if (!theme.playing) theme._disabled(true);
|
|
9820
9822
|
_controlEventemitter(theme);
|
|
9821
9823
|
return [
|
|
@@ -11388,7 +11390,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11388
11390
|
zh: zh,
|
|
11389
11391
|
en: en
|
|
11390
11392
|
};
|
|
11391
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.
|
|
11393
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.7';
|
|
11392
11394
|
|
|
11393
11395
|
exports.Control = Control;
|
|
11394
11396
|
exports.EVENTS = EVENTS;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v2.1.0-beta.
|
|
3
|
-
* Copyright (c) 2026-01-
|
|
2
|
+
* @ezuikit/player-theme v2.1.0-beta.7
|
|
3
|
+
* Copyright (c) 2026-01-06 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import EventEmitter from 'eventemitter3';
|
|
@@ -3753,10 +3753,10 @@ function _set_prototype_of$j(o, p) {
|
|
|
3753
3753
|
$popupContainer.appendChild(_this.$wrapper);
|
|
3754
3754
|
}
|
|
3755
3755
|
_this.on(EVENTS.videoInfo, function(originWidth, originHeight) {
|
|
3756
|
-
_this.
|
|
3756
|
+
_this.rerender(originWidth, originHeight);
|
|
3757
3757
|
});
|
|
3758
3758
|
_this.on(EVENTS.resize, function() {
|
|
3759
|
-
_this.
|
|
3759
|
+
_this.rerender();
|
|
3760
3760
|
});
|
|
3761
3761
|
return _this;
|
|
3762
3762
|
}
|
|
@@ -3766,7 +3766,7 @@ function _set_prototype_of$j(o, p) {
|
|
|
3766
3766
|
* @param {number} originWidth 画面宽度
|
|
3767
3767
|
* @param {number} originHeight 画面高度
|
|
3768
3768
|
* @returns {void}
|
|
3769
|
-
*/ _proto.
|
|
3769
|
+
*/ _proto.rerender = function rerender(originWidth, originHeight) {
|
|
3770
3770
|
if (originWidth === void 0) originWidth = 0;
|
|
3771
3771
|
if (originHeight === void 0) originHeight = 0;
|
|
3772
3772
|
var width = this.$wrapper.clientWidth;
|
|
@@ -3819,7 +3819,7 @@ function _set_prototype_of$j(o, p) {
|
|
|
3819
3819
|
_proto.setScaleMode = function setScaleMode(scaleMode) {
|
|
3820
3820
|
if (scaleMode === void 0) scaleMode = 0;
|
|
3821
3821
|
this._scaleMode = scaleMode;
|
|
3822
|
-
this.
|
|
3822
|
+
this.rerender();
|
|
3823
3823
|
};
|
|
3824
3824
|
_proto.destroy = function destroy() {
|
|
3825
3825
|
var _this_$wrapper;
|
|
@@ -9632,7 +9632,8 @@ function _renderControls(theme, $container, btnList, props) {
|
|
|
9632
9632
|
}
|
|
9633
9633
|
function _renderTheme(theme, data) {
|
|
9634
9634
|
return _async_to_generator$1(function() {
|
|
9635
|
-
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions,
|
|
9635
|
+
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, // 重新计算画面渲染
|
|
9636
|
+
_theme_contentControl_rerender, _theme_contentControl, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, hasPtz, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4, _filterThemeData_header1, _filterThemeData_footer1, _filterThemeData_footer_btnList1;
|
|
9636
9637
|
return _ts_generator$1(this, function(_state) {
|
|
9637
9638
|
switch(_state.label){
|
|
9638
9639
|
case 0:
|
|
@@ -9814,6 +9815,7 @@ function _renderTheme(theme, data) {
|
|
|
9814
9815
|
}
|
|
9815
9816
|
}
|
|
9816
9817
|
theme.emit(EVENTS.control.mountedControls);
|
|
9818
|
+
(_theme_contentControl = theme.contentControl) == null ? void 0 : (_theme_contentControl_rerender = _theme_contentControl.rerender) == null ? void 0 : _theme_contentControl_rerender.call(_theme_contentControl);
|
|
9817
9819
|
if (!theme.playing) theme._disabled(true);
|
|
9818
9820
|
_controlEventemitter(theme);
|
|
9819
9821
|
return [
|
|
@@ -11386,6 +11388,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11386
11388
|
zh: zh,
|
|
11387
11389
|
en: en
|
|
11388
11390
|
};
|
|
11389
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.
|
|
11391
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.7';
|
|
11390
11392
|
|
|
11391
11393
|
export { Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
|
package/dist/index.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v2.1.0-beta.
|
|
3
|
-
* Copyright (c) 2026-01-
|
|
2
|
+
* @ezuikit/player-theme v2.1.0-beta.7
|
|
3
|
+
* Copyright (c) 2026-01-06 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
@@ -5383,10 +5383,10 @@
|
|
|
5383
5383
|
$popupContainer.appendChild(_this.$wrapper);
|
|
5384
5384
|
}
|
|
5385
5385
|
_this.on(EVENTS.videoInfo, function(originWidth, originHeight) {
|
|
5386
|
-
_this.
|
|
5386
|
+
_this.rerender(originWidth, originHeight);
|
|
5387
5387
|
});
|
|
5388
5388
|
_this.on(EVENTS.resize, function() {
|
|
5389
|
-
_this.
|
|
5389
|
+
_this.rerender();
|
|
5390
5390
|
});
|
|
5391
5391
|
return _this;
|
|
5392
5392
|
}
|
|
@@ -5396,7 +5396,7 @@
|
|
|
5396
5396
|
* @param {number} originWidth 画面宽度
|
|
5397
5397
|
* @param {number} originHeight 画面高度
|
|
5398
5398
|
* @returns {void}
|
|
5399
|
-
*/ _proto.
|
|
5399
|
+
*/ _proto.rerender = function rerender(originWidth, originHeight) {
|
|
5400
5400
|
if (originWidth === void 0) originWidth = 0;
|
|
5401
5401
|
if (originHeight === void 0) originHeight = 0;
|
|
5402
5402
|
var width = this.$wrapper.clientWidth;
|
|
@@ -5449,7 +5449,7 @@
|
|
|
5449
5449
|
_proto.setScaleMode = function setScaleMode(scaleMode) {
|
|
5450
5450
|
if (scaleMode === void 0) scaleMode = 0;
|
|
5451
5451
|
this._scaleMode = scaleMode;
|
|
5452
|
-
this.
|
|
5452
|
+
this.rerender();
|
|
5453
5453
|
};
|
|
5454
5454
|
_proto.destroy = function destroy() {
|
|
5455
5455
|
var _this_$wrapper;
|
|
@@ -11750,7 +11750,8 @@
|
|
|
11750
11750
|
}
|
|
11751
11751
|
function _renderTheme(theme, data) {
|
|
11752
11752
|
return _async_to_generator$1(function() {
|
|
11753
|
-
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions,
|
|
11753
|
+
var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, // 重新计算画面渲染
|
|
11754
|
+
_theme_contentControl_rerender, _theme_contentControl, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, hasPtz, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions4, _filterThemeData_header1, _filterThemeData_footer1, _filterThemeData_footer_btnList1;
|
|
11754
11755
|
return _ts_generator$1(this, function(_state) {
|
|
11755
11756
|
switch(_state.label){
|
|
11756
11757
|
case 0:
|
|
@@ -11932,6 +11933,7 @@
|
|
|
11932
11933
|
}
|
|
11933
11934
|
}
|
|
11934
11935
|
theme.emit(EVENTS.control.mountedControls);
|
|
11936
|
+
(_theme_contentControl = theme.contentControl) == null ? void 0 : (_theme_contentControl_rerender = _theme_contentControl.rerender) == null ? void 0 : _theme_contentControl_rerender.call(_theme_contentControl);
|
|
11935
11937
|
if (!theme.playing) theme._disabled(true);
|
|
11936
11938
|
_controlEventemitter(theme);
|
|
11937
11939
|
return [
|
|
@@ -13504,7 +13506,7 @@
|
|
|
13504
13506
|
zh: zh,
|
|
13505
13507
|
en: en
|
|
13506
13508
|
};
|
|
13507
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.
|
|
13509
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.7';
|
|
13508
13510
|
|
|
13509
13511
|
// 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
|
|
13510
13512
|
|
package/dist/style.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1235,7 +1235,7 @@ declare class Content extends EventEmitter {
|
|
|
1235
1235
|
* @param {number} originHeight 画面高度
|
|
1236
1236
|
* @returns {void}
|
|
1237
1237
|
*/
|
|
1238
|
-
|
|
1238
|
+
rerender(originWidth?: number, originHeight?: number): void;
|
|
1239
1239
|
setScaleMode(scaleMode?: ThemeOptions$1['scaleMode']): void;
|
|
1240
1240
|
destroy(): void;
|
|
1241
1241
|
}
|