camstreamerlib 4.0.0-beta.30 → 4.0.0-beta.32
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/cjs/CamOverlayAPI.d.ts +4 -15
- package/cjs/CamOverlayAPI.js +10 -21
- package/cjs/CamScripterAPI.d.ts +3 -2
- package/cjs/CamScripterAPI.js +5 -5
- package/cjs/CamStreamerAPI.d.ts +3 -2
- package/cjs/CamStreamerAPI.js +4 -4
- package/cjs/CamSwitcherAPI.d.ts +3 -2
- package/cjs/CamSwitcherAPI.js +7 -7
- package/cjs/PlaneTrackerAPI.d.ts +3 -2
- package/cjs/PlaneTrackerAPI.js +15 -15
- package/cjs/VapixAPI.d.ts +3 -2
- package/cjs/VapixAPI.js +13 -13
- package/cjs/events/AxisCameraStationEvents.d.ts +4 -2
- package/cjs/events/AxisCameraStationEvents.js +4 -4
- package/cjs/index.d.ts +0 -1
- package/cjs/index.js +0 -1
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +708 -521
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +35 -82
- package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +7 -37
- package/cjs/types/CamOverlayAPI/accuweatherSchema.js +8 -11
- package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +63 -146
- package/cjs/types/CamOverlayAPI/customGraphicsSchema.js +6 -9
- package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +8 -35
- package/cjs/types/CamOverlayAPI/imagesSchema.js +5 -8
- package/cjs/types/CamOverlayAPI/index.d.ts +2 -0
- package/cjs/types/CamOverlayAPI/index.js +2 -0
- package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +9 -43
- package/cjs/types/CamOverlayAPI/infotickerSchema.js +7 -10
- package/cjs/types/CamOverlayAPI/pipSchema.d.ts +5 -46
- package/cjs/types/CamOverlayAPI/pipSchema.js +5 -8
- package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +7 -40
- package/cjs/types/CamOverlayAPI/ptzCompassSchema.js +5 -8
- package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +10 -38
- package/cjs/types/CamOverlayAPI/ptzSchema.js +5 -8
- package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +3 -24
- package/cjs/types/CamOverlayAPI/screenSharingSchema.js +4 -7
- package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +3 -24
- package/cjs/types/CamOverlayAPI/webCameraSharingSchema.js +4 -7
- package/cjs/types/CamOverlayAPI/widgetCommonTypes.d.ts +141 -0
- package/cjs/types/CamOverlayAPI/widgetCommonTypes.js +87 -0
- package/cjs/types/CamStreamerAPI.d.ts +4 -4
- package/cjs/types/CamSwitcherAPI.d.ts +0 -2
- package/cjs/types/VapixAPI.d.ts +0 -2
- package/esm/CamOverlayAPI.d.ts +4 -15
- package/esm/CamOverlayAPI.js +9 -20
- package/esm/CamScripterAPI.d.ts +3 -2
- package/esm/CamScripterAPI.js +5 -5
- package/esm/CamStreamerAPI.d.ts +3 -2
- package/esm/CamStreamerAPI.js +4 -4
- package/esm/CamSwitcherAPI.d.ts +3 -2
- package/esm/CamSwitcherAPI.js +7 -7
- package/esm/PlaneTrackerAPI.d.ts +3 -2
- package/esm/PlaneTrackerAPI.js +15 -15
- package/esm/VapixAPI.d.ts +3 -2
- package/esm/VapixAPI.js +13 -13
- package/esm/events/AxisCameraStationEvents.d.ts +4 -2
- package/esm/events/AxisCameraStationEvents.js +4 -4
- package/esm/index.d.ts +0 -1
- package/esm/index.js +0 -1
- package/esm/types/CamOverlayAPI/CamOverlayAPI.d.ts +708 -521
- package/esm/types/CamOverlayAPI/CamOverlayAPI.js +17 -73
- package/esm/types/CamOverlayAPI/accuweatherSchema.d.ts +7 -37
- package/esm/types/CamOverlayAPI/accuweatherSchema.js +1 -3
- package/esm/types/CamOverlayAPI/customGraphicsSchema.d.ts +63 -146
- package/esm/types/CamOverlayAPI/customGraphicsSchema.js +1 -3
- package/esm/types/CamOverlayAPI/imagesSchema.d.ts +8 -35
- package/esm/types/CamOverlayAPI/imagesSchema.js +1 -3
- package/esm/types/CamOverlayAPI/index.d.ts +2 -0
- package/esm/types/CamOverlayAPI/index.js +2 -0
- package/esm/types/CamOverlayAPI/infotickerSchema.d.ts +9 -43
- package/esm/types/CamOverlayAPI/infotickerSchema.js +1 -3
- package/esm/types/CamOverlayAPI/pipSchema.d.ts +5 -46
- package/esm/types/CamOverlayAPI/pipSchema.js +1 -3
- package/esm/types/CamOverlayAPI/ptzCompassSchema.d.ts +7 -40
- package/esm/types/CamOverlayAPI/ptzCompassSchema.js +1 -3
- package/esm/types/CamOverlayAPI/ptzSchema.d.ts +10 -38
- package/esm/types/CamOverlayAPI/ptzSchema.js +1 -3
- package/esm/types/CamOverlayAPI/screenSharingSchema.d.ts +3 -24
- package/esm/types/CamOverlayAPI/screenSharingSchema.js +1 -3
- package/esm/types/CamOverlayAPI/webCameraSharingSchema.d.ts +3 -24
- package/esm/types/CamOverlayAPI/webCameraSharingSchema.js +1 -3
- package/esm/types/CamOverlayAPI/widgetCommonTypes.d.ts +141 -0
- package/esm/types/CamOverlayAPI/widgetCommonTypes.js +84 -0
- package/esm/types/CamStreamerAPI.d.ts +4 -4
- package/esm/types/CamSwitcherAPI.d.ts +0 -2
- package/esm/types/VapixAPI.d.ts +0 -2
- package/package.json +2 -2
- package/cjs/node/WsEventClient.d.ts +0 -13
- package/cjs/node/WsEventClient.js +0 -22
- package/esm/node/WsEventClient.d.ts +0 -13
- package/esm/node/WsEventClient.js +0 -18
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TWidget } from './CamOverlayAPI';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
export declare const mappingZonesCountdownSettingsSchema: z.ZodObject<{
|
|
4
3
|
startDate: z.ZodNumber;
|
|
@@ -20,6 +19,7 @@ export declare const mappingZonesCountdownSettingsSchema: z.ZodObject<{
|
|
|
20
19
|
loopPeriod: z.ZodNumber;
|
|
21
20
|
waitingPeriod: z.ZodNumber;
|
|
22
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
loop: boolean;
|
|
23
23
|
startDate: number;
|
|
24
24
|
targetDate: number;
|
|
25
25
|
countdown: boolean;
|
|
@@ -35,10 +35,10 @@ export declare const mappingZonesCountdownSettingsSchema: z.ZodObject<{
|
|
|
35
35
|
suffixMinute: string;
|
|
36
36
|
suffixHour: string;
|
|
37
37
|
suffixDay: string;
|
|
38
|
-
loop: boolean;
|
|
39
38
|
loopPeriod: number;
|
|
40
39
|
waitingPeriod: number;
|
|
41
40
|
}, {
|
|
41
|
+
loop: boolean;
|
|
42
42
|
startDate: number;
|
|
43
43
|
targetDate: number;
|
|
44
44
|
countdown: boolean;
|
|
@@ -54,7 +54,6 @@ export declare const mappingZonesCountdownSettingsSchema: z.ZodObject<{
|
|
|
54
54
|
suffixMinute: string;
|
|
55
55
|
suffixHour: string;
|
|
56
56
|
suffixDay: string;
|
|
57
|
-
loop: boolean;
|
|
58
57
|
loopPeriod: number;
|
|
59
58
|
waitingPeriod: number;
|
|
60
59
|
}>;
|
|
@@ -88,15 +87,15 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
88
87
|
name: string;
|
|
89
88
|
pos_x: number;
|
|
90
89
|
pos_y: number;
|
|
90
|
+
textColor: string;
|
|
91
|
+
switchingTime: number;
|
|
92
|
+
font: string;
|
|
93
|
+
fontSize: number;
|
|
91
94
|
wrapText: boolean;
|
|
92
95
|
textLines: number;
|
|
93
96
|
textWidth: number;
|
|
94
97
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
95
98
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
96
|
-
textColor: string;
|
|
97
|
-
font: string;
|
|
98
|
-
fontSize: number;
|
|
99
|
-
switchingTime: number;
|
|
100
99
|
text?: {
|
|
101
100
|
source: string;
|
|
102
101
|
active: boolean;
|
|
@@ -106,15 +105,15 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
106
105
|
name: string;
|
|
107
106
|
pos_x: number;
|
|
108
107
|
pos_y: number;
|
|
108
|
+
textColor: string;
|
|
109
|
+
switchingTime: number;
|
|
110
|
+
font: string;
|
|
111
|
+
fontSize: number;
|
|
109
112
|
wrapText: boolean;
|
|
110
113
|
textLines: number;
|
|
111
114
|
textWidth: number;
|
|
112
115
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
113
116
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
114
|
-
textColor: string;
|
|
115
|
-
font: string;
|
|
116
|
-
fontSize: number;
|
|
117
|
-
switchingTime: number;
|
|
118
117
|
text?: {
|
|
119
118
|
source: string;
|
|
120
119
|
active: boolean;
|
|
@@ -164,6 +163,7 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
164
163
|
loopPeriod: z.ZodNumber;
|
|
165
164
|
waitingPeriod: z.ZodNumber;
|
|
166
165
|
}, "strip", z.ZodTypeAny, {
|
|
166
|
+
loop: boolean;
|
|
167
167
|
startDate: number;
|
|
168
168
|
targetDate: number;
|
|
169
169
|
countdown: boolean;
|
|
@@ -179,10 +179,10 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
179
179
|
suffixMinute: string;
|
|
180
180
|
suffixHour: string;
|
|
181
181
|
suffixDay: string;
|
|
182
|
-
loop: boolean;
|
|
183
182
|
loopPeriod: number;
|
|
184
183
|
waitingPeriod: number;
|
|
185
184
|
}, {
|
|
185
|
+
loop: boolean;
|
|
186
186
|
startDate: number;
|
|
187
187
|
targetDate: number;
|
|
188
188
|
countdown: boolean;
|
|
@@ -198,7 +198,6 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
198
198
|
suffixMinute: string;
|
|
199
199
|
suffixHour: string;
|
|
200
200
|
suffixDay: string;
|
|
201
|
-
loop: boolean;
|
|
202
201
|
loopPeriod: number;
|
|
203
202
|
waitingPeriod: number;
|
|
204
203
|
}>;
|
|
@@ -207,16 +206,17 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
207
206
|
name: string;
|
|
208
207
|
pos_x: number;
|
|
209
208
|
pos_y: number;
|
|
209
|
+
textColor: string;
|
|
210
|
+
switchingTime: number;
|
|
211
|
+
font: string;
|
|
212
|
+
fontSize: number;
|
|
210
213
|
wrapText: boolean;
|
|
211
214
|
textLines: number;
|
|
212
215
|
textWidth: number;
|
|
213
216
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
214
217
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
215
|
-
textColor: string;
|
|
216
|
-
font: string;
|
|
217
|
-
fontSize: number;
|
|
218
|
-
switchingTime: number;
|
|
219
218
|
settings: {
|
|
219
|
+
loop: boolean;
|
|
220
220
|
startDate: number;
|
|
221
221
|
targetDate: number;
|
|
222
222
|
countdown: boolean;
|
|
@@ -232,7 +232,6 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
232
232
|
suffixMinute: string;
|
|
233
233
|
suffixHour: string;
|
|
234
234
|
suffixDay: string;
|
|
235
|
-
loop: boolean;
|
|
236
235
|
loopPeriod: number;
|
|
237
236
|
waitingPeriod: number;
|
|
238
237
|
};
|
|
@@ -245,16 +244,17 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
245
244
|
name: string;
|
|
246
245
|
pos_x: number;
|
|
247
246
|
pos_y: number;
|
|
247
|
+
textColor: string;
|
|
248
|
+
switchingTime: number;
|
|
249
|
+
font: string;
|
|
250
|
+
fontSize: number;
|
|
248
251
|
wrapText: boolean;
|
|
249
252
|
textLines: number;
|
|
250
253
|
textWidth: number;
|
|
251
254
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
252
255
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
253
|
-
textColor: string;
|
|
254
|
-
font: string;
|
|
255
|
-
fontSize: number;
|
|
256
|
-
switchingTime: number;
|
|
257
256
|
settings: {
|
|
257
|
+
loop: boolean;
|
|
258
258
|
startDate: number;
|
|
259
259
|
targetDate: number;
|
|
260
260
|
countdown: boolean;
|
|
@@ -270,7 +270,6 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
270
270
|
suffixMinute: string;
|
|
271
271
|
suffixHour: string;
|
|
272
272
|
suffixDay: string;
|
|
273
|
-
loop: boolean;
|
|
274
273
|
loopPeriod: number;
|
|
275
274
|
waitingPeriod: number;
|
|
276
275
|
};
|
|
@@ -333,15 +332,15 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
333
332
|
name: string;
|
|
334
333
|
pos_x: number;
|
|
335
334
|
pos_y: number;
|
|
335
|
+
textColor: string;
|
|
336
|
+
switchingTime: number;
|
|
337
|
+
font: string;
|
|
338
|
+
fontSize: number;
|
|
336
339
|
wrapText: boolean;
|
|
337
340
|
textLines: number;
|
|
338
341
|
textWidth: number;
|
|
339
342
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
340
343
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
341
|
-
textColor: string;
|
|
342
|
-
font: string;
|
|
343
|
-
fontSize: number;
|
|
344
|
-
switchingTime: number;
|
|
345
344
|
text?: {
|
|
346
345
|
source: string;
|
|
347
346
|
active: boolean;
|
|
@@ -351,15 +350,15 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
351
350
|
name: string;
|
|
352
351
|
pos_x: number;
|
|
353
352
|
pos_y: number;
|
|
353
|
+
textColor: string;
|
|
354
|
+
switchingTime: number;
|
|
355
|
+
font: string;
|
|
356
|
+
fontSize: number;
|
|
354
357
|
wrapText: boolean;
|
|
355
358
|
textLines: number;
|
|
356
359
|
textWidth: number;
|
|
357
360
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
358
361
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
359
|
-
textColor: string;
|
|
360
|
-
font: string;
|
|
361
|
-
fontSize: number;
|
|
362
|
-
switchingTime: number;
|
|
363
362
|
text?: {
|
|
364
363
|
source: string;
|
|
365
364
|
active: boolean;
|
|
@@ -409,6 +408,7 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
409
408
|
loopPeriod: z.ZodNumber;
|
|
410
409
|
waitingPeriod: z.ZodNumber;
|
|
411
410
|
}, "strip", z.ZodTypeAny, {
|
|
411
|
+
loop: boolean;
|
|
412
412
|
startDate: number;
|
|
413
413
|
targetDate: number;
|
|
414
414
|
countdown: boolean;
|
|
@@ -424,10 +424,10 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
424
424
|
suffixMinute: string;
|
|
425
425
|
suffixHour: string;
|
|
426
426
|
suffixDay: string;
|
|
427
|
-
loop: boolean;
|
|
428
427
|
loopPeriod: number;
|
|
429
428
|
waitingPeriod: number;
|
|
430
429
|
}, {
|
|
430
|
+
loop: boolean;
|
|
431
431
|
startDate: number;
|
|
432
432
|
targetDate: number;
|
|
433
433
|
countdown: boolean;
|
|
@@ -443,7 +443,6 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
443
443
|
suffixMinute: string;
|
|
444
444
|
suffixHour: string;
|
|
445
445
|
suffixDay: string;
|
|
446
|
-
loop: boolean;
|
|
447
446
|
loopPeriod: number;
|
|
448
447
|
waitingPeriod: number;
|
|
449
448
|
}>;
|
|
@@ -452,16 +451,17 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
452
451
|
name: string;
|
|
453
452
|
pos_x: number;
|
|
454
453
|
pos_y: number;
|
|
454
|
+
textColor: string;
|
|
455
|
+
switchingTime: number;
|
|
456
|
+
font: string;
|
|
457
|
+
fontSize: number;
|
|
455
458
|
wrapText: boolean;
|
|
456
459
|
textLines: number;
|
|
457
460
|
textWidth: number;
|
|
458
461
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
459
462
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
460
|
-
textColor: string;
|
|
461
|
-
font: string;
|
|
462
|
-
fontSize: number;
|
|
463
|
-
switchingTime: number;
|
|
464
463
|
settings: {
|
|
464
|
+
loop: boolean;
|
|
465
465
|
startDate: number;
|
|
466
466
|
targetDate: number;
|
|
467
467
|
countdown: boolean;
|
|
@@ -477,7 +477,6 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
477
477
|
suffixMinute: string;
|
|
478
478
|
suffixHour: string;
|
|
479
479
|
suffixDay: string;
|
|
480
|
-
loop: boolean;
|
|
481
480
|
loopPeriod: number;
|
|
482
481
|
waitingPeriod: number;
|
|
483
482
|
};
|
|
@@ -490,16 +489,17 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
490
489
|
name: string;
|
|
491
490
|
pos_x: number;
|
|
492
491
|
pos_y: number;
|
|
492
|
+
textColor: string;
|
|
493
|
+
switchingTime: number;
|
|
494
|
+
font: string;
|
|
495
|
+
fontSize: number;
|
|
493
496
|
wrapText: boolean;
|
|
494
497
|
textLines: number;
|
|
495
498
|
textWidth: number;
|
|
496
499
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
497
500
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
498
|
-
textColor: string;
|
|
499
|
-
font: string;
|
|
500
|
-
fontSize: number;
|
|
501
|
-
switchingTime: number;
|
|
502
501
|
settings: {
|
|
502
|
+
loop: boolean;
|
|
503
503
|
startDate: number;
|
|
504
504
|
targetDate: number;
|
|
505
505
|
countdown: boolean;
|
|
@@ -515,7 +515,6 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
515
515
|
suffixMinute: string;
|
|
516
516
|
suffixHour: string;
|
|
517
517
|
suffixDay: string;
|
|
518
|
-
loop: boolean;
|
|
519
518
|
loopPeriod: number;
|
|
520
519
|
waitingPeriod: number;
|
|
521
520
|
};
|
|
@@ -530,15 +529,15 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
530
529
|
id: number;
|
|
531
530
|
width: number;
|
|
532
531
|
height: number;
|
|
533
|
-
pos_x: number;
|
|
534
|
-
pos_y: number;
|
|
535
532
|
automationType: "time" | "manual" | "schedule" | `input${number}`;
|
|
536
533
|
cameraList: number[];
|
|
537
534
|
customName: string;
|
|
535
|
+
pos_x: number;
|
|
536
|
+
pos_y: number;
|
|
538
537
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
538
|
+
image: string;
|
|
539
539
|
clockFormat: "12h" | "24h";
|
|
540
540
|
background: "custom" | "image";
|
|
541
|
-
image: string;
|
|
542
541
|
customAreaColor: string;
|
|
543
542
|
customAreaWidth: number;
|
|
544
543
|
customAreaHeight: number;
|
|
@@ -548,15 +547,15 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
548
547
|
name: string;
|
|
549
548
|
pos_x: number;
|
|
550
549
|
pos_y: number;
|
|
550
|
+
textColor: string;
|
|
551
|
+
switchingTime: number;
|
|
552
|
+
font: string;
|
|
553
|
+
fontSize: number;
|
|
551
554
|
wrapText: boolean;
|
|
552
555
|
textLines: number;
|
|
553
556
|
textWidth: number;
|
|
554
557
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
555
558
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
556
|
-
textColor: string;
|
|
557
|
-
font: string;
|
|
558
|
-
fontSize: number;
|
|
559
|
-
switchingTime: number;
|
|
560
559
|
text?: {
|
|
561
560
|
source: string;
|
|
562
561
|
active: boolean;
|
|
@@ -566,16 +565,17 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
566
565
|
name: string;
|
|
567
566
|
pos_x: number;
|
|
568
567
|
pos_y: number;
|
|
568
|
+
textColor: string;
|
|
569
|
+
switchingTime: number;
|
|
570
|
+
font: string;
|
|
571
|
+
fontSize: number;
|
|
569
572
|
wrapText: boolean;
|
|
570
573
|
textLines: number;
|
|
571
574
|
textWidth: number;
|
|
572
575
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
573
576
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
574
|
-
textColor: string;
|
|
575
|
-
font: string;
|
|
576
|
-
fontSize: number;
|
|
577
|
-
switchingTime: number;
|
|
578
577
|
settings: {
|
|
578
|
+
loop: boolean;
|
|
579
579
|
startDate: number;
|
|
580
580
|
targetDate: number;
|
|
581
581
|
countdown: boolean;
|
|
@@ -591,7 +591,6 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
591
591
|
suffixMinute: string;
|
|
592
592
|
suffixHour: string;
|
|
593
593
|
suffixDay: string;
|
|
594
|
-
loop: boolean;
|
|
595
594
|
loopPeriod: number;
|
|
596
595
|
waitingPeriod: number;
|
|
597
596
|
};
|
|
@@ -610,15 +609,15 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
610
609
|
id: number;
|
|
611
610
|
width: number;
|
|
612
611
|
height: number;
|
|
613
|
-
pos_x: number;
|
|
614
|
-
pos_y: number;
|
|
615
612
|
automationType: "time" | "manual" | "schedule" | `input${number}`;
|
|
616
613
|
cameraList: number[];
|
|
617
614
|
customName: string;
|
|
615
|
+
pos_x: number;
|
|
616
|
+
pos_y: number;
|
|
618
617
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
618
|
+
image: string;
|
|
619
619
|
clockFormat: "12h" | "24h";
|
|
620
620
|
background: "custom" | "image";
|
|
621
|
-
image: string;
|
|
622
621
|
customAreaColor: string;
|
|
623
622
|
customAreaWidth: number;
|
|
624
623
|
customAreaHeight: number;
|
|
@@ -628,97 +627,15 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
628
627
|
name: string;
|
|
629
628
|
pos_x: number;
|
|
630
629
|
pos_y: number;
|
|
631
|
-
wrapText: boolean;
|
|
632
|
-
textLines: number;
|
|
633
|
-
textWidth: number;
|
|
634
|
-
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
635
|
-
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
636
630
|
textColor: string;
|
|
637
|
-
font: string;
|
|
638
|
-
fontSize: number;
|
|
639
631
|
switchingTime: number;
|
|
640
|
-
text?: {
|
|
641
|
-
source: string;
|
|
642
|
-
active: boolean;
|
|
643
|
-
}[] | undefined;
|
|
644
|
-
} | {
|
|
645
|
-
type: "countdown";
|
|
646
|
-
name: string;
|
|
647
|
-
pos_x: number;
|
|
648
|
-
pos_y: number;
|
|
649
|
-
wrapText: boolean;
|
|
650
|
-
textLines: number;
|
|
651
|
-
textWidth: number;
|
|
652
|
-
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
653
|
-
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
654
|
-
textColor: string;
|
|
655
632
|
font: string;
|
|
656
633
|
fontSize: number;
|
|
657
|
-
switchingTime: number;
|
|
658
|
-
settings: {
|
|
659
|
-
startDate: number;
|
|
660
|
-
targetDate: number;
|
|
661
|
-
countdown: boolean;
|
|
662
|
-
countup: boolean;
|
|
663
|
-
displayDay: boolean;
|
|
664
|
-
displayHour: boolean;
|
|
665
|
-
displayMinute: boolean;
|
|
666
|
-
displaySeconds: boolean;
|
|
667
|
-
idleText: string;
|
|
668
|
-
hideZeros: boolean;
|
|
669
|
-
delimiter: "colon" | "letters";
|
|
670
|
-
suffixSeconds: string;
|
|
671
|
-
suffixMinute: string;
|
|
672
|
-
suffixHour: string;
|
|
673
|
-
suffixDay: string;
|
|
674
|
-
loop: boolean;
|
|
675
|
-
loopPeriod: number;
|
|
676
|
-
waitingPeriod: number;
|
|
677
|
-
};
|
|
678
|
-
text?: {
|
|
679
|
-
source: string;
|
|
680
|
-
active: boolean;
|
|
681
|
-
}[] | undefined;
|
|
682
|
-
})[];
|
|
683
|
-
camera?: number | undefined;
|
|
684
|
-
schedule?: string | undefined;
|
|
685
|
-
invertInput?: boolean | undefined;
|
|
686
|
-
zIndex?: number | undefined;
|
|
687
|
-
}>;
|
|
688
|
-
export type TCustomGraphics = z.infer<typeof customGraphicsSchema>;
|
|
689
|
-
export declare const isCustomGraphics: (widget: TWidget) => widget is {
|
|
690
|
-
name: "customGraphics";
|
|
691
|
-
enabled: 0 | 1;
|
|
692
|
-
id: number;
|
|
693
|
-
width: number;
|
|
694
|
-
height: number;
|
|
695
|
-
pos_x: number;
|
|
696
|
-
pos_y: number;
|
|
697
|
-
automationType: "time" | "manual" | "schedule" | `input${number}`;
|
|
698
|
-
cameraList: number[];
|
|
699
|
-
customName: string;
|
|
700
|
-
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
701
|
-
clockFormat: "12h" | "24h";
|
|
702
|
-
background: "custom" | "image";
|
|
703
|
-
image: string;
|
|
704
|
-
customAreaColor: string;
|
|
705
|
-
customAreaWidth: number;
|
|
706
|
-
customAreaHeight: number;
|
|
707
|
-
customAreaCorners: "sharp" | "rounded";
|
|
708
|
-
mappingZones: ({
|
|
709
|
-
type: "plain";
|
|
710
|
-
name: string;
|
|
711
|
-
pos_x: number;
|
|
712
|
-
pos_y: number;
|
|
713
634
|
wrapText: boolean;
|
|
714
635
|
textLines: number;
|
|
715
636
|
textWidth: number;
|
|
716
637
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
717
638
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
718
|
-
textColor: string;
|
|
719
|
-
font: string;
|
|
720
|
-
fontSize: number;
|
|
721
|
-
switchingTime: number;
|
|
722
639
|
text?: {
|
|
723
640
|
source: string;
|
|
724
641
|
active: boolean;
|
|
@@ -728,16 +645,17 @@ export declare const isCustomGraphics: (widget: TWidget) => widget is {
|
|
|
728
645
|
name: string;
|
|
729
646
|
pos_x: number;
|
|
730
647
|
pos_y: number;
|
|
648
|
+
textColor: string;
|
|
649
|
+
switchingTime: number;
|
|
650
|
+
font: string;
|
|
651
|
+
fontSize: number;
|
|
731
652
|
wrapText: boolean;
|
|
732
653
|
textLines: number;
|
|
733
654
|
textWidth: number;
|
|
734
655
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
735
656
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
736
|
-
textColor: string;
|
|
737
|
-
font: string;
|
|
738
|
-
fontSize: number;
|
|
739
|
-
switchingTime: number;
|
|
740
657
|
settings: {
|
|
658
|
+
loop: boolean;
|
|
741
659
|
startDate: number;
|
|
742
660
|
targetDate: number;
|
|
743
661
|
countdown: boolean;
|
|
@@ -753,7 +671,6 @@ export declare const isCustomGraphics: (widget: TWidget) => widget is {
|
|
|
753
671
|
suffixMinute: string;
|
|
754
672
|
suffixHour: string;
|
|
755
673
|
suffixDay: string;
|
|
756
|
-
loop: boolean;
|
|
757
674
|
loopPeriod: number;
|
|
758
675
|
waitingPeriod: number;
|
|
759
676
|
};
|
|
@@ -766,7 +683,7 @@ export declare const isCustomGraphics: (widget: TWidget) => widget is {
|
|
|
766
683
|
schedule?: string | undefined;
|
|
767
684
|
invertInput?: boolean | undefined;
|
|
768
685
|
zIndex?: number | undefined;
|
|
769
|
-
}
|
|
686
|
+
}>;
|
|
770
687
|
export declare const fieldSchema: z.ZodObject<{
|
|
771
688
|
field_name: z.ZodString;
|
|
772
689
|
text: z.ZodString;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { coordinateSystemSchema, fontSchema, widgetCommonSchema } from './CamOverlayAPI';
|
|
2
|
-
import { allowedWidgetNames } from '../../CamOverlayAPI';
|
|
3
1
|
import { z } from 'zod';
|
|
2
|
+
import { allowedWidgetNames, coordinateSystemSchema, fontSchema, widgetCommonSchema } from './widgetCommonTypes';
|
|
4
3
|
const mappingZonesCommonSchema = z.object({
|
|
5
4
|
name: z.string(),
|
|
6
5
|
pos_x: z.number(),
|
|
@@ -63,7 +62,6 @@ export const customGraphicsSchema = widgetCommonSchema.extend({
|
|
|
63
62
|
customAreaCorners: z.union([z.literal('sharp'), z.literal('rounded')]),
|
|
64
63
|
mappingZones: z.array(mappingZoneSchema),
|
|
65
64
|
});
|
|
66
|
-
export const isCustomGraphics = (widget) => widget.name === 'customGraphics';
|
|
67
65
|
export const fieldSchema = z.object({
|
|
68
66
|
field_name: z.string(),
|
|
69
67
|
text: z.string(),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TWidget } from './CamOverlayAPI';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
export declare const imagesSchema: z.ZodObject<{
|
|
4
3
|
id: z.ZodNumber;
|
|
@@ -28,21 +27,21 @@ export declare const imagesSchema: z.ZodObject<{
|
|
|
28
27
|
duration: number;
|
|
29
28
|
pos_x: number;
|
|
30
29
|
pos_y: number;
|
|
31
|
-
active: boolean;
|
|
32
30
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
33
|
-
|
|
31
|
+
active: boolean;
|
|
34
32
|
imgPath: string;
|
|
35
33
|
imgName: string;
|
|
34
|
+
scale: number;
|
|
36
35
|
fps?: number | undefined;
|
|
37
36
|
}, {
|
|
38
37
|
duration: number;
|
|
39
38
|
pos_x: number;
|
|
40
39
|
pos_y: number;
|
|
41
|
-
active: boolean;
|
|
42
40
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
43
|
-
|
|
41
|
+
active: boolean;
|
|
44
42
|
imgPath: string;
|
|
45
43
|
imgName: string;
|
|
44
|
+
scale: number;
|
|
46
45
|
fps?: number | undefined;
|
|
47
46
|
}>, "many">;
|
|
48
47
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -58,11 +57,11 @@ export declare const imagesSchema: z.ZodObject<{
|
|
|
58
57
|
duration: number;
|
|
59
58
|
pos_x: number;
|
|
60
59
|
pos_y: number;
|
|
61
|
-
active: boolean;
|
|
62
60
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
63
|
-
|
|
61
|
+
active: boolean;
|
|
64
62
|
imgPath: string;
|
|
65
63
|
imgName: string;
|
|
64
|
+
scale: number;
|
|
66
65
|
fps?: number | undefined;
|
|
67
66
|
}[];
|
|
68
67
|
camera?: number | undefined;
|
|
@@ -82,41 +81,15 @@ export declare const imagesSchema: z.ZodObject<{
|
|
|
82
81
|
duration: number;
|
|
83
82
|
pos_x: number;
|
|
84
83
|
pos_y: number;
|
|
85
|
-
active: boolean;
|
|
86
84
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
87
|
-
scale: number;
|
|
88
|
-
imgPath: string;
|
|
89
|
-
imgName: string;
|
|
90
|
-
fps?: number | undefined;
|
|
91
|
-
}[];
|
|
92
|
-
camera?: number | undefined;
|
|
93
|
-
schedule?: string | undefined;
|
|
94
|
-
invertInput?: boolean | undefined;
|
|
95
|
-
zIndex?: number | undefined;
|
|
96
|
-
}>;
|
|
97
|
-
export type TImages = z.infer<typeof imagesSchema>;
|
|
98
|
-
export declare const isImages: (widget: TWidget) => widget is {
|
|
99
|
-
name: "images";
|
|
100
|
-
enabled: 0 | 1;
|
|
101
|
-
id: number;
|
|
102
|
-
width: number;
|
|
103
|
-
height: number;
|
|
104
|
-
automationType: "time" | "manual" | "schedule" | `input${number}`;
|
|
105
|
-
cameraList: number[];
|
|
106
|
-
customName: string;
|
|
107
|
-
overlayList: {
|
|
108
|
-
duration: number;
|
|
109
|
-
pos_x: number;
|
|
110
|
-
pos_y: number;
|
|
111
85
|
active: boolean;
|
|
112
|
-
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
113
|
-
scale: number;
|
|
114
86
|
imgPath: string;
|
|
115
87
|
imgName: string;
|
|
88
|
+
scale: number;
|
|
116
89
|
fps?: number | undefined;
|
|
117
90
|
}[];
|
|
118
91
|
camera?: number | undefined;
|
|
119
92
|
schedule?: string | undefined;
|
|
120
93
|
invertInput?: boolean | undefined;
|
|
121
94
|
zIndex?: number | undefined;
|
|
122
|
-
}
|
|
95
|
+
}>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { overlaySchema, widgetCommonSchema } from './CamOverlayAPI';
|
|
2
|
-
import { allowedWidgetNames } from '../../CamOverlayAPI';
|
|
3
1
|
import { z } from 'zod';
|
|
2
|
+
import { allowedWidgetNames, overlaySchema, widgetCommonSchema } from './widgetCommonTypes';
|
|
4
3
|
export const imagesSchema = widgetCommonSchema.extend({
|
|
5
4
|
name: z.literal(allowedWidgetNames.images),
|
|
6
5
|
overlayList: z.array(overlaySchema),
|
|
7
6
|
});
|
|
8
|
-
export const isImages = (widget) => widget.name === 'images';
|