@ezuikit/player-theme 2.1.0-beta.6 → 2.1.0-beta.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/constant.js +2 -2
- package/dist/index.js +12 -8
- package/dist/index.mjs +12 -8
- package/dist/index.umd.js +12 -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.8
|
|
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,9 @@ 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, // 重新计算画面渲染
|
|
9639
|
+
_theme_contentControl_rerender1, _theme_contentControl1, 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
9640
|
return _ts_generator$1(this, function(_state) {
|
|
9639
9641
|
switch(_state.label){
|
|
9640
9642
|
case 0:
|
|
@@ -9646,6 +9648,7 @@ function _renderTheme(theme, data) {
|
|
|
9646
9648
|
themeData = _state.sent();
|
|
9647
9649
|
_unmountedControls(theme);
|
|
9648
9650
|
if (Object.prototype.toString.call(themeData) !== '[object Object]') {
|
|
9651
|
+
(_theme_contentControl1 = theme.contentControl) == null ? void 0 : (_theme_contentControl_rerender1 = _theme_contentControl1.rerender) == null ? void 0 : _theme_contentControl_rerender1.call(_theme_contentControl1);
|
|
9649
9652
|
// 主题空
|
|
9650
9653
|
return [
|
|
9651
9654
|
2
|
|
@@ -9816,6 +9819,7 @@ function _renderTheme(theme, data) {
|
|
|
9816
9819
|
}
|
|
9817
9820
|
}
|
|
9818
9821
|
theme.emit(EVENTS.control.mountedControls);
|
|
9822
|
+
(_theme_contentControl = theme.contentControl) == null ? void 0 : (_theme_contentControl_rerender = _theme_contentControl.rerender) == null ? void 0 : _theme_contentControl_rerender.call(_theme_contentControl);
|
|
9819
9823
|
if (!theme.playing) theme._disabled(true);
|
|
9820
9824
|
_controlEventemitter(theme);
|
|
9821
9825
|
return [
|
|
@@ -11388,7 +11392,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11388
11392
|
zh: zh,
|
|
11389
11393
|
en: en
|
|
11390
11394
|
};
|
|
11391
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.
|
|
11395
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.8';
|
|
11392
11396
|
|
|
11393
11397
|
exports.Control = Control;
|
|
11394
11398
|
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.8
|
|
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,9 @@ 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, // 重新计算画面渲染
|
|
9637
|
+
_theme_contentControl_rerender1, _theme_contentControl1, 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
9638
|
return _ts_generator$1(this, function(_state) {
|
|
9637
9639
|
switch(_state.label){
|
|
9638
9640
|
case 0:
|
|
@@ -9644,6 +9646,7 @@ function _renderTheme(theme, data) {
|
|
|
9644
9646
|
themeData = _state.sent();
|
|
9645
9647
|
_unmountedControls(theme);
|
|
9646
9648
|
if (Object.prototype.toString.call(themeData) !== '[object Object]') {
|
|
9649
|
+
(_theme_contentControl1 = theme.contentControl) == null ? void 0 : (_theme_contentControl_rerender1 = _theme_contentControl1.rerender) == null ? void 0 : _theme_contentControl_rerender1.call(_theme_contentControl1);
|
|
9647
9650
|
// 主题空
|
|
9648
9651
|
return [
|
|
9649
9652
|
2
|
|
@@ -9814,6 +9817,7 @@ function _renderTheme(theme, data) {
|
|
|
9814
9817
|
}
|
|
9815
9818
|
}
|
|
9816
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);
|
|
9817
9821
|
if (!theme.playing) theme._disabled(true);
|
|
9818
9822
|
_controlEventemitter(theme);
|
|
9819
9823
|
return [
|
|
@@ -11386,6 +11390,6 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11386
11390
|
zh: zh,
|
|
11387
11391
|
en: en
|
|
11388
11392
|
};
|
|
11389
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.
|
|
11393
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.8';
|
|
11390
11394
|
|
|
11391
11395
|
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.8
|
|
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,9 @@
|
|
|
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, // 重新计算画面渲染
|
|
11755
|
+
_theme_contentControl_rerender1, _theme_contentControl1, 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
11756
|
return _ts_generator$1(this, function(_state) {
|
|
11755
11757
|
switch(_state.label){
|
|
11756
11758
|
case 0:
|
|
@@ -11762,6 +11764,7 @@
|
|
|
11762
11764
|
themeData = _state.sent();
|
|
11763
11765
|
_unmountedControls(theme);
|
|
11764
11766
|
if (Object.prototype.toString.call(themeData) !== '[object Object]') {
|
|
11767
|
+
(_theme_contentControl1 = theme.contentControl) == null ? void 0 : (_theme_contentControl_rerender1 = _theme_contentControl1.rerender) == null ? void 0 : _theme_contentControl_rerender1.call(_theme_contentControl1);
|
|
11765
11768
|
// 主题空
|
|
11766
11769
|
return [
|
|
11767
11770
|
2
|
|
@@ -11932,6 +11935,7 @@
|
|
|
11932
11935
|
}
|
|
11933
11936
|
}
|
|
11934
11937
|
theme.emit(EVENTS.control.mountedControls);
|
|
11938
|
+
(_theme_contentControl = theme.contentControl) == null ? void 0 : (_theme_contentControl_rerender = _theme_contentControl.rerender) == null ? void 0 : _theme_contentControl_rerender.call(_theme_contentControl);
|
|
11935
11939
|
if (!theme.playing) theme._disabled(true);
|
|
11936
11940
|
_controlEventemitter(theme);
|
|
11937
11941
|
return [
|
|
@@ -13504,7 +13508,7 @@
|
|
|
13504
13508
|
zh: zh,
|
|
13505
13509
|
en: en
|
|
13506
13510
|
};
|
|
13507
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.
|
|
13511
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.8';
|
|
13508
13512
|
|
|
13509
13513
|
// 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
|
|
13510
13514
|
|
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
|
}
|