@ray-js/ipc-player-integration 0.0.50-beta.0 → 0.0.50-beta.2
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/README.md +11 -11
- package/lib/ctx/ctx.composition.js +5 -5
- package/lib/features/initPlayerWidgets/index.d.ts +0 -3
- package/lib/features/initPlayerWidgets/index.js +1 -2
- package/lib/hooks/useBattery/index.js +7 -1
- package/lib/iconfont/iconfont.css +127 -7
- package/lib/iconfont/iconfont.js +10 -10
- package/lib/iconfont/iconfont.json +233 -23
- package/lib/iconfont/iconfont.ttf +0 -0
- package/lib/iconfont/iconfont.woff +0 -0
- package/lib/iconfont/iconfont.woff2 +0 -0
- package/lib/interface.d.ts +1 -1
- package/lib/interface.js +1 -1
- package/lib/ports.output.d.ts +13 -0
- package/lib/ports.output.js +13 -0
- package/lib/ui/bottomLeftContent.js +141 -27
- package/lib/ui/bottomRightContent.d.ts +6 -1
- package/lib/ui/bottomRightContent.js +43 -5
- package/lib/ui/ui.js +58 -4
- package/lib/ui/ui.less +17 -0
- package/lib/widgets/battery/battery.js +11 -3
- package/lib/widgets/battery/battery.less +11 -0
- package/lib/widgets/battery/batteryFull.js +11 -3
- package/lib/widgets/zoomTurntable/constants.d.ts +44 -12
- package/lib/widgets/zoomTurntable/constants.js +61 -17
- package/lib/widgets/zoomTurntable/lensModel.test.js +1 -1
- package/lib/widgets/zoomTurntable/lensSkill.d.ts +1 -1
- package/lib/widgets/zoomTurntable/lensSkill.js +1 -1
- package/lib/widgets/zoomTurntable/turntable/index.js +4 -1
- package/lib/widgets/zoomTurntable/turntable/rjs/index.rjs +138 -9
- package/lib/widgets/zoomTurntable/turntable/rjs/index.tyml +1 -0
- package/lib/widgets/zoomTurntable/useLensZoom.d.ts +3 -4
- package/lib/widgets/zoomTurntable/useLensZoom.js +94 -12
- package/lib/widgets/zoomTurntable/zoomTurntableDock.js +76 -4
- package/lib/widgets/zoomTurntable/zoomTurntableEntry.d.ts +0 -3
- package/lib/widgets/zoomTurntable/zoomTurntableEntry.js +20 -5
- package/lib/widgets/zoomTurntable/zoomTurntableEntry.less +11 -1
- package/package.json +2 -2
|
@@ -5,6 +5,223 @@
|
|
|
5
5
|
"css_prefix_text": "icon-panel-",
|
|
6
6
|
"description": "IPC 小程序公版",
|
|
7
7
|
"glyphs": [
|
|
8
|
+
{
|
|
9
|
+
"icon_id": "48353135",
|
|
10
|
+
"name": "solar",
|
|
11
|
+
"font_class": "solar",
|
|
12
|
+
"unicode": "e6ee",
|
|
13
|
+
"unicode_decimal": 59118
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"icon_id": "48340557",
|
|
17
|
+
"name": "hunt-copy",
|
|
18
|
+
"font_class": "a-rongqi722",
|
|
19
|
+
"unicode": "e6ed",
|
|
20
|
+
"unicode_decimal": 59117
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"icon_id": "48337063",
|
|
24
|
+
"name": "favorite",
|
|
25
|
+
"font_class": "favorite",
|
|
26
|
+
"unicode": "e6e9",
|
|
27
|
+
"unicode_decimal": 59113
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"icon_id": "48337027",
|
|
31
|
+
"name": "album1",
|
|
32
|
+
"font_class": "album1",
|
|
33
|
+
"unicode": "e6e5",
|
|
34
|
+
"unicode_decimal": 59109
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"icon_id": "48337026",
|
|
38
|
+
"name": "grain",
|
|
39
|
+
"font_class": "grain",
|
|
40
|
+
"unicode": "e6e6",
|
|
41
|
+
"unicode_decimal": 59110
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"icon_id": "48337025",
|
|
45
|
+
"name": "pump",
|
|
46
|
+
"font_class": "pump",
|
|
47
|
+
"unicode": "e6e7",
|
|
48
|
+
"unicode_decimal": 59111
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"icon_id": "48337024",
|
|
52
|
+
"name": "favorites2",
|
|
53
|
+
"font_class": "favorites2",
|
|
54
|
+
"unicode": "e6e8",
|
|
55
|
+
"unicode_decimal": 59112
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"icon_id": "48336976",
|
|
59
|
+
"name": "bird-identification",
|
|
60
|
+
"font_class": "bird-identification",
|
|
61
|
+
"unicode": "e6e4",
|
|
62
|
+
"unicode_decimal": 59108
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"icon_id": "48273783",
|
|
66
|
+
"name": "pir-close",
|
|
67
|
+
"font_class": "pir-close",
|
|
68
|
+
"unicode": "e6e2",
|
|
69
|
+
"unicode_decimal": 59106
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"icon_id": "48273782",
|
|
73
|
+
"name": "pir-open",
|
|
74
|
+
"font_class": "pir-open",
|
|
75
|
+
"unicode": "e6e3",
|
|
76
|
+
"unicode_decimal": 59107
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"icon_id": "48265406",
|
|
80
|
+
"name": "Access-Stop",
|
|
81
|
+
"font_class": "Access-Stop",
|
|
82
|
+
"unicode": "e6e1",
|
|
83
|
+
"unicode_decimal": 59105
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"icon_id": "48224088",
|
|
87
|
+
"name": "uvb",
|
|
88
|
+
"font_class": "uvb1",
|
|
89
|
+
"unicode": "e6f3",
|
|
90
|
+
"unicode_decimal": 59123
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"icon_id": "48224087",
|
|
94
|
+
"name": "uva",
|
|
95
|
+
"font_class": "uva",
|
|
96
|
+
"unicode": "e6f4",
|
|
97
|
+
"unicode_decimal": 59124
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"icon_id": "48223463",
|
|
101
|
+
"name": "circle",
|
|
102
|
+
"font_class": "circle",
|
|
103
|
+
"unicode": "e6f2",
|
|
104
|
+
"unicode_decimal": 59122
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"icon_id": "48222946",
|
|
108
|
+
"name": "heat-light",
|
|
109
|
+
"font_class": "heat-light",
|
|
110
|
+
"unicode": "e6f1",
|
|
111
|
+
"unicode_decimal": 59121
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"icon_id": "48222902",
|
|
115
|
+
"name": "exhaust",
|
|
116
|
+
"font_class": "exhaust",
|
|
117
|
+
"unicode": "e6ea",
|
|
118
|
+
"unicode_decimal": 59114
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"icon_id": "48222907",
|
|
122
|
+
"name": "atomization",
|
|
123
|
+
"font_class": "atomization",
|
|
124
|
+
"unicode": "e6eb",
|
|
125
|
+
"unicode_decimal": 59115
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"icon_id": "48222905",
|
|
129
|
+
"name": "spray",
|
|
130
|
+
"font_class": "spray",
|
|
131
|
+
"unicode": "e6ec",
|
|
132
|
+
"unicode_decimal": 59116
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"icon_id": "48222901",
|
|
136
|
+
"name": "intake",
|
|
137
|
+
"font_class": "intake",
|
|
138
|
+
"unicode": "e6ef",
|
|
139
|
+
"unicode_decimal": 59119
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"icon_id": "48222900",
|
|
143
|
+
"name": "heat-pad",
|
|
144
|
+
"font_class": "heat-pad",
|
|
145
|
+
"unicode": "e6f0",
|
|
146
|
+
"unicode_decimal": 59120
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"icon_id": "47187414",
|
|
150
|
+
"name": "location",
|
|
151
|
+
"font_class": "location",
|
|
152
|
+
"unicode": "e6ab",
|
|
153
|
+
"unicode_decimal": 59051
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"icon_id": "48217485",
|
|
157
|
+
"name": "weight",
|
|
158
|
+
"font_class": "weight",
|
|
159
|
+
"unicode": "e6e0",
|
|
160
|
+
"unicode_decimal": 59104
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"icon_id": "48205300",
|
|
164
|
+
"name": "energy",
|
|
165
|
+
"font_class": "energy",
|
|
166
|
+
"unicode": "e6de",
|
|
167
|
+
"unicode_decimal": 59102
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"icon_id": "48205299",
|
|
171
|
+
"name": "air-setting",
|
|
172
|
+
"font_class": "air-setting",
|
|
173
|
+
"unicode": "e6df",
|
|
174
|
+
"unicode_decimal": 59103
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"icon_id": "48204534",
|
|
178
|
+
"name": "back-reverse",
|
|
179
|
+
"font_class": "a-zu1",
|
|
180
|
+
"unicode": "e6dd",
|
|
181
|
+
"unicode_decimal": 59101
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"icon_id": "48182894",
|
|
185
|
+
"name": "ai-snapshot2",
|
|
186
|
+
"font_class": "zhuapai2",
|
|
187
|
+
"unicode": "e6dc",
|
|
188
|
+
"unicode_decimal": 59100
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"icon_id": "48182873",
|
|
192
|
+
"name": "ai-hunt-snapshot",
|
|
193
|
+
"font_class": "zhuapai1",
|
|
194
|
+
"unicode": "e6db",
|
|
195
|
+
"unicode_decimal": 59099
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"icon_id": "48182502",
|
|
199
|
+
"name": "ai-snapshot",
|
|
200
|
+
"font_class": "zhuapai",
|
|
201
|
+
"unicode": "e6da",
|
|
202
|
+
"unicode_decimal": 59098
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"icon_id": "48182477",
|
|
206
|
+
"name": "ai-hunting",
|
|
207
|
+
"font_class": "xingxing_mian",
|
|
208
|
+
"unicode": "e617",
|
|
209
|
+
"unicode_decimal": 58903
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"icon_id": "48137703",
|
|
213
|
+
"name": "anti-flicker-off",
|
|
214
|
+
"font_class": "anti-flicker-off",
|
|
215
|
+
"unicode": "e6d9",
|
|
216
|
+
"unicode_decimal": 59097
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"icon_id": "48131960",
|
|
220
|
+
"name": "left-arrow-center",
|
|
221
|
+
"font_class": "left-arrow-center",
|
|
222
|
+
"unicode": "e6d8",
|
|
223
|
+
"unicode_decimal": 59096
|
|
224
|
+
},
|
|
8
225
|
{
|
|
9
226
|
"icon_id": "48122923",
|
|
10
227
|
"name": "v-alarm-light-siren",
|
|
@@ -196,7 +413,7 @@
|
|
|
196
413
|
},
|
|
197
414
|
{
|
|
198
415
|
"icon_id": "47305545",
|
|
199
|
-
"name": "
|
|
416
|
+
"name": "shebeiluxiang",
|
|
200
417
|
"font_class": "shebeiluxiang",
|
|
201
418
|
"unicode": "e6be",
|
|
202
419
|
"unicode_decimal": 59070
|
|
@@ -301,91 +518,84 @@
|
|
|
301
518
|
},
|
|
302
519
|
{
|
|
303
520
|
"icon_id": "47188073",
|
|
304
|
-
"name": "
|
|
521
|
+
"name": "suo",
|
|
305
522
|
"font_class": "suo",
|
|
306
523
|
"unicode": "e6b2",
|
|
307
524
|
"unicode_decimal": 59058
|
|
308
525
|
},
|
|
309
526
|
{
|
|
310
527
|
"icon_id": "47188035",
|
|
311
|
-
"name": "
|
|
528
|
+
"name": "jingdi",
|
|
312
529
|
"font_class": "jingdi",
|
|
313
530
|
"unicode": "e6b0",
|
|
314
531
|
"unicode_decimal": 59056
|
|
315
532
|
},
|
|
316
533
|
{
|
|
317
534
|
"icon_id": "47188034",
|
|
318
|
-
"name": "
|
|
535
|
+
"name": "deng",
|
|
319
536
|
"font_class": "deng",
|
|
320
537
|
"unicode": "e6b1",
|
|
321
538
|
"unicode_decimal": 59057
|
|
322
539
|
},
|
|
323
540
|
{
|
|
324
541
|
"icon_id": "47187999",
|
|
325
|
-
"name": "
|
|
542
|
+
"name": "xiazai",
|
|
326
543
|
"font_class": "xiazai",
|
|
327
544
|
"unicode": "e6ae",
|
|
328
545
|
"unicode_decimal": 59054
|
|
329
546
|
},
|
|
330
547
|
{
|
|
331
548
|
"icon_id": "47187998",
|
|
332
|
-
"name": "
|
|
549
|
+
"name": "fenxiang",
|
|
333
550
|
"font_class": "fenxiang",
|
|
334
551
|
"unicode": "e6af",
|
|
335
552
|
"unicode_decimal": 59055
|
|
336
553
|
},
|
|
337
554
|
{
|
|
338
555
|
"icon_id": "47187589",
|
|
339
|
-
"name": "
|
|
556
|
+
"name": "a-zu1032",
|
|
340
557
|
"font_class": "a-zu1032",
|
|
341
558
|
"unicode": "e6ad",
|
|
342
559
|
"unicode_decimal": 59053
|
|
343
560
|
},
|
|
344
561
|
{
|
|
345
562
|
"icon_id": "47187573",
|
|
346
|
-
"name": "
|
|
563
|
+
"name": "jilu",
|
|
347
564
|
"font_class": "jilu",
|
|
348
565
|
"unicode": "e6ac",
|
|
349
566
|
"unicode_decimal": 59052
|
|
350
567
|
},
|
|
351
|
-
{
|
|
352
|
-
"icon_id": "47187414",
|
|
353
|
-
"name": "定位(小)",
|
|
354
|
-
"font_class": "a-dingweixiao",
|
|
355
|
-
"unicode": "e6ab",
|
|
356
|
-
"unicode_decimal": 59051
|
|
357
|
-
},
|
|
358
568
|
{
|
|
359
569
|
"icon_id": "47187136",
|
|
360
|
-
"name": "
|
|
570
|
+
"name": "zujifenxiang",
|
|
361
571
|
"font_class": "zujifenxiang",
|
|
362
572
|
"unicode": "e6aa",
|
|
363
573
|
"unicode_decimal": 59050
|
|
364
574
|
},
|
|
365
575
|
{
|
|
366
576
|
"icon_id": "47186554",
|
|
367
|
-
"name": "
|
|
577
|
+
"name": "zuji",
|
|
368
578
|
"font_class": "zuji",
|
|
369
579
|
"unicode": "e6a7",
|
|
370
580
|
"unicode_decimal": 59047
|
|
371
581
|
},
|
|
372
582
|
{
|
|
373
583
|
"icon_id": "47186548",
|
|
374
|
-
"name": "
|
|
584
|
+
"name": "chongwudangan",
|
|
375
585
|
"font_class": "chongwudangan",
|
|
376
586
|
"unicode": "e6a8",
|
|
377
587
|
"unicode_decimal": 59048
|
|
378
588
|
},
|
|
379
589
|
{
|
|
380
590
|
"icon_id": "47186450",
|
|
381
|
-
"name": "
|
|
591
|
+
"name": "liuchong",
|
|
382
592
|
"font_class": "liuchong",
|
|
383
593
|
"unicode": "e6a6",
|
|
384
594
|
"unicode_decimal": 59046
|
|
385
595
|
},
|
|
386
596
|
{
|
|
387
597
|
"icon_id": "47186340",
|
|
388
|
-
"name": "
|
|
598
|
+
"name": "weilan",
|
|
389
599
|
"font_class": "weilan",
|
|
390
600
|
"unicode": "e6a9",
|
|
391
601
|
"unicode_decimal": 59049
|
|
@@ -868,21 +1078,21 @@
|
|
|
868
1078
|
},
|
|
869
1079
|
{
|
|
870
1080
|
"icon_id": "45596361",
|
|
871
|
-
"name": "
|
|
1081
|
+
"name": "duoxuan",
|
|
872
1082
|
"font_class": "duoxuan",
|
|
873
1083
|
"unicode": "e679",
|
|
874
1084
|
"unicode_decimal": 59001
|
|
875
1085
|
},
|
|
876
1086
|
{
|
|
877
1087
|
"icon_id": "45596362",
|
|
878
|
-
"name": "
|
|
1088
|
+
"name": "shanchu",
|
|
879
1089
|
"font_class": "shanchu",
|
|
880
1090
|
"unicode": "e678",
|
|
881
1091
|
"unicode_decimal": 59000
|
|
882
1092
|
},
|
|
883
1093
|
{
|
|
884
1094
|
"icon_id": "45596327",
|
|
885
|
-
"name": "
|
|
1095
|
+
"name": "shaixuan",
|
|
886
1096
|
"font_class": "shaixuan",
|
|
887
1097
|
"unicode": "e677",
|
|
888
1098
|
"unicode_decimal": 58999
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/interface.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { PrimitiveAtom } from 'jotai';
|
|
|
3
3
|
import type { Toast, IntercomMode } from './ports.output';
|
|
4
4
|
import { useMultiCameraCtx } from './ctx/multiCameraCtx';
|
|
5
5
|
import type { ZoomSkill } from './widgets/zoomTurntable/lensSkill';
|
|
6
|
-
export { IntercomMode } from './ports.output';
|
|
6
|
+
export { IntercomMode, PowerMode } from './ports.output';
|
|
7
7
|
export type { ZoomSkill, Lens } from './widgets/zoomTurntable/lensSkill';
|
|
8
8
|
type WithInitialValue<Value> = {
|
|
9
9
|
init: Value;
|
package/lib/interface.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
2
|
|
|
3
|
-
export { IntercomMode } from './ports.output';
|
|
3
|
+
export { IntercomMode, PowerMode } from './ports.output';
|
|
4
4
|
export let PlayerStreamStatus = /*#__PURE__*/function (PlayerStreamStatus) {
|
|
5
5
|
PlayerStreamStatus[PlayerStreamStatus["UnknownException"] = -1000] = "UnknownException";
|
|
6
6
|
// 未知异常
|
package/lib/ports.output.d.ts
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
export { IntercomMode } from '@ray-js/ray-ipc-utils/lib/interface';
|
|
2
|
+
/**
|
|
3
|
+
* 供电方式,对应 dp code: wireless_powermode
|
|
4
|
+
*/
|
|
5
|
+
export declare enum PowerMode {
|
|
6
|
+
/** 电池供电 */
|
|
7
|
+
Battery = "0",
|
|
8
|
+
/** 有线充电中 */
|
|
9
|
+
Charging = "1",
|
|
10
|
+
/** 太阳能充电中 */
|
|
11
|
+
Solar = "2"
|
|
12
|
+
}
|
|
2
13
|
export type UseBattery = (devId: string) => {
|
|
3
14
|
batteryValue: number;
|
|
4
15
|
batteryCharging: boolean;
|
|
16
|
+
powerMode?: PowerMode;
|
|
17
|
+
solarCharging?: boolean;
|
|
5
18
|
};
|
|
6
19
|
export type UsePtz = (devId: string) => boolean;
|
|
7
20
|
export type UseTemperature = (devId: string) => number;
|
package/lib/ports.output.js
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
export { IntercomMode } from '@ray-js/ray-ipc-utils/lib/interface';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* 供电方式,对应 dp code: wireless_powermode
|
|
5
|
+
*/
|
|
6
|
+
export let PowerMode = /*#__PURE__*/function (PowerMode) {
|
|
7
|
+
/** 电池供电 */
|
|
8
|
+
PowerMode["Battery"] = "0";
|
|
9
|
+
/** 有线充电中 */
|
|
10
|
+
PowerMode["Charging"] = "1";
|
|
11
|
+
/** 太阳能充电中 */
|
|
12
|
+
PowerMode["Solar"] = "2";
|
|
13
|
+
return PowerMode;
|
|
14
|
+
}({});
|
|
15
|
+
|
|
3
16
|
// plugin 获取电池电量
|
|
4
17
|
|
|
5
18
|
// plugin 获取是否支持Ptz
|