-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
1071 lines (1042 loc) · 48.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
<meta charset="utf-8">
<meta name="generator" content="quarto-1.5.56">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<meta name="description" content="An interactive explorer for film and camera sensor formats">
<title>SensorScope</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
ul.task-list li input[type="checkbox"] {
width: 0.8em;
margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
vertical-align: middle;
}
</style>
<script src="index_files/libs/clipboard/clipboard.min.js"></script>
<script src="index_files/libs/quarto-html/quarto.js"></script>
<script src="index_files/libs/quarto-html/popper.min.js"></script>
<script src="index_files/libs/quarto-html/tippy.umd.min.js"></script>
<script src="index_files/libs/quarto-html/anchor.min.js"></script>
<link href="index_files/libs/quarto-html/tippy.css" rel="stylesheet">
<link href="index_files/libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="index_files/libs/bootstrap/bootstrap.min.js"></script>
<link href="index_files/libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="index_files/libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
<link href="index_files/libs/htmltools-fill-0.5.8.1/fill.css" rel="stylesheet">
<script src="index_files/libs/htmlwidgets-1.6.4/htmlwidgets.js"></script>
<link href="index_files/libs/datatables-css-0.0.0/datatables-crosstalk.css" rel="stylesheet">
<script src="index_files/libs/datatables-binding-0.33/datatables.js"></script>
<script src="index_files/libs/jquery-3.6.0/jquery-3.6.0.min.js"></script>
<link href="index_files/libs/dt-core-1.13.6/css/jquery.dataTables.min.css" rel="stylesheet">
<link href="index_files/libs/dt-core-1.13.6/css/jquery.dataTables.extra.css" rel="stylesheet">
<script src="index_files/libs/dt-core-1.13.6/js/jquery.dataTables.min.js"></script>
<link href="index_files/libs/nouislider-7.0.10/jquery.nouislider.min.css" rel="stylesheet">
<script src="index_files/libs/nouislider-7.0.10/jquery.nouislider.min.js"></script>
<link href="index_files/libs/selectize-0.12.0/selectize.bootstrap3.css" rel="stylesheet">
<script src="index_files/libs/selectize-0.12.0/selectize.min.js"></script>
<link href="index_files/libs/crosstalk-1.2.1/css/crosstalk.min.css" rel="stylesheet">
<script src="index_files/libs/crosstalk-1.2.1/js/crosstalk.min.js"></script>
</head>
<body>
<header id="title-block-header" class="quarto-title-block default page-columns page-full">
<div class="quarto-title-banner page-columns page-full">
<div class="quarto-title column-page">
<h1 class="title">SensorScope</h1>
<div>
<div class="description">
An interactive explorer for film and camera sensor formats
</div>
</div>
</div>
</div>
<div class="quarto-title-meta column-page">
</div>
</header><div id="quarto-content" class="page-columns page-rows-contents page-layout-full">
<main class="content quarto-banner-title-block column-page" id="quarto-document-content">
<div class="sensor-parent">
<div class="sensor sensor-edge" style="width:100%;aspect-ratio:5/4;z-index:2;border-color:#89DE5D;">
<div class="label">
Large-format film 8×10 inch
</div>
<div class="category">
<span class="highlight" style="background-color:#89DE5D;">Large-Format Film</span>203mm x 254mm 5:4
</div>
</div>
<div class="sensor sensor-edge" style="width:70.08%;aspect-ratio:7/5;z-index:3;border-color:#89DE5D;">
<div class="label">
Large-format film 5×7 inch
</div>
<div class="category">
<span class="highlight" style="background-color:#89DE5D;">Large-Format Film</span>127mm x 178mm 7:5
</div>
</div>
<div class="sensor sensor-edge" style="width:47.64%;aspect-ratio:5/4;z-index:4;border-color:#89DE5D;">
<div class="label">
Large-format film 4×5 inch
</div>
<div class="category">
<span class="highlight" style="background-color:#89DE5D;">Large-Format Film</span>97mm x 121mm 5:4
</div>
</div>
<div class="sensor sensor-edge" style="width:33.07%;aspect-ratio:3/2;z-index:5;border-color:#E0D2C2;">
<div class="label">
Medium-format 6×9 cm
</div>
<div class="category">
<span class="highlight" style="background-color:#E0D2C2;">Medium-Format Digital</span>56mm x 84mm 3:2
</div>
</div>
<div class="sensor sensor-edge" style="width:29.92%;aspect-ratio:3/4;z-index:6;border-color:#E0D2C2;">
<div class="label">
Medium-format 6×8 cm
</div>
<div class="category">
<span class="highlight" style="background-color:#E0D2C2;">Medium-Format Digital</span>56mm x 76mm 3:4
</div>
</div>
<div class="sensor sensor-edge" style="width:27.56%;aspect-ratio:5/4;z-index:7;border-color:#E0D2C2;">
<div class="label">
Medium-format 6×7 cm
</div>
<div class="category">
<span class="highlight" style="background-color:#E0D2C2;">Medium-Format Digital</span>56mm x 70mm 5:4
</div>
</div>
<div class="sensor sensor-edge" style="width:27.72%;aspect-ratio:4/3;z-index:8;border-color:#91A0E2;">
<div class="label">
IMAX film frame
</div>
<div class="category">
<span class="highlight" style="background-color:#91A0E2;">IMAX Film</span>52.63mm x 70.41mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:22.05%;aspect-ratio:1/1;z-index:9;border-color:#E0D2C2;">
<div class="label">
Medium-format 6×6 cm
</div>
<div class="category">
<span class="highlight" style="background-color:#E0D2C2;">Medium-Format Digital</span>56mm x 56mm 1:1
</div>
</div>
<div class="sensor sensor-edge" style="width:16.54%;aspect-ratio:3/4;z-index:10;border-color:#E0D2C2;">
<div class="label">
Medium-format 6×4.5 cm (645 format)
</div>
<div class="category">
<span class="highlight" style="background-color:#E0D2C2;">Medium-Format Digital</span>56mm x 42mm 3:4
</div>
</div>
<div class="sensor sensor-edge" style="width:21.22%;aspect-ratio:4/3;z-index:11;border-color:#E0D2C2;">
<div class="label">
Phase One P 65+, IQ160, IQ180
</div>
<div class="category">
<span class="highlight" style="background-color:#E0D2C2;">Medium-Format Digital</span>40.4mm x 53.9mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:21.14%;aspect-ratio:4/3;z-index:12;border-color:#E0D2C2;">
<div class="label">
Medium-format (Hasselblad H5D-60c, Hasselblad H6D-100c)
</div>
<div class="category">
<span class="highlight" style="background-color:#E0D2C2;">Medium-Format Digital</span>40.2mm x 53.7mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:22.05%;aspect-ratio:14/9;z-index:13;border-color:#E0D2C2;">
<div class="label">
Leaf AFi 10
</div>
<div class="category">
<span class="highlight" style="background-color:#E0D2C2;">Medium-Format Digital</span>36mm x 56mm 14:9
</div>
</div>
<div class="sensor sensor-edge" style="width:19.29%;aspect-ratio:4/3;z-index:14;border-color:#E0D2C2;">
<div class="label">
Kodak KAF 39000 CCD
</div>
<div class="category">
<span class="highlight" style="background-color:#E0D2C2;">Medium-Format Digital</span>36.8mm x 49mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:17.24%;aspect-ratio:4/3;z-index:15;border-color:#E0D2C2;">
<div class="label">
Pentax 645D, Hasselblad X1D-50c, Hasselblad H6D-50c, CFV-50c, Fuji GFX 50S
</div>
<div class="category">
<span class="highlight" style="background-color:#E0D2C2;">Medium-Format Digital</span>32.9mm x 43.8mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:21.31%;aspect-ratio:19/9;z-index:16;border-color:#83A274;">
<div class="label">
ARRI ALEXA 65
</div>
<div class="category">
<span class="highlight" style="background-color:#83A274;">Large-Format Digital Cinema Camera</span>25.58mm x 54.12mm 19:9
</div>
</div>
<div class="sensor sensor-edge" style="width:17.72%;aspect-ratio:3/2;z-index:17;border-color:#E087E8;">
<div class="label">
Leica S
</div>
<div class="category">
<span class="highlight" style="background-color:#E087E8;">Large Format Digital/Vista Vision</span>30mm x 45mm 3:2
</div>
</div>
<div class="sensor sensor-edge" style="width:20.66%;aspect-ratio:7/3;z-index:18;border-color:#D5C9E4;">
<div class="label">
Standard 65/70 mm film frame
</div>
<div class="category">
<span class="highlight" style="background-color:#D5C9E4;">65/70mm Film</span>23.01mm x 52.48mm 7:3
</div>
</div>
<div class="sensor sensor-edge" style="width:14.45%;aspect-ratio:13/9;z-index:19;border-color:#DF9BC9;">
<div class="label">
ARRI ALEXA LF
</div>
<div class="category">
<span class="highlight" style="background-color:#DF9BC9;">Digital Cinema Camera</span>25.54mm x 36.7mm 13:9
</div>
</div>
<div class="sensor sensor-edge" style="width:16.13%;aspect-ratio:17/9;z-index:20;border-color:#DAE9AA;">
<div class="label">
RED MONSTRO 8K VV, Panavision Millenium DXL2
</div>
<div class="category">
<span class="highlight" style="background-color:#DAE9AA;">Full-Frame Digital Cinema Camera</span>21.6mm x 40.96mm 17:9
</div>
</div>
<div class="sensor sensor-edge" style="width:14.17%;aspect-ratio:3/2;z-index:21;border-color:#D6E944;">
<div class="label">
35 mm film full-frame, (Canon EF, Nikon FX, Pentax K-1, Sony α, Sony FE, Leica M)
</div>
<div class="category">
<span class="highlight" style="background-color:#D6E944;">35mm</span>24mm x 36mm 3:2
</div>
</div>
<div class="sensor sensor-edge" style="width:10.98%;aspect-ratio:3/2;z-index:22;border-color:#E39644;">
<div class="label">
Canon APS-H
</div>
<div class="category">
<span class="highlight" style="background-color:#E39644;">APS-H Sensor DSLR</span>18.6mm x 27.9mm 3:2
</div>
</div>
<div class="sensor sensor-edge" style="width:12.09%;aspect-ratio:35/18;z-index:23;border-color:#DF9BC9;">
<div class="label">
RED DRAGON 6K S35
</div>
<div class="category">
<span class="highlight" style="background-color:#DF9BC9;">Digital Cinema Camera</span>15.8mm x 30.7mm 35:18
</div>
</div>
<div class="sensor sensor-edge" style="width:11.77%;aspect-ratio:17/9;z-index:24;border-color:#DF9BC9;">
<div class="label">
ARRI ALEV III (ALEXA SXT, ALEXA MINI, AMIRA), RED HELIUM 8K S35
</div>
<div class="category">
<span class="highlight" style="background-color:#DF9BC9;">Digital Cinema Camera</span>15.77mm x 29.9mm 17:9
</div>
</div>
<div class="sensor sensor-edge" style="width:9.8%;aspect-ratio:4/3;z-index:25;border-color:#85728B;">
<div class="label">
Super 35mm film 4 perf
</div>
<div class="category">
<span class="highlight" style="background-color:#85728B;">35mm Film</span>18.66mm x 24.89mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:9.33%;aspect-ratio:3/2;z-index:26;border-color:#E29A91;">
<div class="label">
APS-C (Sony α, Sony E, Nikon DX, Pentax K, Samsung NX, Fuji X)
</div>
<div class="category">
<span class="highlight" style="background-color:#E29A91;">APS-C</span>15.6mm x 23.7mm 3:2
</div>
</div>
<div class="sensor sensor-edge" style="width:9.98%;aspect-ratio:16/9;z-index:27;border-color:#DF9BC9;">
<div class="label">
Blackmagic URSA Mini/Pro 4.6K
</div>
<div class="category">
<span class="highlight" style="background-color:#DF9BC9;">Digital Cinema Camera</span>14.25mm x 25.34mm 16:9
</div>
</div>
<div class="sensor sensor-edge" style="width:8.66%;aspect-ratio:11/8;z-index:28;border-color:#85728B;">
<div class="label">
Standard 35 mm film frame (movie)
</div>
<div class="category">
<span class="highlight" style="background-color:#85728B;">35mm Film</span>16mm x 22mm 11:8
</div>
</div>
<div class="sensor sensor-edge" style="width:10.08%;aspect-ratio:17/9;z-index:29;border-color:#DF9BC9;">
<div class="label">
RED DRAGON 5K S35
</div>
<div class="category">
<span class="highlight" style="background-color:#DF9BC9;">Digital Cinema Camera</span>13.5mm x 25.6mm 17:9
</div>
</div>
<div class="sensor sensor-edge" style="width:9.8%;aspect-ratio:9/5;z-index:30;border-color:#85728B;">
<div class="label">
Super 35 mm film 3 perf
</div>
<div class="category">
<span class="highlight" style="background-color:#85728B;">35mm Film</span>13.86mm x 24.89mm 9:5
</div>
</div>
<div class="sensor sensor-edge" style="width:8.78%;aspect-ratio:3/2;z-index:31;border-color:#E29A91;">
<div class="label">
Canon EF-S, APS-C
</div>
<div class="category">
<span class="highlight" style="background-color:#E29A91;">APS-C</span>14.9mm x 22.3mm 3:2
</div>
</div>
<div class="sensor sensor-edge" style="width:8.15%;aspect-ratio:3/2;z-index:32;border-color:#E29A91;">
<div class="label">
Sigma Foveon X3
</div>
<div class="category">
<span class="highlight" style="background-color:#E29A91;">APS-C</span>13.8mm x 20.7mm 3:2
</div>
</div>
<div class="sensor sensor-edge" style="width:7.36%;aspect-ratio:4/3;z-index:33;border-color:#62E3DA;">
<div class="label">
1.5” Canon PowerShot G1 X Mark II
</div>
<div class="category">
<span class="highlight" style="background-color:#62E3DA;">Large Sensor Compact Digital</span>14mm x 18.7mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:8.31%;aspect-ratio:16/9;z-index:34;border-color:#DF9BC9;">
<div class="label">
Blackmagic Production Camera/URSA/URSA Mini 4K
</div>
<div class="category">
<span class="highlight" style="background-color:#DF9BC9;">Digital Cinema Camera</span>11.88mm x 21.12mm 16:9
</div>
</div>
<div class="sensor sensor-edge" style="width:9.06%;aspect-ratio:19/9;z-index:35;border-color:#DF9BC9;">
<div class="label">
RED DRAGON 4.5K (RAVEN)
</div>
<div class="category">
<span class="highlight" style="background-color:#DF9BC9;">Digital Cinema Camera</span>10.8mm x 23mm 19:9
</div>
</div>
<div class="sensor sensor-edge" style="width:9.8%;aspect-ratio:8/3;z-index:36;border-color:#85728B;">
<div class="label">
“Super 35mm” 2 Perf
</div>
<div class="category">
<span class="highlight" style="background-color:#85728B;">35mm Film</span>9.35mm x 24.89mm 8:3
</div>
</div>
<div class="sensor sensor-edge" style="width:6.81%;aspect-ratio:4/3;z-index:37;border-color:#E2BE86;">
<div class="label">
Four Thirds, Micro Four Thirds (“4/3”, “m4/3”)
</div>
<div class="category">
<span class="highlight" style="background-color:#E2BE86;">Micro Four Thirds System</span>13mm x 17.3mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:8.64%;aspect-ratio:7/3;z-index:38;border-color:#85728B;">
<div class="label">
“35mm” 2 Perf Techniscope
</div>
<div class="category">
<span class="highlight" style="background-color:#85728B;">35mm Film</span>9.35mm x 21.95mm 7:3
</div>
</div>
<div class="sensor sensor-edge" style="width:7.46%;aspect-ratio:19/10;z-index:39;border-color:#DF9BC9;">
<div class="label">
Blackmagic Pocket Cinema Camera 4K
</div>
<div class="category">
<span class="highlight" style="background-color:#DF9BC9;">Digital Cinema Camera</span>10mm x 18.96mm 19:10
</div>
</div>
<div class="sensor sensor-edge" style="width:5.55%;aspect-ratio:11/8;z-index:40;border-color:#DD5662;">
<div class="label">
1.1” Sony IMX253
</div>
<div class="category">
<span class="highlight" style="background-color:#DD5662;">One-Inch Sensor</span>10.3mm x 14.1mm 11:8
</div>
</div>
<div class="sensor sensor-edge" style="width:6.22%;aspect-ratio:16/9;z-index:41;border-color:#DF9BC9;">
<div class="label">
Blackmagic Cinema Camera EF
</div>
<div class="category">
<span class="highlight" style="background-color:#DF9BC9;">Digital Cinema Camera</span>8.88mm x 15.81mm 16:9
</div>
</div>
<div class="sensor sensor-edge" style="width:5.04%;aspect-ratio:4/3;z-index:42;border-color:#DD5662;">
<div class="label">
1” Digital Bolex d16
</div>
<div class="category">
<span class="highlight" style="background-color:#DD5662;">One-Inch Sensor</span>9.6mm x 12.8mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:5.2%;aspect-ratio:3/2;z-index:43;border-color:#DD5662;">
<div class="label">
1” (Nikon CX, Sony RX100, Sony RX10, Sony ZV1, Samsung NX Mini)
</div>
<div class="category">
<span class="highlight" style="background-color:#DD5662;">One-Inch Sensor</span>8.8mm x 13.2mm 3:2
</div>
</div>
<div class="sensor sensor-edge" style="width:4.5%;aspect-ratio:4/3;z-index:44;border-color:#7F70DB;">
<div class="label">
1/1.12” (Xiaomi Mi 11 Ultra)
</div>
<div class="category">
<span class="highlight" style="background-color:#7F70DB;">Large Sensor Mirrorless</span>8.57mm x 11.43mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:4.93%;aspect-ratio:5/3;z-index:45;border-color:#A0E4B9;">
<div class="label">
Super 16 mm film frame
</div>
<div class="category">
<span class="highlight" style="background-color:#A0E4B9;">Super 16mm Film</span>7.41mm x 12.52mm 5:3
</div>
</div>
<div class="sensor sensor-edge" style="width:4.91%;aspect-ratio:16/9;z-index:46;border-color:#DF9BC9;">
<div class="label">
Blackmagic Pocket Cinema Camera & Blackmagic Studio Camera
</div>
<div class="category">
<span class="highlight" style="background-color:#DF9BC9;">Digital Cinema Camera</span>7.02mm x 12.48mm 16:9
</div>
</div>
<div class="sensor sensor-edge" style="width:4.2%;aspect-ratio:4/3;z-index:47;border-color:#7F70DB;">
<div class="label">
1/1.2” (Nokia 808 PureView)
</div>
<div class="category">
<span class="highlight" style="background-color:#7F70DB;">Large Sensor Mirrorless</span>8mm x 10.67mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:4.04%;aspect-ratio:11/8;z-index:48;border-color:#6BE699;">
<div class="label">
Standard 16 mm film frame
</div>
<div class="category">
<span class="highlight" style="background-color:#6BE699;">16mm Film</span>7.49mm x 10.26mm 11:8
</div>
</div>
<div class="sensor sensor-edge" style="width:3.78%;aspect-ratio:4/3;z-index:49;border-color:#D8CB5A;">
<div class="label">
1/1.33” (Samsung Galaxy S20 Ultra)
</div>
<div class="category">
<span class="highlight" style="background-color:#D8CB5A;">Small Sensor Mirrorless</span>7.2mm x 9.6mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:3.46%;aspect-ratio:4/3;z-index:50;border-color:#D8CB5A;">
<div class="label">
2/3” (Nokia Lumia 1020, Fujifilm X10, X20, XF1)
</div>
<div class="category">
<span class="highlight" style="background-color:#D8CB5A;">Small Sensor Mirrorless</span>6.6mm x 8.8mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:3.18%;aspect-ratio:4/3;z-index:51;border-color:#D8CB5A;">
<div class="label">
1/1.6” (Fujifilm f200exr)
</div>
<div class="category">
<span class="highlight" style="background-color:#D8CB5A;">Small Sensor Mirrorless</span>6.01mm x 8.08mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:2.99%;aspect-ratio:4/3;z-index:52;border-color:#D8CB5A;">
<div class="label">
1/1.7” (Pentax Q7, Canon G10, G15, Huawei P20 Pro, Huawei P30 Pro, Huawei Mate 20 Pro)
</div>
<div class="category">
<span class="highlight" style="background-color:#D8CB5A;">Small Sensor Mirrorless</span>5.7mm x 7.6mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:2.83%;aspect-ratio:4/3;z-index:53;border-color:#D8CB5A;">
<div class="label">
1/1.8” (Nokia N8) (Olympus C-5050, C-5060, C-7070)
</div>
<div class="category">
<span class="highlight" style="background-color:#D8CB5A;">Small Sensor Mirrorless</span>5.32mm x 7.18mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:2.52%;aspect-ratio:4/3;z-index:54;border-color:#D8CB5A;">
<div class="label">
1/2” (Fujifilm HS30EXR, Xiaomi Mi 9, OnePlus 7, Espros EPC 660, DJI Mavic Air 2)
</div>
<div class="category">
<span class="highlight" style="background-color:#D8CB5A;">Small Sensor Mirrorless</span>4.8mm x 6.4mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:2.48%;aspect-ratio:4/3;z-index:55;border-color:#BDE6E3;">
<div class="label">
1/2.3” Sony Exmor IMX220
</div>
<div class="category">
<span class="highlight" style="background-color:#BDE6E3;">Compact Digital</span>4.72mm x 6.3mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:2.43%;aspect-ratio:4/3;z-index:56;border-color:#BDE6E3;">
<div class="label">
1/2.3” (Pentax Q, Sony Cyber-shot DSC-W330, GoPro HERO3, Panasonic HX-A500, Google Pixel/Pixel+, DJI Phantom 3/Mavic 2 Zoom), Nikon P1000/P900
</div>
<div class="category">
<span class="highlight" style="background-color:#BDE6E3;">Compact Digital</span>4.55mm x 6.17mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:2.27%;aspect-ratio:4/3;z-index:57;border-color:#BDE6E3;">
<div class="label">
1/2.5” (Nokia Lumia 1520, Sony Cyber-shot DSC-T5, iPhone XS)
</div>
<div class="category">
<span class="highlight" style="background-color:#BDE6E3;">Compact Digital</span>4.29mm x 5.76mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:2.28%;aspect-ratio:13/9;z-index:58;border-color:#AD43DE;">
<div class="label">
Super 8 mm film frame
</div>
<div class="category">
<span class="highlight" style="background-color:#AD43DE;">Super 8mm Film</span>4.01mm x 5.79mm 13:9
</div>
</div>
<div class="sensor sensor-edge" style="width:2.11%;aspect-ratio:4/3;z-index:59;border-color:#BDE6E3;">
<div class="label">
1/2.7” Fujifilm 2800 Zoom
</div>
<div class="category">
<span class="highlight" style="background-color:#BDE6E3;">Compact Digital</span>4.04mm x 5.37mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:1.96%;aspect-ratio:4/3;z-index:60;border-color:#BDE6E3;">
<div class="label">
1/2.9” Sony EXMOR IMX322
</div>
<div class="category">
<span class="highlight" style="background-color:#BDE6E3;">Compact Digital</span>3.74mm x 4.98mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:1.89%;aspect-ratio:4/3;z-index:61;border-color:#64B8D2;">
<div class="label">
1/3” (iPhone 5S, iPhone 6, LG G3)
</div>
<div class="category">
<span class="highlight" style="background-color:#64B8D2;">Ultra-Compact Digital</span>3.6mm x 4.8mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:1.89%;aspect-ratio:11/8;z-index:62;border-color:#D448A0;">
<div class="label">
Standard 8 mm film frame
</div>
<div class="category">
<span class="highlight" style="background-color:#D448A0;">8mm Film</span>3.5mm x 4.8mm 11:8
</div>
</div>
<div class="sensor sensor-edge" style="width:1.83%;aspect-ratio:4/3;z-index:63;border-color:#64B8D2;">
<div class="label">
1/3.09” (Sony EXMOR IMX351)
</div>
<div class="category">
<span class="highlight" style="background-color:#64B8D2;">Ultra-Compact Digital</span>3.5mm x 4.66mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:1.79%;aspect-ratio:4/3;z-index:64;border-color:#64B8D2;">
<div class="label">
1/3.2” (iPhone 5)
</div>
<div class="category">
<span class="highlight" style="background-color:#64B8D2;">Ultra-Compact Digital</span>3.42mm x 4.54mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:1.57%;aspect-ratio:4/3;z-index:65;border-color:#64B8D2;">
<div class="label">
1/3.6” (Nokia Lumia 720)
</div>
<div class="category">
<span class="highlight" style="background-color:#64B8D2;">Ultra-Compact Digital</span>3mm x 4mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:1.42%;aspect-ratio:4/3;z-index:66;border-color:#64B8D2;">
<div class="label">
1/4”
</div>
<div class="category">
<span class="highlight" style="background-color:#64B8D2;">Ultra-Compact Digital</span>2.7mm x 3.6mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:0.94%;aspect-ratio:4/3;z-index:67;border-color:#64B8D2;">
<div class="label">
1/6” (Panasonic SDR-H20, SDR-H200)
</div>
<div class="category">
<span class="highlight" style="background-color:#64B8D2;">Ultra-Compact Digital</span>1.8mm x 2.4mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:0.63%;aspect-ratio:4/3;z-index:68;border-color:#64B8D2;">
<div class="label">
1/8” (Sony DCR-SR68, DCR-DVD110E)
</div>
<div class="category">
<span class="highlight" style="background-color:#64B8D2;">Ultra-Compact Digital</span>1.2mm x 1.6mm 4:3
</div>
</div>
<div class="sensor sensor-edge" style="width:0.5%;aspect-ratio:4/3;z-index:69;border-color:#64B8D2;">
<div class="label">
1/10”
</div>
<div class="category">
<span class="highlight" style="background-color:#64B8D2;">Ultra-Compact Digital</span>0.96mm x 1.28mm 4:3
</div>
</div>
</div>
<p><br></p>
<div class="cell">
<div class="cell-output-display">
<div class="datatables html-widget html-fill-item" id="htmlwidget-8b8359c251683db873a9" style="width:100%;height:auto;"></div>
<script type="application/json" data-for="htmlwidget-8b8359c251683db873a9">{"x":{"filter":"top","vertical":false,"filterHTML":"<tr>\n <td><\/td>\n <td data-type=\"character\" style=\"vertical-align: top;\">\n <div class=\"form-group has-feedback\" style=\"margin-bottom: auto;\">\n <input type=\"search\" placeholder=\"All\" class=\"form-control\" style=\"width: 100%;\"/>\n <span class=\"glyphicon glyphicon-remove-circle form-control-feedback\"><\/span>\n <\/div>\n <\/td>\n <td data-type=\"number\" style=\"vertical-align: top;\">\n <div class=\"form-group has-feedback\" style=\"margin-bottom: auto;\">\n <input type=\"search\" placeholder=\"All\" class=\"form-control\" style=\"width: 100%;\"/>\n <span class=\"glyphicon glyphicon-remove-circle form-control-feedback\"><\/span>\n <\/div>\n <div style=\"display: none;position: absolute;width: 200px;opacity: 1\">\n <div data-min=\"1.28\" data-max=\"254\" data-scale=\"2\"><\/div>\n <span style=\"float: left;\"><\/span>\n <span style=\"float: right;\"><\/span>\n <\/div>\n <\/td>\n <td data-type=\"number\" style=\"vertical-align: top;\">\n <div class=\"form-group has-feedback\" style=\"margin-bottom: auto;\">\n <input type=\"search\" placeholder=\"All\" class=\"form-control\" style=\"width: 100%;\"/>\n <span class=\"glyphicon glyphicon-remove-circle form-control-feedback\"><\/span>\n <\/div>\n <div style=\"display: none;position: absolute;width: 200px;opacity: 1\">\n <div data-min=\"0.96\" data-max=\"203\" data-scale=\"2\"><\/div>\n <span style=\"float: left;\"><\/span>\n <span style=\"float: right;\"><\/span>\n <\/div>\n <\/td>\n <td data-type=\"character\" style=\"vertical-align: top;\">\n <div class=\"form-group has-feedback\" style=\"margin-bottom: auto;\">\n <input type=\"search\" placeholder=\"All\" class=\"form-control\" style=\"width: 100%;\"/>\n <span class=\"glyphicon glyphicon-remove-circle form-control-feedback\"><\/span>\n <\/div>\n <\/td>\n <td data-type=\"number\" style=\"vertical-align: top;\">\n <div class=\"form-group has-feedback\" style=\"margin-bottom: auto;\">\n <input type=\"search\" placeholder=\"All\" class=\"form-control\" style=\"width: 100%;\"/>\n <span class=\"glyphicon glyphicon-remove-circle form-control-feedback\"><\/span>\n <\/div>\n <div style=\"display: none;position: absolute;width: 200px;opacity: 1\">\n <div data-min=\"0.143\" data-max=\"27.04\" data-scale=\"3\"><\/div>\n <span style=\"float: left;\"><\/span>\n <span style=\"float: right;\"><\/span>\n <\/div>\n <\/td>\n <td data-type=\"character\" style=\"vertical-align: top;\">\n <div class=\"form-group has-feedback\" style=\"margin-bottom: auto;\">\n <input type=\"search\" placeholder=\"All\" class=\"form-control\" style=\"width: 100%;\"/>\n <span class=\"glyphicon glyphicon-remove-circle form-control-feedback\"><\/span>\n <\/div>\n <\/td>\n<\/tr>","data":[["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68"],["Large-format film 8×10 inch","Large-format film 5×7 inch","Large-format film 4×5 inch","Medium-format 6×9 cm","Medium-format 6×8 cm","Medium-format 6×7 cm","IMAX film frame","Medium-format 6×6 cm","Medium-format 6×4.5 cm (645 format)","Phase One P 65+, IQ160, IQ180","Medium-format (Hasselblad H5D-60c, Hasselblad H6D-100c)","Leaf AFi 10","Kodak KAF 39000 CCD","Pentax 645D, Hasselblad X1D-50c, Hasselblad H6D-50c, CFV-50c, Fuji GFX 50S","ARRI ALEXA 65","Leica S","Standard 65/70 mm film frame","ARRI ALEXA LF","RED MONSTRO 8K VV, Panavision Millenium DXL2","35 mm film full-frame, (Canon EF, Nikon FX, Pentax K-1, Sony α, Sony FE, Leica M)","Canon APS-H","RED DRAGON 6K S35","ARRI ALEV III (ALEXA SXT, ALEXA MINI, AMIRA), RED HELIUM 8K S35","Super 35mm film 4 perf","APS-C (Sony α, Sony E, Nikon DX, Pentax K, Samsung NX, Fuji X)","Blackmagic URSA Mini/Pro 4.6K","Standard 35 mm film frame (movie)","RED DRAGON 5K S35","Super 35 mm film 3 perf","Canon EF-S, APS-C","Sigma Foveon X3","1.5\" Canon PowerShot G1 X Mark II","Blackmagic Production Camera/URSA/URSA Mini 4K","RED DRAGON 4.5K (RAVEN)","\"Super 35mm\" 2 Perf","Four Thirds, Micro Four Thirds (\"4/3\", \"m4/3\")","\"35mm\" 2 Perf Techniscope","Blackmagic Pocket Cinema Camera 4K","1.1\" Sony IMX253","Blackmagic Cinema Camera EF","1\" Digital Bolex d16","1\" (Nikon CX, Sony RX100, Sony RX10, Sony ZV1, Samsung NX Mini)","1/1.12\" (Xiaomi Mi 11 Ultra)","Super 16 mm film frame","Blackmagic Pocket Cinema Camera & Blackmagic Studio Camera","1/1.2\" (Nokia 808 PureView)","Standard 16 mm film frame","1/1.33\" (Samsung Galaxy S20 Ultra)","2/3\" (Nokia Lumia 1020, Fujifilm X10, X20, XF1)","1/1.6\" (Fujifilm f200exr)","1/1.7\" (Pentax Q7, Canon G10, G15, Huawei P20 Pro, Huawei P30 Pro, Huawei Mate 20 Pro)","1/1.8\" (Nokia N8) (Olympus C-5050, C-5060, C-7070)","1/2\" (Fujifilm HS30EXR, Xiaomi Mi 9, OnePlus 7, Espros EPC 660, DJI Mavic Air 2)","1/2.3\" Sony Exmor IMX220","1/2.3\" (Pentax Q, Sony Cyber-shot DSC-W330, GoPro HERO3, Panasonic HX-A500, Google Pixel/Pixel+, DJI Phantom 3/Mavic 2 Zoom), Nikon P1000/P900","1/2.5\" (Nokia Lumia 1520, Sony Cyber-shot DSC-T5, iPhone XS)","Super 8 mm film frame","1/2.7\" Fujifilm 2800 Zoom","1/2.9\" Sony EXMOR IMX322","1/3\" (iPhone 5S, iPhone 6, LG G3)","Standard 8 mm film frame","1/3.09\" (Sony EXMOR IMX351)","1/3.2\" (iPhone 5)","1/3.6\" (Nokia Lumia 720)","1/4\"","1/6\" (Panasonic SDR-H20, SDR-H200)","1/8\" (Sony DCR-SR68, DCR-DVD110E)","1/10\""],[254,178,121,84,76,70,70.41,56,42,53.9,53.7,56,49,43.8,54.12,45,52.48,36.7,40.96,36,27.9,30.7,29.9,24.89,23.7,25.34,22,25.6,24.89,22.3,20.7,18.7,21.12,23,24.89,17.3,21.95,18.96,14.1,15.81,12.8,13.2,11.43,12.52,12.48,10.67,10.26,9.6,8.800000000000001,8.08,7.6,7.18,6.4,6.3,6.17,5.76,5.79,5.37,4.98,4.8,4.8,4.66,4.54,4,3.6,2.4,1.6,1.28],[203,127,97,56,56,56,52.63,56,56,40.4,40.2,36,36.8,32.9,25.58,30,23.01,25.54,21.6,24,18.6,15.8,15.77,18.66,15.6,14.25,16,13.5,13.86,14.9,13.8,14,11.88,10.8,9.35,13,9.35,10,10.3,8.880000000000001,9.6,8.800000000000001,8.57,7.41,7.02,8,7.49,7.2,6.6,6.01,5.7,5.32,4.8,4.72,4.55,4.29,4.01,4.04,3.74,3.6,3.5,3.5,3.42,3,2.7,1.8,1.2,0.96],["5:4","7:5","5:4","3:2","3:4","5:4","4:3","1:1","3:4","4:3","4:3","14:9","4:3","4:3","19:9","3:2","7:3","13:9","17:9","3:2","3:2","35:18","17:9","4:3","3:2","16:9","11:8","17:9","9:5","3:2","3:2","4:3","16:9","19:9","8:3","4:3","7:3","19:10","11:8","16:9","4:3","3:2","4:3","5:3","16:9","4:3","11:8","4:3","4:3","4:3","4:3","4:3","4:3","4:3","4:3","4:3","13:9","4:3","4:3","4:3","11:8","4:3","4:3","4:3","4:3","4:3","4:3","4:3"],[0.143,0.238,0.29,0.43,0.458,0.469,0.49,0.538,0.614,0.64,0.65,0.65,0.71,0.79,0.72,0.8,0.76,0.96,0.93,1,1.29,1.25,1.28,1.39,1.53,1.49,1.59,1.49,1.51,1.61,1.74,1.85,1.79,1.66,1.62,2,1.81,2.01,2.47,2.38,2.7,2.72,3.03,2.97,3.02,3.24,3.41,3.58,3.93,4.3,4.55,4.84,5.41,5.49,5.64,6.02,6.15,6.44,6.92,7.21,7.28,7.43,7.61,8.65,10.81,14.14,21.65,27.04],["Large-Format Film","Large-Format Film","Large-Format Film","Medium-Format Digital","Medium-Format Digital","Medium-Format Digital","IMAX Film","Medium-Format Digital","Medium-Format Digital","Medium-Format Digital","Medium-Format Digital","Medium-Format Digital","Medium-Format Digital","Medium-Format Digital","Large-Format Digital Cinema Camera","Large Format Digital/Vista Vision","65/70mm Film","Digital Cinema Camera","Full-Frame Digital Cinema Camera","35mm","APS-H Sensor DSLR","Digital Cinema Camera","Digital Cinema Camera","35mm Film","APS-C","Digital Cinema Camera","35mm Film","Digital Cinema Camera","35mm Film","APS-C","APS-C","Large Sensor Compact Digital","Digital Cinema Camera","Digital Cinema Camera","35mm Film","Micro Four Thirds System","35mm Film","Digital Cinema Camera","One-Inch Sensor","Digital Cinema Camera","One-Inch Sensor","One-Inch Sensor","Large Sensor Mirrorless","Super 16mm Film","Digital Cinema Camera","Large Sensor Mirrorless","16mm Film","Small Sensor Mirrorless","Small Sensor Mirrorless","Small Sensor Mirrorless","Small Sensor Mirrorless","Small Sensor Mirrorless","Small Sensor Mirrorless","Compact Digital","Compact Digital","Compact Digital","Super 8mm Film","Compact Digital","Compact Digital","Ultra-Compact Digital","8mm Film","Ultra-Compact Digital","Ultra-Compact Digital","Ultra-Compact Digital","Ultra-Compact Digital","Ultra-Compact Digital","Ultra-Compact Digital","Ultra-Compact Digital"]],"container":"<table class=\"display\">\n <thead>\n <tr>\n <th> <\/th>\n <th>Label<\/th>\n <th>Width (mm)<\/th>\n <th>Height (mm)<\/th>\n <th>Aspect Ratio<\/th>\n <th>Crop factor<\/th>\n <th>Category<\/th>\n <\/tr>\n <\/thead>\n<\/table>","options":{"dom":"tp","columnDefs":[{"className":"dt-center","targets":[2,3,4,5]},{"orderable":false,"targets":0},{"name":" ","targets":0},{"name":"Label","targets":1},{"name":"Width (mm)","targets":2},{"name":"Height (mm)","targets":3},{"name":"Aspect Ratio","targets":4},{"name":"Crop factor","targets":5},{"name":"Category","targets":6}],"order":[],"autoWidth":false,"orderClasses":false,"orderCellsTop":true}},"evals":[],"jsHooks":[]}</script>
</div>
</div>
<p><br></p>
<p>Data source: <a href="https://en.wikipedia.org/wiki/Image_sensor_format">Wikipedia</a></p>
<hr>
<p>2024 Roy francis</p>
</main>
<!-- /main column -->
<script id="quarto-html-after-body" type="application/javascript">
window.document.addEventListener("DOMContentLoaded", function (event) {
const toggleBodyColorMode = (bsSheetEl) => {
const mode = bsSheetEl.getAttribute("data-mode");
const bodyEl = window.document.querySelector("body");
if (mode === "dark") {
bodyEl.classList.add("quarto-dark");
bodyEl.classList.remove("quarto-light");
} else {
bodyEl.classList.add("quarto-light");
bodyEl.classList.remove("quarto-dark");
}
}
const toggleBodyColorPrimary = () => {
const bsSheetEl = window.document.querySelector("link#quarto-bootstrap");
if (bsSheetEl) {
toggleBodyColorMode(bsSheetEl);
}
}
toggleBodyColorPrimary();
const icon = "";
const anchorJS = new window.AnchorJS();
anchorJS.options = {
placement: 'right',
icon: icon
};
anchorJS.add('.anchored');
const isCodeAnnotation = (el) => {
for (const clz of el.classList) {
if (clz.startsWith('code-annotation-')) {
return true;
}
}
return false;
}
const onCopySuccess = function(e) {
// button target
const button = e.trigger;
// don't keep focus
button.blur();
// flash "checked"
button.classList.add('code-copy-button-checked');
var currentTitle = button.getAttribute("title");
button.setAttribute("title", "Copied!");
let tooltip;
if (window.bootstrap) {
button.setAttribute("data-bs-toggle", "tooltip");
button.setAttribute("data-bs-placement", "left");
button.setAttribute("data-bs-title", "Copied!");
tooltip = new bootstrap.Tooltip(button,
{ trigger: "manual",
customClass: "code-copy-button-tooltip",
offset: [0, -8]});
tooltip.show();
}
setTimeout(function() {
if (tooltip) {
tooltip.hide();
button.removeAttribute("data-bs-title");
button.removeAttribute("data-bs-toggle");
button.removeAttribute("data-bs-placement");
}
button.setAttribute("title", currentTitle);
button.classList.remove('code-copy-button-checked');
}, 1000);
// clear code selection
e.clearSelection();
}
const getTextToCopy = function(trigger) {
const codeEl = trigger.previousElementSibling.cloneNode(true);
for (const childEl of codeEl.children) {
if (isCodeAnnotation(childEl)) {
childEl.remove();
}
}
return codeEl.innerText;
}
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
text: getTextToCopy
});
clipboard.on('success', onCopySuccess);
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
// For code content inside modals, clipBoardJS needs to be initialized with a container option
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
text: getTextToCopy,
container: window.document.getElementById('quarto-embedded-source-code-modal')
});
clipboardModal.on('success', onCopySuccess);
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
// Inspect non-navigation links and adorn them if external
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
for (var i=0; i<links.length; i++) {
const link = links[i];
if (!isInternal(link.href)) {
// undo the damage that might have been done by quarto-nav.js in the case of
// links that we want to consider external
if (link.dataset.originalHref !== undefined) {
link.href = link.dataset.originalHref;
}
}
}
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
const config = {
allowHTML: true,
maxWidth: 500,
delay: 100,
arrow: false,
appendTo: function(el) {
return el.parentElement;
},
interactive: true,
interactiveBorder: 10,
theme: 'quarto',
placement: 'bottom-start',
};
if (contentFn) {
config.content = contentFn;
}
if (onTriggerFn) {
config.onTrigger = onTriggerFn;
}
if (onUntriggerFn) {
config.onUntrigger = onUntriggerFn;
}
window.tippy(el, config);
}
const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
for (var i=0; i<noterefs.length; i++) {
const ref = noterefs[i];
tippyHover(ref, function() {
// use id or data attribute instead here
let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
try { href = new URL(href).hash; } catch {}
const id = href.replace(/^#\/?/, "");
const note = window.document.getElementById(id);
if (note) {
return note.innerHTML;
} else {
return "";
}
});
}
const xrefs = window.document.querySelectorAll('a.quarto-xref');
const processXRef = (id, note) => {
// Strip column container classes
const stripColumnClz = (el) => {
el.classList.remove("page-full", "page-columns");
if (el.children) {
for (const child of el.children) {
stripColumnClz(child);
}
}
}
stripColumnClz(note)
if (id === null || id.startsWith('sec-')) {
// Special case sections, only their first couple elements
const container = document.createElement("div");
if (note.children && note.children.length > 2) {
container.appendChild(note.children[0].cloneNode(true));
for (let i = 1; i < note.children.length; i++) {
const child = note.children[i];
if (child.tagName === "P" && child.innerText === "") {
continue;
} else {
container.appendChild(child.cloneNode(true));
break;
}
}
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(container);
}
return container.innerHTML
} else {
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
return note.innerHTML;
}
} else {
// Remove any anchor links if they are present
const anchorLink = note.querySelector('a.anchorjs-link');
if (anchorLink) {
anchorLink.remove();
}
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
// TODO in 1.5, we should make sure this works without a callout special case
if (note.classList.contains("callout")) {
return note.outerHTML;
} else {
return note.innerHTML;
}
}
}
for (var i=0; i<xrefs.length; i++) {
const xref = xrefs[i];
tippyHover(xref, undefined, function(instance) {
instance.disable();
let url = xref.getAttribute('href');
let hash = undefined;
if (url.startsWith('#')) {
hash = url;
} else {
try { hash = new URL(url).hash; } catch {}
}
if (hash) {
const id = hash.replace(/^#\/?/, "");
const note = window.document.getElementById(id);
if (note !== null) {
try {
const html = processXRef(id, note.cloneNode(true));
instance.setContent(html);
} finally {
instance.enable();
instance.show();
}
} else {
// See if we can fetch this
fetch(url.split('#')[0])
.then(res => res.text())
.then(html => {
const parser = new DOMParser();
const htmlDoc = parser.parseFromString(html, "text/html");
const note = htmlDoc.getElementById(id);
if (note !== null) {
const html = processXRef(id, note);
instance.setContent(html);
}
}).finally(() => {
instance.enable();
instance.show();
});
}
} else {
// See if we can fetch a full url (with no hash to target)
// This is a special case and we should probably do some content thinning / targeting
fetch(url)
.then(res => res.text())
.then(html => {
const parser = new DOMParser();
const htmlDoc = parser.parseFromString(html, "text/html");
const note = htmlDoc.querySelector('main.content');
if (note !== null) {
// This should only happen for chapter cross references
// (since there is no id in the URL)
// remove the first header
if (note.children.length > 0 && note.children[0].tagName === "HEADER") {
note.children[0].remove();
}
const html = processXRef(null, note);
instance.setContent(html);
}
}).finally(() => {
instance.enable();
instance.show();
});
}
}, function(instance) {
});
}
let selectedAnnoteEl;
const selectorForAnnotation = ( cell, annotation) => {
let cellAttr = 'data-code-cell="' + cell + '"';
let lineAttr = 'data-code-annotation="' + annotation + '"';
const selector = 'span[' + cellAttr + '][' + lineAttr + ']';
return selector;
}
const selectCodeLines = (annoteEl) => {
const doc = window.document;
const targetCell = annoteEl.getAttribute("data-target-cell");
const targetAnnotation = annoteEl.getAttribute("data-target-annotation");
const annoteSpan = window.document.querySelector(selectorForAnnotation(targetCell, targetAnnotation));
const lines = annoteSpan.getAttribute("data-code-lines").split(",");
const lineIds = lines.map((line) => {
return targetCell + "-" + line;
})
let top = null;
let height = null;
let parent = null;
if (lineIds.length > 0) {
//compute the position of the single el (top and bottom and make a div)
const el = window.document.getElementById(lineIds[0]);
top = el.offsetTop;
height = el.offsetHeight;
parent = el.parentElement.parentElement;
if (lineIds.length > 1) {
const lastEl = window.document.getElementById(lineIds[lineIds.length - 1]);
const bottom = lastEl.offsetTop + lastEl.offsetHeight;
height = bottom - top;
}
if (top !== null && height !== null && parent !== null) {
// cook up a div (if necessary) and position it
let div = window.document.getElementById("code-annotation-line-highlight");
if (div === null) {
div = window.document.createElement("div");
div.setAttribute("id", "code-annotation-line-highlight");
div.style.position = 'absolute';
parent.appendChild(div);
}
div.style.top = top - 2 + "px";
div.style.height = height + 4 + "px";
div.style.left = 0;
let gutterDiv = window.document.getElementById("code-annotation-line-highlight-gutter");
if (gutterDiv === null) {
gutterDiv = window.document.createElement("div");
gutterDiv.setAttribute("id", "code-annotation-line-highlight-gutter");
gutterDiv.style.position = 'absolute';
const codeCell = window.document.getElementById(targetCell);
const gutter = codeCell.querySelector('.code-annotation-gutter');
gutter.appendChild(gutterDiv);
}
gutterDiv.style.top = top - 2 + "px";
gutterDiv.style.height = height + 4 + "px";
}
selectedAnnoteEl = annoteEl;
}
};
const unselectCodeLines = () => {
const elementsIds = ["code-annotation-line-highlight", "code-annotation-line-highlight-gutter"];
elementsIds.forEach((elId) => {
const div = window.document.getElementById(elId);
if (div) {
div.remove();
}
});
selectedAnnoteEl = undefined;
};
// Handle positioning of the toggle
window.addEventListener(
"resize",
throttle(() => {
elRect = undefined;
if (selectedAnnoteEl) {
selectCodeLines(selectedAnnoteEl);
}
}, 10)
);
function throttle(fn, ms) {
let throttle = false;
let timer;
return (...args) => {
if(!throttle) { // first call gets through
fn.apply(this, args);
throttle = true;
} else { // all the others get throttled
if(timer) clearTimeout(timer); // cancel #2
timer = setTimeout(() => {