wargerm 0.4.19 → 0.4.20

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.
@@ -27,11 +27,13 @@ declare class Modal extends React.PureComponent<Props> {
27
27
  destory(): void;
28
28
  } | undefined;
29
29
  static hidden: () => void;
30
+ static destory: () => void;
30
31
  renderFooter: () => JSX.Element | null;
31
32
  containerRef: React.RefObject<any>;
32
33
  titleRef: React.RefObject<any>;
33
34
  renderTop: () => JSX.Element;
34
35
  componentDidMount(): void;
36
+ componentWillUnmount(): void;
35
37
  renderContent: () => {} | null;
36
38
  render(): JSX.Element;
37
39
  }
package/dist/index.css CHANGED
@@ -1441,6 +1441,15 @@ button[data-prefers-color='dark'] .swiper-pagination-bullet {
1441
1441
  background: #0f6ab7;
1442
1442
  }
1443
1443
  [data-prefers-color='dark'] .videoContainer {
1444
+ min-width: 400px;
1445
+ min-height: 400px;
1446
+ width: 100%;
1447
+ height: 100%;
1448
+ display: flex;
1449
+ flex-direction: column;
1450
+ }
1451
+ [data-prefers-color='dark'] .videoContainer .videoContainer-grid {
1452
+ flex: 1;
1444
1453
  width: 100%;
1445
1454
  height: 100%;
1446
1455
  display: grid;
@@ -2856,6 +2865,15 @@ button[data-prefers-color='light'] .swiper-pagination-bullet {
2856
2865
  background: #0f6ab7;
2857
2866
  }
2858
2867
  [data-prefers-color='light'] .videoContainer {
2868
+ min-width: 400px;
2869
+ min-height: 400px;
2870
+ width: 100%;
2871
+ height: 100%;
2872
+ display: flex;
2873
+ flex-direction: column;
2874
+ }
2875
+ [data-prefers-color='light'] .videoContainer .videoContainer-grid {
2876
+ flex: 1;
2859
2877
  width: 100%;
2860
2878
  height: 100%;
2861
2879
  display: grid;
@@ -1441,6 +1441,15 @@ button[data-prefers-color='dark'] .swiper-pagination-bullet {
1441
1441
  background: #0f6ab7;
1442
1442
  }
1443
1443
  [data-prefers-color='dark'] .videoContainer {
1444
+ min-width: 400px;
1445
+ min-height: 400px;
1446
+ width: 100%;
1447
+ height: 100%;
1448
+ display: flex;
1449
+ flex-direction: column;
1450
+ }
1451
+ [data-prefers-color='dark'] .videoContainer .videoContainer-grid {
1452
+ flex: 1;
1444
1453
  width: 100%;
1445
1454
  height: 100%;
1446
1455
  display: grid;
@@ -2856,6 +2865,15 @@ button[data-prefers-color='light'] .swiper-pagination-bullet {
2856
2865
  background: #0f6ab7;
2857
2866
  }
2858
2867
  [data-prefers-color='light'] .videoContainer {
2868
+ min-width: 400px;
2869
+ min-height: 400px;
2870
+ width: 100%;
2871
+ height: 100%;
2872
+ display: flex;
2873
+ flex-direction: column;
2874
+ }
2875
+ [data-prefers-color='light'] .videoContainer .videoContainer-grid {
2876
+ flex: 1;
2859
2877
  width: 100%;
2860
2878
  height: 100%;
2861
2879
  display: grid;
package/dist/index.esm.js CHANGED
@@ -9733,8 +9733,9 @@ function DialogModel(props, ref) {
9733
9733
  useEffect(function () {
9734
9734
  var containerEl = containerRef.current;
9735
9735
  var containerElWidth = containerEl.offsetWidth;
9736
- console.log(containerElWidth);
9736
+ var containerElHeight = containerEl.offsetHeight;
9737
9737
  containerEl.style.left = "calc(50% - ".concat(containerElWidth / 2, "px)");
9738
+ containerEl.style.top = "calc(50% - ".concat(containerElHeight / 2, "px)");
9738
9739
  }, [modelShow]);
9739
9740
  useEffect(function () {
9740
9741
  var containerEl = containerRef.current;
@@ -9937,6 +9938,11 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
9937
9938
  document.onmousemove = null;
9938
9939
  };
9939
9940
  }
9941
+ }, {
9942
+ key: "componentWillUnmount",
9943
+ value: function componentWillUnmount() {
9944
+ Modal.destory();
9945
+ }
9940
9946
  }, {
9941
9947
  key: "render",
9942
9948
  value: function render() {
@@ -9970,18 +9976,19 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
9970
9976
 
9971
9977
  Modal.show = void 0;
9972
9978
  Modal.hidden = void 0;
9979
+ Modal.destory = void 0;
9980
+ var Modals = {};
9973
9981
 
9974
9982
  Modal.show = function (config) {
9975
- var ModalContainer = null;
9976
- var modelSysbol = Symbol('$$__model__Container_hidden');
9977
- if (ModalContainer) return;
9983
+ var modelSysbol = Math.random().toString(36).slice(2, 36);
9984
+ if (Modals[modelSysbol]) return;
9978
9985
 
9979
9986
  var props = _objectSpread2(_objectSpread2({}, config), {}, {
9980
9987
  visible: true
9981
9988
  });
9982
9989
 
9983
- var container = ModalContainer = document.createElement('div');
9984
- var manager = container[modelSysbol] = {
9990
+ var container = document.createElement('div');
9991
+ var manager = container[modelSysbol] = Modals[modelSysbol] = {
9985
9992
  setShow: null,
9986
9993
  mounted: false,
9987
9994
  hidden: function hidden() {
@@ -9990,8 +9997,12 @@ Modal.show = function (config) {
9990
9997
  },
9991
9998
  destory: function destory() {
9992
9999
  ReactDOM.unmountComponentAtNode(container);
9993
- document.body.removeChild(container);
9994
- ModalContainer = null;
10000
+
10001
+ if (document.body.contains(container)) {
10002
+ document.body.removeChild(container);
10003
+ }
10004
+
10005
+ delete Modals[modelSysbol];
9995
10006
  }
9996
10007
  };
9997
10008
 
@@ -10023,8 +10034,20 @@ Modal.show = function (config) {
10023
10034
  return manager;
10024
10035
  };
10025
10036
 
10026
- Modal.hidden = function () {// if (!ModalContainer) return;
10027
- // ModalContainer[modelSysbol] && ModalContainer[modelSysbol].hidden();
10037
+ Modal.hidden = function () {
10038
+ if (Object.keys(Modals).length == 0) return;
10039
+
10040
+ for (var key in Modals) {
10041
+ Modals[key].hidden();
10042
+ }
10043
+ };
10044
+
10045
+ Modal.destory = function () {
10046
+ if (Object.keys(Modals).length == 0) return;
10047
+
10048
+ for (var key in Modals) {
10049
+ Modals[key].destory();
10050
+ }
10028
10051
  };
10029
10052
 
10030
10053
  var controlShow$1 = function controlShow(f1, f2, value, timer) {
@@ -11112,15 +11135,9 @@ function Xgplay(_ref, fRef) {
11112
11135
  setRef = _ref.setRef;
11113
11136
  var ref = useRef(null);
11114
11137
  var playerRef = useRef(null);
11115
-
11116
- var _useState = useState(null),
11117
- _useState2 = _slicedToArray(_useState, 2),
11118
- player = _useState2[0],
11119
- setPlayer = _useState2[1];
11120
-
11121
11138
  useEffect(function () {
11122
11139
  if (ref.current) {
11123
- if (type.indexOf('hls') !== -1) {
11140
+ if ((type === null || type === void 0 ? void 0 : type.indexOf('hls')) !== -1) {
11124
11141
  playerRef.current = new HlsJsPlayer(_objectSpread2({
11125
11142
  el: ref.current,
11126
11143
  width: '100%',
@@ -11129,7 +11146,7 @@ function Xgplay(_ref, fRef) {
11129
11146
  isLive: true,
11130
11147
  autoplayMuted: true
11131
11148
  }, config));
11132
- } else if (type.indexOf('flv') !== -1) {
11149
+ } else if ((type === null || type === void 0 ? void 0 : type.indexOf('flv')) !== -1) {
11133
11150
  playerRef.current = new FlvPlayer(_objectSpread2({
11134
11151
  el: ref.current,
11135
11152
  width: '100%',
@@ -11138,7 +11155,7 @@ function Xgplay(_ref, fRef) {
11138
11155
  isLive: true,
11139
11156
  autoplayMuted: true
11140
11157
  }, config));
11141
- } else if (type.indexOf('mp4') !== -1) {
11158
+ } else if ((type === null || type === void 0 ? void 0 : type.indexOf('mp4')) !== -1) {
11142
11159
  playerRef.current = new Player(_objectSpread2({
11143
11160
  el: ref.current,
11144
11161
  width: '100%',
@@ -11203,11 +11220,7 @@ var IconFont = createFromIconfontCN({
11203
11220
  function VideoPlayer(_ref, ref) {
11204
11221
  var _ref$footer = _ref.footer,
11205
11222
  footer = _ref$footer === void 0 ? true : _ref$footer,
11206
- _ref$style = _ref.style,
11207
- style = _ref$style === void 0 ? {
11208
- width: 400,
11209
- height: 400
11210
- } : _ref$style,
11223
+ style = _ref.style,
11211
11224
  _ref$config = _ref.config,
11212
11225
  config = _ref$config === void 0 ? {} : _ref$config,
11213
11226
  layoutIndex = _ref.layoutIndex,
@@ -11251,20 +11264,25 @@ function VideoPlayer(_ref, ref) {
11251
11264
  currentLayoutIndex = _useState2[0],
11252
11265
  setCurrentLayoutIndex = _useState2[1];
11253
11266
 
11267
+ var _useState3 = useState(url),
11268
+ _useState4 = _slicedToArray(_useState3, 2),
11269
+ urls = _useState4[0],
11270
+ setUrls = _useState4[1];
11271
+
11254
11272
  var initPlayerIndex = layouts[layoutIndex || 0].span >= url.length ? url.length - 1 >= 0 ? url.length - 1 : 0 : layouts[layoutIndex || 0].span - 1;
11255
11273
 
11256
- var _useState3 = useState(initPlayerIndex),
11257
- _useState4 = _slicedToArray(_useState3, 2),
11258
- currentPlayerIndex = _useState4[0],
11259
- setCurrentPlayerIndex = _useState4[1];
11274
+ var _useState5 = useState(initPlayerIndex),
11275
+ _useState6 = _slicedToArray(_useState5, 2),
11276
+ currentPlayerIndex = _useState6[0],
11277
+ setCurrentPlayerIndex = _useState6[1];
11260
11278
 
11261
11279
  var domRef = useRef(null);
11262
11280
  var playerRef = useRef({});
11263
11281
 
11264
- var _useState5 = useState([]),
11265
- _useState6 = _slicedToArray(_useState5, 2),
11266
- players = _useState6[0],
11267
- setPlayers = _useState6[1];
11282
+ var _useState7 = useState([]),
11283
+ _useState8 = _slicedToArray(_useState7, 2),
11284
+ players = _useState8[0],
11285
+ setPlayers = _useState8[1];
11268
11286
 
11269
11287
  var renderDom = useMemo(function () {
11270
11288
  var arr = new Array(layouts[currentLayoutIndex].span).fill(0);
@@ -11275,16 +11293,16 @@ function VideoPlayer(_ref, ref) {
11275
11293
  onClickCapture: function onClickCapture() {
11276
11294
  setCurrentPlayerIndex(index);
11277
11295
  }
11278
- }, url[index] ? /*#__PURE__*/React.createElement(Xgplay$1, {
11296
+ }, urls[index] ? /*#__PURE__*/React.createElement(Xgplay$1, {
11279
11297
  setRef: function setRef(ref) {
11280
11298
  return setPlayers(function (players) {
11281
11299
  players[index] = ref;
11282
11300
  return players;
11283
11301
  });
11284
11302
  },
11285
- type: url[index],
11303
+ type: urls[index],
11286
11304
  config: _objectSpread2({
11287
- url: url[index],
11305
+ url: urls[index],
11288
11306
  fluid: true
11289
11307
  }, config)
11290
11308
  }) : /*#__PURE__*/React.createElement("div", {
@@ -11297,7 +11315,7 @@ function VideoPlayer(_ref, ref) {
11297
11315
  }
11298
11316
  }));
11299
11317
  });
11300
- }, [currentLayoutIndex, currentPlayerIndex, playerRef, url]);
11318
+ }, [currentLayoutIndex, currentPlayerIndex, playerRef, urls]);
11301
11319
 
11302
11320
  function exitFullscreen() {
11303
11321
  if (document.exitFullscreen) {
@@ -11324,10 +11342,13 @@ function VideoPlayer(_ref, ref) {
11324
11342
  var currentPlayer = players[currentPlayerIndex];
11325
11343
 
11326
11344
  if (currentPlayer) {
11327
- console.log(currentPlayer, 'currentPlayer');
11328
- currentPlayer.src = url; // debugger
11329
- // currentPlayer.start(url)
11345
+ currentPlayer.src = url;
11330
11346
  }
11347
+
11348
+ setUrls(function (urls) {
11349
+ urls[currentPlayerIndex] = url;
11350
+ return _toConsumableArray(urls);
11351
+ });
11331
11352
  };
11332
11353
 
11333
11354
  useImperativeHandle(ref, function () {
@@ -11335,14 +11356,16 @@ function VideoPlayer(_ref, ref) {
11335
11356
  players: players,
11336
11357
  currentLayoutIndex: currentLayoutIndex,
11337
11358
  currentPlayerIndex: currentPlayerIndex,
11359
+ urls: urls,
11338
11360
  loadCamera: loadCamera
11339
11361
  };
11340
11362
  });
11341
11363
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
11364
+ className: "videoContainer",
11342
11365
  style: style
11343
11366
  }, /*#__PURE__*/React.createElement("div", {
11344
11367
  ref: domRef,
11345
- className: "videoContainer",
11368
+ className: "videoContainer-grid",
11346
11369
  style: layouts[currentLayoutIndex].style
11347
11370
  }, renderDom), footer ? /*#__PURE__*/React.createElement("div", {
11348
11371
  className: "tools"
package/dist/index.js CHANGED
@@ -9771,8 +9771,9 @@ function DialogModel(props, ref) {
9771
9771
  React.useEffect(function () {
9772
9772
  var containerEl = containerRef.current;
9773
9773
  var containerElWidth = containerEl.offsetWidth;
9774
- console.log(containerElWidth);
9774
+ var containerElHeight = containerEl.offsetHeight;
9775
9775
  containerEl.style.left = "calc(50% - ".concat(containerElWidth / 2, "px)");
9776
+ containerEl.style.top = "calc(50% - ".concat(containerElHeight / 2, "px)");
9776
9777
  }, [modelShow]);
9777
9778
  React.useEffect(function () {
9778
9779
  var containerEl = containerRef.current;
@@ -9975,6 +9976,11 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
9975
9976
  document.onmousemove = null;
9976
9977
  };
9977
9978
  }
9979
+ }, {
9980
+ key: "componentWillUnmount",
9981
+ value: function componentWillUnmount() {
9982
+ Modal.destory();
9983
+ }
9978
9984
  }, {
9979
9985
  key: "render",
9980
9986
  value: function render() {
@@ -10008,18 +10014,19 @@ var Modal = /*#__PURE__*/function (_React$PureComponent) {
10008
10014
 
10009
10015
  Modal.show = void 0;
10010
10016
  Modal.hidden = void 0;
10017
+ Modal.destory = void 0;
10018
+ var Modals = {};
10011
10019
 
10012
10020
  Modal.show = function (config) {
10013
- var ModalContainer = null;
10014
- var modelSysbol = Symbol('$$__model__Container_hidden');
10015
- if (ModalContainer) return;
10021
+ var modelSysbol = Math.random().toString(36).slice(2, 36);
10022
+ if (Modals[modelSysbol]) return;
10016
10023
 
10017
10024
  var props = _objectSpread2(_objectSpread2({}, config), {}, {
10018
10025
  visible: true
10019
10026
  });
10020
10027
 
10021
- var container = ModalContainer = document.createElement('div');
10022
- var manager = container[modelSysbol] = {
10028
+ var container = document.createElement('div');
10029
+ var manager = container[modelSysbol] = Modals[modelSysbol] = {
10023
10030
  setShow: null,
10024
10031
  mounted: false,
10025
10032
  hidden: function hidden() {
@@ -10028,8 +10035,12 @@ Modal.show = function (config) {
10028
10035
  },
10029
10036
  destory: function destory() {
10030
10037
  ReactDOM__default['default'].unmountComponentAtNode(container);
10031
- document.body.removeChild(container);
10032
- ModalContainer = null;
10038
+
10039
+ if (document.body.contains(container)) {
10040
+ document.body.removeChild(container);
10041
+ }
10042
+
10043
+ delete Modals[modelSysbol];
10033
10044
  }
10034
10045
  };
10035
10046
 
@@ -10061,8 +10072,20 @@ Modal.show = function (config) {
10061
10072
  return manager;
10062
10073
  };
10063
10074
 
10064
- Modal.hidden = function () {// if (!ModalContainer) return;
10065
- // ModalContainer[modelSysbol] && ModalContainer[modelSysbol].hidden();
10075
+ Modal.hidden = function () {
10076
+ if (Object.keys(Modals).length == 0) return;
10077
+
10078
+ for (var key in Modals) {
10079
+ Modals[key].hidden();
10080
+ }
10081
+ };
10082
+
10083
+ Modal.destory = function () {
10084
+ if (Object.keys(Modals).length == 0) return;
10085
+
10086
+ for (var key in Modals) {
10087
+ Modals[key].destory();
10088
+ }
10066
10089
  };
10067
10090
 
10068
10091
  var controlShow$1 = function controlShow(f1, f2, value, timer) {
@@ -11150,15 +11173,9 @@ function Xgplay(_ref, fRef) {
11150
11173
  setRef = _ref.setRef;
11151
11174
  var ref = React.useRef(null);
11152
11175
  var playerRef = React.useRef(null);
11153
-
11154
- var _useState = React.useState(null),
11155
- _useState2 = _slicedToArray(_useState, 2),
11156
- player = _useState2[0],
11157
- setPlayer = _useState2[1];
11158
-
11159
11176
  React.useEffect(function () {
11160
11177
  if (ref.current) {
11161
- if (type.indexOf('hls') !== -1) {
11178
+ if ((type === null || type === void 0 ? void 0 : type.indexOf('hls')) !== -1) {
11162
11179
  playerRef.current = new HlsJsPlayer__default['default'](_objectSpread2({
11163
11180
  el: ref.current,
11164
11181
  width: '100%',
@@ -11167,7 +11184,7 @@ function Xgplay(_ref, fRef) {
11167
11184
  isLive: true,
11168
11185
  autoplayMuted: true
11169
11186
  }, config));
11170
- } else if (type.indexOf('flv') !== -1) {
11187
+ } else if ((type === null || type === void 0 ? void 0 : type.indexOf('flv')) !== -1) {
11171
11188
  playerRef.current = new FlvPlayer__default['default'](_objectSpread2({
11172
11189
  el: ref.current,
11173
11190
  width: '100%',
@@ -11176,7 +11193,7 @@ function Xgplay(_ref, fRef) {
11176
11193
  isLive: true,
11177
11194
  autoplayMuted: true
11178
11195
  }, config));
11179
- } else if (type.indexOf('mp4') !== -1) {
11196
+ } else if ((type === null || type === void 0 ? void 0 : type.indexOf('mp4')) !== -1) {
11180
11197
  playerRef.current = new Player__default['default'](_objectSpread2({
11181
11198
  el: ref.current,
11182
11199
  width: '100%',
@@ -11241,11 +11258,7 @@ var IconFont = icons.createFromIconfontCN({
11241
11258
  function VideoPlayer(_ref, ref) {
11242
11259
  var _ref$footer = _ref.footer,
11243
11260
  footer = _ref$footer === void 0 ? true : _ref$footer,
11244
- _ref$style = _ref.style,
11245
- style = _ref$style === void 0 ? {
11246
- width: 400,
11247
- height: 400
11248
- } : _ref$style,
11261
+ style = _ref.style,
11249
11262
  _ref$config = _ref.config,
11250
11263
  config = _ref$config === void 0 ? {} : _ref$config,
11251
11264
  layoutIndex = _ref.layoutIndex,
@@ -11289,20 +11302,25 @@ function VideoPlayer(_ref, ref) {
11289
11302
  currentLayoutIndex = _useState2[0],
11290
11303
  setCurrentLayoutIndex = _useState2[1];
11291
11304
 
11305
+ var _useState3 = React.useState(url),
11306
+ _useState4 = _slicedToArray(_useState3, 2),
11307
+ urls = _useState4[0],
11308
+ setUrls = _useState4[1];
11309
+
11292
11310
  var initPlayerIndex = layouts[layoutIndex || 0].span >= url.length ? url.length - 1 >= 0 ? url.length - 1 : 0 : layouts[layoutIndex || 0].span - 1;
11293
11311
 
11294
- var _useState3 = React.useState(initPlayerIndex),
11295
- _useState4 = _slicedToArray(_useState3, 2),
11296
- currentPlayerIndex = _useState4[0],
11297
- setCurrentPlayerIndex = _useState4[1];
11312
+ var _useState5 = React.useState(initPlayerIndex),
11313
+ _useState6 = _slicedToArray(_useState5, 2),
11314
+ currentPlayerIndex = _useState6[0],
11315
+ setCurrentPlayerIndex = _useState6[1];
11298
11316
 
11299
11317
  var domRef = React.useRef(null);
11300
11318
  var playerRef = React.useRef({});
11301
11319
 
11302
- var _useState5 = React.useState([]),
11303
- _useState6 = _slicedToArray(_useState5, 2),
11304
- players = _useState6[0],
11305
- setPlayers = _useState6[1];
11320
+ var _useState7 = React.useState([]),
11321
+ _useState8 = _slicedToArray(_useState7, 2),
11322
+ players = _useState8[0],
11323
+ setPlayers = _useState8[1];
11306
11324
 
11307
11325
  var renderDom = React.useMemo(function () {
11308
11326
  var arr = new Array(layouts[currentLayoutIndex].span).fill(0);
@@ -11313,16 +11331,16 @@ function VideoPlayer(_ref, ref) {
11313
11331
  onClickCapture: function onClickCapture() {
11314
11332
  setCurrentPlayerIndex(index);
11315
11333
  }
11316
- }, url[index] ? /*#__PURE__*/React__default['default'].createElement(Xgplay$1, {
11334
+ }, urls[index] ? /*#__PURE__*/React__default['default'].createElement(Xgplay$1, {
11317
11335
  setRef: function setRef(ref) {
11318
11336
  return setPlayers(function (players) {
11319
11337
  players[index] = ref;
11320
11338
  return players;
11321
11339
  });
11322
11340
  },
11323
- type: url[index],
11341
+ type: urls[index],
11324
11342
  config: _objectSpread2({
11325
- url: url[index],
11343
+ url: urls[index],
11326
11344
  fluid: true
11327
11345
  }, config)
11328
11346
  }) : /*#__PURE__*/React__default['default'].createElement("div", {
@@ -11335,7 +11353,7 @@ function VideoPlayer(_ref, ref) {
11335
11353
  }
11336
11354
  }));
11337
11355
  });
11338
- }, [currentLayoutIndex, currentPlayerIndex, playerRef, url]);
11356
+ }, [currentLayoutIndex, currentPlayerIndex, playerRef, urls]);
11339
11357
 
11340
11358
  function exitFullscreen() {
11341
11359
  if (document.exitFullscreen) {
@@ -11362,10 +11380,13 @@ function VideoPlayer(_ref, ref) {
11362
11380
  var currentPlayer = players[currentPlayerIndex];
11363
11381
 
11364
11382
  if (currentPlayer) {
11365
- console.log(currentPlayer, 'currentPlayer');
11366
- currentPlayer.src = url; // debugger
11367
- // currentPlayer.start(url)
11383
+ currentPlayer.src = url;
11368
11384
  }
11385
+
11386
+ setUrls(function (urls) {
11387
+ urls[currentPlayerIndex] = url;
11388
+ return _toConsumableArray(urls);
11389
+ });
11369
11390
  };
11370
11391
 
11371
11392
  React.useImperativeHandle(ref, function () {
@@ -11373,14 +11394,16 @@ function VideoPlayer(_ref, ref) {
11373
11394
  players: players,
11374
11395
  currentLayoutIndex: currentLayoutIndex,
11375
11396
  currentPlayerIndex: currentPlayerIndex,
11397
+ urls: urls,
11376
11398
  loadCamera: loadCamera
11377
11399
  };
11378
11400
  });
11379
11401
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
11402
+ className: "videoContainer",
11380
11403
  style: style
11381
11404
  }, /*#__PURE__*/React__default['default'].createElement("div", {
11382
11405
  ref: domRef,
11383
- className: "videoContainer",
11406
+ className: "videoContainer-grid",
11384
11407
  style: layouts[currentLayoutIndex].style
11385
11408
  }, renderDom), footer ? /*#__PURE__*/React__default['default'].createElement("div", {
11386
11409
  className: "tools"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "wargerm",
4
- "version": "0.4.19",
4
+ "version": "0.4.20",
5
5
  "scripts": {
6
6
  "dev": "dumi dev",
7
7
  "docs:build": "dumi build",