@cloud-app-dev/vidc 4.0.3 → 4.0.5
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/.dumirc.ts +17 -4
- package/es/LabelPlayer/111.png +0 -0
- package/es/LabelPlayer/demo.d.ts +2 -0
- package/es/LabelPlayer/demo.js +123 -0
- package/es/LabelPlayer/index.d.ts +21 -0
- package/es/LabelPlayer/index.js +169 -0
- package/es/LabelPlayer/index.less +24 -0
- package/es/LoaderScript/utils.js +3 -3
- package/es/Map/BasicMap/index.js +17 -41
- package/es/Map/ClusterLayer/demo.d.ts +3 -0
- package/es/Map/ClusterLayer/demo.js +22 -0
- package/es/Map/Config/index.d.ts +1 -1
- package/es/Map/InfoWindow/index.d.ts +2 -1
- package/es/Map/InfoWindow/index.js +19 -32
- package/es/Map/SinglePoint/demo.d.ts +3 -0
- package/es/Map/SinglePoint/demo.js +16 -0
- package/es/Map/index.d.ts +1 -1
- package/es/Map/index.js +1 -1
- package/es/Map3D/demo.d.ts +3 -0
- package/es/Map3D/demo.js +13 -0
- package/es/Map3D/index.d.ts +4 -0
- package/es/Map3D/index.js +84 -0
- package/es/Map3D/index.less +4 -0
- package/es/Player/api/index.js +53 -18
- package/es/Player/single_player.js +20 -25
- package/es/Player/util.js +42 -15
- package/es/ScreenPlayer/Live.js +18 -14
- package/es/ScreenPlayer/PlayerWithExt.d.ts +1 -1
- package/es/ScreenPlayer/Record.js +127 -186
- package/es/ScreenPlayer/ScreenSelect.js +8 -4
- package/es/ScreenPlayer/index.less +160 -6
- package/es/ScreenPlayer/interface.d.ts +1 -0
- package/es/ScreenPlayer/utils.js +21 -11
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -0
- package/es/utils.d.ts +5 -5
- package/es/utils.js +32 -35
- package/package.json +3 -3
package/es/ScreenPlayer/Live.js
CHANGED
|
@@ -166,10 +166,18 @@ function LivePlayer(_ref) {
|
|
|
166
166
|
return /*#__PURE__*/_jsxs("div", {
|
|
167
167
|
className: "split-screen-player-wrapper split-screen-player-live-wrapper",
|
|
168
168
|
children: [/*#__PURE__*/_jsx("div", {
|
|
169
|
-
className: "player-layout",
|
|
169
|
+
className: "player-layout container".concat(screenType === null || screenType === void 0 ? void 0 : screenType.name),
|
|
170
170
|
ref: domRef,
|
|
171
171
|
children: screenList.map(function (item, index) {
|
|
172
172
|
var _item$url;
|
|
173
|
+
var className = state.selectIndex === index ? "item".concat(screenType === null || screenType === void 0 ? void 0 : screenType.name, "-").concat(index + 1, " player-current-index") : "item".concat(screenType === null || screenType === void 0 ? void 0 : screenType.name, "-").concat(index + 1);
|
|
174
|
+
var itemClick = function itemClick() {
|
|
175
|
+
return setState(function (old) {
|
|
176
|
+
return _objectSpread(_objectSpread({}, old), {}, {
|
|
177
|
+
selectIndex: index
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
};
|
|
173
181
|
return /*#__PURE__*/_createElement(LivePlayerWithExt, _objectSpread(_objectSpread({}, item), {}, {
|
|
174
182
|
mode: item.cid && state.modes[item.cid] ? state.modes[item.cid] : item.mode,
|
|
175
183
|
key: (_item$url = item.url) !== null && _item$url !== void 0 ? _item$url : "".concat(index),
|
|
@@ -177,19 +185,15 @@ function LivePlayer(_ref) {
|
|
|
177
185
|
if (item.cid) {
|
|
178
186
|
playerRef.current[item.cid] = player;
|
|
179
187
|
}
|
|
180
|
-
}
|
|
181
|
-
className
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
style: {
|
|
190
|
-
width: screenType === null || screenType === void 0 ? void 0 : screenType.width,
|
|
191
|
-
height: screenType === null || screenType === void 0 ? void 0 : screenType.height
|
|
192
|
-
},
|
|
188
|
+
}
|
|
189
|
+
// className={state.selectIndex === index ? 'player-current-index' : ''}
|
|
190
|
+
,
|
|
191
|
+
className: className
|
|
192
|
+
// onClick={index !== state.selectIndex ? () => setState((old) => ({ ...old, selectIndex: index })) : undefined}
|
|
193
|
+
,
|
|
194
|
+
onClick: itemClick
|
|
195
|
+
// style={{ width: screenType?.width, height: screenType?.height }}
|
|
196
|
+
,
|
|
193
197
|
pluginDownloadUrl: props.pluginDownloadUrl
|
|
194
198
|
}));
|
|
195
199
|
})
|
|
@@ -3,7 +3,7 @@ import type { ExportPlayerType, ISegmentType, ISinglePlayerProps } from '../Play
|
|
|
3
3
|
import type { PlayModeType } from '../PlayerExt';
|
|
4
4
|
interface ILivePlayerWithExtProps extends ISinglePlayerProps {
|
|
5
5
|
mode?: PlayModeType;
|
|
6
|
-
style
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
7
|
onClick?: () => void;
|
|
8
8
|
updatePlayer: (obj: React.MutableRefObject<ExportPlayerType>) => void;
|
|
9
9
|
pluginDownloadUrl?: string;
|