@ezuikit/player-theme 2.1.0-beta.1 → 2.1.0-beta.11
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 +5 -2
- package/dist/index.js +659 -367
- package/dist/index.mjs +659 -367
- package/dist/index.umd.js +943 -915
- package/dist/style.css +3 -2
- package/dist/style.js +2 -2
- package/dist/types/index.d.ts +68 -44
- package/package.json +11 -4
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @ezuikit/player-theme v2.1.0-beta.
|
|
3
|
-
* Copyright (c)
|
|
2
|
+
* @ezuikit/player-theme v2.1.0-beta.11
|
|
3
|
+
* Copyright (c) 2026-01-16 Ezviz-OpenBiz
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
@@ -141,6 +141,7 @@ var EVENTS = {
|
|
|
141
141
|
/** 控件开始录制 */ recordingChange: 'recordingChange',
|
|
142
142
|
/** 对讲状态变化 */ talkingChange: 'talkingChange',
|
|
143
143
|
/** 麦克风音量变化 */ talkVolumeChange: 'talkVolumeChange',
|
|
144
|
+
/** 语音广播状态变化 */ broadcastChange: 'broadcastChange',
|
|
144
145
|
/** 动态切换日志配置 */ setLoggerOptions: 'setLoggerOptions',
|
|
145
146
|
records: 'records',
|
|
146
147
|
ptzSpeedChange: 'ptzSpeedChange',
|
|
@@ -184,6 +185,8 @@ var EVENTS = {
|
|
|
184
185
|
/** 开始对讲 */ talkingChange: 'Control.talkingChange',
|
|
185
186
|
/** 对讲错误, 一般是麦克风权限被拒绝 */ talkError: 'Control.talkError',
|
|
186
187
|
/** 对讲控件销毁 */ talkDestroy: 'Control.talkDestroy',
|
|
188
|
+
/** 语音广播状态变化 */ broadcastChange: 'Control.broadcastChange',
|
|
189
|
+
/** 语音广播控件销毁 */ broadcastDestroy: 'Control.broadcastDestroy',
|
|
187
190
|
/** 缩放比例改变 */ zoomChange: 'Control.zoomChange',
|
|
188
191
|
/** 音量调节面板 展示隐藏变换 */ zoomPanelOpenChange: 'Control.zoomPanelOpenChange',
|
|
189
192
|
/** 缩放控件销毁 */ zoomDestroy: 'Control.zoomDestroy',
|
|
@@ -235,7 +238,7 @@ function _create_class$9(Constructor, protoProps, staticProps) {
|
|
|
235
238
|
if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
|
|
236
239
|
return Constructor;
|
|
237
240
|
}
|
|
238
|
-
function _inherits$
|
|
241
|
+
function _inherits$s(subClass, superClass) {
|
|
239
242
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
240
243
|
throw new TypeError("Super expression must either be null or a function");
|
|
241
244
|
}
|
|
@@ -246,14 +249,14 @@ function _inherits$r(subClass, superClass) {
|
|
|
246
249
|
configurable: true
|
|
247
250
|
}
|
|
248
251
|
});
|
|
249
|
-
if (superClass) _set_prototype_of$
|
|
252
|
+
if (superClass) _set_prototype_of$s(subClass, superClass);
|
|
250
253
|
}
|
|
251
|
-
function _set_prototype_of$
|
|
252
|
-
_set_prototype_of$
|
|
254
|
+
function _set_prototype_of$s(o, p) {
|
|
255
|
+
_set_prototype_of$s = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
253
256
|
o.__proto__ = p;
|
|
254
257
|
return o;
|
|
255
258
|
};
|
|
256
|
-
return _set_prototype_of$
|
|
259
|
+
return _set_prototype_of$s(o, p);
|
|
257
260
|
}
|
|
258
261
|
/**
|
|
259
262
|
* 控件基类
|
|
@@ -267,7 +270,7 @@ function _set_prototype_of$r(o, p) {
|
|
|
267
270
|
* const myControl = new MyControl({})
|
|
268
271
|
* ```
|
|
269
272
|
*/ var Control = /*#__PURE__*/ function(EventEmitter) {
|
|
270
|
-
_inherits$
|
|
273
|
+
_inherits$s(Control, EventEmitter);
|
|
271
274
|
function Control(options) {
|
|
272
275
|
var _this;
|
|
273
276
|
var _this___options;
|
|
@@ -442,8 +445,8 @@ function _set_prototype_of$r(o, p) {
|
|
|
442
445
|
return Control;
|
|
443
446
|
}(EventEmitter);
|
|
444
447
|
|
|
445
|
-
function _extends$
|
|
446
|
-
_extends$
|
|
448
|
+
function _extends$r() {
|
|
449
|
+
_extends$r = Object.assign || function(target) {
|
|
447
450
|
for(var i = 1; i < arguments.length; i++){
|
|
448
451
|
var source = arguments[i];
|
|
449
452
|
for(var key in source){
|
|
@@ -454,9 +457,9 @@ function _extends$q() {
|
|
|
454
457
|
}
|
|
455
458
|
return target;
|
|
456
459
|
};
|
|
457
|
-
return _extends$
|
|
460
|
+
return _extends$r.apply(this, arguments);
|
|
458
461
|
}
|
|
459
|
-
function _inherits$
|
|
462
|
+
function _inherits$r(subClass, superClass) {
|
|
460
463
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
461
464
|
throw new TypeError("Super expression must either be null or a function");
|
|
462
465
|
}
|
|
@@ -467,25 +470,25 @@ function _inherits$q(subClass, superClass) {
|
|
|
467
470
|
configurable: true
|
|
468
471
|
}
|
|
469
472
|
});
|
|
470
|
-
if (superClass) _set_prototype_of$
|
|
473
|
+
if (superClass) _set_prototype_of$r(subClass, superClass);
|
|
471
474
|
}
|
|
472
|
-
function _set_prototype_of$
|
|
473
|
-
_set_prototype_of$
|
|
475
|
+
function _set_prototype_of$r(o, p) {
|
|
476
|
+
_set_prototype_of$r = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
474
477
|
o.__proto__ = p;
|
|
475
478
|
return o;
|
|
476
479
|
};
|
|
477
|
-
return _set_prototype_of$
|
|
480
|
+
return _set_prototype_of$r(o, p);
|
|
478
481
|
}
|
|
479
482
|
var LOADING_DEFAULT_OPTIONS = {};
|
|
480
483
|
/**
|
|
481
484
|
* 加载动画控件
|
|
482
485
|
* @category Control
|
|
483
486
|
*/ var Loading = /*#__PURE__*/ function(Control) {
|
|
484
|
-
_inherits$
|
|
487
|
+
_inherits$r(Loading, Control);
|
|
485
488
|
function Loading(options) {
|
|
486
489
|
if (options === void 0) options = {};
|
|
487
490
|
var _this;
|
|
488
|
-
_this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$
|
|
491
|
+
_this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$r({}, options, {
|
|
489
492
|
tagName: 'div',
|
|
490
493
|
controlType: 'block',
|
|
491
494
|
classNameSuffix: 'loading'
|
|
@@ -523,8 +526,8 @@ var LOADING_DEFAULT_OPTIONS = {};
|
|
|
523
526
|
return Loading;
|
|
524
527
|
}(Control);
|
|
525
528
|
|
|
526
|
-
function _extends$
|
|
527
|
-
_extends$
|
|
529
|
+
function _extends$q() {
|
|
530
|
+
_extends$q = Object.assign || function(target) {
|
|
528
531
|
for(var i = 1; i < arguments.length; i++){
|
|
529
532
|
var source = arguments[i];
|
|
530
533
|
for(var key in source){
|
|
@@ -535,9 +538,9 @@ function _extends$p() {
|
|
|
535
538
|
}
|
|
536
539
|
return target;
|
|
537
540
|
};
|
|
538
|
-
return _extends$
|
|
541
|
+
return _extends$q.apply(this, arguments);
|
|
539
542
|
}
|
|
540
|
-
function _inherits$
|
|
543
|
+
function _inherits$q(subClass, superClass) {
|
|
541
544
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
542
545
|
throw new TypeError("Super expression must either be null or a function");
|
|
543
546
|
}
|
|
@@ -548,14 +551,14 @@ function _inherits$p(subClass, superClass) {
|
|
|
548
551
|
configurable: true
|
|
549
552
|
}
|
|
550
553
|
});
|
|
551
|
-
if (superClass) _set_prototype_of$
|
|
554
|
+
if (superClass) _set_prototype_of$q(subClass, superClass);
|
|
552
555
|
}
|
|
553
|
-
function _set_prototype_of$
|
|
554
|
-
_set_prototype_of$
|
|
556
|
+
function _set_prototype_of$q(o, p) {
|
|
557
|
+
_set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
555
558
|
o.__proto__ = p;
|
|
556
559
|
return o;
|
|
557
560
|
};
|
|
558
|
-
return _set_prototype_of$
|
|
561
|
+
return _set_prototype_of$q(o, p);
|
|
559
562
|
}
|
|
560
563
|
// 不放在服务器上 是因为有可能http加载失败
|
|
561
564
|
// prettier-ignore
|
|
@@ -567,11 +570,11 @@ var POSTER_OPTIONS = {
|
|
|
567
570
|
* 封面控件
|
|
568
571
|
* @category Control
|
|
569
572
|
*/ var Poster = /*#__PURE__*/ function(Control) {
|
|
570
|
-
_inherits$
|
|
573
|
+
_inherits$q(Poster, Control);
|
|
571
574
|
function Poster(options) {
|
|
572
575
|
if (options === void 0) options = {};
|
|
573
576
|
var _this;
|
|
574
|
-
_this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$
|
|
577
|
+
_this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$q({}, options, {
|
|
575
578
|
tagName: 'div',
|
|
576
579
|
controlType: 'block',
|
|
577
580
|
classNameSuffix: 'poster'
|
|
@@ -666,6 +669,7 @@ var Icons = {
|
|
|
666
669
|
talkGrowth: function(prefix) {
|
|
667
670
|
return '<svg width="1em" height="1em" viewBox="0 0 24 24" focusable="false" aria-hidden="true" data-icon="talk-growth">\n <g fill="currentColor" stroke="currentColor">\n <path stroke="none" d="M9.22313 18.9543C9.6588 18.9543 10.0189 19.2133 10.0759 19.5494L10.0837 19.6428L10.0837 21.7847C10.0837 22.1649 9.69841 22.4732 9.22313 22.4732C8.78745 22.4732 8.42739 22.2142 8.37041 21.8781L8.36255 21.7847L8.36255 19.6428C8.36255 19.2626 8.74784 18.9543 9.22313 18.9543Z" fill-rule="evenodd" />\n <path d="M16.5323 11.3779L16.5323 11.5872C16.5323 15.7472 13.1599 19.1197 8.99981 19.1197C4.83971 19.1197 1.46729 15.7472 1.46729 11.5872L1.46729 11.4335" fill-rule="evenodd" fill="none" stroke-width="1.5" />\n <path stroke="none" d="M4.07861 6.12978C4.07861 3.589 6.30476 1.5293 9.05085 1.5293C11.7969 1.5293 14.0231 3.589 14.0231 6.12978L14.0231 12.075C14.0231 14.6158 11.7969 16.6755 9.05085 16.6755C6.30476 16.6755 4.07861 14.6158 4.07861 12.075L4.07861 6.12978ZM5.57861 12.075L5.57861 6.12978C5.57861 5.94083 5.597 5.75561 5.63376 5.57412C5.67605 5.36539 5.74265 5.16158 5.83357 4.9627C5.86625 4.8912 5.90164 4.82121 5.93974 4.75272C6.09781 4.4685 6.30245 4.21019 6.55365 3.97777C6.64206 3.89597 6.73424 3.81921 6.83019 3.7475C7.0816 3.55959 7.3589 3.40632 7.66207 3.28767C7.79552 3.23545 7.93107 3.19114 8.06871 3.15475C8.38503 3.07111 8.71241 3.0293 9.05085 3.0293C9.38929 3.0293 9.71668 3.07112 10.033 3.15475C10.1706 3.19114 10.3062 3.23545 10.4396 3.28767C10.7428 3.40632 11.0201 3.55959 11.2715 3.74749C11.3675 3.81921 11.4596 3.89596 11.548 3.97777C11.7993 4.2102 12.0039 4.46853 12.162 4.75276C12.2001 4.82124 12.2354 4.89122 12.2681 4.9627C12.359 5.16157 12.4256 5.36536 12.4679 5.57407C12.5047 5.75558 12.5231 5.94082 12.5231 6.12978L12.5231 12.075C12.5231 12.264 12.5047 12.4492 12.4679 12.6307C12.4256 12.8394 12.359 13.0432 12.2681 13.2421C12.2355 13.3136 12.2001 13.3835 12.162 13.452C12.0039 13.7362 11.7993 13.9946 11.548 14.227C11.4596 14.3088 11.3675 14.3856 11.2715 14.4573C11.0201 14.6452 10.7428 14.7985 10.4396 14.9171C10.3062 14.9693 10.1706 15.0136 10.033 15.05C9.71667 15.1337 9.38929 15.1755 9.05085 15.1755C8.71241 15.1755 8.38503 15.1337 8.06871 15.05C7.93107 15.0136 7.79552 14.9693 7.66207 14.9171C7.3589 14.7985 7.0816 14.6452 6.83019 14.4573C6.73424 14.3856 6.64206 14.3088 6.55365 14.227C6.30244 13.9946 6.09779 13.7363 5.93972 13.452C5.90163 13.3836 5.86625 13.3136 5.83357 13.2421C5.74265 13.0432 5.67605 12.8394 5.63377 12.6307C5.597 12.4492 5.57861 12.264 5.57861 12.075Z" fill-rule="evenodd" />\n </g>\n <g class="' + prefix + '-icon-talk-growth-dot">\n <path class="' + prefix + '-icon-talk-growth-dot1" d="M19.1333 6.40039L22.8667 6.40039" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot2" d="M19.1333 10.1338L21.9331 10.1338" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot3" d="M19.1333 13.8672L20.9995 13.8672" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot4" d="M19.1333 17.6001L20.0669 17.6001" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n </g>\n </svg>';
|
|
668
671
|
},
|
|
672
|
+
/** 语音广播 */ broadcast: '\n <svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" stroke="none" focusable="false" aria-hidden="true" data-icon="broadcast">\n <g>\n <path id="矢量 1" d="m8.52109,6.76609l6.17823,-2.91335c0.2485,-0.11718 0.5027,-0.19531 0.7627,-0.2351c0.2034,-0.03077 0.4104,-0.03809 0.6211,-0.02173c0.2092,0.01636 0.4116,0.05493 0.6069,0.11621c0.2278,0.07129 0.4461,0.1731 0.6548,0.30542c0.2087,0.13232 0.394,0.28638 0.5557,0.46216l0.0002,0l0,0c0.1384,0.15064 0.2598,0.31714 0.3638,0.49951c0.1047,0.18335 0.1865,0.37354 0.2451,0.57081c0.0752,0.25219 0.1128,0.51562 0.1128,0.79004l0,10.64651c0,0.2744 -0.0376,0.5379 -0.1128,0.7901l0,0c-0.0586,0.197 -0.1404,0.3874 -0.2451,0.5708c-0.104,0.1823 -0.2254,0.3488 -0.364,0.4995c-0.1617,0.1758 -0.347,0.3298 -0.5557,0.4621c-0.2087,0.1324 -0.427,0.2342 -0.6548,0.3054c-0.1953,0.0611 -0.3977,0.0999 -0.6069,0.1163c-0.2107,0.0163 -0.4175,0.009 -0.6209,-0.0218c-0.2602,-0.0398 -0.5144,-0.1181 -0.7629,-0.2351l-5.45044,-2.5703l0,2.759c0,0.1036 -0.01831,0.1995 -0.05494,0.2879c-0.03662,0.0886 -0.09155,0.1692 -0.16479,0.2424c-0.14624,0.1465 -0.32324,0.2197 -0.53027,0.2197l-2,0c-0.14209,0 -0.27344,-0.0373 -0.39429,-0.112c-0.12085,-0.0745 -0.21289,-0.1756 -0.27661,-0.3025l-1.99268,-3.9856c-0.06225,-0.0234 -0.12402,-0.0481 -0.18555,-0.074c-0.26953,-0.114 -0.52417,-0.2502 -0.7644,-0.4084c-0.26636,-0.1758 -0.51489,-0.3789 -0.74512,-0.6094c-0.23047,-0.2302 -0.43359,-0.4788 -0.60937,-0.7451c-0.1582,-0.2403 -0.29444,-0.4949 -0.40845,-0.7644c-0.11328,-0.2679 -0.20068,-0.5413 -0.26245,-0.8206l0,0c-0.07398,-0.3347 -0.11108,-0.6775 -0.11108,-1.0286c0,-0.351 0.0371,-0.6938 0.11108,-1.0285c0.06177,-0.2793 0.14917,-0.5528 0.26245,-0.8206c0.11401,-0.26953 0.25025,-0.52417 0.40845,-0.7644c0.17578,-0.26636 0.3789,-0.5149 0.60937,-0.74512c0.23023,-0.23047 0.47876,-0.4336 0.74512,-0.60938l0,0c0.24023,-0.1582 0.49487,-0.29444 0.7644,-0.40845c0.26783,-0.11328 0.54126,-0.20068 0.82056,-0.26245l0,0l0,0l0,0c0.33472,-0.07398 0.67749,-0.11109 1.02857,-0.11109l2.93872,0c0.02636,-0.0166 0.05444,-0.03198 0.08349,-0.04589zm0.72876,8.47948l6.08937,2.8716c0.1287,0.0606 0.2598,0.0987 0.3935,0.114c0.0772,0.0088 0.1551,0.0103 0.2337,0.0042c0.0857,-0.0068 0.1687,-0.0217 0.2495,-0.0452c0.1133,-0.0329 0.2219,-0.0822 0.3257,-0.1479c0.104,-0.0659 0.1948,-0.1431 0.2729,-0.2317c0.0554,-0.063 0.1045,-0.1318 0.147,-0.2063c0.0393,-0.0686 0.0713,-0.1397 0.0962,-0.2131c0.043,-0.1277 0.0647,-0.2625 0.0647,-0.4046l0,-10.64651c0,-0.14209 -0.0217,-0.2771 -0.0647,-0.40454c-0.0249,-0.07349 -0.0569,-0.14454 -0.0962,-0.21314c-0.0425,-0.07471 -0.0916,-0.14331 -0.147,-0.2063c-0.0781,-0.08862 -0.1689,-0.16577 -0.2729,-0.23169c-0.1038,-0.06567 -0.2124,-0.11523 -0.3257,-0.14795c-0.0808,-0.02344 -0.1638,-0.03833 -0.2495,-0.04517c-0.0786,-0.0061 -0.1565,-0.00463 -0.2337,0.00415c-0.1337,0.01539 -0.2648,0.05347 -0.3935,0.11402l-6.09034,2.87208l0.00097,7.16405zm13.58447,-7.9121l-2,1c-0.3757,0.18775 -0.8184,0.04029 -1.0063,-0.33545c-0.0552,-0.11035 -0.0813,-0.22656 -0.0813,-0.34033c0,-0.27344 0.1516,-0.53321 0.4167,-0.66602l2,-1c0.3757,-0.18775 0.8186,-0.04004 1.0064,0.33545c0.0551,0.11035 0.0813,0.22656 0.0813,0.34033c0,0.27368 -0.1514,0.53345 -0.4168,0.66602zm-15.08544,8.9785l-2.08667,0l1.30029,2.6006l0.78638,0l0,-2.6006zm0,-7.99998l-2.25,0c-0.24976,0 -0.49317,0.02734 -0.73023,0.08179c-0.18188,0.04174 -0.36011,0.09961 -0.53467,0.17334c-0.17944,0.07593 -0.34961,0.1665 -0.51049,0.27124c-0.18702,0.12231 -0.36133,0.26416 -0.52271,0.42554c-0.16138,0.16137 -0.30322,0.33569 -0.42554,0.52267c-0.10473,0.1609 -0.19531,0.3311 -0.27124,0.5105c-0.07373,0.1746 -0.13159,0.3528 -0.17334,0.5347c-0.05444,0.2371 -0.08178,0.4805 -0.08178,0.7302c0,0.2498 0.02734,0.4932 0.08178,0.7303c0.04175,0.1818 0.09961,0.3601 0.17334,0.5346c0.07593,0.1795 0.16651,0.3496 0.27124,0.5105c0.12232,0.187 0.26416,0.3614 0.42554,0.5227c0.16138,0.1614 0.33569,0.3033 0.52271,0.4256c0.16088,0.1047 0.33105,0.1953 0.51049,0.2712c0.17456,0.0737 0.35279,0.1316 0.53467,0.1734c0.23706,0.0544 0.48047,0.0817 0.73023,0.0817l2.25097,0l-0.00097,-6.49998zm12.75004,2.60058l2,0c0.4199,0 0.75,0.3301 0.75,0.75c0,0.4199 -0.3301,0.75 -0.75,0.75l-2,0c-0.42,0 -0.75,-0.3301 -0.75,-0.75c0,-0.4199 0.33,-0.75 0.75,-0.75zm0.3354,4.0791l2,1c0.2654,0.1326 0.4168,0.3924 0.4168,0.6661c0,0.1137 -0.0262,0.2299 -0.0813,0.3403c-0.1878,0.3755 -0.6307,0.5232 -1.0064,0.3354l-2,-1c-0.2651,-0.1328 -0.4167,-0.3925 -0.4167,-0.666c0,-0.1138 0.0261,-0.23 0.0813,-0.3403c0.1879,-0.3758 0.6306,-0.5232 1.0063,-0.3355z" fill-rule="evenodd"/>\n </g>\n</svg>',
|
|
669
673
|
/** 相机/截图 */ capturePicture: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="capture-picture">\n <path d="M6.94 7.51C7.34 7.51 7.7 7.28 7.86 6.91L8.43 5.6C8.59 5.23 8.95 5 9.35 5L14.69 5C15.04 5 15.37 5.18 15.55 5.49L16.45 7.02C16.63 7.33 16.96 7.51 17.31 7.51L18.5 7.51C19.6 7.51 20.5 8.41 20.5 9.51L20.5 17C20.5 18.1 19.6 19 18.5 19L5.5 19C4.39 19 3.5 18.1 3.5 17L3.5 9.51C3.5 8.41 4.39 7.51 5.5 7.51L6.94 7.51Z" stroke-width="1.5"/>\n <circle cx="12" cy="12.525146" r="3.068097" stroke-width="1.5"/>\n </svg>',
|
|
670
674
|
/** 电子放大 */ zoom: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="zoom">\n <ellipse cx="10.914795" cy="11.25" rx="8.004043" ry="8.25" stroke-width="1.5"/>\n <path d="M14.31 11.04L8.05 11.14" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M11.13 14.22L11.23 7.95" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M16.45 17.83L19.36 20.83" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>',
|
|
671
675
|
/** 隐私遮蔽 */ privacyMasking: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="privacy-masking">\n <path d="M12 19C11.15 19 10.31 18.82 9.49 18.5" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M20.88 12.46C18.98 15.96 15.49 19 11.99 19" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M19.07 8.92C19.76 9.72 20.38 10.61 20.88 11.53C21.03 11.82 21.03 12.17 20.88 12.46" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M5 19L19 5" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M9.77 14.22C8.54 12.99 8.54 11 9.77 9.77C11 8.54 12.99 8.54 14.22 9.77" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M17.04 6.95C15.49 5.75 13.74 5 12 5C8.5 5 5.01 8.03 3.11 11.53C2.96 11.82 2.96 12.17 3.11 12.46C4.06 14.21 5.41 15.84 6.95 17.04" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>',
|
|
@@ -750,6 +754,10 @@ var IconComponents = {
|
|
|
750
754
|
if (attr === void 0) attr = {};
|
|
751
755
|
return createIcon(Icons.talk, 'talk', attr);
|
|
752
756
|
},
|
|
757
|
+
broadcast: function(attr) {
|
|
758
|
+
if (attr === void 0) attr = {};
|
|
759
|
+
return createIcon(Icons.broadcast, 'broadcast', attr);
|
|
760
|
+
},
|
|
753
761
|
talkGrowth: function(attr) {
|
|
754
762
|
if (attr === void 0) attr = {};
|
|
755
763
|
return createIcon(Icons.talkGrowth(PREFIX_CLASS), 'talk-growth', attr);
|
|
@@ -828,8 +836,8 @@ var IconComponents = {
|
|
|
828
836
|
}
|
|
829
837
|
};
|
|
830
838
|
|
|
831
|
-
function _extends$
|
|
832
|
-
_extends$
|
|
839
|
+
function _extends$p() {
|
|
840
|
+
_extends$p = Object.assign || function(target) {
|
|
833
841
|
for(var i = 1; i < arguments.length; i++){
|
|
834
842
|
var source = arguments[i];
|
|
835
843
|
for(var key in source){
|
|
@@ -840,9 +848,9 @@ function _extends$o() {
|
|
|
840
848
|
}
|
|
841
849
|
return target;
|
|
842
850
|
};
|
|
843
|
-
return _extends$
|
|
851
|
+
return _extends$p.apply(this, arguments);
|
|
844
852
|
}
|
|
845
|
-
function _inherits$
|
|
853
|
+
function _inherits$p(subClass, superClass) {
|
|
846
854
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
847
855
|
throw new TypeError("Super expression must either be null or a function");
|
|
848
856
|
}
|
|
@@ -853,25 +861,25 @@ function _inherits$o(subClass, superClass) {
|
|
|
853
861
|
configurable: true
|
|
854
862
|
}
|
|
855
863
|
});
|
|
856
|
-
if (superClass) _set_prototype_of$
|
|
864
|
+
if (superClass) _set_prototype_of$p(subClass, superClass);
|
|
857
865
|
}
|
|
858
|
-
function _set_prototype_of$
|
|
859
|
-
_set_prototype_of$
|
|
866
|
+
function _set_prototype_of$p(o, p) {
|
|
867
|
+
_set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
860
868
|
o.__proto__ = p;
|
|
861
869
|
return o;
|
|
862
870
|
};
|
|
863
|
-
return _set_prototype_of$
|
|
871
|
+
return _set_prototype_of$p(o, p);
|
|
864
872
|
}
|
|
865
873
|
var MESSAGE_DEFAULT_OPTIONS = {};
|
|
866
874
|
/**
|
|
867
875
|
* 消息控件
|
|
868
876
|
* @category Control
|
|
869
877
|
*/ var Message = /*#__PURE__*/ function(Control) {
|
|
870
|
-
_inherits$
|
|
878
|
+
_inherits$p(Message, Control);
|
|
871
879
|
function Message(options) {
|
|
872
880
|
if (options === void 0) options = {};
|
|
873
881
|
var _this;
|
|
874
|
-
_this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$
|
|
882
|
+
_this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$p({}, options, {
|
|
875
883
|
tagName: 'div',
|
|
876
884
|
controlType: 'block'
|
|
877
885
|
}))) || this;
|
|
@@ -1024,8 +1032,8 @@ function _create_class$8(Constructor, protoProps, staticProps) {
|
|
|
1024
1032
|
if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
|
|
1025
1033
|
return Constructor;
|
|
1026
1034
|
}
|
|
1027
|
-
function _extends$
|
|
1028
|
-
_extends$
|
|
1035
|
+
function _extends$o() {
|
|
1036
|
+
_extends$o = Object.assign || function(target) {
|
|
1029
1037
|
for(var i = 1; i < arguments.length; i++){
|
|
1030
1038
|
var source = arguments[i];
|
|
1031
1039
|
for(var key in source){
|
|
@@ -1036,9 +1044,9 @@ function _extends$n() {
|
|
|
1036
1044
|
}
|
|
1037
1045
|
return target;
|
|
1038
1046
|
};
|
|
1039
|
-
return _extends$
|
|
1047
|
+
return _extends$o.apply(this, arguments);
|
|
1040
1048
|
}
|
|
1041
|
-
function _inherits$
|
|
1049
|
+
function _inherits$o(subClass, superClass) {
|
|
1042
1050
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
1043
1051
|
throw new TypeError("Super expression must either be null or a function");
|
|
1044
1052
|
}
|
|
@@ -1049,23 +1057,23 @@ function _inherits$n(subClass, superClass) {
|
|
|
1049
1057
|
configurable: true
|
|
1050
1058
|
}
|
|
1051
1059
|
});
|
|
1052
|
-
if (superClass) _set_prototype_of$
|
|
1060
|
+
if (superClass) _set_prototype_of$o(subClass, superClass);
|
|
1053
1061
|
}
|
|
1054
|
-
function _set_prototype_of$
|
|
1055
|
-
_set_prototype_of$
|
|
1062
|
+
function _set_prototype_of$o(o, p) {
|
|
1063
|
+
_set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
1056
1064
|
o.__proto__ = p;
|
|
1057
1065
|
return o;
|
|
1058
1066
|
};
|
|
1059
|
-
return _set_prototype_of$
|
|
1067
|
+
return _set_prototype_of$o(o, p);
|
|
1060
1068
|
}
|
|
1061
1069
|
/**
|
|
1062
1070
|
* 播放/暂停控件
|
|
1063
1071
|
* @category Control
|
|
1064
1072
|
*/ var Play = /*#__PURE__*/ function(Control) {
|
|
1065
|
-
_inherits$
|
|
1073
|
+
_inherits$o(Play, Control);
|
|
1066
1074
|
function Play(options) {
|
|
1067
1075
|
var _this;
|
|
1068
|
-
_this = Control.call(this, _extends$
|
|
1076
|
+
_this = Control.call(this, _extends$o({}, options, {
|
|
1069
1077
|
tagName: 'span',
|
|
1070
1078
|
controlType: 'button',
|
|
1071
1079
|
classNameSuffix: 'play'
|
|
@@ -1681,8 +1689,8 @@ function _create_class$6(Constructor, protoProps, staticProps) {
|
|
|
1681
1689
|
if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
|
|
1682
1690
|
return Constructor;
|
|
1683
1691
|
}
|
|
1684
|
-
function _extends$
|
|
1685
|
-
_extends$
|
|
1692
|
+
function _extends$n() {
|
|
1693
|
+
_extends$n = Object.assign || function(target) {
|
|
1686
1694
|
for(var i = 1; i < arguments.length; i++){
|
|
1687
1695
|
var source = arguments[i];
|
|
1688
1696
|
for(var key in source){
|
|
@@ -1693,9 +1701,9 @@ function _extends$m() {
|
|
|
1693
1701
|
}
|
|
1694
1702
|
return target;
|
|
1695
1703
|
};
|
|
1696
|
-
return _extends$
|
|
1704
|
+
return _extends$n.apply(this, arguments);
|
|
1697
1705
|
}
|
|
1698
|
-
function _inherits$
|
|
1706
|
+
function _inherits$n(subClass, superClass) {
|
|
1699
1707
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
1700
1708
|
throw new TypeError("Super expression must either be null or a function");
|
|
1701
1709
|
}
|
|
@@ -1706,14 +1714,14 @@ function _inherits$m(subClass, superClass) {
|
|
|
1706
1714
|
configurable: true
|
|
1707
1715
|
}
|
|
1708
1716
|
});
|
|
1709
|
-
if (superClass) _set_prototype_of$
|
|
1717
|
+
if (superClass) _set_prototype_of$n(subClass, superClass);
|
|
1710
1718
|
}
|
|
1711
|
-
function _set_prototype_of$
|
|
1712
|
-
_set_prototype_of$
|
|
1719
|
+
function _set_prototype_of$n(o, p) {
|
|
1720
|
+
_set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
1713
1721
|
o.__proto__ = p;
|
|
1714
1722
|
return o;
|
|
1715
1723
|
};
|
|
1716
|
-
return _set_prototype_of$
|
|
1724
|
+
return _set_prototype_of$n(o, p);
|
|
1717
1725
|
}
|
|
1718
1726
|
var VOLUME_DEFAULT_OPTIONS = {
|
|
1719
1727
|
volume: 0.8,
|
|
@@ -1727,12 +1735,12 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1727
1735
|
* 音量调节控件
|
|
1728
1736
|
* @category Control
|
|
1729
1737
|
*/ var Volume = /*#__PURE__*/ function(Control) {
|
|
1730
|
-
_inherits$
|
|
1738
|
+
_inherits$n(Volume, Control);
|
|
1731
1739
|
function Volume(options) {
|
|
1732
1740
|
if (options === void 0) options = {};
|
|
1733
1741
|
var _this;
|
|
1734
1742
|
var _this__options_props, _this__options_props1, _this__options_props2, _this__options_props3;
|
|
1735
|
-
_this = Control.call(this, _extends$
|
|
1743
|
+
_this = Control.call(this, _extends$n({}, options, {
|
|
1736
1744
|
tagName: 'span',
|
|
1737
1745
|
classNameSuffix: 'volume',
|
|
1738
1746
|
controlType: 'button'
|
|
@@ -1911,7 +1919,10 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1911
1919
|
if (this._lastVolume !== _volume) {
|
|
1912
1920
|
this._volume = _volume;
|
|
1913
1921
|
this._lastVolume = this._volume;
|
|
1914
|
-
if (this._progress)
|
|
1922
|
+
if (this._progress) {
|
|
1923
|
+
// 静音时进度条为 0
|
|
1924
|
+
this._progress.value = this._muted ? 0 : _volume;
|
|
1925
|
+
}
|
|
1915
1926
|
this._options.onChange == null ? void 0 : this._options.onChange.call(this._options, _volume, this._muted);
|
|
1916
1927
|
this.emit(EVENTS.control.volumechange, _volume, this._muted);
|
|
1917
1928
|
}
|
|
@@ -1945,7 +1956,7 @@ var VOLUME_DEFAULT_OPTIONS = {
|
|
|
1945
1956
|
return Volume;
|
|
1946
1957
|
}(Control);
|
|
1947
1958
|
|
|
1948
|
-
function asyncGeneratorStep$
|
|
1959
|
+
function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
1949
1960
|
try {
|
|
1950
1961
|
var info = gen[key](arg);
|
|
1951
1962
|
var value = info.value;
|
|
@@ -1959,22 +1970,22 @@ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
1959
1970
|
Promise.resolve(value).then(_next, _throw);
|
|
1960
1971
|
}
|
|
1961
1972
|
}
|
|
1962
|
-
function _async_to_generator$
|
|
1973
|
+
function _async_to_generator$6(fn) {
|
|
1963
1974
|
return function() {
|
|
1964
1975
|
var self = this, args = arguments;
|
|
1965
1976
|
return new Promise(function(resolve, reject) {
|
|
1966
1977
|
var gen = fn.apply(self, args);
|
|
1967
1978
|
function _next(value) {
|
|
1968
|
-
asyncGeneratorStep$
|
|
1979
|
+
asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "next", value);
|
|
1969
1980
|
}
|
|
1970
1981
|
function _throw(err) {
|
|
1971
|
-
asyncGeneratorStep$
|
|
1982
|
+
asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "throw", err);
|
|
1972
1983
|
}
|
|
1973
1984
|
_next(undefined);
|
|
1974
1985
|
});
|
|
1975
1986
|
};
|
|
1976
1987
|
}
|
|
1977
|
-
function _ts_generator$
|
|
1988
|
+
function _ts_generator$6(thisArg, body) {
|
|
1978
1989
|
var f, y, t, _ = {
|
|
1979
1990
|
label: 0,
|
|
1980
1991
|
sent: function() {
|
|
@@ -2188,8 +2199,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2188
2199
|
* 全屏
|
|
2189
2200
|
* @returns Promise<void>
|
|
2190
2201
|
*/ _proto.fullscreen = function fullscreen() {
|
|
2191
|
-
return _async_to_generator$
|
|
2192
|
-
return _ts_generator$
|
|
2202
|
+
return _async_to_generator$6(function() {
|
|
2203
|
+
return _ts_generator$6(this, function(_state) {
|
|
2193
2204
|
switch(_state.label){
|
|
2194
2205
|
case 0:
|
|
2195
2206
|
if (!Utils.isMobile) return [
|
|
@@ -2224,8 +2235,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2224
2235
|
* 退出全屏
|
|
2225
2236
|
* @returns Promise<void>
|
|
2226
2237
|
*/ _proto.exitFullscreen = function exitFullscreen() {
|
|
2227
|
-
return _async_to_generator$
|
|
2228
|
-
return _ts_generator$
|
|
2238
|
+
return _async_to_generator$6(function() {
|
|
2239
|
+
return _ts_generator$6(this, function(_state) {
|
|
2229
2240
|
switch(_state.label){
|
|
2230
2241
|
case 0:
|
|
2231
2242
|
if (!Utils.isMobile) return [
|
|
@@ -2264,8 +2275,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2264
2275
|
* 全屏切换
|
|
2265
2276
|
* @returns Promise<void>
|
|
2266
2277
|
*/ _proto.toggle = function toggle() {
|
|
2267
|
-
return _async_to_generator$
|
|
2268
|
-
return _ts_generator$
|
|
2278
|
+
return _async_to_generator$6(function() {
|
|
2279
|
+
return _ts_generator$6(this, function(_state) {
|
|
2269
2280
|
switch(_state.label){
|
|
2270
2281
|
case 0:
|
|
2271
2282
|
if (!Utils.isMobile) return [
|
|
@@ -2388,8 +2399,8 @@ var __fullscreenProvider__ = Provider.getInstance();
|
|
|
2388
2399
|
return Fullscreen;
|
|
2389
2400
|
}();
|
|
2390
2401
|
|
|
2391
|
-
function _extends$
|
|
2392
|
-
_extends$
|
|
2402
|
+
function _extends$m() {
|
|
2403
|
+
_extends$m = Object.assign || function(target) {
|
|
2393
2404
|
for(var i = 1; i < arguments.length; i++){
|
|
2394
2405
|
var source = arguments[i];
|
|
2395
2406
|
for(var key in source){
|
|
@@ -2400,9 +2411,9 @@ function _extends$l() {
|
|
|
2400
2411
|
}
|
|
2401
2412
|
return target;
|
|
2402
2413
|
};
|
|
2403
|
-
return _extends$
|
|
2414
|
+
return _extends$m.apply(this, arguments);
|
|
2404
2415
|
}
|
|
2405
|
-
function _inherits$
|
|
2416
|
+
function _inherits$m(subClass, superClass) {
|
|
2406
2417
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
2407
2418
|
throw new TypeError("Super expression must either be null or a function");
|
|
2408
2419
|
}
|
|
@@ -2413,24 +2424,24 @@ function _inherits$l(subClass, superClass) {
|
|
|
2413
2424
|
configurable: true
|
|
2414
2425
|
}
|
|
2415
2426
|
});
|
|
2416
|
-
if (superClass) _set_prototype_of$
|
|
2427
|
+
if (superClass) _set_prototype_of$m(subClass, superClass);
|
|
2417
2428
|
}
|
|
2418
|
-
function _set_prototype_of$
|
|
2419
|
-
_set_prototype_of$
|
|
2429
|
+
function _set_prototype_of$m(o, p) {
|
|
2430
|
+
_set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
2420
2431
|
o.__proto__ = p;
|
|
2421
2432
|
return o;
|
|
2422
2433
|
};
|
|
2423
|
-
return _set_prototype_of$
|
|
2434
|
+
return _set_prototype_of$m(o, p);
|
|
2424
2435
|
}
|
|
2425
2436
|
/**
|
|
2426
2437
|
* 全屏控件
|
|
2427
2438
|
* @category Control
|
|
2428
2439
|
*/ var Fullscreen = /*#__PURE__*/ function(Control) {
|
|
2429
|
-
_inherits$
|
|
2440
|
+
_inherits$m(Fullscreen, Control);
|
|
2430
2441
|
function Fullscreen(options) {
|
|
2431
2442
|
var _this;
|
|
2432
2443
|
var _options_props, _this_options;
|
|
2433
|
-
_this = Control.call(this, _extends$
|
|
2444
|
+
_this = Control.call(this, _extends$m({
|
|
2434
2445
|
tagName: 'span',
|
|
2435
2446
|
classNameSuffix: 'fullscreen',
|
|
2436
2447
|
controlType: 'button'
|
|
@@ -2495,8 +2506,8 @@ function _set_prototype_of$l(o, p) {
|
|
|
2495
2506
|
return Fullscreen;
|
|
2496
2507
|
}(Control);
|
|
2497
2508
|
|
|
2498
|
-
function _extends$
|
|
2499
|
-
_extends$
|
|
2509
|
+
function _extends$l() {
|
|
2510
|
+
_extends$l = Object.assign || function(target) {
|
|
2500
2511
|
for(var i = 1; i < arguments.length; i++){
|
|
2501
2512
|
var source = arguments[i];
|
|
2502
2513
|
for(var key in source){
|
|
@@ -2507,9 +2518,9 @@ function _extends$k() {
|
|
|
2507
2518
|
}
|
|
2508
2519
|
return target;
|
|
2509
2520
|
};
|
|
2510
|
-
return _extends$
|
|
2521
|
+
return _extends$l.apply(this, arguments);
|
|
2511
2522
|
}
|
|
2512
|
-
function _inherits$
|
|
2523
|
+
function _inherits$l(subClass, superClass) {
|
|
2513
2524
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
2514
2525
|
throw new TypeError("Super expression must either be null or a function");
|
|
2515
2526
|
}
|
|
@@ -2520,24 +2531,24 @@ function _inherits$k(subClass, superClass) {
|
|
|
2520
2531
|
configurable: true
|
|
2521
2532
|
}
|
|
2522
2533
|
});
|
|
2523
|
-
if (superClass) _set_prototype_of$
|
|
2534
|
+
if (superClass) _set_prototype_of$l(subClass, superClass);
|
|
2524
2535
|
}
|
|
2525
|
-
function _set_prototype_of$
|
|
2526
|
-
_set_prototype_of$
|
|
2536
|
+
function _set_prototype_of$l(o, p) {
|
|
2537
|
+
_set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
2527
2538
|
o.__proto__ = p;
|
|
2528
2539
|
return o;
|
|
2529
2540
|
};
|
|
2530
|
-
return _set_prototype_of$
|
|
2541
|
+
return _set_prototype_of$l(o, p);
|
|
2531
2542
|
}
|
|
2532
2543
|
/**
|
|
2533
2544
|
* 回放类型切换(本地回放(sdk 卡), 云存储回放, 云录制回放)控件
|
|
2534
2545
|
* @category Control
|
|
2535
2546
|
*/ var Rec = /*#__PURE__*/ function(Control) {
|
|
2536
|
-
_inherits$
|
|
2547
|
+
_inherits$l(Rec, Control);
|
|
2537
2548
|
function Rec(options) {
|
|
2538
2549
|
var _this;
|
|
2539
2550
|
var _options_props;
|
|
2540
|
-
_this = Control.call(this, _extends$
|
|
2551
|
+
_this = Control.call(this, _extends$l({}, options, {
|
|
2541
2552
|
tagName: 'div',
|
|
2542
2553
|
controlType: 'block',
|
|
2543
2554
|
classNameSuffix: 'rec'
|
|
@@ -2812,6 +2823,7 @@ var zh = {
|
|
|
2812
2823
|
BTN_RECORDVIDEO: '录屏',
|
|
2813
2824
|
BTN_CAPTURE: '截图',
|
|
2814
2825
|
BTN_TALK: '对讲',
|
|
2826
|
+
BTN_BROADCAST: '语音广播',
|
|
2815
2827
|
BTN_ZOOM: '电子放大',
|
|
2816
2828
|
BTN_3D_ZOOM: '3D定位',
|
|
2817
2829
|
BTN_PTZ: '云台控制',
|
|
@@ -3082,6 +3094,7 @@ var en = {
|
|
|
3082
3094
|
BTN_RECORDVIDEO: 'Screen recording',
|
|
3083
3095
|
BTN_CAPTURE: 'Screenshot',
|
|
3084
3096
|
BTN_TALK: 'Intercom',
|
|
3097
|
+
BTN_BROADCAST: 'Voice broadcast',
|
|
3085
3098
|
BTN_ZOOM: 'Electronic zoom',
|
|
3086
3099
|
BTN_3D_ZOOM: '3D positioning',
|
|
3087
3100
|
BTN_PTZ: 'PTZ control',
|
|
@@ -3268,6 +3281,11 @@ var en = {
|
|
|
3268
3281
|
part: 'left',
|
|
3269
3282
|
isrender: 1
|
|
3270
3283
|
},
|
|
3284
|
+
{
|
|
3285
|
+
iconId: 'broadcast',
|
|
3286
|
+
part: 'left',
|
|
3287
|
+
isrender: 1
|
|
3288
|
+
},
|
|
3271
3289
|
{
|
|
3272
3290
|
iconId: 'zoom',
|
|
3273
3291
|
part: 'left',
|
|
@@ -3454,6 +3472,12 @@ var en = {
|
|
|
3454
3472
|
defaultActive: 0,
|
|
3455
3473
|
isrender: 1
|
|
3456
3474
|
},
|
|
3475
|
+
{
|
|
3476
|
+
iconId: 'broadcast',
|
|
3477
|
+
part: 'left',
|
|
3478
|
+
defaultActive: 0,
|
|
3479
|
+
isrender: 1
|
|
3480
|
+
},
|
|
3457
3481
|
{
|
|
3458
3482
|
iconId: 'zoom',
|
|
3459
3483
|
part: 'left',
|
|
@@ -3709,7 +3733,7 @@ var en = {
|
|
|
3709
3733
|
voice: voice
|
|
3710
3734
|
};
|
|
3711
3735
|
|
|
3712
|
-
function _inherits$
|
|
3736
|
+
function _inherits$k(subClass, superClass) {
|
|
3713
3737
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
3714
3738
|
throw new TypeError("Super expression must either be null or a function");
|
|
3715
3739
|
}
|
|
@@ -3720,23 +3744,23 @@ function _inherits$j(subClass, superClass) {
|
|
|
3720
3744
|
configurable: true
|
|
3721
3745
|
}
|
|
3722
3746
|
});
|
|
3723
|
-
if (superClass) _set_prototype_of$
|
|
3747
|
+
if (superClass) _set_prototype_of$k(subClass, superClass);
|
|
3724
3748
|
}
|
|
3725
|
-
function _set_prototype_of$
|
|
3726
|
-
_set_prototype_of$
|
|
3749
|
+
function _set_prototype_of$k(o, p) {
|
|
3750
|
+
_set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
3727
3751
|
o.__proto__ = p;
|
|
3728
3752
|
return o;
|
|
3729
3753
|
};
|
|
3730
|
-
return _set_prototype_of$
|
|
3754
|
+
return _set_prototype_of$k(o, p);
|
|
3731
3755
|
}
|
|
3732
3756
|
/**
|
|
3733
3757
|
* 截图控件
|
|
3734
3758
|
* @category Content
|
|
3735
3759
|
*/ var Content = /*#__PURE__*/ function(EventEmitter) {
|
|
3736
|
-
_inherits$
|
|
3760
|
+
_inherits$k(Content, EventEmitter);
|
|
3737
3761
|
function Content(options) {
|
|
3738
3762
|
var _this;
|
|
3739
|
-
_this = EventEmitter.call(this) || this, _this._scaleMode = 0, _this._originWidth = 0, _this._originHeight = 0, _this._width = 0, _this._height = 0;
|
|
3763
|
+
_this = EventEmitter.call(this) || this, _this._scaleMode = 0, _this._cleanUpResizeObserver = null, _this._originWidth = 0, _this._originHeight = 0, _this._width = 0, _this._height = 0;
|
|
3740
3764
|
_this.options = options;
|
|
3741
3765
|
_this._scaleMode = options.scaleMode || 0;
|
|
3742
3766
|
_this.$wrapper = document.createElement('div');
|
|
@@ -3752,11 +3776,12 @@ function _set_prototype_of$j(o, p) {
|
|
|
3752
3776
|
$popupContainer.appendChild(_this.$wrapper);
|
|
3753
3777
|
}
|
|
3754
3778
|
_this.on(EVENTS.videoInfo, function(originWidth, originHeight) {
|
|
3755
|
-
_this.
|
|
3756
|
-
});
|
|
3757
|
-
_this.on(EVENTS.resize, function() {
|
|
3758
|
-
_this._rerender();
|
|
3779
|
+
_this.rerender(originWidth, originHeight);
|
|
3759
3780
|
});
|
|
3781
|
+
// prettier-ignore
|
|
3782
|
+
_this._cleanUpResizeObserver = Utils.resizeObserver(_this.$wrapper, throttle(function() {
|
|
3783
|
+
_this.rerender();
|
|
3784
|
+
}, 20));
|
|
3760
3785
|
return _this;
|
|
3761
3786
|
}
|
|
3762
3787
|
var _proto = Content.prototype;
|
|
@@ -3765,7 +3790,7 @@ function _set_prototype_of$j(o, p) {
|
|
|
3765
3790
|
* @param {number} originWidth 画面宽度
|
|
3766
3791
|
* @param {number} originHeight 画面高度
|
|
3767
3792
|
* @returns {void}
|
|
3768
|
-
*/ _proto.
|
|
3793
|
+
*/ _proto.rerender = function rerender(originWidth, originHeight) {
|
|
3769
3794
|
if (originWidth === void 0) originWidth = 0;
|
|
3770
3795
|
if (originHeight === void 0) originHeight = 0;
|
|
3771
3796
|
var width = this.$wrapper.clientWidth;
|
|
@@ -3789,6 +3814,7 @@ function _set_prototype_of$j(o, p) {
|
|
|
3789
3814
|
if (this._scaleMode === THEME_SCALE_MODE_TYPE.fullAuto) {
|
|
3790
3815
|
objectFill = 'cover';
|
|
3791
3816
|
}
|
|
3817
|
+
//
|
|
3792
3818
|
if (width > 0 && height > 0 && this._originWidth > 0 && this._originHeight > 0 && this.$video) {
|
|
3793
3819
|
var left = (width - this._originWidth) / 2;
|
|
3794
3820
|
var top = (height - this._originHeight) / 2;
|
|
@@ -3818,10 +3844,15 @@ function _set_prototype_of$j(o, p) {
|
|
|
3818
3844
|
_proto.setScaleMode = function setScaleMode(scaleMode) {
|
|
3819
3845
|
if (scaleMode === void 0) scaleMode = 0;
|
|
3820
3846
|
this._scaleMode = scaleMode;
|
|
3821
|
-
this.
|
|
3847
|
+
this.rerender();
|
|
3822
3848
|
};
|
|
3823
3849
|
_proto.destroy = function destroy() {
|
|
3824
3850
|
var _this_$wrapper;
|
|
3851
|
+
if (this._cleanUpResizeObserver) {
|
|
3852
|
+
this._cleanUpResizeObserver.unobserve();
|
|
3853
|
+
// this._cleanUpResizeObserver.disconnect();
|
|
3854
|
+
this._cleanUpResizeObserver = null;
|
|
3855
|
+
}
|
|
3825
3856
|
if (this.$video) {
|
|
3826
3857
|
this.$video.remove();
|
|
3827
3858
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
@@ -3841,8 +3872,8 @@ function _set_prototype_of$j(o, p) {
|
|
|
3841
3872
|
return Content;
|
|
3842
3873
|
}(EventEmitter);
|
|
3843
3874
|
|
|
3844
|
-
function _extends$
|
|
3845
|
-
_extends$
|
|
3875
|
+
function _extends$k() {
|
|
3876
|
+
_extends$k = Object.assign || function(target) {
|
|
3846
3877
|
for(var i = 1; i < arguments.length; i++){
|
|
3847
3878
|
var source = arguments[i];
|
|
3848
3879
|
for(var key in source){
|
|
@@ -3853,9 +3884,9 @@ function _extends$j() {
|
|
|
3853
3884
|
}
|
|
3854
3885
|
return target;
|
|
3855
3886
|
};
|
|
3856
|
-
return _extends$
|
|
3887
|
+
return _extends$k.apply(this, arguments);
|
|
3857
3888
|
}
|
|
3858
|
-
function _inherits$
|
|
3889
|
+
function _inherits$j(subClass, superClass) {
|
|
3859
3890
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
3860
3891
|
throw new TypeError("Super expression must either be null or a function");
|
|
3861
3892
|
}
|
|
@@ -3866,23 +3897,23 @@ function _inherits$i(subClass, superClass) {
|
|
|
3866
3897
|
configurable: true
|
|
3867
3898
|
}
|
|
3868
3899
|
});
|
|
3869
|
-
if (superClass) _set_prototype_of$
|
|
3900
|
+
if (superClass) _set_prototype_of$j(subClass, superClass);
|
|
3870
3901
|
}
|
|
3871
|
-
function _set_prototype_of$
|
|
3872
|
-
_set_prototype_of$
|
|
3902
|
+
function _set_prototype_of$j(o, p) {
|
|
3903
|
+
_set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
3873
3904
|
o.__proto__ = p;
|
|
3874
3905
|
return o;
|
|
3875
3906
|
};
|
|
3876
|
-
return _set_prototype_of$
|
|
3907
|
+
return _set_prototype_of$j(o, p);
|
|
3877
3908
|
}
|
|
3878
3909
|
/**
|
|
3879
3910
|
* 更多控件
|
|
3880
3911
|
* @category Control
|
|
3881
3912
|
*/ var More = /*#__PURE__*/ function(Control) {
|
|
3882
|
-
_inherits$
|
|
3913
|
+
_inherits$j(More, Control);
|
|
3883
3914
|
function More(options) {
|
|
3884
3915
|
var _this;
|
|
3885
|
-
_this = Control.call(this, _extends$
|
|
3916
|
+
_this = Control.call(this, _extends$k({}, options, {
|
|
3886
3917
|
tagName: 'span',
|
|
3887
3918
|
controlType: 'button',
|
|
3888
3919
|
classNameSuffix: 'more'
|
|
@@ -3926,11 +3957,13 @@ function _set_prototype_of$i(o, p) {
|
|
|
3926
3957
|
/**
|
|
3927
3958
|
* 添加
|
|
3928
3959
|
* @param control
|
|
3929
|
-
*/ _proto.add = function add(key, part, control) {
|
|
3960
|
+
*/ _proto.add = function add(key, part, control, props) {
|
|
3930
3961
|
this.list.unshift({
|
|
3931
3962
|
part: part,
|
|
3932
3963
|
key: key,
|
|
3933
|
-
control: control
|
|
3964
|
+
control: control,
|
|
3965
|
+
width: props.width,
|
|
3966
|
+
height: props.height
|
|
3934
3967
|
});
|
|
3935
3968
|
};
|
|
3936
3969
|
/**
|
|
@@ -4076,6 +4109,16 @@ function debounce(func, wait) {
|
|
|
4076
4109
|
(_theme_controls = theme.controls) == null ? void 0 : (_theme_controls_talkControl = _theme_controls.talkControl) == null ? void 0 : (_theme_controls_talkControl_emit = _theme_controls_talkControl.emit) == null ? void 0 : _theme_controls_talkControl_emit.call(_theme_controls_talkControl, EVENTS.talkVolumeChange, value);
|
|
4077
4110
|
});
|
|
4078
4111
|
// =======================================================
|
|
4112
|
+
// 语音广播
|
|
4113
|
+
// =======================================================
|
|
4114
|
+
theme.on(EVENTS.broadcastChange, function(active) {
|
|
4115
|
+
var _theme_controls, _theme_controls_broadcastControl, _theme_controls1;
|
|
4116
|
+
if (((_theme_controls = theme.controls) == null ? void 0 : _theme_controls.broadcastControl) && active !== ((_theme_controls1 = theme.controls) == null ? void 0 : (_theme_controls_broadcastControl = _theme_controls1.broadcastControl) == null ? void 0 : _theme_controls_broadcastControl.active)) {
|
|
4117
|
+
var _theme_controls_broadcastControl1, _theme_controls2;
|
|
4118
|
+
(_theme_controls2 = theme.controls) == null ? void 0 : (_theme_controls_broadcastControl1 = _theme_controls2.broadcastControl) == null ? void 0 : _theme_controls_broadcastControl1.emit(EVENTS.broadcastChange, active);
|
|
4119
|
+
}
|
|
4120
|
+
});
|
|
4121
|
+
// =======================================================
|
|
4079
4122
|
// 录制
|
|
4080
4123
|
// =======================================================
|
|
4081
4124
|
theme.on(EVENTS.recordingChange, function(recording) {
|
|
@@ -4171,7 +4214,7 @@ function debounce(func, wait) {
|
|
|
4171
4214
|
*
|
|
4172
4215
|
* @param theme - Theme
|
|
4173
4216
|
*/ function _controlEventemitter(theme) {
|
|
4174
|
-
var _theme_controls, _theme_controls1, _theme_controls2, _theme_controls3, _theme_controls4, _theme_controls5, _theme_controls6, _theme_controls7, _theme_controls8, _theme_controls9, _theme_controls10, _theme_controls11, _theme_controls12, _theme_controls13, _theme_controls14;
|
|
4217
|
+
var _theme_controls, _theme_controls1, _theme_controls2, _theme_controls3, _theme_controls4, _theme_controls5, _theme_controls6, _theme_controls7, _theme_controls8, _theme_controls9, _theme_controls10, _theme_controls11, _theme_controls12, _theme_controls13, _theme_controls14, _theme_controls15;
|
|
4175
4218
|
// Controls
|
|
4176
4219
|
if (theme._recFooter) {
|
|
4177
4220
|
theme._recFooter.on(EVENTS.theme.recFooterDestroy, function() {
|
|
@@ -4264,8 +4307,17 @@ function debounce(func, wait) {
|
|
|
4264
4307
|
theme.emit(EVENTS.control.talkDestroy);
|
|
4265
4308
|
});
|
|
4266
4309
|
}
|
|
4310
|
+
// 语音广播控件
|
|
4311
|
+
if ((_theme_controls5 = theme.controls) == null ? void 0 : _theme_controls5.broadcastControl) {
|
|
4312
|
+
theme.controls.broadcastControl.on(EVENTS.control.broadcastChange, function(active) {
|
|
4313
|
+
theme.emit(EVENTS.control.broadcastChange, active);
|
|
4314
|
+
});
|
|
4315
|
+
theme.controls.broadcastControl.on(EVENTS.control.broadcastDestroy, function() {
|
|
4316
|
+
theme.emit(EVENTS.control.broadcastDestroy);
|
|
4317
|
+
});
|
|
4318
|
+
}
|
|
4267
4319
|
// 缩放控件
|
|
4268
|
-
if ((
|
|
4320
|
+
if ((_theme_controls6 = theme.controls) == null ? void 0 : _theme_controls6.zoomControl) {
|
|
4269
4321
|
theme.controls.zoomControl.on(EVENTS.control.zoomChange, function(value, _percent, _range) {
|
|
4270
4322
|
if (theme.zoom !== value) {
|
|
4271
4323
|
theme.zoom = value;
|
|
@@ -4287,7 +4339,7 @@ function debounce(func, wait) {
|
|
|
4287
4339
|
});
|
|
4288
4340
|
}
|
|
4289
4341
|
// 清晰度控件
|
|
4290
|
-
if ((
|
|
4342
|
+
if ((_theme_controls7 = theme.controls) == null ? void 0 : _theme_controls7.definitionControl) {
|
|
4291
4343
|
theme.controls.definitionControl.on(EVENTS.control.definitionPanelOpenChange, function(open, definition, item) {
|
|
4292
4344
|
theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, definition);
|
|
4293
4345
|
theme.emit(EVENTS.control.definitionPanelOpenChange, open, definition, item);
|
|
@@ -4300,7 +4352,7 @@ function debounce(func, wait) {
|
|
|
4300
4352
|
});
|
|
4301
4353
|
}
|
|
4302
4354
|
// 倍速控件
|
|
4303
|
-
if ((
|
|
4355
|
+
if ((_theme_controls8 = theme.controls) == null ? void 0 : _theme_controls8.speedControl) {
|
|
4304
4356
|
theme.controls.speedControl.on(EVENTS.control.speedPanelOpenChange, function(open, speed, item) {
|
|
4305
4357
|
theme.emit(CLEAR_TIMER_HEADER_FOOTER_ANIMATION, open, speed);
|
|
4306
4358
|
theme.emit(EVENTS.control.speedPanelOpenChange, open, speed, item);
|
|
@@ -4313,7 +4365,7 @@ function debounce(func, wait) {
|
|
|
4313
4365
|
});
|
|
4314
4366
|
}
|
|
4315
4367
|
// 截图控件
|
|
4316
|
-
if ((
|
|
4368
|
+
if ((_theme_controls9 = theme.controls) == null ? void 0 : _theme_controls9.capturePictureControl) {
|
|
4317
4369
|
theme.controls.capturePictureControl.on(EVENTS.control.capturePicture, function(options) {
|
|
4318
4370
|
theme.emit(EVENTS.control.capturePicture, options);
|
|
4319
4371
|
});
|
|
@@ -4322,25 +4374,25 @@ function debounce(func, wait) {
|
|
|
4322
4374
|
});
|
|
4323
4375
|
}
|
|
4324
4376
|
// 全屏控件
|
|
4325
|
-
if ((
|
|
4377
|
+
if ((_theme_controls10 = theme.controls) == null ? void 0 : _theme_controls10.fullscreenControl) {
|
|
4326
4378
|
theme.controls.fullscreenControl.on(EVENTS.control.fullscreenDestroy, function() {
|
|
4327
4379
|
theme.emit(EVENTS.control.fullscreenDestroy);
|
|
4328
4380
|
});
|
|
4329
4381
|
}
|
|
4330
4382
|
// 全局全屏控件
|
|
4331
|
-
if ((
|
|
4383
|
+
if ((_theme_controls11 = theme.controls) == null ? void 0 : _theme_controls11.globalFullscreenControl) {
|
|
4332
4384
|
theme.controls.globalFullscreenControl.on(EVENTS.control.globalFullscreenDestroy, function() {
|
|
4333
4385
|
theme.emit(EVENTS.control.globalFullscreenDestroy);
|
|
4334
4386
|
});
|
|
4335
4387
|
}
|
|
4336
4388
|
// 设备信息控件
|
|
4337
|
-
if ((
|
|
4389
|
+
if ((_theme_controls12 = theme.controls) == null ? void 0 : _theme_controls12.deviceControl) {
|
|
4338
4390
|
theme.controls.deviceControl.on(EVENTS.control.deviceDestroy, function() {
|
|
4339
4391
|
theme.emit(EVENTS.control.deviceDestroy);
|
|
4340
4392
|
});
|
|
4341
4393
|
}
|
|
4342
4394
|
// 回放类型切换控件
|
|
4343
|
-
if ((
|
|
4395
|
+
if ((_theme_controls13 = theme.controls) == null ? void 0 : _theme_controls13.recControl) {
|
|
4344
4396
|
// prettier-ignore
|
|
4345
4397
|
theme.controls.recControl.on(EVENTS.control.recTypeChange, function(type) {
|
|
4346
4398
|
if (theme.recType !== type) {
|
|
@@ -4361,7 +4413,7 @@ function debounce(func, wait) {
|
|
|
4361
4413
|
});
|
|
4362
4414
|
}
|
|
4363
4415
|
// 时间轴控件
|
|
4364
|
-
if ((
|
|
4416
|
+
if ((_theme_controls14 = theme.controls) == null ? void 0 : _theme_controls14.timeLineControl) {
|
|
4365
4417
|
theme.controls.timeLineControl.on(EVENTS.control.timeLineChange, function(date) {
|
|
4366
4418
|
theme.emit(EVENTS.control.timeLineChange, date);
|
|
4367
4419
|
});
|
|
@@ -4378,7 +4430,7 @@ function debounce(func, wait) {
|
|
|
4378
4430
|
});
|
|
4379
4431
|
}
|
|
4380
4432
|
// 日历控件
|
|
4381
|
-
if ((
|
|
4433
|
+
if ((_theme_controls15 = theme.controls) == null ? void 0 : _theme_controls15.dateControl) {
|
|
4382
4434
|
theme.controls.dateControl.on(EVENTS.control.datePanelOpenChange, function(open, date) {
|
|
4383
4435
|
theme.emit(EVENTS.control.datePanelOpenChange, open, date);
|
|
4384
4436
|
});
|
|
@@ -4389,12 +4441,6 @@ function debounce(func, wait) {
|
|
|
4389
4441
|
theme.emit(EVENTS.control.recDestroy);
|
|
4390
4442
|
});
|
|
4391
4443
|
}
|
|
4392
|
-
// content
|
|
4393
|
-
if (theme.contentControl) {
|
|
4394
|
-
theme.contentControl.on(EVENTS.control.contentRerender, function(info) {
|
|
4395
|
-
theme.emit(EVENTS.control.contentRerender, info);
|
|
4396
|
-
});
|
|
4397
|
-
}
|
|
4398
4444
|
}
|
|
4399
4445
|
var ignoreList = [
|
|
4400
4446
|
EVENTS.getOSDTime,
|
|
@@ -4479,8 +4525,8 @@ function _create_class$5(Constructor, protoProps, staticProps) {
|
|
|
4479
4525
|
if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
|
|
4480
4526
|
return Constructor;
|
|
4481
4527
|
}
|
|
4482
|
-
function _extends$
|
|
4483
|
-
_extends$
|
|
4528
|
+
function _extends$j() {
|
|
4529
|
+
_extends$j = Object.assign || function(target) {
|
|
4484
4530
|
for(var i = 1; i < arguments.length; i++){
|
|
4485
4531
|
var source = arguments[i];
|
|
4486
4532
|
for(var key in source){
|
|
@@ -4491,9 +4537,9 @@ function _extends$i() {
|
|
|
4491
4537
|
}
|
|
4492
4538
|
return target;
|
|
4493
4539
|
};
|
|
4494
|
-
return _extends$
|
|
4540
|
+
return _extends$j.apply(this, arguments);
|
|
4495
4541
|
}
|
|
4496
|
-
function _inherits$
|
|
4542
|
+
function _inherits$i(subClass, superClass) {
|
|
4497
4543
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
4498
4544
|
throw new TypeError("Super expression must either be null or a function");
|
|
4499
4545
|
}
|
|
@@ -4504,14 +4550,14 @@ function _inherits$h(subClass, superClass) {
|
|
|
4504
4550
|
configurable: true
|
|
4505
4551
|
}
|
|
4506
4552
|
});
|
|
4507
|
-
if (superClass) _set_prototype_of$
|
|
4553
|
+
if (superClass) _set_prototype_of$i(subClass, superClass);
|
|
4508
4554
|
}
|
|
4509
|
-
function _set_prototype_of$
|
|
4510
|
-
_set_prototype_of$
|
|
4555
|
+
function _set_prototype_of$i(o, p) {
|
|
4556
|
+
_set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
4511
4557
|
o.__proto__ = p;
|
|
4512
4558
|
return o;
|
|
4513
4559
|
};
|
|
4514
|
-
return _set_prototype_of$
|
|
4560
|
+
return _set_prototype_of$i(o, p);
|
|
4515
4561
|
}
|
|
4516
4562
|
var ZOOM_DEFAULT_OPTIONS = {
|
|
4517
4563
|
open: false,
|
|
@@ -4521,10 +4567,10 @@ var ZOOM_DEFAULT_OPTIONS = {
|
|
|
4521
4567
|
* 电子放大控件
|
|
4522
4568
|
* @category Control
|
|
4523
4569
|
*/ var Zoom$1 = /*#__PURE__*/ function(Control) {
|
|
4524
|
-
_inherits$
|
|
4570
|
+
_inherits$i(Zoom, Control);
|
|
4525
4571
|
function Zoom(options) {
|
|
4526
4572
|
var _this;
|
|
4527
|
-
_this = Control.call(this, _extends$
|
|
4573
|
+
_this = Control.call(this, _extends$j({}, options, {
|
|
4528
4574
|
tagName: 'span',
|
|
4529
4575
|
controlType: 'button',
|
|
4530
4576
|
classNameSuffix: 'zoom'
|
|
@@ -5381,8 +5427,8 @@ function requireDist$1 () {
|
|
|
5381
5427
|
var distExports$1 = requireDist$1();
|
|
5382
5428
|
var Zoom = /*@__PURE__*/getDefaultExportFromCjs(distExports$1);
|
|
5383
5429
|
|
|
5384
|
-
function _extends$
|
|
5385
|
-
_extends$
|
|
5430
|
+
function _extends$i() {
|
|
5431
|
+
_extends$i = Object.assign || function(target) {
|
|
5386
5432
|
for(var i = 1; i < arguments.length; i++){
|
|
5387
5433
|
var source = arguments[i];
|
|
5388
5434
|
for(var key in source){
|
|
@@ -5393,10 +5439,10 @@ function _extends$h() {
|
|
|
5393
5439
|
}
|
|
5394
5440
|
return target;
|
|
5395
5441
|
};
|
|
5396
|
-
return _extends$
|
|
5442
|
+
return _extends$i.apply(this, arguments);
|
|
5397
5443
|
}
|
|
5398
5444
|
function __zoom(theme, container, options) {
|
|
5399
|
-
theme.zoomUtil = new Zoom(container, _extends$
|
|
5445
|
+
theme.zoomUtil = new Zoom(container, _extends$i({}, options || {}, {
|
|
5400
5446
|
min: 1,
|
|
5401
5447
|
onChange: function(zoom, reset) {
|
|
5402
5448
|
if (zoom !== theme._zoom) {
|
|
@@ -5414,7 +5460,7 @@ function __zoom(theme, container, options) {
|
|
|
5414
5460
|
}));
|
|
5415
5461
|
}
|
|
5416
5462
|
|
|
5417
|
-
function asyncGeneratorStep$
|
|
5463
|
+
function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
5418
5464
|
try {
|
|
5419
5465
|
var info = gen[key](arg);
|
|
5420
5466
|
var value = info.value;
|
|
@@ -5428,22 +5474,22 @@ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
5428
5474
|
Promise.resolve(value).then(_next, _throw);
|
|
5429
5475
|
}
|
|
5430
5476
|
}
|
|
5431
|
-
function _async_to_generator$
|
|
5477
|
+
function _async_to_generator$5(fn) {
|
|
5432
5478
|
return function() {
|
|
5433
5479
|
var self = this, args = arguments;
|
|
5434
5480
|
return new Promise(function(resolve, reject) {
|
|
5435
5481
|
var gen = fn.apply(self, args);
|
|
5436
5482
|
function _next(value) {
|
|
5437
|
-
asyncGeneratorStep$
|
|
5483
|
+
asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "next", value);
|
|
5438
5484
|
}
|
|
5439
5485
|
function _throw(err) {
|
|
5440
|
-
asyncGeneratorStep$
|
|
5486
|
+
asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "throw", err);
|
|
5441
5487
|
}
|
|
5442
5488
|
_next(undefined);
|
|
5443
5489
|
});
|
|
5444
5490
|
};
|
|
5445
5491
|
}
|
|
5446
|
-
function _ts_generator$
|
|
5492
|
+
function _ts_generator$5(thisArg, body) {
|
|
5447
5493
|
var f, y, t, _ = {
|
|
5448
5494
|
label: 0,
|
|
5449
5495
|
sent: function() {
|
|
@@ -5535,9 +5581,9 @@ function _ts_generator$4(thisArg, body) {
|
|
|
5535
5581
|
}
|
|
5536
5582
|
}
|
|
5537
5583
|
function getThemeDataByTemplate(theme, id) {
|
|
5538
|
-
return _async_to_generator$
|
|
5584
|
+
return _async_to_generator$5(function() {
|
|
5539
5585
|
var _theme_options_token_httpToken, _theme_options_token, url;
|
|
5540
|
-
return _ts_generator$
|
|
5586
|
+
return _ts_generator$5(this, function(_state) {
|
|
5541
5587
|
switch(_state.label){
|
|
5542
5588
|
case 0:
|
|
5543
5589
|
url = theme.options.env.domain + "/api/service/media/template/getDetail?accessToken=" + (theme.options.accessToken || ((_theme_options_token = theme.options.token) == null ? void 0 : (_theme_options_token_httpToken = _theme_options_token.httpToken) == null ? void 0 : _theme_options_token_httpToken.url)) + "&id=" + id;
|
|
@@ -5546,8 +5592,8 @@ function getThemeDataByTemplate(theme, id) {
|
|
|
5546
5592
|
fetch(url, {
|
|
5547
5593
|
method: 'GET'
|
|
5548
5594
|
}).then(function(response) {
|
|
5549
|
-
return _async_to_generator$
|
|
5550
|
-
return _ts_generator$
|
|
5595
|
+
return _async_to_generator$5(function() {
|
|
5596
|
+
return _ts_generator$5(this, function(_state) {
|
|
5551
5597
|
switch(_state.label){
|
|
5552
5598
|
case 0:
|
|
5553
5599
|
return [
|
|
@@ -5592,7 +5638,7 @@ function getThemeDataByTemplate(theme, id) {
|
|
|
5592
5638
|
})();
|
|
5593
5639
|
}
|
|
5594
5640
|
|
|
5595
|
-
function asyncGeneratorStep$
|
|
5641
|
+
function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
5596
5642
|
try {
|
|
5597
5643
|
var info = gen[key](arg);
|
|
5598
5644
|
var value = info.value;
|
|
@@ -5606,23 +5652,23 @@ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
5606
5652
|
Promise.resolve(value).then(_next, _throw);
|
|
5607
5653
|
}
|
|
5608
5654
|
}
|
|
5609
|
-
function _async_to_generator$
|
|
5655
|
+
function _async_to_generator$4(fn) {
|
|
5610
5656
|
return function() {
|
|
5611
5657
|
var self = this, args = arguments;
|
|
5612
5658
|
return new Promise(function(resolve, reject) {
|
|
5613
5659
|
var gen = fn.apply(self, args);
|
|
5614
5660
|
function _next(value) {
|
|
5615
|
-
asyncGeneratorStep$
|
|
5661
|
+
asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "next", value);
|
|
5616
5662
|
}
|
|
5617
5663
|
function _throw(err) {
|
|
5618
|
-
asyncGeneratorStep$
|
|
5664
|
+
asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "throw", err);
|
|
5619
5665
|
}
|
|
5620
5666
|
_next(undefined);
|
|
5621
5667
|
});
|
|
5622
5668
|
};
|
|
5623
5669
|
}
|
|
5624
|
-
function _extends$
|
|
5625
|
-
_extends$
|
|
5670
|
+
function _extends$h() {
|
|
5671
|
+
_extends$h = Object.assign || function(target) {
|
|
5626
5672
|
for(var i = 1; i < arguments.length; i++){
|
|
5627
5673
|
var source = arguments[i];
|
|
5628
5674
|
for(var key in source){
|
|
@@ -5633,9 +5679,9 @@ function _extends$g() {
|
|
|
5633
5679
|
}
|
|
5634
5680
|
return target;
|
|
5635
5681
|
};
|
|
5636
|
-
return _extends$
|
|
5682
|
+
return _extends$h.apply(this, arguments);
|
|
5637
5683
|
}
|
|
5638
|
-
function _ts_generator$
|
|
5684
|
+
function _ts_generator$4(thisArg, body) {
|
|
5639
5685
|
var f, y, t, _ = {
|
|
5640
5686
|
label: 0,
|
|
5641
5687
|
sent: function() {
|
|
@@ -5761,7 +5807,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
5761
5807
|
}
|
|
5762
5808
|
if (item.isrender === 1 && REC_GROUP.includes(item.iconId)) {
|
|
5763
5809
|
// TODO: 因为回放是一组, 位置以第一个位置为准
|
|
5764
|
-
recControls.push(recControls[0] ? _extends$
|
|
5810
|
+
recControls.push(recControls[0] ? _extends$h({}, item, {
|
|
5765
5811
|
part: recControls[0].part
|
|
5766
5812
|
}) : item);
|
|
5767
5813
|
return false;
|
|
@@ -5784,7 +5830,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
5784
5830
|
}
|
|
5785
5831
|
if (item.isrender === 1 && REC_GROUP.includes(item.iconId)) {
|
|
5786
5832
|
// TODO: 因为回放是一组, 位置以第一个位置为准
|
|
5787
|
-
recControls.push(recControls[0] ? _extends$
|
|
5833
|
+
recControls.push(recControls[0] ? _extends$h({}, item, {
|
|
5788
5834
|
part: recControls[0].part
|
|
5789
5835
|
}) : item);
|
|
5790
5836
|
return false;
|
|
@@ -5846,9 +5892,9 @@ function _filterLeftRightControls(btnList) {
|
|
|
5846
5892
|
* @param data
|
|
5847
5893
|
* @returns
|
|
5848
5894
|
*/ function getThemeData(theme, data) {
|
|
5849
|
-
return _async_to_generator$
|
|
5895
|
+
return _async_to_generator$4(function() {
|
|
5850
5896
|
var themeData, _theme_logger, template;
|
|
5851
|
-
return _ts_generator$
|
|
5897
|
+
return _ts_generator$4(this, function(_state) {
|
|
5852
5898
|
switch(_state.label){
|
|
5853
5899
|
case 0:
|
|
5854
5900
|
themeData = data;
|
|
@@ -6039,8 +6085,8 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
|
|
|
6039
6085
|
return Component;
|
|
6040
6086
|
}();
|
|
6041
6087
|
|
|
6042
|
-
function _extends$
|
|
6043
|
-
_extends$
|
|
6088
|
+
function _extends$g() {
|
|
6089
|
+
_extends$g = Object.assign || function(target) {
|
|
6044
6090
|
for(var i = 1; i < arguments.length; i++){
|
|
6045
6091
|
var source = arguments[i];
|
|
6046
6092
|
for(var key in source){
|
|
@@ -6051,9 +6097,9 @@ function _extends$f() {
|
|
|
6051
6097
|
}
|
|
6052
6098
|
return target;
|
|
6053
6099
|
};
|
|
6054
|
-
return _extends$
|
|
6100
|
+
return _extends$g.apply(this, arguments);
|
|
6055
6101
|
}
|
|
6056
|
-
function _inherits$
|
|
6102
|
+
function _inherits$h(subClass, superClass) {
|
|
6057
6103
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6058
6104
|
throw new TypeError("Super expression must either be null or a function");
|
|
6059
6105
|
}
|
|
@@ -6064,28 +6110,28 @@ function _inherits$g(subClass, superClass) {
|
|
|
6064
6110
|
configurable: true
|
|
6065
6111
|
}
|
|
6066
6112
|
});
|
|
6067
|
-
if (superClass) _set_prototype_of$
|
|
6113
|
+
if (superClass) _set_prototype_of$h(subClass, superClass);
|
|
6068
6114
|
}
|
|
6069
|
-
function _set_prototype_of$
|
|
6070
|
-
_set_prototype_of$
|
|
6115
|
+
function _set_prototype_of$h(o, p) {
|
|
6116
|
+
_set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6071
6117
|
o.__proto__ = p;
|
|
6072
6118
|
return o;
|
|
6073
6119
|
};
|
|
6074
|
-
return _set_prototype_of$
|
|
6120
|
+
return _set_prototype_of$h(o, p);
|
|
6075
6121
|
}
|
|
6076
6122
|
var Footer = /*#__PURE__*/ function(Component) {
|
|
6077
|
-
_inherits$
|
|
6123
|
+
_inherits$h(Footer, Component);
|
|
6078
6124
|
function Footer(options) {
|
|
6079
6125
|
if (options === void 0) options = {};
|
|
6080
|
-
return Component.call(this, _extends$
|
|
6126
|
+
return Component.call(this, _extends$g({}, options, {
|
|
6081
6127
|
cType: 'footer'
|
|
6082
6128
|
})) || this;
|
|
6083
6129
|
}
|
|
6084
6130
|
return Footer;
|
|
6085
6131
|
}(Component);
|
|
6086
6132
|
|
|
6087
|
-
function _extends$
|
|
6088
|
-
_extends$
|
|
6133
|
+
function _extends$f() {
|
|
6134
|
+
_extends$f = Object.assign || function(target) {
|
|
6089
6135
|
for(var i = 1; i < arguments.length; i++){
|
|
6090
6136
|
var source = arguments[i];
|
|
6091
6137
|
for(var key in source){
|
|
@@ -6096,9 +6142,9 @@ function _extends$e() {
|
|
|
6096
6142
|
}
|
|
6097
6143
|
return target;
|
|
6098
6144
|
};
|
|
6099
|
-
return _extends$
|
|
6145
|
+
return _extends$f.apply(this, arguments);
|
|
6100
6146
|
}
|
|
6101
|
-
function _inherits$
|
|
6147
|
+
function _inherits$g(subClass, superClass) {
|
|
6102
6148
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6103
6149
|
throw new TypeError("Super expression must either be null or a function");
|
|
6104
6150
|
}
|
|
@@ -6109,20 +6155,20 @@ function _inherits$f(subClass, superClass) {
|
|
|
6109
6155
|
configurable: true
|
|
6110
6156
|
}
|
|
6111
6157
|
});
|
|
6112
|
-
if (superClass) _set_prototype_of$
|
|
6158
|
+
if (superClass) _set_prototype_of$g(subClass, superClass);
|
|
6113
6159
|
}
|
|
6114
|
-
function _set_prototype_of$
|
|
6115
|
-
_set_prototype_of$
|
|
6160
|
+
function _set_prototype_of$g(o, p) {
|
|
6161
|
+
_set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6116
6162
|
o.__proto__ = p;
|
|
6117
6163
|
return o;
|
|
6118
6164
|
};
|
|
6119
|
-
return _set_prototype_of$
|
|
6165
|
+
return _set_prototype_of$g(o, p);
|
|
6120
6166
|
}
|
|
6121
6167
|
var Header = /*#__PURE__*/ function(Component) {
|
|
6122
|
-
_inherits$
|
|
6168
|
+
_inherits$g(Header, Component);
|
|
6123
6169
|
function Header(options) {
|
|
6124
6170
|
if (options === void 0) options = {};
|
|
6125
|
-
return Component.call(this, _extends$
|
|
6171
|
+
return Component.call(this, _extends$f({}, options, {
|
|
6126
6172
|
cType: 'header'
|
|
6127
6173
|
})) || this;
|
|
6128
6174
|
}
|
|
@@ -6288,8 +6334,8 @@ function interactiveHF($container, second, callback) {
|
|
|
6288
6334
|
};
|
|
6289
6335
|
}
|
|
6290
6336
|
|
|
6291
|
-
function _extends$
|
|
6292
|
-
_extends$
|
|
6337
|
+
function _extends$e() {
|
|
6338
|
+
_extends$e = Object.assign || function(target) {
|
|
6293
6339
|
for(var i = 1; i < arguments.length; i++){
|
|
6294
6340
|
var source = arguments[i];
|
|
6295
6341
|
for(var key in source){
|
|
@@ -6300,9 +6346,9 @@ function _extends$d() {
|
|
|
6300
6346
|
}
|
|
6301
6347
|
return target;
|
|
6302
6348
|
};
|
|
6303
|
-
return _extends$
|
|
6349
|
+
return _extends$e.apply(this, arguments);
|
|
6304
6350
|
}
|
|
6305
|
-
function _inherits$
|
|
6351
|
+
function _inherits$f(subClass, superClass) {
|
|
6306
6352
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6307
6353
|
throw new TypeError("Super expression must either be null or a function");
|
|
6308
6354
|
}
|
|
@@ -6313,23 +6359,23 @@ function _inherits$e(subClass, superClass) {
|
|
|
6313
6359
|
configurable: true
|
|
6314
6360
|
}
|
|
6315
6361
|
});
|
|
6316
|
-
if (superClass) _set_prototype_of$
|
|
6362
|
+
if (superClass) _set_prototype_of$f(subClass, superClass);
|
|
6317
6363
|
}
|
|
6318
|
-
function _set_prototype_of$
|
|
6319
|
-
_set_prototype_of$
|
|
6364
|
+
function _set_prototype_of$f(o, p) {
|
|
6365
|
+
_set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6320
6366
|
o.__proto__ = p;
|
|
6321
6367
|
return o;
|
|
6322
6368
|
};
|
|
6323
|
-
return _set_prototype_of$
|
|
6369
|
+
return _set_prototype_of$f(o, p);
|
|
6324
6370
|
}
|
|
6325
6371
|
/**
|
|
6326
6372
|
* 全局全屏
|
|
6327
6373
|
* 主题和播放器不提供全局全屏的api, 如果开发者想要可以参考这个组件自己实现
|
|
6328
6374
|
* @category Control
|
|
6329
6375
|
*/ var GlobalFullscreen = /*#__PURE__*/ function(Fullscreen) {
|
|
6330
|
-
_inherits$
|
|
6376
|
+
_inherits$f(GlobalFullscreen, Fullscreen);
|
|
6331
6377
|
function GlobalFullscreen(options) {
|
|
6332
|
-
return Fullscreen.call(this, _extends$
|
|
6378
|
+
return Fullscreen.call(this, _extends$e({}, options, {
|
|
6333
6379
|
controlType: 'button',
|
|
6334
6380
|
classNameSuffix: 'global-fullscreen'
|
|
6335
6381
|
})) || this;
|
|
@@ -6360,8 +6406,8 @@ function _set_prototype_of$e(o, p) {
|
|
|
6360
6406
|
return GlobalFullscreen;
|
|
6361
6407
|
}(Fullscreen);
|
|
6362
6408
|
|
|
6363
|
-
function _extends$
|
|
6364
|
-
_extends$
|
|
6409
|
+
function _extends$d() {
|
|
6410
|
+
_extends$d = Object.assign || function(target) {
|
|
6365
6411
|
for(var i = 1; i < arguments.length; i++){
|
|
6366
6412
|
var source = arguments[i];
|
|
6367
6413
|
for(var key in source){
|
|
@@ -6372,9 +6418,9 @@ function _extends$c() {
|
|
|
6372
6418
|
}
|
|
6373
6419
|
return target;
|
|
6374
6420
|
};
|
|
6375
|
-
return _extends$
|
|
6421
|
+
return _extends$d.apply(this, arguments);
|
|
6376
6422
|
}
|
|
6377
|
-
function _inherits$
|
|
6423
|
+
function _inherits$e(subClass, superClass) {
|
|
6378
6424
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
6379
6425
|
throw new TypeError("Super expression must either be null or a function");
|
|
6380
6426
|
}
|
|
@@ -6385,23 +6431,23 @@ function _inherits$d(subClass, superClass) {
|
|
|
6385
6431
|
configurable: true
|
|
6386
6432
|
}
|
|
6387
6433
|
});
|
|
6388
|
-
if (superClass) _set_prototype_of$
|
|
6434
|
+
if (superClass) _set_prototype_of$e(subClass, superClass);
|
|
6389
6435
|
}
|
|
6390
|
-
function _set_prototype_of$
|
|
6391
|
-
_set_prototype_of$
|
|
6436
|
+
function _set_prototype_of$e(o, p) {
|
|
6437
|
+
_set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
6392
6438
|
o.__proto__ = p;
|
|
6393
6439
|
return o;
|
|
6394
6440
|
};
|
|
6395
|
-
return _set_prototype_of$
|
|
6441
|
+
return _set_prototype_of$e(o, p);
|
|
6396
6442
|
}
|
|
6397
6443
|
/**
|
|
6398
6444
|
* 截图控件,点击后会触发截图事件, 截图数据会通过 onCapture 回调函数返回
|
|
6399
6445
|
* @category Control
|
|
6400
6446
|
*/ var CapturePicture = /*#__PURE__*/ function(Control) {
|
|
6401
|
-
_inherits$
|
|
6447
|
+
_inherits$e(CapturePicture, Control);
|
|
6402
6448
|
function CapturePicture(options) {
|
|
6403
6449
|
var _this;
|
|
6404
|
-
_this = Control.call(this, _extends$
|
|
6450
|
+
_this = Control.call(this, _extends$d({}, options, {
|
|
6405
6451
|
tagName: 'span',
|
|
6406
6452
|
classNameSuffix: 'capture-picture'
|
|
6407
6453
|
})) || this, _this._timer = null;
|
|
@@ -7410,8 +7456,8 @@ function _create_class$4(Constructor, protoProps, staticProps) {
|
|
|
7410
7456
|
if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
|
|
7411
7457
|
return Constructor;
|
|
7412
7458
|
}
|
|
7413
|
-
function _extends$
|
|
7414
|
-
_extends$
|
|
7459
|
+
function _extends$c() {
|
|
7460
|
+
_extends$c = Object.assign || function(target) {
|
|
7415
7461
|
for(var i = 1; i < arguments.length; i++){
|
|
7416
7462
|
var source = arguments[i];
|
|
7417
7463
|
for(var key in source){
|
|
@@ -7422,9 +7468,9 @@ function _extends$b() {
|
|
|
7422
7468
|
}
|
|
7423
7469
|
return target;
|
|
7424
7470
|
};
|
|
7425
|
-
return _extends$
|
|
7471
|
+
return _extends$c.apply(this, arguments);
|
|
7426
7472
|
}
|
|
7427
|
-
function _inherits$
|
|
7473
|
+
function _inherits$d(subClass, superClass) {
|
|
7428
7474
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
7429
7475
|
throw new TypeError("Super expression must either be null or a function");
|
|
7430
7476
|
}
|
|
@@ -7435,23 +7481,23 @@ function _inherits$c(subClass, superClass) {
|
|
|
7435
7481
|
configurable: true
|
|
7436
7482
|
}
|
|
7437
7483
|
});
|
|
7438
|
-
if (superClass) _set_prototype_of$
|
|
7484
|
+
if (superClass) _set_prototype_of$d(subClass, superClass);
|
|
7439
7485
|
}
|
|
7440
|
-
function _set_prototype_of$
|
|
7441
|
-
_set_prototype_of$
|
|
7486
|
+
function _set_prototype_of$d(o, p) {
|
|
7487
|
+
_set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7442
7488
|
o.__proto__ = p;
|
|
7443
7489
|
return o;
|
|
7444
7490
|
};
|
|
7445
|
-
return _set_prototype_of$
|
|
7491
|
+
return _set_prototype_of$d(o, p);
|
|
7446
7492
|
}
|
|
7447
7493
|
/**
|
|
7448
7494
|
* 云台控件
|
|
7449
7495
|
* @category Control
|
|
7450
7496
|
*/ var Ptz = /*#__PURE__*/ function(Control) {
|
|
7451
|
-
_inherits$
|
|
7497
|
+
_inherits$d(Ptz, Control);
|
|
7452
7498
|
function Ptz(options) {
|
|
7453
7499
|
var _this;
|
|
7454
|
-
_this = Control.call(this, _extends$
|
|
7500
|
+
_this = Control.call(this, _extends$c({}, options, {
|
|
7455
7501
|
tagName: 'span',
|
|
7456
7502
|
controlType: 'button',
|
|
7457
7503
|
classNameSuffix: 'ptz'
|
|
@@ -7494,7 +7540,7 @@ function _set_prototype_of$c(o, p) {
|
|
|
7494
7540
|
this.$turntable.classList.add("" + PREFIX_CLASS + "-ptz-turntable");
|
|
7495
7541
|
this.$panel.appendChild(this.$turntable);
|
|
7496
7542
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
7497
|
-
this._ptzControl = new distExports.Ptz(this.$turntable, _extends$
|
|
7543
|
+
this._ptzControl = new distExports.Ptz(this.$turntable, _extends$c({}, this._options, {
|
|
7498
7544
|
onSpeedChange: this._onSpeedChange.bind(this),
|
|
7499
7545
|
onDirection: this._onDirection.bind(this)
|
|
7500
7546
|
}));
|
|
@@ -7503,7 +7549,7 @@ function _set_prototype_of$c(o, p) {
|
|
|
7503
7549
|
};
|
|
7504
7550
|
_proto.renderMobileExtend = function renderMobileExtend($container) {
|
|
7505
7551
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
7506
|
-
if (!this._ptzControl1) this._ptzControl1 = new distExports.MobilePtz($container, _extends$
|
|
7552
|
+
if (!this._ptzControl1) this._ptzControl1 = new distExports.MobilePtz($container, _extends$c({}, this._options, {
|
|
7507
7553
|
onSpeedChange: this._onSpeedChange.bind(this),
|
|
7508
7554
|
onDirection: this._onDirection.bind(this)
|
|
7509
7555
|
}));
|
|
@@ -7606,8 +7652,8 @@ function _create_class$3(Constructor, protoProps, staticProps) {
|
|
|
7606
7652
|
if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
|
|
7607
7653
|
return Constructor;
|
|
7608
7654
|
}
|
|
7609
|
-
function _extends$
|
|
7610
|
-
_extends$
|
|
7655
|
+
function _extends$b() {
|
|
7656
|
+
_extends$b = Object.assign || function(target) {
|
|
7611
7657
|
for(var i = 1; i < arguments.length; i++){
|
|
7612
7658
|
var source = arguments[i];
|
|
7613
7659
|
for(var key in source){
|
|
@@ -7618,9 +7664,9 @@ function _extends$a() {
|
|
|
7618
7664
|
}
|
|
7619
7665
|
return target;
|
|
7620
7666
|
};
|
|
7621
|
-
return _extends$
|
|
7667
|
+
return _extends$b.apply(this, arguments);
|
|
7622
7668
|
}
|
|
7623
|
-
function _inherits$
|
|
7669
|
+
function _inherits$c(subClass, superClass) {
|
|
7624
7670
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
7625
7671
|
throw new TypeError("Super expression must either be null or a function");
|
|
7626
7672
|
}
|
|
@@ -7631,14 +7677,14 @@ function _inherits$b(subClass, superClass) {
|
|
|
7631
7677
|
configurable: true
|
|
7632
7678
|
}
|
|
7633
7679
|
});
|
|
7634
|
-
if (superClass) _set_prototype_of$
|
|
7680
|
+
if (superClass) _set_prototype_of$c(subClass, superClass);
|
|
7635
7681
|
}
|
|
7636
|
-
function _set_prototype_of$
|
|
7637
|
-
_set_prototype_of$
|
|
7682
|
+
function _set_prototype_of$c(o, p) {
|
|
7683
|
+
_set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7638
7684
|
o.__proto__ = p;
|
|
7639
7685
|
return o;
|
|
7640
7686
|
};
|
|
7641
|
-
return _set_prototype_of$
|
|
7687
|
+
return _set_prototype_of$c(o, p);
|
|
7642
7688
|
}
|
|
7643
7689
|
var RECORD_DEFAULT_OPTIONS = {
|
|
7644
7690
|
maxDuration: 3600
|
|
@@ -7652,10 +7698,10 @@ var RECORD_DEFAULT_OPTIONS = {
|
|
|
7652
7698
|
* 2. 录制时间很短可能会因为浏览器的限制或没有I帧而无法生成有效的视频文件
|
|
7653
7699
|
* @category Control
|
|
7654
7700
|
*/ var Record = /*#__PURE__*/ function(Control) {
|
|
7655
|
-
_inherits$
|
|
7701
|
+
_inherits$c(Record, Control);
|
|
7656
7702
|
function Record(options) {
|
|
7657
7703
|
var _this;
|
|
7658
|
-
_this = Control.call(this, _extends$
|
|
7704
|
+
_this = Control.call(this, _extends$b({}, options, {
|
|
7659
7705
|
tagName: 'span',
|
|
7660
7706
|
controlType: 'button',
|
|
7661
7707
|
classNameSuffix: 'record'
|
|
@@ -7754,7 +7800,7 @@ var RECORD_DEFAULT_OPTIONS = {
|
|
|
7754
7800
|
return Record;
|
|
7755
7801
|
}(Control);
|
|
7756
7802
|
|
|
7757
|
-
function asyncGeneratorStep$
|
|
7803
|
+
function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
7758
7804
|
try {
|
|
7759
7805
|
var info = gen[key](arg);
|
|
7760
7806
|
var value = info.value;
|
|
@@ -7768,16 +7814,16 @@ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
7768
7814
|
Promise.resolve(value).then(_next, _throw);
|
|
7769
7815
|
}
|
|
7770
7816
|
}
|
|
7771
|
-
function _async_to_generator$
|
|
7817
|
+
function _async_to_generator$3(fn) {
|
|
7772
7818
|
return function() {
|
|
7773
7819
|
var self = this, args = arguments;
|
|
7774
7820
|
return new Promise(function(resolve, reject) {
|
|
7775
7821
|
var gen = fn.apply(self, args);
|
|
7776
7822
|
function _next(value) {
|
|
7777
|
-
asyncGeneratorStep$
|
|
7823
|
+
asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "next", value);
|
|
7778
7824
|
}
|
|
7779
7825
|
function _throw(err) {
|
|
7780
|
-
asyncGeneratorStep$
|
|
7826
|
+
asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "throw", err);
|
|
7781
7827
|
}
|
|
7782
7828
|
_next(undefined);
|
|
7783
7829
|
});
|
|
@@ -7796,8 +7842,8 @@ function _create_class$2(Constructor, protoProps, staticProps) {
|
|
|
7796
7842
|
if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
|
|
7797
7843
|
return Constructor;
|
|
7798
7844
|
}
|
|
7799
|
-
function _extends$
|
|
7800
|
-
_extends$
|
|
7845
|
+
function _extends$a() {
|
|
7846
|
+
_extends$a = Object.assign || function(target) {
|
|
7801
7847
|
for(var i = 1; i < arguments.length; i++){
|
|
7802
7848
|
var source = arguments[i];
|
|
7803
7849
|
for(var key in source){
|
|
@@ -7808,9 +7854,9 @@ function _extends$9() {
|
|
|
7808
7854
|
}
|
|
7809
7855
|
return target;
|
|
7810
7856
|
};
|
|
7811
|
-
return _extends$
|
|
7857
|
+
return _extends$a.apply(this, arguments);
|
|
7812
7858
|
}
|
|
7813
|
-
function _inherits$
|
|
7859
|
+
function _inherits$b(subClass, superClass) {
|
|
7814
7860
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
7815
7861
|
throw new TypeError("Super expression must either be null or a function");
|
|
7816
7862
|
}
|
|
@@ -7821,16 +7867,16 @@ function _inherits$a(subClass, superClass) {
|
|
|
7821
7867
|
configurable: true
|
|
7822
7868
|
}
|
|
7823
7869
|
});
|
|
7824
|
-
if (superClass) _set_prototype_of$
|
|
7870
|
+
if (superClass) _set_prototype_of$b(subClass, superClass);
|
|
7825
7871
|
}
|
|
7826
|
-
function _set_prototype_of$
|
|
7827
|
-
_set_prototype_of$
|
|
7872
|
+
function _set_prototype_of$b(o, p) {
|
|
7873
|
+
_set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
7828
7874
|
o.__proto__ = p;
|
|
7829
7875
|
return o;
|
|
7830
7876
|
};
|
|
7831
|
-
return _set_prototype_of$
|
|
7877
|
+
return _set_prototype_of$b(o, p);
|
|
7832
7878
|
}
|
|
7833
|
-
function _ts_generator$
|
|
7879
|
+
function _ts_generator$3(thisArg, body) {
|
|
7834
7880
|
var f, y, t, _ = {
|
|
7835
7881
|
label: 0,
|
|
7836
7882
|
sent: function() {
|
|
@@ -7930,10 +7976,10 @@ function _ts_generator$2(thisArg, body) {
|
|
|
7930
7976
|
*
|
|
7931
7977
|
* @category Control
|
|
7932
7978
|
*/ var Talk = /*#__PURE__*/ function(Control) {
|
|
7933
|
-
_inherits$
|
|
7979
|
+
_inherits$b(Talk, Control);
|
|
7934
7980
|
function Talk(options) {
|
|
7935
7981
|
var _this;
|
|
7936
|
-
_this = Control.call(this, _extends$
|
|
7982
|
+
_this = Control.call(this, _extends$a({}, options, {
|
|
7937
7983
|
tagName: 'span',
|
|
7938
7984
|
controlType: 'button',
|
|
7939
7985
|
classNameSuffix: 'talk'
|
|
@@ -7985,8 +8031,8 @@ function _ts_generator$2(thisArg, body) {
|
|
|
7985
8031
|
var _this = this, _superprop_get__onControlClick = function() {
|
|
7986
8032
|
return Control.prototype._onControlClick;
|
|
7987
8033
|
};
|
|
7988
|
-
return _async_to_generator$
|
|
7989
|
-
return _ts_generator$
|
|
8034
|
+
return _async_to_generator$3(function() {
|
|
8035
|
+
return _ts_generator$3(this, function(_state) {
|
|
7990
8036
|
_superprop_get__onControlClick().call(_this, e);
|
|
7991
8037
|
this.active = !this.active;
|
|
7992
8038
|
this.emit(EVENTS.control.talkingChange, this.active);
|
|
@@ -8037,6 +8083,231 @@ function _ts_generator$2(thisArg, body) {
|
|
|
8037
8083
|
return Talk;
|
|
8038
8084
|
}(Control);
|
|
8039
8085
|
|
|
8086
|
+
function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
8087
|
+
try {
|
|
8088
|
+
var info = gen[key](arg);
|
|
8089
|
+
var value = info.value;
|
|
8090
|
+
} catch (error) {
|
|
8091
|
+
reject(error);
|
|
8092
|
+
return;
|
|
8093
|
+
}
|
|
8094
|
+
if (info.done) {
|
|
8095
|
+
resolve(value);
|
|
8096
|
+
} else {
|
|
8097
|
+
Promise.resolve(value).then(_next, _throw);
|
|
8098
|
+
}
|
|
8099
|
+
}
|
|
8100
|
+
function _async_to_generator$2(fn) {
|
|
8101
|
+
return function() {
|
|
8102
|
+
var self = this, args = arguments;
|
|
8103
|
+
return new Promise(function(resolve, reject) {
|
|
8104
|
+
var gen = fn.apply(self, args);
|
|
8105
|
+
function _next(value) {
|
|
8106
|
+
asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "next", value);
|
|
8107
|
+
}
|
|
8108
|
+
function _throw(err) {
|
|
8109
|
+
asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "throw", err);
|
|
8110
|
+
}
|
|
8111
|
+
_next(undefined);
|
|
8112
|
+
});
|
|
8113
|
+
};
|
|
8114
|
+
}
|
|
8115
|
+
function _extends$9() {
|
|
8116
|
+
_extends$9 = Object.assign || function(target) {
|
|
8117
|
+
for(var i = 1; i < arguments.length; i++){
|
|
8118
|
+
var source = arguments[i];
|
|
8119
|
+
for(var key in source){
|
|
8120
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8121
|
+
target[key] = source[key];
|
|
8122
|
+
}
|
|
8123
|
+
}
|
|
8124
|
+
}
|
|
8125
|
+
return target;
|
|
8126
|
+
};
|
|
8127
|
+
return _extends$9.apply(this, arguments);
|
|
8128
|
+
}
|
|
8129
|
+
function _inherits$a(subClass, superClass) {
|
|
8130
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
8131
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
8132
|
+
}
|
|
8133
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
8134
|
+
constructor: {
|
|
8135
|
+
value: subClass,
|
|
8136
|
+
writable: true,
|
|
8137
|
+
configurable: true
|
|
8138
|
+
}
|
|
8139
|
+
});
|
|
8140
|
+
if (superClass) _set_prototype_of$a(subClass, superClass);
|
|
8141
|
+
}
|
|
8142
|
+
function _set_prototype_of$a(o, p) {
|
|
8143
|
+
_set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
8144
|
+
o.__proto__ = p;
|
|
8145
|
+
return o;
|
|
8146
|
+
};
|
|
8147
|
+
return _set_prototype_of$a(o, p);
|
|
8148
|
+
}
|
|
8149
|
+
function _ts_generator$2(thisArg, body) {
|
|
8150
|
+
var f, y, t, _ = {
|
|
8151
|
+
label: 0,
|
|
8152
|
+
sent: function() {
|
|
8153
|
+
if (t[0] & 1) throw t[1];
|
|
8154
|
+
return t[1];
|
|
8155
|
+
},
|
|
8156
|
+
trys: [],
|
|
8157
|
+
ops: []
|
|
8158
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
8159
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
8160
|
+
return this;
|
|
8161
|
+
}), g;
|
|
8162
|
+
function verb(n) {
|
|
8163
|
+
return function(v) {
|
|
8164
|
+
return step([
|
|
8165
|
+
n,
|
|
8166
|
+
v
|
|
8167
|
+
]);
|
|
8168
|
+
};
|
|
8169
|
+
}
|
|
8170
|
+
function step(op) {
|
|
8171
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
8172
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
8173
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
8174
|
+
if (y = 0, t) op = [
|
|
8175
|
+
op[0] & 2,
|
|
8176
|
+
t.value
|
|
8177
|
+
];
|
|
8178
|
+
switch(op[0]){
|
|
8179
|
+
case 0:
|
|
8180
|
+
case 1:
|
|
8181
|
+
t = op;
|
|
8182
|
+
break;
|
|
8183
|
+
case 4:
|
|
8184
|
+
_.label++;
|
|
8185
|
+
return {
|
|
8186
|
+
value: op[1],
|
|
8187
|
+
done: false
|
|
8188
|
+
};
|
|
8189
|
+
case 5:
|
|
8190
|
+
_.label++;
|
|
8191
|
+
y = op[1];
|
|
8192
|
+
op = [
|
|
8193
|
+
0
|
|
8194
|
+
];
|
|
8195
|
+
continue;
|
|
8196
|
+
case 7:
|
|
8197
|
+
op = _.ops.pop();
|
|
8198
|
+
_.trys.pop();
|
|
8199
|
+
continue;
|
|
8200
|
+
default:
|
|
8201
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
8202
|
+
_ = 0;
|
|
8203
|
+
continue;
|
|
8204
|
+
}
|
|
8205
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
8206
|
+
_.label = op[1];
|
|
8207
|
+
break;
|
|
8208
|
+
}
|
|
8209
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
8210
|
+
_.label = t[1];
|
|
8211
|
+
t = op;
|
|
8212
|
+
break;
|
|
8213
|
+
}
|
|
8214
|
+
if (t && _.label < t[2]) {
|
|
8215
|
+
_.label = t[2];
|
|
8216
|
+
_.ops.push(op);
|
|
8217
|
+
break;
|
|
8218
|
+
}
|
|
8219
|
+
if (t[2]) _.ops.pop();
|
|
8220
|
+
_.trys.pop();
|
|
8221
|
+
continue;
|
|
8222
|
+
}
|
|
8223
|
+
op = body.call(thisArg, _);
|
|
8224
|
+
} catch (e) {
|
|
8225
|
+
op = [
|
|
8226
|
+
6,
|
|
8227
|
+
e
|
|
8228
|
+
];
|
|
8229
|
+
y = 0;
|
|
8230
|
+
} finally{
|
|
8231
|
+
f = t = 0;
|
|
8232
|
+
}
|
|
8233
|
+
if (op[0] & 5) throw op[1];
|
|
8234
|
+
return {
|
|
8235
|
+
value: op[0] ? op[1] : void 0,
|
|
8236
|
+
done: true
|
|
8237
|
+
};
|
|
8238
|
+
}
|
|
8239
|
+
}
|
|
8240
|
+
/**
|
|
8241
|
+
* 语音广播控件
|
|
8242
|
+
*
|
|
8243
|
+
* 用于触发语音广播功能的按钮控件
|
|
8244
|
+
*
|
|
8245
|
+
* @category Control
|
|
8246
|
+
*/ var Broadcast = /*#__PURE__*/ function(Control) {
|
|
8247
|
+
_inherits$a(Broadcast, Control);
|
|
8248
|
+
function Broadcast(options) {
|
|
8249
|
+
var _this;
|
|
8250
|
+
_this = Control.call(this, _extends$9({}, options, {
|
|
8251
|
+
tagName: 'span',
|
|
8252
|
+
controlType: 'button',
|
|
8253
|
+
classNameSuffix: 'broadcast'
|
|
8254
|
+
})) || this;
|
|
8255
|
+
_this._options = options;
|
|
8256
|
+
_this._render();
|
|
8257
|
+
_this.on(EVENTS.broadcastChange, function(active) {
|
|
8258
|
+
if (_this.active !== active) {
|
|
8259
|
+
_this.active = active;
|
|
8260
|
+
_this._render();
|
|
8261
|
+
}
|
|
8262
|
+
});
|
|
8263
|
+
return _this;
|
|
8264
|
+
}
|
|
8265
|
+
var _proto = Broadcast.prototype;
|
|
8266
|
+
_proto._render = function _render() {
|
|
8267
|
+
var _this_locale;
|
|
8268
|
+
this.$container.innerHTML = IconComponents.broadcast({
|
|
8269
|
+
title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_BROADCAST
|
|
8270
|
+
});
|
|
8271
|
+
};
|
|
8272
|
+
_proto.reset = function reset(hide) {
|
|
8273
|
+
if (this.active) {
|
|
8274
|
+
this.active = false;
|
|
8275
|
+
this._render();
|
|
8276
|
+
this.emit(EVENTS.control.broadcastChange, false);
|
|
8277
|
+
Control.prototype.reset.call(this, hide);
|
|
8278
|
+
}
|
|
8279
|
+
};
|
|
8280
|
+
/**
|
|
8281
|
+
* 销毁语音广播控件
|
|
8282
|
+
*/ _proto.destroy = function destroy() {
|
|
8283
|
+
if (this.active) {
|
|
8284
|
+
this.reset();
|
|
8285
|
+
}
|
|
8286
|
+
Control.prototype.destroy.call(this);
|
|
8287
|
+
};
|
|
8288
|
+
/**
|
|
8289
|
+
* 点击 Control 会触发
|
|
8290
|
+
*/ _proto._onControlClick = function _onControlClick(e) {
|
|
8291
|
+
var _this = this, _superprop_get__onControlClick = function() {
|
|
8292
|
+
return Control.prototype._onControlClick;
|
|
8293
|
+
};
|
|
8294
|
+
return _async_to_generator$2(function() {
|
|
8295
|
+
var _this__options_onChange, _this__options;
|
|
8296
|
+
return _ts_generator$2(this, function(_state) {
|
|
8297
|
+
_superprop_get__onControlClick().call(_this, e);
|
|
8298
|
+
this.active = !this.active;
|
|
8299
|
+
this.emit(EVENTS.control.broadcastChange, this.active);
|
|
8300
|
+
(_this__options = this._options) == null ? void 0 : (_this__options_onChange = _this__options.onChange) == null ? void 0 : _this__options_onChange.call(_this__options, this.active);
|
|
8301
|
+
this._render();
|
|
8302
|
+
return [
|
|
8303
|
+
2
|
|
8304
|
+
];
|
|
8305
|
+
});
|
|
8306
|
+
}).call(this);
|
|
8307
|
+
};
|
|
8308
|
+
return Broadcast;
|
|
8309
|
+
}(Control);
|
|
8310
|
+
|
|
8040
8311
|
function _defineProperties$1(target, props) {
|
|
8041
8312
|
for(var i = 0; i < props.length; i++){
|
|
8042
8313
|
var descriptor = props[i];
|
|
@@ -8716,7 +8987,7 @@ function _set_prototype_of$6(o, p) {
|
|
|
8716
8987
|
],
|
|
8717
8988
|
badges: ((_this_options_props = this.options.props) == null ? void 0 : _this_options_props.recMonth) || [],
|
|
8718
8989
|
language: this.options.language === 'zh' ? 'zh' : 'en',
|
|
8719
|
-
current:
|
|
8990
|
+
current: require$$1.DateTime.toDate(this._value),
|
|
8720
8991
|
placement: 'tr',
|
|
8721
8992
|
triggerClose: true,
|
|
8722
8993
|
disabledDate: function(date) {
|
|
@@ -9027,6 +9298,7 @@ var Controls = {
|
|
|
9027
9298
|
ptz: Ptz,
|
|
9028
9299
|
record: Record,
|
|
9029
9300
|
talk: Talk,
|
|
9301
|
+
broadcast: Broadcast,
|
|
9030
9302
|
zoom: Zoom$1,
|
|
9031
9303
|
definition: Definition,
|
|
9032
9304
|
fullscreen: Fullscreen,
|
|
@@ -10185,13 +10457,16 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10185
10457
|
_this.playing = true;
|
|
10186
10458
|
}
|
|
10187
10459
|
_this._initClassName();
|
|
10188
|
-
// 画布需要渲染在 this.contentControl.$
|
|
10460
|
+
// 画布需要渲染在 this.contentControl.$content 内
|
|
10189
10461
|
_this.contentControl = new Content({
|
|
10190
10462
|
getContainer: function() {
|
|
10191
10463
|
return _this.$container;
|
|
10192
10464
|
},
|
|
10193
10465
|
scaleMode: _this.scaleMode
|
|
10194
10466
|
});
|
|
10467
|
+
_this.contentControl.on(EVENTS.control.contentRerender, function(info) {
|
|
10468
|
+
_this.emit(EVENTS.control.contentRerender, info);
|
|
10469
|
+
});
|
|
10195
10470
|
// zoom utils
|
|
10196
10471
|
__zoom(_this, _this.contentControl.$content, _extends({}, _this.options.zoomOptions || {}, {
|
|
10197
10472
|
onTap: function() {
|
|
@@ -10742,138 +11017,153 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10742
11017
|
* 尺寸变化结束时 进行判断,为了节省开销
|
|
10743
11018
|
* @WARN:这里会闪一下, 原因:需要控件渲染后才知是否需要放置到 More 中,
|
|
10744
11019
|
*/ _proto._footerMoreControlShow = function _footerMoreControlShow() {
|
|
11020
|
+
this._displayMore();
|
|
11021
|
+
};
|
|
11022
|
+
_proto._displayMore = function _displayMore() {
|
|
10745
11023
|
var _this = this;
|
|
10746
|
-
|
|
10747
|
-
|
|
10748
|
-
|
|
10749
|
-
|
|
10750
|
-
|
|
10751
|
-
|
|
10752
|
-
|
|
10753
|
-
|
|
10754
|
-
|
|
10755
|
-
|
|
10756
|
-
|
|
10757
|
-
|
|
10758
|
-
|
|
10759
|
-
|
|
10760
|
-
|
|
10761
|
-
|
|
10762
|
-
|
|
10763
|
-
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
10767
|
-
|
|
10768
|
-
|
|
10769
|
-
|
|
10770
|
-
|
|
10771
|
-
|
|
10772
|
-
|
|
10773
|
-
|
|
10774
|
-
_this.emit(EVENTS.control.footerMorePanelOpenChange, open);
|
|
10775
|
-
}
|
|
10776
|
-
});
|
|
10777
|
-
}
|
|
10778
|
-
//
|
|
10779
|
-
var list = (((_this__themeData = _this._themeData) == null ? void 0 : (_this__themeData_footer = _this__themeData.footer) == null ? void 0 : _this__themeData_footer.btnList) || []).filter(function(item) {
|
|
10780
|
-
var _this__footerMoreControl;
|
|
10781
|
-
var index = (((_this__footerMoreControl = _this._footerMoreControl) == null ? void 0 : _this__footerMoreControl.list) || []).findIndex(function(item1) {
|
|
10782
|
-
var _this_controls;
|
|
10783
|
-
return item1.control === ((_this_controls = _this.controls) == null ? void 0 : _this_controls["" + item.iconId + "Control"]);
|
|
10784
|
-
});
|
|
10785
|
-
return index === -1;
|
|
10786
|
-
});
|
|
10787
|
-
if (list.length <= 0) {
|
|
10788
|
-
return;
|
|
10789
|
-
}
|
|
10790
|
-
if (((_this__footerMoreControl = _this._footerMoreControl) == null ? void 0 : (_this__footerMoreControl_list = _this__footerMoreControl.list) == null ? void 0 : _this__footerMoreControl_list.length) === 0) {
|
|
10791
|
-
// 为什么是两个, 因为More 也占用一个位置
|
|
10792
|
-
var popList = [
|
|
10793
|
-
list.pop(),
|
|
10794
|
-
list.pop()
|
|
10795
|
-
];
|
|
10796
|
-
for(var _iterator = _create_for_of_iterator_helper_loose(popList), _step; !(_step = _iterator()).done;){
|
|
10797
|
-
var item = _step.value;
|
|
10798
|
-
if (item) {
|
|
10799
|
-
var _this_controls_key_resetPopupContainer, _this_controls_key, _this_controls, _this_controls1, _this__footerMoreControl2;
|
|
10800
|
-
var key = "" + item.iconId + "Control";
|
|
10801
|
-
(_this_controls = _this.controls) == null ? void 0 : (_this_controls_key = _this_controls[key]) == null ? void 0 : (_this_controls_key_resetPopupContainer = _this_controls_key.resetPopupContainer) == null ? void 0 : _this_controls_key_resetPopupContainer.call(_this_controls_key, _this._footerMoreControl.$panel, 'prepend');
|
|
10802
|
-
(_this__footerMoreControl2 = _this._footerMoreControl) == null ? void 0 : _this__footerMoreControl2.add(key, item.part, (_this_controls1 = _this.controls) == null ? void 0 : _this_controls1[key]);
|
|
10803
|
-
}
|
|
11024
|
+
if (this._footer) {
|
|
11025
|
+
var _this__footer_$left, _this__footer_$right;
|
|
11026
|
+
// 判断 footer 的控件是否能放置的下, 否则隐藏暂时 more 按钮
|
|
11027
|
+
var leftWidth = ((_this__footer_$left = this._footer.$left) == null ? void 0 : _this__footer_$left.clientWidth) || 0;
|
|
11028
|
+
var rightWidth = ((_this__footer_$right = this._footer.$right) == null ? void 0 : _this__footer_$right.clientWidth) || 0;
|
|
11029
|
+
// 当footer 中 left 和 right 宽度之和大于 footer 宽度,则 footer more 显示
|
|
11030
|
+
var collapseControl = this._width - leftWidth - rightWidth < 16; // 收拢控件到 More 中
|
|
11031
|
+
if (collapseControl) {
|
|
11032
|
+
var _this__footer, _this__themeData_footer, _this__themeData, _this__footerMoreControl_list, _this__footerMoreControl, _this__footerMoreControl_list1, _this__footerMoreControl1;
|
|
11033
|
+
if (!this._footerMoreControl && ((_this__footer = this._footer) == null ? void 0 : _this__footer.$right)) {
|
|
11034
|
+
this._footerMoreControl = new More({
|
|
11035
|
+
language: this.options.language,
|
|
11036
|
+
locales: this.i18n.translations,
|
|
11037
|
+
rootContainer: this.$container,
|
|
11038
|
+
getPopupContainer: function() {
|
|
11039
|
+
var _this__footer;
|
|
11040
|
+
return (_this__footer = _this._footer) == null ? void 0 : _this__footer.$right;
|
|
11041
|
+
},
|
|
11042
|
+
placement: 'tr',
|
|
11043
|
+
controls: this.controls,
|
|
11044
|
+
open: false,
|
|
11045
|
+
offset: [
|
|
11046
|
+
0,
|
|
11047
|
+
-8
|
|
11048
|
+
],
|
|
11049
|
+
wrapClassName: "" + PREFIX_CLASS + "-footer-more",
|
|
11050
|
+
onOpenChange: function(open) {
|
|
11051
|
+
_this.emit(EVENTS.control.footerMorePanelOpenChange, open);
|
|
10804
11052
|
}
|
|
10805
|
-
}
|
|
10806
|
-
|
|
10807
|
-
|
|
10808
|
-
|
|
10809
|
-
|
|
10810
|
-
|
|
10811
|
-
|
|
10812
|
-
|
|
10813
|
-
|
|
11053
|
+
});
|
|
11054
|
+
}
|
|
11055
|
+
//
|
|
11056
|
+
var list = (((_this__themeData = this._themeData) == null ? void 0 : (_this__themeData_footer = _this__themeData.footer) == null ? void 0 : _this__themeData_footer.btnList) || []).filter(function(item) {
|
|
11057
|
+
var _this__footerMoreControl;
|
|
11058
|
+
var index = (((_this__footerMoreControl = _this._footerMoreControl) == null ? void 0 : _this__footerMoreControl.list) || []).findIndex(function(item1) {
|
|
11059
|
+
var _this_controls;
|
|
11060
|
+
return item1.control === ((_this_controls = _this.controls) == null ? void 0 : _this_controls["" + item.iconId + "Control"]);
|
|
11061
|
+
});
|
|
11062
|
+
return index === -1;
|
|
11063
|
+
});
|
|
11064
|
+
if (list.length <= 0) return;
|
|
11065
|
+
if (((_this__footerMoreControl = this._footerMoreControl) == null ? void 0 : (_this__footerMoreControl_list = _this__footerMoreControl.list) == null ? void 0 : _this__footerMoreControl_list.length) === 0) {
|
|
11066
|
+
// 为什么是两个, 因为More 也占用一个位置
|
|
11067
|
+
var popList = [
|
|
11068
|
+
list.pop(),
|
|
11069
|
+
list.pop()
|
|
11070
|
+
];
|
|
11071
|
+
for(var _iterator = _create_for_of_iterator_helper_loose(popList), _step; !(_step = _iterator()).done;){
|
|
11072
|
+
var item = _step.value;
|
|
11073
|
+
if (item) {
|
|
11074
|
+
var _this_controls_key_$container, _this_controls_key, _this_controls, _this_controls_key_$container1, _this_controls_key1, _this_controls1, _this_controls_key_resetPopupContainer, _this_controls_key2, _this_controls2, _this_controls3, _this__footerMoreControl2;
|
|
11075
|
+
var key = "" + item.iconId + "Control";
|
|
11076
|
+
var width = ((_this_controls = this.controls) == null ? void 0 : (_this_controls_key = _this_controls[key]) == null ? void 0 : (_this_controls_key_$container = _this_controls_key.$container) == null ? void 0 : _this_controls_key_$container.clientWidth) || 0;
|
|
11077
|
+
var height = ((_this_controls1 = this.controls) == null ? void 0 : (_this_controls_key1 = _this_controls1[key]) == null ? void 0 : (_this_controls_key_$container1 = _this_controls_key1.$container) == null ? void 0 : _this_controls_key_$container1.clientHeight) || 0;
|
|
11078
|
+
(_this_controls2 = this.controls) == null ? void 0 : (_this_controls_key2 = _this_controls2[key]) == null ? void 0 : (_this_controls_key_resetPopupContainer = _this_controls_key2.resetPopupContainer) == null ? void 0 : _this_controls_key_resetPopupContainer.call(_this_controls_key2, this._footerMoreControl.$panel, 'prepend');
|
|
11079
|
+
(_this__footerMoreControl2 = this._footerMoreControl) == null ? void 0 : _this__footerMoreControl2.add(key, item.part, (_this_controls3 = this.controls) == null ? void 0 : _this_controls3[key], {
|
|
11080
|
+
width: width,
|
|
11081
|
+
height: height
|
|
11082
|
+
});
|
|
10814
11083
|
}
|
|
10815
11084
|
}
|
|
10816
|
-
|
|
10817
|
-
|
|
10818
|
-
|
|
10819
|
-
|
|
10820
|
-
|
|
10821
|
-
|
|
10822
|
-
|
|
11085
|
+
} else if (this._footerMoreControl) {
|
|
11086
|
+
var item1 = list.pop();
|
|
11087
|
+
if (item1) {
|
|
11088
|
+
var _this_controls_key_$container2, _this_controls_key3, _this_controls4, _this_controls_key_$container3, _this_controls_key4, _this_controls5, _this_controls_key_resetPopupContainer1, _this_controls_key5, _this_controls6, _this_controls7, _this__footerMoreControl3;
|
|
11089
|
+
var key1 = "" + item1.iconId + "Control";
|
|
11090
|
+
var width1 = ((_this_controls4 = this.controls) == null ? void 0 : (_this_controls_key3 = _this_controls4[key1]) == null ? void 0 : (_this_controls_key_$container2 = _this_controls_key3.$container) == null ? void 0 : _this_controls_key_$container2.clientWidth) || 0;
|
|
11091
|
+
var height1 = ((_this_controls5 = this.controls) == null ? void 0 : (_this_controls_key4 = _this_controls5[key1]) == null ? void 0 : (_this_controls_key_$container3 = _this_controls_key4.$container) == null ? void 0 : _this_controls_key_$container3.clientHeight) || 0;
|
|
11092
|
+
(_this_controls6 = this.controls) == null ? void 0 : (_this_controls_key5 = _this_controls6[key1]) == null ? void 0 : (_this_controls_key_resetPopupContainer1 = _this_controls_key5.resetPopupContainer) == null ? void 0 : _this_controls_key_resetPopupContainer1.call(_this_controls_key5, this._footerMoreControl.$panel, 'prepend');
|
|
11093
|
+
(_this__footerMoreControl3 = this._footerMoreControl) == null ? void 0 : _this__footerMoreControl3.add(key1, item1.part, (_this_controls7 = this.controls) == null ? void 0 : _this_controls7[key1], {
|
|
11094
|
+
width: width1,
|
|
11095
|
+
height: height1
|
|
11096
|
+
});
|
|
11097
|
+
} else {
|
|
11098
|
+
return;
|
|
10823
11099
|
}
|
|
10824
|
-
}
|
|
10825
|
-
|
|
11100
|
+
}
|
|
11101
|
+
// prettier-ignore
|
|
11102
|
+
this.emit(Theme.EVENTS.control.footerMoreShowControlsChange, !!this._footerMoreControl, (_this__footerMoreControl1 = this._footerMoreControl) == null ? void 0 : (_this__footerMoreControl_list1 = _this__footerMoreControl1.list) == null ? void 0 : _this__footerMoreControl_list1.map(function(item) {
|
|
11103
|
+
return item.key;
|
|
11104
|
+
}));
|
|
11105
|
+
if (this._footerMoreControl) {
|
|
11106
|
+
// 防止 More 不存在导致死循环
|
|
11107
|
+
this._displayMore();
|
|
11108
|
+
}
|
|
11109
|
+
} else {
|
|
11110
|
+
var _this__footerMoreControl_list2, _this__footerMoreControl5, _this__footerMoreControl_list3, _this__footerMoreControl6;
|
|
11111
|
+
var offset = 50;
|
|
11112
|
+
// if (this._footerMoreControl?.list?.length && this._footerMoreControl?.list?.length > 2) {
|
|
11113
|
+
// offset = 16;
|
|
11114
|
+
// }
|
|
11115
|
+
if ((_this__footerMoreControl5 = this._footerMoreControl) == null ? void 0 : (_this__footerMoreControl_list2 = _this__footerMoreControl5.list) == null ? void 0 : _this__footerMoreControl_list2.length) {
|
|
11116
|
+
offset = offset + this._footerMoreControl.list[0].width || 0;
|
|
11117
|
+
}
|
|
11118
|
+
if (((_this__footerMoreControl6 = this._footerMoreControl) == null ? void 0 : (_this__footerMoreControl_list3 = _this__footerMoreControl6.list) == null ? void 0 : _this__footerMoreControl_list3.length) && this._width - leftWidth - rightWidth > offset) {
|
|
11119
|
+
var _this__footerMoreControl7, _this__footerMoreControl_list4, _this__footerMoreControl8, _this__footerMoreControl_list5, _this__footerMoreControl9;
|
|
10826
11120
|
// 110 是为了保住个别控件的宽度超出已知的值, 如英文下 按钮的宽度
|
|
10827
11121
|
// 从 More 中一次移除一个控件到 header/footer 中
|
|
10828
|
-
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
var
|
|
10832
|
-
if (item2) {
|
|
10833
|
-
var
|
|
10834
|
-
|
|
10835
|
-
|
|
10836
|
-
|
|
10837
|
-
|
|
10838
|
-
var
|
|
10839
|
-
|
|
10840
|
-
|
|
10841
|
-
|
|
10842
|
-
|
|
10843
|
-
var _item_control_resetPopupContainer2, _item_control2;
|
|
10844
|
-
(_item_control2 = item2.control) == null ? void 0 : (_item_control_resetPopupContainer2 = _item_control2.resetPopupContainer) == null ? void 0 : _item_control_resetPopupContainer2.call(_item_control2, _this._footer.$right, 'before', _this._footerMoreControl.$container);
|
|
10845
|
-
}
|
|
11122
|
+
//
|
|
11123
|
+
var item2 = (_this__footerMoreControl7 = this._footerMoreControl) == null ? void 0 : _this__footerMoreControl7.list.shift();
|
|
11124
|
+
if (item2) {
|
|
11125
|
+
var _this__footerMoreControl10;
|
|
11126
|
+
if (item2.part === 'left') {
|
|
11127
|
+
var _item_control_resetPopupContainer, _item_control;
|
|
11128
|
+
(_item_control = item2.control) == null ? void 0 : (_item_control_resetPopupContainer = _item_control.resetPopupContainer) == null ? void 0 : _item_control_resetPopupContainer.call(_item_control, this._footer.$left, 'append');
|
|
11129
|
+
} else if (item2.part === 'right') {
|
|
11130
|
+
var _this__footerMoreControl_list6, _this__footerMoreControl11;
|
|
11131
|
+
if (((_this__footerMoreControl11 = this._footerMoreControl) == null ? void 0 : (_this__footerMoreControl_list6 = _this__footerMoreControl11.list) == null ? void 0 : _this__footerMoreControl_list6.length) === 0) {
|
|
11132
|
+
var _item_control_resetPopupContainer1, _item_control1;
|
|
11133
|
+
(_item_control1 = item2.control) == null ? void 0 : (_item_control_resetPopupContainer1 = _item_control1.resetPopupContainer) == null ? void 0 : _item_control_resetPopupContainer1.call(_item_control1, this._footer.$right, 'append');
|
|
11134
|
+
} else {
|
|
11135
|
+
var _item_control_resetPopupContainer2, _item_control2;
|
|
11136
|
+
(_item_control2 = item2.control) == null ? void 0 : (_item_control_resetPopupContainer2 = _item_control2.resetPopupContainer) == null ? void 0 : _item_control_resetPopupContainer2.call(_item_control2, this._footer.$right, 'before', this._footerMoreControl.$container);
|
|
10846
11137
|
}
|
|
10847
|
-
(_this__footerMoreControl8 = _this._footerMoreControl) == null ? void 0 : _this__footerMoreControl8.remove(item2.control);
|
|
10848
11138
|
}
|
|
10849
|
-
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
10853
|
-
|
|
10854
|
-
|
|
10855
|
-
|
|
10856
|
-
|
|
10857
|
-
|
|
10858
|
-
|
|
10859
|
-
|
|
10860
|
-
|
|
10861
|
-
|
|
10862
|
-
(
|
|
11139
|
+
(_this__footerMoreControl10 = this._footerMoreControl) == null ? void 0 : _this__footerMoreControl10.remove(item2.control);
|
|
11140
|
+
}
|
|
11141
|
+
if (((_this__footerMoreControl8 = this._footerMoreControl) == null ? void 0 : (_this__footerMoreControl_list4 = _this__footerMoreControl8.list) == null ? void 0 : _this__footerMoreControl_list4.length) === 1) {
|
|
11142
|
+
var _this__footerMoreControl12, _this__footerMoreControl_destroy, _this__footerMoreControl13;
|
|
11143
|
+
// 最后一个, 移除 More
|
|
11144
|
+
var item11 = (_this__footerMoreControl12 = this._footerMoreControl) == null ? void 0 : _this__footerMoreControl12.list.shift();
|
|
11145
|
+
if (item11) {
|
|
11146
|
+
var _this__footerMoreControl14;
|
|
11147
|
+
if (item11.part === 'left') {
|
|
11148
|
+
var _item1_control_resetPopupContainer, _item1_control;
|
|
11149
|
+
(_item1_control = item11.control) == null ? void 0 : (_item1_control_resetPopupContainer = _item1_control.resetPopupContainer) == null ? void 0 : _item1_control_resetPopupContainer.call(_item1_control, this._footer.$left, 'append');
|
|
11150
|
+
} else if (item11.part === 'right') {
|
|
11151
|
+
var _item1_control_resetPopupContainer1, _item1_control1;
|
|
11152
|
+
(_item1_control1 = item11.control) == null ? void 0 : (_item1_control_resetPopupContainer1 = _item1_control1.resetPopupContainer) == null ? void 0 : _item1_control_resetPopupContainer1.call(_item1_control1, this._footer.$right, 'append');
|
|
10863
11153
|
}
|
|
10864
|
-
(
|
|
10865
|
-
_this._footerMoreControl = null;
|
|
11154
|
+
(_this__footerMoreControl14 = this._footerMoreControl) == null ? void 0 : _this__footerMoreControl14.remove(item11.control);
|
|
10866
11155
|
}
|
|
10867
|
-
|
|
10868
|
-
|
|
10869
|
-
return item.key;
|
|
10870
|
-
}));
|
|
10871
|
-
displayMore();
|
|
11156
|
+
(_this__footerMoreControl13 = this._footerMoreControl) == null ? void 0 : (_this__footerMoreControl_destroy = _this__footerMoreControl13.destroy) == null ? void 0 : _this__footerMoreControl_destroy.call(_this__footerMoreControl13);
|
|
11157
|
+
this._footerMoreControl = null;
|
|
10872
11158
|
}
|
|
11159
|
+
// prettier-ignore
|
|
11160
|
+
this.emit(Theme.EVENTS.control.footerMoreShowControlsChange, !!this._footerMoreControl, (_this__footerMoreControl9 = this._footerMoreControl) == null ? void 0 : (_this__footerMoreControl_list5 = _this__footerMoreControl9.list) == null ? void 0 : _this__footerMoreControl_list5.map(function(item) {
|
|
11161
|
+
return item.key;
|
|
11162
|
+
}));
|
|
11163
|
+
this._displayMore();
|
|
10873
11164
|
}
|
|
10874
11165
|
}
|
|
10875
|
-
}
|
|
10876
|
-
displayMore();
|
|
11166
|
+
}
|
|
10877
11167
|
};
|
|
10878
11168
|
/**
|
|
10879
11169
|
* 移除事件
|
|
@@ -10951,6 +11241,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
10951
11241
|
[
|
|
10952
11242
|
'ptz',
|
|
10953
11243
|
'talk',
|
|
11244
|
+
'broadcast',
|
|
10954
11245
|
'record',
|
|
10955
11246
|
'speed'
|
|
10956
11247
|
].forEach(function(key) {
|
|
@@ -11028,6 +11319,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11028
11319
|
[
|
|
11029
11320
|
'ptz',
|
|
11030
11321
|
'talk',
|
|
11322
|
+
'broadcast',
|
|
11031
11323
|
'record'
|
|
11032
11324
|
].forEach(function(key) {
|
|
11033
11325
|
var _this_controls;
|
|
@@ -11388,7 +11680,7 @@ var THEME_DEFAULT_OPTIONS = {
|
|
|
11388
11680
|
zh: zh,
|
|
11389
11681
|
en: en
|
|
11390
11682
|
};
|
|
11391
|
-
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.
|
|
11683
|
+
/** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '2.1.0-beta.11';
|
|
11392
11684
|
|
|
11393
11685
|
exports.Control = Control;
|
|
11394
11686
|
exports.EVENTS = EVENTS;
|