@3deye-toolkit/react-camera 0.0.1-alpha.7 → 0.0.1

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/camera.css DELETED
@@ -1,467 +0,0 @@
1
- .player {
2
- flex: 1;
3
- position: relative;
4
- background-color: black;
5
- overflow: hidden;
6
- }
7
-
8
- .player .zoomable {
9
- width: 100%;
10
- height: 100%;
11
- }
12
-
13
- .player video {
14
- /* object-fit: fill; */
15
- width: 100%;
16
- height: 100%;
17
- position: absolute;
18
- top: 0;
19
- left: 0;
20
- bottom: 0;
21
- right: 0;
22
- }
23
-
24
- .player-overlay {
25
- position: absolute;
26
- top: 0;
27
- left: 0;
28
- bottom: 0;
29
- right: 0;
30
- color: white;
31
- }
32
-
33
- .player-overlay .playback-indicator {
34
- pointer-events: none;
35
- position: absolute;
36
- top: 50%;
37
- left: 50%;
38
- transform: translate(-50%, -50%);
39
- animation: playback-indicator-fade-out 0.5s linear forwards;
40
- display: none;
41
- background-color: rgba(0, 0, 0, 0.5);
42
- width: 48px;
43
- height: 48px;
44
- padding: 8px;
45
- border-radius: 48px;
46
- }
47
-
48
- @keyframes playback-indicator-fade-out {
49
- 0% {
50
- opacity: 1;
51
- transform: translate(-50%, -50%) scale(1);
52
- }
53
-
54
- 100% {
55
- opacity: 0;
56
- transform: translate(-50%, -50%) scale(2);
57
- }
58
- }
59
-
60
- .player-overlay .controls {
61
- position: absolute;
62
- left: 0;
63
- bottom: 0;
64
- right: 0;
65
- height: 54px;
66
- opacity: 0;
67
- display: flex;
68
- pointer-events: none;
69
- }
70
-
71
- .player-overlay .controls > * {
72
- pointer-events: auto;
73
- }
74
-
75
- .player-overlay:hover .controls, .player-overlay .controls:focus-within, .player.paused .controls {
76
- opacity: 1;
77
- }
78
-
79
- .player-overlay .indicators {
80
- display: flex;
81
- pointer-events: none;
82
- align-items: center;
83
- }
84
-
85
- .player-overlay .indicators > * {
86
- margin: 5px;
87
- }
88
-
89
- .player-overlay .live-indicator {
90
- user-select: none;
91
- padding: 0 5px;
92
- color: rgba(0, 0, 0, 0.7);
93
- background-color: white;
94
- font-weight: bold;
95
- text-transform: uppercase;
96
- opacity: 0.8;
97
- }
98
-
99
- .player-overlay .camera-name {
100
- pointer-events: auto;
101
- background-color: rgba(0, 0, 0, 0.25);
102
- text-shadow: 1px 1px 1px black;
103
- opacity: 0.8;
104
- padding: 2px 16px;
105
- border-radius: 16px;
106
- line-height: 16px;
107
- cursor: pointer;
108
- }
109
-
110
- .player-overlay .camera-name:hover {
111
- text-decoration: underline;
112
- }
113
-
114
- .player-overlay .button-go-live {
115
- height: 24px;
116
- padding: 0 12px;
117
- background-color: rgba(0, 0, 0, 0.25);
118
- border-radius: 15px;
119
- margin: 0;
120
- opacity: 0;
121
- color: orange;
122
- text-shadow: 1px 1px 1px black;
123
- }
124
-
125
- .player-overlay .button-go-live:focus {
126
- box-shadow: 0 0 2px orange;
127
- }
128
-
129
- .player-overlay:hover .button-go-live, .button-go-live:focus {
130
- opacity: 1;
131
- }
132
-
133
- .camera-name-popover.popover-body {
134
- border-radius: 2px;
135
- background-color: rgba(15, 15, 20, 0.8);
136
- box-shadow: none;
137
- color: white;
138
- white-space: nowrap;
139
- }
140
-
141
- .camera-name-popover.popover-body svg {
142
- fill: rgba(15, 15, 20, 0.8);
143
- }
144
-
145
- .camera-name-popover.popover-body button.button {
146
- pointer-events: auto;
147
- font-size: inherit;
148
- }
149
-
150
- .camera-name-popover.popover-body button.button:hover {
151
- text-decoration: underline;
152
- }
153
-
154
- .player-overlay .current-time {
155
- line-height: 16px;
156
- font-size: 11px;
157
- text-shadow: 1px 1px 1px black;
158
- background-color: rgba(0, 0, 0, 0.25);
159
- padding: 2px 16px;
160
- border-radius: 16px;
161
- }
162
-
163
- .player-overlay .current-time.synced {
164
- background-color: rgb(147, 221, 30, 0.6);
165
- }
166
-
167
- .zoom-preview {
168
- display: flex;
169
- flex-direction: column;
170
- position: absolute;
171
- right: 40px;
172
- top: 50%;
173
- transform: translateY(-50%);
174
- background-color: rgba(0, 0, 0, 0.7);
175
- border: 1px solid white;
176
- }
177
-
178
- .zoom-preview .zoom-value {
179
- position: absolute;
180
- top: 0;
181
- left: 0;
182
- right: 0;
183
- bottom: 0;
184
- display: flex;
185
- justify-content: center;
186
- align-items: center;
187
- font-family: monospace;
188
- font-size: 32px;
189
- font-weight: bold;
190
- color: white;
191
- text-shadow: 0 1px 1px black;
192
- }
193
-
194
- .zoom-preview .zoomable {
195
- position: relative;
196
- flex: 1;
197
- background-color: rgba(255, 255, 255, 0.5);
198
- }
199
-
200
- .zoom-slider {
201
- position: absolute;
202
- right: 10px;
203
- top: 50%;
204
- transform: translateY(-50%);
205
- width: 30px;
206
- padding: 10px 5px;
207
- background-color: rgba(0, 0, 0, 0.5);
208
- border-radius: 4px;
209
- }
210
-
211
- .zoom-slider .tick {
212
- margin-left: 4px;
213
- width: 12px;
214
- height: 10px;
215
- border-top: 1px solid rgba(255, 255, 255, 0.4);
216
- }
217
-
218
- .zoom-slider .tick:nth-child(5n + 1) {
219
- margin-left: 0px;
220
- width: 20px;
221
- border-top-width: 2px;
222
- }
223
-
224
- .zoom-slider .tick:last-child {
225
- height: 0;
226
- }
227
-
228
- .zoom-slider .rotation-button {
229
- margin-left: -4px;
230
- margin-bottom: -4px;
231
- width: 28px;
232
- text-align: right;
233
- color: white;
234
- }
235
-
236
- .zoom-preview {
237
- display: none;
238
- }
239
-
240
- .zoom-slider:hover + .zoom-preview,
241
- .zoom-slider + .zoom-preview:focus,
242
- .zoom-preview:hover,
243
- .zoom-preview:focus {
244
- display: block;
245
- }
246
- .button {
247
- color: inherit;
248
- background: none;
249
- border: none;
250
- position: relative;
251
- padding: 4px;
252
- text-transform: uppercase;
253
- user-select: none;
254
- font-family: 'Roboto', sans-serif;
255
- text-align: center;
256
- align-items: flex-start;
257
- }
258
-
259
- .button.fullwidth {
260
- width: 100%;
261
- }
262
-
263
- .button:focus {
264
- background-color: rgba(255, 255, 255, 0.1);
265
- }
266
-
267
- .button-icon {
268
- border-radius: 16px;
269
- width: 32px;
270
- height: 32px;
271
- }
272
-
273
- .button:disabled {
274
- opacity: 0.6;
275
- }
276
-
277
- .button.button-save, .button.button-cancel {
278
- color: white;
279
- border-radius: 4px;
280
- text-transform: none;
281
- margin: 4px;
282
- min-width: 80px;
283
- }
284
-
285
- .button.button-save.fullwidth, .button.button-cancel.fullwidth {
286
- width: calc(100% - 8px);
287
- }
288
-
289
- .button:not(:disabled) {
290
- cursor: pointer;
291
- }
292
-
293
- .button.button-save {
294
- background-color: #27B9A1;
295
- }
296
-
297
- .button.button-cancel {
298
- background-color: #7758B2;
299
- }
300
- .popover {
301
- position: relative;
302
- }
303
-
304
- .popover-body {
305
- background-color: white;
306
- padding: 8px;
307
- border-radius: 8px;
308
- box-shadow: 0 0 8px 0px black;
309
- }
310
- .spinner {
311
- animation: spinner-rotation 1.5s linear infinite;
312
- width: 65px;
313
- height: 65px;
314
- }
315
-
316
- .spinner circle {
317
- stroke-dasharray: 207.34;
318
- stroke-dashoffset: 0;
319
- transform-origin: center;
320
- animation: spinner-dash 1.5s ease-in-out infinite;
321
- }
322
-
323
- @keyframes spinner-rotation {
324
- 0% {
325
- transform: rotate(0deg);
326
- }
327
- 100% {
328
- transform: rotate(270deg);
329
- }
330
- }
331
-
332
- @keyframes spinner-dash {
333
- 0% {
334
- stroke-dashoffset: 207.34;
335
- }
336
- 50% {
337
- stroke-dashoffset: 51.835; /* offset / 4 */
338
- transform: rotate(135deg);
339
- }
340
- 100% {
341
- stroke-dashoffset: 207.34;
342
- transform: rotate(450deg);
343
- }
344
- }
345
- .controls {
346
- display: flex;
347
- padding: 8px;
348
- }
349
-
350
- .control-group {
351
- display: flex;
352
- position: relative;
353
- margin: 8px;
354
- }
355
-
356
- .controls.compact .control-group {
357
- margin: 0;
358
- }
359
-
360
- .controls .spacer {
361
- pointer-events: none;
362
- flex: 1;
363
- }
364
-
365
- .control {
366
- width: 38px;
367
- height: 38px;
368
- background-color: rgb(26,30,29, 0.8);
369
- color: rgba(255, 255, 255, 0.6);
370
- }
371
-
372
- .control.close {
373
- background-color: rgba(156, 51, 49, 0.8);
374
- }
375
-
376
- .player.paused .control.playpause {
377
- background-color: rgba(49, 106, 156, 0.8);
378
- }
379
-
380
- .controls.compact .control {
381
- padding: 0;
382
- }
383
-
384
- .controls.compact .control.reflowed {
385
- width: 20px;
386
- }
387
-
388
- .control + .control {
389
- border-left: 1px solid rgb(26,30,29);
390
- }
391
-
392
- .control:hover {
393
- background-color: #2a2e2d;
394
- color: white;
395
- }
396
-
397
- .control.close:hover {
398
- background-color: rgba(156, 51, 49);
399
- }
400
-
401
- .player.paused .control.playpause:hover {
402
- background-color: rgba(49, 106, 156);
403
- }
404
-
405
- .control:focus {
406
- box-shadow: 0 0 0 0.2rem rgba(52,58,64,.5);
407
- background-color: rgb(26,30,29, 0.8);
408
- z-index: 1;
409
- }
410
-
411
- .control.close:focus {
412
- background-color: rgba(156, 51, 49, 0.8);
413
- box-shadow: 0 0 0 0.2rem rgba(101, 20, 46, 0.5);
414
- }
415
-
416
- .player.paused .control.playpause:focus {
417
- background-color: rgba(49, 106, 156, 0.8);
418
- box-shadow: 0 0 0 0.2rem rgba(20, 69, 101, 0.5);
419
- }
420
-
421
- .controls > .control:first-child {
422
- border-top-left-radius: 4px;
423
- border-bottom-left-radius: 4px;
424
- }
425
-
426
- .controls > .control:last-child {
427
- border-top-right-radius: 4px;
428
- border-bottom-right-radius: 4px;
429
- }
430
-
431
- .controls .control-group .control.control-playbackrate {
432
- text-transform: none;
433
- font-weight: bold;
434
- }
435
- .volume-control:hover .volume-range, .volume-control:focus .volume-range {
436
- visibility: visible;
437
- transition: visibility 0s;
438
- }
439
-
440
- .volume-range {
441
- background-color: rgba(26,30,29, 0.5);
442
- padding: 4px;
443
- border-radius: 4px;
444
- position: absolute;
445
- height: 32px;
446
- top: -28px;
447
- left: 0;
448
- visibility: hidden;
449
- transition: visibility 0s 0.5s;
450
- transform-origin: 16px 12px;
451
- transform: rotate(270deg);
452
- }
453
-
454
- .box-selector {
455
- border: 2px solid deepskyblue;
456
- background-color: rgba(0, 191, 255, 0.5);
457
- }
458
-
459
- .box-selector-close {
460
- background-color: skyblue;
461
- transition: 0.2s ease-in;
462
- color: #026282;
463
- }
464
-
465
- .box-selector-close:hover {
466
- color: white;
467
- }