@3deye-toolkit/react-camera 0.0.1-alpha.20 → 0.0.1-alpha.23
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/react-camera.css +214 -135
- package/dist/react-camera.d.ts +138 -36
- package/dist/react-camera.js +2 -2
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +17 -17
package/dist/react-camera.css
CHANGED
|
@@ -24,79 +24,89 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.x-3deye-button {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
27
|
+
color: inherit;
|
|
28
|
+
background: none;
|
|
29
|
+
border: none;
|
|
30
|
+
position: relative;
|
|
31
|
+
padding: 0 8px;
|
|
32
|
+
height: 32px;
|
|
33
|
+
text-transform: uppercase;
|
|
34
|
+
-webkit-user-select: none;
|
|
35
|
+
-moz-user-select: none;
|
|
36
|
+
-ms-user-select: none;
|
|
37
|
+
user-select: none;
|
|
38
|
+
text-align: center;
|
|
39
|
+
align-items: flex-start;
|
|
40
|
+
border-radius: 4px;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
.x-3deye-button.fullwidth {
|
|
43
|
-
|
|
44
|
+
width: 100%;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
.x-3deye-button:focus,
|
|
47
|
-
|
|
47
|
+
.x-3deye-button:focus,
|
|
48
|
+
.x-3deye-button.x-3deye-button:not(:disabled):hover {
|
|
49
|
+
background-color: rgba(var(--surface-highlight-rgb), 0.1);
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
.x-3deye-button--icon {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
border-radius: 16px;
|
|
54
|
+
padding: 4px;
|
|
55
|
+
width: 32px;
|
|
56
|
+
height: 32px;
|
|
57
|
+
display: inline-flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: center;
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
.x-3deye-button:disabled {
|
|
60
|
-
|
|
63
|
+
opacity: 0.4;
|
|
61
64
|
}
|
|
62
65
|
|
|
63
|
-
.x-3deye-button.x-3deye-button--
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
min-width: 80px;
|
|
66
|
+
.x-3deye-button.x-3deye-button--ok,
|
|
67
|
+
.x-3deye-button.x-3deye-button--cancel {
|
|
68
|
+
color: white;
|
|
69
|
+
text-transform: none;
|
|
70
|
+
min-width: 80px;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
.x-3deye-button.x-3deye-button--
|
|
72
|
-
|
|
73
|
+
.x-3deye-button.x-3deye-button--ok.fullwidth,
|
|
74
|
+
.x-3deye-button.x-3deye-button--cancel.fullwidth {
|
|
75
|
+
width: calc(100% - 8px);
|
|
73
76
|
}
|
|
74
77
|
|
|
75
78
|
.x-3deye-button:not(:disabled) {
|
|
76
|
-
|
|
79
|
+
cursor: pointer;
|
|
77
80
|
}
|
|
78
81
|
|
|
79
|
-
.x-3deye-button.x-3deye-button--
|
|
80
|
-
|
|
82
|
+
.x-3deye-button.x-3deye-button--ok {
|
|
83
|
+
background-color: #27b9a1;
|
|
81
84
|
}
|
|
82
85
|
|
|
83
|
-
.x-3deye-button.x-3deye-button--
|
|
84
|
-
|
|
85
|
-
|
|
86
|
+
.x-3deye-button.x-3deye-button--ok:not(:disabled):hover {
|
|
87
|
+
background-color: #61beaf;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.x-3deye-button.x-3deye-button--ok:focus {
|
|
91
|
+
transition: box-shadow 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
92
|
+
box-shadow: 0 0 0 2px rgba(39, 185, 161, 0.33);
|
|
86
93
|
}
|
|
87
94
|
|
|
88
95
|
.x-3deye-button.x-3deye-button--cancel {
|
|
89
|
-
|
|
96
|
+
background-color: rgb(119, 87, 178);
|
|
90
97
|
}
|
|
91
98
|
|
|
92
|
-
.x-3deye-button.x-3deye-button--cancel:
|
|
93
|
-
|
|
94
|
-
box-shadow: 0 0 0 2px rgba(119, 87, 178, 0.33);
|
|
99
|
+
.x-3deye-button.x-3deye-button--cancel:not(:disabled):hover {
|
|
100
|
+
background-color: rgb(142, 122, 180);
|
|
95
101
|
}
|
|
96
102
|
|
|
103
|
+
.x-3deye-button.x-3deye-button--cancel:focus {
|
|
104
|
+
transition: box-shadow 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
105
|
+
box-shadow: 0 0 0 2px rgba(119, 87, 178, 0.33);
|
|
106
|
+
}
|
|
97
107
|
|
|
98
108
|
.x-3deye-button canvas {
|
|
99
|
-
|
|
109
|
+
color: rgb(var(--surface-highlight-rgb));
|
|
100
110
|
}
|
|
101
111
|
|
|
102
112
|
:root {
|
|
@@ -323,149 +333,154 @@
|
|
|
323
333
|
}
|
|
324
334
|
|
|
325
335
|
.x-3deye-player__overlay {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
336
|
+
position: absolute;
|
|
337
|
+
top: 0;
|
|
338
|
+
left: 0;
|
|
339
|
+
bottom: 0;
|
|
340
|
+
right: 0;
|
|
341
|
+
color: white;
|
|
332
342
|
}
|
|
333
343
|
|
|
334
344
|
.x-3deye-player__controls {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
345
|
+
position: absolute;
|
|
346
|
+
left: 0;
|
|
347
|
+
bottom: 0;
|
|
348
|
+
right: 0;
|
|
349
|
+
height: 54px;
|
|
350
|
+
opacity: 0;
|
|
351
|
+
display: flex;
|
|
352
|
+
pointer-events: none;
|
|
343
353
|
}
|
|
344
354
|
|
|
345
355
|
.x-3deye-player__controls > * {
|
|
346
|
-
|
|
356
|
+
pointer-events: auto;
|
|
347
357
|
}
|
|
348
358
|
|
|
349
|
-
.x-3deye-player__overlay:hover .x-3deye-player__controls,
|
|
350
|
-
|
|
359
|
+
.x-3deye-player__overlay:hover .x-3deye-player__controls,
|
|
360
|
+
.x-3deye-player__controls:focus-within,
|
|
361
|
+
.x-3deye-player--paused .x-3deye-player__controls {
|
|
362
|
+
opacity: 1;
|
|
351
363
|
}
|
|
352
364
|
|
|
353
365
|
.x-3deye-player__indicators {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
366
|
+
display: flex;
|
|
367
|
+
pointer-events: none;
|
|
368
|
+
align-items: center;
|
|
357
369
|
}
|
|
358
370
|
|
|
359
371
|
.x-3deye-player__indicators > * {
|
|
360
|
-
|
|
372
|
+
margin: 5px;
|
|
361
373
|
}
|
|
362
374
|
|
|
363
375
|
.x-3deye-player__overlay .x-3deye-button--live {
|
|
364
|
-
|
|
365
|
-
|
|
376
|
+
opacity: 0;
|
|
377
|
+
margin: 3px 5px;
|
|
366
378
|
}
|
|
367
379
|
|
|
368
|
-
.x-3deye-player__overlay:hover .x-3deye-button--live,
|
|
369
|
-
|
|
380
|
+
.x-3deye-player__overlay:hover .x-3deye-button--live,
|
|
381
|
+
.x-3deye-button--live:focus {
|
|
382
|
+
opacity: 1;
|
|
370
383
|
}
|
|
371
384
|
|
|
372
385
|
.x-3deye-player__overlay .x-3deye-player__camera-name {
|
|
373
|
-
|
|
386
|
+
pointer-events: auto;
|
|
374
387
|
}
|
|
375
388
|
|
|
376
389
|
.x-3deye-player__current-time {
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
390
|
+
line-height: 16px;
|
|
391
|
+
font-size: 11px;
|
|
392
|
+
text-shadow: 1px 1px 1px black;
|
|
393
|
+
background-color: rgba(0, 0, 0, 0.25);
|
|
394
|
+
padding: 2px 16px;
|
|
395
|
+
border-radius: 16px;
|
|
383
396
|
}
|
|
384
397
|
|
|
385
398
|
.x-3deye-player__current-time--synced {
|
|
386
|
-
|
|
399
|
+
background-color: rgb(147, 221, 30, 0.6);
|
|
387
400
|
}
|
|
388
401
|
|
|
389
402
|
.x-3deye-player__zoom-preview {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
403
|
+
display: flex;
|
|
404
|
+
flex-direction: column;
|
|
405
|
+
position: absolute;
|
|
406
|
+
right: 44px;
|
|
407
|
+
top: 50%;
|
|
408
|
+
transform: translateY(-50%);
|
|
409
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
410
|
+
border: 1px solid white;
|
|
398
411
|
}
|
|
399
412
|
|
|
400
413
|
.x-3deye-player__zoom-preview .zoom-value {
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
+
position: absolute;
|
|
415
|
+
top: 0;
|
|
416
|
+
left: 0;
|
|
417
|
+
right: 0;
|
|
418
|
+
bottom: 0;
|
|
419
|
+
display: flex;
|
|
420
|
+
justify-content: center;
|
|
421
|
+
align-items: center;
|
|
422
|
+
font-family: monospace;
|
|
423
|
+
font-size: 32px;
|
|
424
|
+
font-weight: bold;
|
|
425
|
+
color: white;
|
|
426
|
+
text-shadow: 0 1px 1px black;
|
|
414
427
|
}
|
|
415
428
|
|
|
416
429
|
.x-3deye-player__zoom-preview .x-3deye-player__zoomable {
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
430
|
+
position: relative;
|
|
431
|
+
flex: 1;
|
|
432
|
+
background-color: rgba(255, 255, 255, 0.5);
|
|
420
433
|
}
|
|
421
434
|
|
|
422
435
|
.x-3deye-player__zoom-slider {
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
436
|
+
position: absolute;
|
|
437
|
+
right: 10px;
|
|
438
|
+
top: 50%;
|
|
439
|
+
transform: translateY(-50%);
|
|
440
|
+
width: 34px;
|
|
441
|
+
padding: 10px 5px;
|
|
442
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
443
|
+
border: 2px solid rgba(255, 255, 255, 0.25);
|
|
444
|
+
border-radius: 4px;
|
|
445
|
+
-webkit-backdrop-filter: blur(2px);
|
|
446
|
+
backdrop-filter: blur(2px);
|
|
433
447
|
}
|
|
434
448
|
|
|
435
449
|
.x-3deye-player__zoom-slider .tick {
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
450
|
+
margin-left: 4px;
|
|
451
|
+
width: 12px;
|
|
452
|
+
height: 10px;
|
|
453
|
+
border-top: 1px solid rgba(255, 255, 255, 0.4);
|
|
440
454
|
}
|
|
441
455
|
|
|
442
456
|
.x-3deye-player__zoom-slider .tick:nth-child(5n + 1) {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
457
|
+
margin-left: 0px;
|
|
458
|
+
width: 20px;
|
|
459
|
+
border-top-width: 2px;
|
|
446
460
|
}
|
|
447
461
|
|
|
448
462
|
.x-3deye-player__zoom-slider .tick:last-child {
|
|
449
|
-
|
|
463
|
+
height: 0;
|
|
450
464
|
}
|
|
451
465
|
|
|
452
466
|
.x-3deye-player__zoom-slider .rotation-button {
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
467
|
+
padding: 0;
|
|
468
|
+
margin-left: -4px;
|
|
469
|
+
margin-bottom: -4px;
|
|
470
|
+
width: 28px;
|
|
471
|
+
text-align: right;
|
|
472
|
+
color: white;
|
|
458
473
|
}
|
|
459
474
|
|
|
460
475
|
.x-3deye-player__zoom-preview {
|
|
461
|
-
|
|
476
|
+
display: none;
|
|
462
477
|
}
|
|
463
478
|
|
|
464
479
|
.x-3deye-player__zoom-slider:hover + .x-3deye-player__zoom-preview,
|
|
465
480
|
.x-3deye-player__zoom-slider + .x-3deye-player__zoom-preview:focus,
|
|
466
481
|
.x-3deye-player__zoom-preview:hover,
|
|
467
482
|
.x-3deye-player__zoom-preview:focus {
|
|
468
|
-
|
|
483
|
+
display: block;
|
|
469
484
|
}
|
|
470
485
|
|
|
471
486
|
.x-3deye-player__controls {
|
|
@@ -478,11 +493,12 @@
|
|
|
478
493
|
flex: 1;
|
|
479
494
|
}
|
|
480
495
|
|
|
481
|
-
.x-3deye-player__control {
|
|
496
|
+
.x-3deye-button.x-3deye-player__control {
|
|
482
497
|
width: 38px;
|
|
483
498
|
height: 38px;
|
|
484
499
|
background-color: rgb(26,30,29, 0.8);
|
|
485
500
|
color: rgba(255, 255, 255, 0.6);
|
|
501
|
+
border-radius: 0;
|
|
486
502
|
display: flex;
|
|
487
503
|
justify-content: center;
|
|
488
504
|
align-items: center;
|
|
@@ -500,12 +516,12 @@
|
|
|
500
516
|
border-left: 1px solid rgb(26,30,29);
|
|
501
517
|
}
|
|
502
518
|
|
|
503
|
-
.x-3deye-player__control:hover {
|
|
519
|
+
.x-3deye-button.x-3deye-button:not(:disabled).x-3deye-player__control:hover {
|
|
504
520
|
background-color: #2a2e2d;
|
|
505
521
|
color: white;
|
|
506
522
|
}
|
|
507
523
|
|
|
508
|
-
.x-3deye-player__control:focus {
|
|
524
|
+
.x-3deye-button.x-3deye-button:not(:disabled).x-3deye-player__control:focus {
|
|
509
525
|
box-shadow: 0 0 0 0.2rem rgba(52,58,64,.5);
|
|
510
526
|
background-color: rgb(26,30,29, 0.8);
|
|
511
527
|
z-index: 1;
|
|
@@ -535,24 +551,24 @@
|
|
|
535
551
|
background-color: rgba(156, 51, 49, 0.8);
|
|
536
552
|
}
|
|
537
553
|
|
|
538
|
-
.x-3deye-player__control-close:hover {
|
|
554
|
+
.x-3deye-button.x-3deye-button:not(:disabled).x-3deye-player__control-close:hover {
|
|
539
555
|
background-color: rgba(156, 51, 49);
|
|
540
556
|
}
|
|
541
557
|
|
|
542
|
-
.x-3deye-player__control-close:focus {
|
|
558
|
+
.x-3deye-button.x-3deye-button:not(:disabled).x-3deye-player__control-close:focus {
|
|
543
559
|
background-color: rgba(156, 51, 49, 0.8);
|
|
544
560
|
box-shadow: 0 0 0 0.2rem rgba(101, 20, 46, 0.5);
|
|
545
561
|
}
|
|
546
562
|
|
|
547
|
-
.x-3deye-player--paused .x-3deye-player__control-playpause {
|
|
563
|
+
.x-3deye-player--paused .x-3deye-button.x-3deye-button:not(:disabled).x-3deye-player__control-playpause {
|
|
548
564
|
background-color: rgba(49, 106, 156, 0.8);
|
|
549
565
|
}
|
|
550
566
|
|
|
551
|
-
.x-3deye-player--paused .x-3deye-player__control-playpause:hover {
|
|
567
|
+
.x-3deye-player--paused .x-3deye-button.x-3deye-button:not(:disabled).x-3deye-player__control-playpause:hover {
|
|
552
568
|
background-color: rgba(49, 106, 156);
|
|
553
569
|
}
|
|
554
570
|
|
|
555
|
-
.x-3deye-player--paused .x-3deye-player__control-playpause:focus {
|
|
571
|
+
.x-3deye-player--paused .x-3deye-button.x-3deye-button:not(:disabled).x-3deye-player__control-playpause:focus {
|
|
556
572
|
background-color: rgba(49, 106, 156, 0.8);
|
|
557
573
|
box-shadow: 0 0 0 0.2rem rgba(20, 69, 101, 0.5);
|
|
558
574
|
}
|
|
@@ -667,13 +683,76 @@
|
|
|
667
683
|
}
|
|
668
684
|
|
|
669
685
|
.ptz-popover.x-3deye-popover-body {
|
|
670
|
-
border-radius:
|
|
671
|
-
background-color: rgba(15, 15, 20, 0.
|
|
686
|
+
border-radius: 6px;
|
|
687
|
+
background-color: rgba(15, 15, 20, 0.7);
|
|
672
688
|
box-shadow: none;
|
|
673
689
|
color: rgba(255, 255, 255, 0.8);
|
|
674
|
-
|
|
690
|
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
691
|
+
-webkit-backdrop-filter: blur(1px);
|
|
692
|
+
backdrop-filter: blur(1px);
|
|
675
693
|
}
|
|
676
694
|
|
|
677
695
|
.ptz-popover .tip {
|
|
678
696
|
fill: rgba(15, 15, 20, 0.5);
|
|
679
697
|
}
|
|
698
|
+
|
|
699
|
+
.segmented-control-wrapper {
|
|
700
|
+
display: inline-grid;
|
|
701
|
+
border-radius: 6px;
|
|
702
|
+
background: rgba(0, 0, 0, 0.065);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.segmented-control {
|
|
706
|
+
display: grid;
|
|
707
|
+
margin: 2px;
|
|
708
|
+
position: relative;
|
|
709
|
+
grid-auto-flow: column;
|
|
710
|
+
grid-auto-columns: 1fr;
|
|
711
|
+
--indicator-offset: 0%;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.segmented-control-indicator {
|
|
715
|
+
position: absolute;
|
|
716
|
+
height: 100%;
|
|
717
|
+
pointer-events: none;
|
|
718
|
+
transform: translateX(var(--indicator-offset));
|
|
719
|
+
transition: 0.2s ease-in-out;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
.segmented-control-indicator-inner {
|
|
723
|
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.16);
|
|
724
|
+
border-radius: 6px;
|
|
725
|
+
background: #fff;
|
|
726
|
+
transition: 0.2s;
|
|
727
|
+
transform: scale(1);
|
|
728
|
+
position: absolute;
|
|
729
|
+
inset: 0;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
.segmented-control-indicator.active .segmented-control-indicator-inner {
|
|
733
|
+
transform: scale(0.95);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
.segmented-control-button {
|
|
737
|
+
font-family: inherit;
|
|
738
|
+
min-height: 24px;
|
|
739
|
+
margin: 2px;
|
|
740
|
+
background: none;
|
|
741
|
+
border: none;
|
|
742
|
+
color: currentColor;
|
|
743
|
+
-webkit-user-select: none;
|
|
744
|
+
-moz-user-select: none;
|
|
745
|
+
-ms-user-select: none;
|
|
746
|
+
user-select: none;
|
|
747
|
+
text-overflow: ellipsis;
|
|
748
|
+
overflow: hidden;
|
|
749
|
+
z-index: 1;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.segmented-control-button:not(.current):hover {
|
|
753
|
+
opacity: 0.6;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
.segmented-control-button.current {
|
|
757
|
+
color: black;
|
|
758
|
+
}
|