@3deye-toolkit/react-camera 0.0.1-alpha.23 → 0.0.1-alpha.26
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 +274 -117
- package/dist/react-camera.js +2 -2
- package/package.json +8 -7
- package/dist/react-camera.d.ts +0 -963
package/dist/react-camera.css
CHANGED
|
@@ -5,6 +5,11 @@
|
|
|
5
5
|
.x-3deye-player {
|
|
6
6
|
position: relative;
|
|
7
7
|
background-color: black;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.x-3deye-player__zoomable-wrapper {
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
8
13
|
overflow: hidden;
|
|
9
14
|
}
|
|
10
15
|
|
|
@@ -35,12 +40,21 @@
|
|
|
35
40
|
-moz-user-select: none;
|
|
36
41
|
-ms-user-select: none;
|
|
37
42
|
user-select: none;
|
|
38
|
-
|
|
39
|
-
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
align-items: center;
|
|
40
46
|
border-radius: 4px;
|
|
47
|
+
letter-spacing: .0107142857em;
|
|
48
|
+
font-weight: 500;
|
|
41
49
|
}
|
|
42
50
|
|
|
43
|
-
.x-3deye-button
|
|
51
|
+
.x-3deye-button sup {
|
|
52
|
+
position: relative;
|
|
53
|
+
top: -0.5em;
|
|
54
|
+
left: 0.25em;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.x-3deye-button.x-3deye-button--fullwidth {
|
|
44
58
|
width: 100%;
|
|
45
59
|
}
|
|
46
60
|
|
|
@@ -63,50 +77,49 @@
|
|
|
63
77
|
opacity: 0.4;
|
|
64
78
|
}
|
|
65
79
|
|
|
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;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.x-3deye-button.x-3deye-button--ok.fullwidth,
|
|
74
|
-
.x-3deye-button.x-3deye-button--cancel.fullwidth {
|
|
75
|
-
width: calc(100% - 8px);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
80
|
.x-3deye-button:not(:disabled) {
|
|
79
81
|
cursor: pointer;
|
|
80
82
|
}
|
|
81
83
|
|
|
82
|
-
.x-3deye-button.x-3deye-button--
|
|
83
|
-
|
|
84
|
+
.x-3deye-button.x-3deye-button--filled,
|
|
85
|
+
.x-3deye-button.x-3deye-button--text {
|
|
86
|
+
min-width: 80px;
|
|
87
|
+
text-transform: capitalize;
|
|
88
|
+
font-family: 'Roboto', sans-serif;
|
|
89
|
+
font-size: 0.875rem;
|
|
90
|
+
font-weight: 500;
|
|
91
|
+
border-radius: 0.25rem;
|
|
92
|
+
padding: 0 1rem;
|
|
84
93
|
}
|
|
85
94
|
|
|
86
|
-
.x-3deye-button.x-3deye-button--
|
|
95
|
+
.x-3deye-button.x-3deye-button--filled {
|
|
96
|
+
background-color: #27b9a1;
|
|
97
|
+
color: white;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.x-3deye-button.x-3deye-button--filled:not(:disabled):hover {
|
|
87
101
|
background-color: #61beaf;
|
|
88
102
|
}
|
|
89
103
|
|
|
90
|
-
.x-3deye-button.x-3deye-button--
|
|
104
|
+
.x-3deye-button.x-3deye-button--filled:focus {
|
|
91
105
|
transition: box-shadow 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
92
106
|
box-shadow: 0 0 0 2px rgba(39, 185, 161, 0.33);
|
|
93
107
|
}
|
|
94
108
|
|
|
95
|
-
.x-3deye-button
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.x-3deye-button.x-3deye-button--cancel:not(:disabled):hover {
|
|
100
|
-
background-color: rgb(142, 122, 180);
|
|
109
|
+
.x-3deye-button canvas {
|
|
110
|
+
color: rgb(var(--surface-highlight-rgb));
|
|
101
111
|
}
|
|
102
112
|
|
|
103
|
-
.x-3deye-button
|
|
104
|
-
|
|
105
|
-
|
|
113
|
+
.x-3deye-button--overlay {
|
|
114
|
+
pointer-events: auto;
|
|
115
|
+
background: rgba(0, 0, 0, 0.5);
|
|
116
|
+
border: 2px solid rgba(255, 255, 255, 0.25);
|
|
117
|
+
color: white;
|
|
106
118
|
}
|
|
107
119
|
|
|
108
|
-
.x-3deye-button
|
|
109
|
-
|
|
120
|
+
.x-3deye-button.x-3deye-button--overlay:focus, .x-3deye-button.x-3deye-button--overlay:not(:disabled):hover {
|
|
121
|
+
background: rgba(0, 0, 0, 0.5);
|
|
122
|
+
border: 2px solid rgba(255, 255, 255, 0.5);
|
|
110
123
|
}
|
|
111
124
|
|
|
112
125
|
:root {
|
|
@@ -508,6 +521,10 @@
|
|
|
508
521
|
padding: 0;
|
|
509
522
|
}
|
|
510
523
|
|
|
524
|
+
.x-3deye-player__controls--compact .x-3deye-player__control .icon {
|
|
525
|
+
width: 20px;
|
|
526
|
+
}
|
|
527
|
+
|
|
511
528
|
.x-3deye-player__control--reflowed {
|
|
512
529
|
width: 20px;
|
|
513
530
|
}
|
|
@@ -547,7 +564,7 @@
|
|
|
547
564
|
border-bottom-right-radius: 4px;
|
|
548
565
|
}
|
|
549
566
|
|
|
550
|
-
.x-3deye-player__control-close {
|
|
567
|
+
.x-3deye-button.x-3deye-player__control-close {
|
|
551
568
|
background-color: rgba(156, 51, 49, 0.8);
|
|
552
569
|
}
|
|
553
570
|
|
|
@@ -573,133 +590,184 @@
|
|
|
573
590
|
box-shadow: 0 0 0 0.2rem rgba(20, 69, 101, 0.5);
|
|
574
591
|
}
|
|
575
592
|
|
|
576
|
-
.volume-control:hover .volume-range,
|
|
577
|
-
|
|
578
|
-
|
|
593
|
+
.volume-control:hover .volume-range,
|
|
594
|
+
.volume-control:focus .volume-range,
|
|
595
|
+
.volume-control:focus-within .volume-range {
|
|
596
|
+
visibility: visible;
|
|
597
|
+
transition: visibility 0s;
|
|
579
598
|
}
|
|
580
599
|
|
|
581
600
|
.volume-range {
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
601
|
+
--surface-inverse: rgba(255, 255, 255, 0.15);
|
|
602
|
+
--surface-highlight-rgb: 255, 255, 255;
|
|
603
|
+
--primary-color: #0067ac;
|
|
604
|
+
--on-primary-color: white;
|
|
605
|
+
background-color: rgba(26, 30, 29, 0.5);
|
|
606
|
+
padding: 16px 4px;
|
|
607
|
+
border-radius: 4px;
|
|
608
|
+
position: absolute;
|
|
609
|
+
display: flex;
|
|
610
|
+
justify-content: center;
|
|
611
|
+
width: 32px;
|
|
612
|
+
height: 140px;
|
|
613
|
+
bottom: 100%;
|
|
614
|
+
left: 0;
|
|
615
|
+
visibility: hidden;
|
|
616
|
+
transition: visibility 0s 0.5s;
|
|
617
|
+
transform-origin: 16px 12px;
|
|
593
618
|
}
|
|
594
619
|
|
|
620
|
+
.x-3deye-slider {
|
|
621
|
+
position: relative;
|
|
622
|
+
display: flex;
|
|
623
|
+
align-items: center;
|
|
624
|
+
}
|
|
595
625
|
|
|
596
|
-
.
|
|
597
|
-
|
|
598
|
-
background-color: rgba(0, 191, 255, 0.5);
|
|
626
|
+
.x-3deye-slider:focus-visible {
|
|
627
|
+
outline: none;
|
|
599
628
|
}
|
|
600
629
|
|
|
601
|
-
.
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
color: #026282;
|
|
630
|
+
.x-3deye-slider.horizontal {
|
|
631
|
+
width: 100%;
|
|
632
|
+
height: 20px;
|
|
605
633
|
}
|
|
606
634
|
|
|
607
|
-
.
|
|
608
|
-
|
|
635
|
+
.x-3deye-slider.vertical {
|
|
636
|
+
width: 20px;
|
|
637
|
+
height: 100%;
|
|
638
|
+
flex-direction: column;
|
|
609
639
|
}
|
|
610
640
|
|
|
611
|
-
.
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
margin: 20px 20px 0px 10px;
|
|
641
|
+
.x-3deye-slider__track {
|
|
642
|
+
background: var(--surface-inverse, gainsboro);
|
|
643
|
+
position: relative;
|
|
644
|
+
flex: 1;
|
|
616
645
|
}
|
|
617
646
|
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
}
|
|
647
|
+
.x-3deye-slider__bar {
|
|
648
|
+
background-color: var(--primary-color, #0067ac);
|
|
649
|
+
position: absolute;
|
|
650
|
+
}
|
|
623
651
|
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
height: 30px;
|
|
627
|
-
}
|
|
652
|
+
.x-3deye-slider.disabled .x-3deye-slider__bar {
|
|
653
|
+
background-color: rgb(165, 165, 165);
|
|
628
654
|
}
|
|
629
655
|
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
656
|
+
.x-3deye-slider.horizontal .x-3deye-slider__bar {
|
|
657
|
+
top: 0;
|
|
658
|
+
bottom: 0;
|
|
659
|
+
left: 0;
|
|
660
|
+
}
|
|
635
661
|
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
662
|
+
.x-3deye-slider.vertical .x-3deye-slider__bar {
|
|
663
|
+
bottom: 0;
|
|
664
|
+
left: 0;
|
|
665
|
+
right: 0;
|
|
640
666
|
}
|
|
641
667
|
|
|
642
|
-
.
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
width: 50px;
|
|
646
|
-
height: 30px;
|
|
647
|
-
position: relative;
|
|
648
|
-
will-change: width, height;
|
|
668
|
+
.x-3deye-slider.horizontal .x-3deye-slider__track {
|
|
669
|
+
height: 3px;
|
|
670
|
+
}
|
|
649
671
|
|
|
650
|
-
|
|
672
|
+
.x-3deye-slider.vertical .x-3deye-slider__track {
|
|
673
|
+
width: 3px;
|
|
674
|
+
}
|
|
651
675
|
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
676
|
+
.x-3deye-slider__thumb {
|
|
677
|
+
will-change: transform box-shadow;
|
|
678
|
+
background: white;
|
|
679
|
+
box-shadow: 0 0 0 6px rgba(0, 100, 255, 0), 0 0 0 1px rgba(0, 0, 0, 0.1) inset, 1px 1px 2px 0 rgba(0, 0, 0, 0.25);
|
|
680
|
+
width: 20px;
|
|
681
|
+
height: 20px;
|
|
682
|
+
border-radius: 50%;
|
|
683
|
+
transition: box-shadow 150ms cubic-bezier(0.45, 0.05, 0.55, 0.95) 0ms;
|
|
655
684
|
}
|
|
656
685
|
|
|
657
|
-
.
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
686
|
+
.x-3deye-slider:not(.disabled) .x-3deye-slider__thumb:hover,
|
|
687
|
+
.x-3deye-slider:focus .x-3deye-slider__thumb {
|
|
688
|
+
box-shadow: 0 0 0 6px rgba(var(--surface-highlight-rgb, 0, 100, 255), 0.1), 0 0 0 1px rgba(0, 0, 0, 0.1) inset,
|
|
689
|
+
1px 1px 2px 0 rgba(0, 0, 0, 0.25);
|
|
661
690
|
}
|
|
662
691
|
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
}
|
|
692
|
+
.x-3deye-slider:focus .x-3deye-slider__thumb.active {
|
|
693
|
+
box-shadow: 0 0 0 6px rgba(var(--surface-highlight-rgb, 0, 100, 255), 0.2), 0 0 0 1px rgba(0, 0, 0, 0.1) inset,
|
|
694
|
+
1px 1px 2px 0 rgba(0, 0, 0, 0.25);
|
|
695
|
+
}
|
|
667
696
|
|
|
668
|
-
.
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
697
|
+
.x-3deye-slider.horizontal .x-3deye-slider__thumb {
|
|
698
|
+
margin-left: -10px;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.x-3deye-slider.vertical .x-3deye-slider__thumb {
|
|
702
|
+
margin-bottom: -10px;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.x-3deye-slider__label {
|
|
706
|
+
pointer-events: none;
|
|
707
|
+
touch-action: none;
|
|
708
|
+
will-change: transform;
|
|
709
|
+
transform: translate(-50%, -100%) scale(0);
|
|
710
|
+
background: var(--primary-color, #0067ac);
|
|
711
|
+
bottom: 50%;
|
|
712
|
+
left: 50%;
|
|
713
|
+
color: var(--on-primary-color, white);
|
|
714
|
+
font-size: 0.75rem;
|
|
676
715
|
border-radius: 4px;
|
|
677
|
-
|
|
678
|
-
width: content
|
|
716
|
+
width: -webkit-fit-content;
|
|
717
|
+
width: -moz-fit-content;
|
|
718
|
+
width: fit-content;
|
|
719
|
+
min-width: 24px;
|
|
720
|
+
padding: 4px 8px;
|
|
721
|
+
position: relative;
|
|
722
|
+
transition: transform 150ms cubic-bezier(0.45, 0.05, 0.55, 0.95) 0ms;
|
|
723
|
+
transform-origin: center bottom;
|
|
679
724
|
}
|
|
680
725
|
|
|
681
|
-
.
|
|
682
|
-
|
|
726
|
+
.x-3deye-slider__label.open,
|
|
727
|
+
.x-3deye-slider:not(.disabled) .x-3deye-slider__thumb:hover .x-3deye-slider__label,
|
|
728
|
+
.x-3deye-slider:focus .x-3deye-slider__label {
|
|
729
|
+
transform: translate(-50%, -100%) scale(1);
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
.x-3deye-slider__label::before {
|
|
733
|
+
content: '';
|
|
734
|
+
display: block;
|
|
735
|
+
position: absolute;
|
|
736
|
+
top: 100%;
|
|
737
|
+
left: calc(50% - 5px);
|
|
738
|
+
width: 0;
|
|
739
|
+
height: 0;
|
|
740
|
+
border-left: 5px solid transparent;
|
|
741
|
+
border-right: 5px solid transparent;
|
|
742
|
+
border-top: 5px solid var(--primary-color, #0067ac);
|
|
683
743
|
}
|
|
684
744
|
|
|
685
745
|
.ptz-popover.x-3deye-popover-body {
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
746
|
+
border-radius: 6px;
|
|
747
|
+
background-color: rgba(15, 15, 20, 0.7);
|
|
748
|
+
box-shadow: none;
|
|
749
|
+
color: rgba(255, 255, 255, 0.8);
|
|
750
|
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
751
|
+
-webkit-backdrop-filter: blur(1px);
|
|
752
|
+
backdrop-filter: blur(1px);
|
|
693
753
|
}
|
|
694
754
|
|
|
695
755
|
.ptz-popover .tip {
|
|
696
|
-
|
|
756
|
+
fill: rgba(15, 15, 20, 0.5);
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
.ptz-popover {
|
|
760
|
+
--surface-inverse: rgba(255, 255, 255, 0.15);
|
|
761
|
+
--surface-highlight-rgb: 255, 255, 255;
|
|
762
|
+
--primary-color: #0067ac;
|
|
763
|
+
--on-primary-color: white;
|
|
697
764
|
}
|
|
698
765
|
|
|
699
766
|
.segmented-control-wrapper {
|
|
700
767
|
display: inline-grid;
|
|
701
768
|
border-radius: 6px;
|
|
702
|
-
background: rgba(0, 0, 0, 0.065);
|
|
769
|
+
/* background: rgba(0, 0, 0, 0.065); */
|
|
770
|
+
background-color: var(--surface-inverse);
|
|
703
771
|
}
|
|
704
772
|
|
|
705
773
|
.segmented-control {
|
|
@@ -756,3 +824,92 @@
|
|
|
756
824
|
.segmented-control-button.current {
|
|
757
825
|
color: black;
|
|
758
826
|
}
|
|
827
|
+
|
|
828
|
+
.box-selector {
|
|
829
|
+
border: 2px solid deepskyblue;
|
|
830
|
+
background-color: rgba(0, 191, 255, 0.5);
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
.box-selector-close {
|
|
834
|
+
background-color: skyblue;
|
|
835
|
+
transition: 0.2s ease-in;
|
|
836
|
+
color: #026282;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
.box-selector-close:hover {
|
|
840
|
+
color: white;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
.box-selector-preview {
|
|
844
|
+
width: 40px;
|
|
845
|
+
height: 40px;
|
|
846
|
+
position: relative;
|
|
847
|
+
margin: 20px 20px 0px 10px;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
@-webkit-keyframes expand-box-selector-preview {
|
|
851
|
+
from {
|
|
852
|
+
width: 20px;
|
|
853
|
+
height: 16px;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
to {
|
|
857
|
+
width: 50px;
|
|
858
|
+
height: 30px;
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
@keyframes expand-box-selector-preview {
|
|
863
|
+
from {
|
|
864
|
+
width: 20px;
|
|
865
|
+
height: 16px;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
to {
|
|
869
|
+
width: 50px;
|
|
870
|
+
height: 30px;
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
.box-selector-preview .box-selector {
|
|
875
|
+
/* width: 20px;
|
|
876
|
+
height: 16px; */
|
|
877
|
+
width: 50px;
|
|
878
|
+
height: 30px;
|
|
879
|
+
position: relative;
|
|
880
|
+
will-change: width, height;
|
|
881
|
+
|
|
882
|
+
-webkit-animation-duration: 0.5s;
|
|
883
|
+
|
|
884
|
+
animation-duration: 0.5s;
|
|
885
|
+
-webkit-animation-name: expand-box-selector-preview;
|
|
886
|
+
animation-name: expand-box-selector-preview;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.box-selector-preview .icon {
|
|
890
|
+
position: absolute;
|
|
891
|
+
bottom: -7px;
|
|
892
|
+
right: -7px;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
/* .box-selector-select:hover .box-selector {
|
|
896
|
+
width: 50px;
|
|
897
|
+
height: 30px;
|
|
898
|
+
} */
|
|
899
|
+
|
|
900
|
+
.box-selector-select {
|
|
901
|
+
color: rgba(255, 255, 255, 0.8);
|
|
902
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
903
|
+
-webkit-backdrop-filter: blur(2px);
|
|
904
|
+
backdrop-filter: blur(2px);
|
|
905
|
+
text-transform: uppercase;
|
|
906
|
+
font-weight: bold;
|
|
907
|
+
text-align: center;
|
|
908
|
+
border-radius: 4px;
|
|
909
|
+
padding: 8px;
|
|
910
|
+
width: content-width;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
.box-selector-cancel {
|
|
914
|
+
pointer-events: auto;
|
|
915
|
+
}
|