framesheet 0.0.0-stage → 0.2.0

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.
Files changed (85) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +247 -2
  3. package/dist/analysis.d.ts +84 -0
  4. package/dist/analysis.d.ts.map +1 -0
  5. package/dist/analysis.js +335 -0
  6. package/dist/analysis.js.map +1 -0
  7. package/dist/checks.d.ts +44 -0
  8. package/dist/checks.d.ts.map +1 -0
  9. package/dist/checks.js +200 -0
  10. package/dist/checks.js.map +1 -0
  11. package/dist/compose.d.ts +130 -0
  12. package/dist/compose.d.ts.map +1 -0
  13. package/dist/compose.js +266 -0
  14. package/dist/compose.js.map +1 -0
  15. package/dist/driver.d.ts +56 -0
  16. package/dist/driver.d.ts.map +1 -0
  17. package/dist/driver.js +94 -0
  18. package/dist/driver.js.map +1 -0
  19. package/dist/generated/assets.d.ts +13 -0
  20. package/dist/generated/assets.d.ts.map +1 -0
  21. package/dist/generated/assets.js +15 -0
  22. package/dist/generated/assets.js.map +1 -0
  23. package/dist/index.d.ts +18 -0
  24. package/dist/index.d.ts.map +1 -0
  25. package/dist/index.js +17 -0
  26. package/dist/index.js.map +1 -0
  27. package/dist/inspect.d.ts +163 -0
  28. package/dist/inspect.d.ts.map +1 -0
  29. package/dist/inspect.js +593 -0
  30. package/dist/inspect.js.map +1 -0
  31. package/dist/marks.d.ts +49 -0
  32. package/dist/marks.d.ts.map +1 -0
  33. package/dist/marks.js +460 -0
  34. package/dist/marks.js.map +1 -0
  35. package/dist/marks.schema.json +307 -0
  36. package/dist/media.d.ts +22 -0
  37. package/dist/media.d.ts.map +1 -0
  38. package/dist/media.js +306 -0
  39. package/dist/media.js.map +1 -0
  40. package/dist/models.d.ts +208 -0
  41. package/dist/models.d.ts.map +1 -0
  42. package/dist/models.js +9 -0
  43. package/dist/models.js.map +1 -0
  44. package/dist/pixels.d.ts +52 -0
  45. package/dist/pixels.d.ts.map +1 -0
  46. package/dist/pixels.js +275 -0
  47. package/dist/pixels.js.map +1 -0
  48. package/dist/pyfmt.d.ts +16 -0
  49. package/dist/pyfmt.d.ts.map +1 -0
  50. package/dist/pyfmt.js +54 -0
  51. package/dist/pyfmt.js.map +1 -0
  52. package/dist/report.schema.json +1326 -0
  53. package/dist/sources.d.ts +43 -0
  54. package/dist/sources.d.ts.map +1 -0
  55. package/dist/sources.js +164 -0
  56. package/dist/sources.js.map +1 -0
  57. package/dist/test.d.ts +46 -0
  58. package/dist/test.d.ts.map +1 -0
  59. package/dist/test.js +58 -0
  60. package/dist/test.js.map +1 -0
  61. package/dist/timing.d.ts +30 -0
  62. package/dist/timing.d.ts.map +1 -0
  63. package/dist/timing.js +128 -0
  64. package/dist/timing.js.map +1 -0
  65. package/dist/video.d.ts +65 -0
  66. package/dist/video.d.ts.map +1 -0
  67. package/dist/video.js +440 -0
  68. package/dist/video.js.map +1 -0
  69. package/package.json +79 -4
  70. package/src/analysis.ts +416 -0
  71. package/src/checks.ts +261 -0
  72. package/src/compose.ts +337 -0
  73. package/src/driver.ts +115 -0
  74. package/src/generated/assets.ts +20 -0
  75. package/src/index.ts +54 -0
  76. package/src/inspect.ts +722 -0
  77. package/src/marks.ts +481 -0
  78. package/src/media.ts +296 -0
  79. package/src/models.ts +225 -0
  80. package/src/pixels.ts +284 -0
  81. package/src/pyfmt.ts +55 -0
  82. package/src/sources.ts +175 -0
  83. package/src/test.ts +100 -0
  84. package/src/timing.ts +133 -0
  85. package/src/video.ts +513 -0
@@ -0,0 +1,1326 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/phil65/framesheet/schema/report.schema.json",
4
+ "$defs": {
5
+ "ActivitySample": {
6
+ "description": "One dense video sample: share of pixels changed since the previous sample.",
7
+ "properties": {
8
+ "t": {
9
+ "title": "T",
10
+ "type": "number"
11
+ },
12
+ "changed_ratio": {
13
+ "title": "Changed Ratio",
14
+ "type": "number"
15
+ }
16
+ },
17
+ "required": [
18
+ "t",
19
+ "changed_ratio"
20
+ ],
21
+ "title": "ActivitySample",
22
+ "type": "object",
23
+ "additionalProperties": false
24
+ },
25
+ "AnimationTiming": {
26
+ "description": "Timing of one declarative animation, as reported by the browser.",
27
+ "properties": {
28
+ "kind": {
29
+ "enum": [
30
+ "smil",
31
+ "css-animation",
32
+ "css-transition",
33
+ "web-animation"
34
+ ],
35
+ "title": "Kind",
36
+ "type": "string"
37
+ },
38
+ "target": {
39
+ "anyOf": [
40
+ {
41
+ "type": "string"
42
+ },
43
+ {
44
+ "type": "null"
45
+ }
46
+ ],
47
+ "default": null,
48
+ "title": "Target"
49
+ },
50
+ "name": {
51
+ "anyOf": [
52
+ {
53
+ "type": "string"
54
+ },
55
+ {
56
+ "type": "null"
57
+ }
58
+ ],
59
+ "default": null,
60
+ "title": "Name"
61
+ },
62
+ "start": {
63
+ "title": "Start",
64
+ "type": "number"
65
+ },
66
+ "duration": {
67
+ "title": "Duration",
68
+ "type": "number"
69
+ },
70
+ "iterations": {
71
+ "anyOf": [
72
+ {
73
+ "type": "number"
74
+ },
75
+ {
76
+ "type": "null"
77
+ }
78
+ ],
79
+ "title": "Iterations"
80
+ },
81
+ "direction": {
82
+ "default": "normal",
83
+ "title": "Direction",
84
+ "type": "string"
85
+ },
86
+ "period": {
87
+ "title": "Period",
88
+ "type": "number"
89
+ },
90
+ "end": {
91
+ "anyOf": [
92
+ {
93
+ "type": "number"
94
+ },
95
+ {
96
+ "type": "null"
97
+ }
98
+ ],
99
+ "title": "End"
100
+ },
101
+ "transform_box": {
102
+ "anyOf": [
103
+ {
104
+ "type": "string"
105
+ },
106
+ {
107
+ "type": "null"
108
+ }
109
+ ],
110
+ "default": null,
111
+ "title": "Transform Box"
112
+ }
113
+ },
114
+ "required": [
115
+ "kind",
116
+ "target",
117
+ "name",
118
+ "start",
119
+ "duration",
120
+ "iterations",
121
+ "direction",
122
+ "period",
123
+ "end",
124
+ "transform_box"
125
+ ],
126
+ "title": "AnimationTiming",
127
+ "type": "object",
128
+ "additionalProperties": false
129
+ },
130
+ "DurationInfo": {
131
+ "description": "The sampled time span and how it was chosen.",
132
+ "properties": {
133
+ "seconds": {
134
+ "title": "Seconds",
135
+ "type": "number"
136
+ },
137
+ "method": {
138
+ "enum": [
139
+ "override",
140
+ "detected",
141
+ "fallback",
142
+ "media"
143
+ ],
144
+ "title": "Method",
145
+ "type": "string"
146
+ },
147
+ "looping": {
148
+ "title": "Looping",
149
+ "type": "boolean"
150
+ },
151
+ "detail": {
152
+ "title": "Detail",
153
+ "type": "string"
154
+ },
155
+ "animations": {
156
+ "items": {
157
+ "$ref": "#/$defs/AnimationTiming"
158
+ },
159
+ "title": "Animations",
160
+ "type": "array"
161
+ }
162
+ },
163
+ "required": [
164
+ "seconds",
165
+ "method",
166
+ "looping",
167
+ "detail",
168
+ "animations"
169
+ ],
170
+ "title": "DurationInfo",
171
+ "type": "object",
172
+ "additionalProperties": false
173
+ },
174
+ "ElementTrack": {
175
+ "description": "Geometry of one animated element over all frames.",
176
+ "properties": {
177
+ "element": {
178
+ "title": "Element",
179
+ "type": "string"
180
+ },
181
+ "animated_by": {
182
+ "items": {
183
+ "type": "string"
184
+ },
185
+ "title": "Animated By",
186
+ "type": "array"
187
+ },
188
+ "units": {
189
+ "enum": [
190
+ "viewBox",
191
+ "px"
192
+ ],
193
+ "title": "Units",
194
+ "type": "string"
195
+ },
196
+ "boxes": {
197
+ "items": {
198
+ "anyOf": [
199
+ {
200
+ "maxItems": 4,
201
+ "minItems": 4,
202
+ "prefixItems": [
203
+ {
204
+ "type": "number"
205
+ },
206
+ {
207
+ "type": "number"
208
+ },
209
+ {
210
+ "type": "number"
211
+ },
212
+ {
213
+ "type": "number"
214
+ }
215
+ ],
216
+ "type": "array"
217
+ },
218
+ {
219
+ "type": "null"
220
+ }
221
+ ]
222
+ },
223
+ "title": "Boxes",
224
+ "type": "array"
225
+ }
226
+ },
227
+ "required": [
228
+ "element",
229
+ "animated_by",
230
+ "units",
231
+ "boxes"
232
+ ],
233
+ "title": "ElementTrack",
234
+ "type": "object",
235
+ "additionalProperties": false
236
+ },
237
+ "Finding": {
238
+ "description": "A single problem (or noteworthy fact) found by a static or render check.",
239
+ "properties": {
240
+ "severity": {
241
+ "enum": [
242
+ "error",
243
+ "warning",
244
+ "info"
245
+ ],
246
+ "title": "Severity",
247
+ "type": "string"
248
+ },
249
+ "code": {
250
+ "title": "Code",
251
+ "type": "string",
252
+ "enum": [
253
+ "malformed-xml",
254
+ "not-svg",
255
+ "missing-xmlns",
256
+ "missing-viewbox",
257
+ "missing-title",
258
+ "script",
259
+ "foreign-object",
260
+ "event-handler",
261
+ "external-url",
262
+ "positive-begin",
263
+ "duplicate-id",
264
+ "broken-ref",
265
+ "css-external",
266
+ "no-reduced-motion",
267
+ "transform-origin-without-box",
268
+ "transform-without-box",
269
+ "large-file",
270
+ "parked-at-origin",
271
+ "outside-bounds",
272
+ "text-overflow",
273
+ "svg-transform-box",
274
+ "non-seamless-loop",
275
+ "js-driven-motion",
276
+ "no-visible-motion",
277
+ "no-motion",
278
+ "console-error",
279
+ "video-static-stretch",
280
+ "video-black-frames",
281
+ "video-blank-frames",
282
+ "video-abrupt-cut",
283
+ "video-mark-overlap"
284
+ ]
285
+ },
286
+ "message": {
287
+ "title": "Message",
288
+ "type": "string"
289
+ },
290
+ "check": {
291
+ "enum": [
292
+ "static",
293
+ "render"
294
+ ],
295
+ "title": "Check",
296
+ "type": "string"
297
+ },
298
+ "element": {
299
+ "anyOf": [
300
+ {
301
+ "type": "string"
302
+ },
303
+ {
304
+ "type": "null"
305
+ }
306
+ ],
307
+ "default": null,
308
+ "title": "Element"
309
+ },
310
+ "times": {
311
+ "anyOf": [
312
+ {
313
+ "items": {
314
+ "type": "number"
315
+ },
316
+ "type": "array"
317
+ },
318
+ {
319
+ "type": "null"
320
+ }
321
+ ],
322
+ "default": null,
323
+ "title": "Times"
324
+ }
325
+ },
326
+ "required": [
327
+ "severity",
328
+ "code",
329
+ "message",
330
+ "check",
331
+ "element",
332
+ "times"
333
+ ],
334
+ "title": "Finding",
335
+ "type": "object",
336
+ "additionalProperties": false
337
+ },
338
+ "FrameMetrics": {
339
+ "description": "Per-frame numbers.",
340
+ "properties": {
341
+ "index": {
342
+ "title": "Index",
343
+ "type": "integer"
344
+ },
345
+ "t": {
346
+ "title": "T",
347
+ "type": "number"
348
+ },
349
+ "changed_ratio": {
350
+ "title": "Changed Ratio",
351
+ "type": "number"
352
+ },
353
+ "changed_box": {
354
+ "anyOf": [
355
+ {
356
+ "maxItems": 4,
357
+ "minItems": 4,
358
+ "prefixItems": [
359
+ {
360
+ "type": "number"
361
+ },
362
+ {
363
+ "type": "number"
364
+ },
365
+ {
366
+ "type": "number"
367
+ },
368
+ {
369
+ "type": "number"
370
+ }
371
+ ],
372
+ "type": "array"
373
+ },
374
+ {
375
+ "type": "null"
376
+ }
377
+ ],
378
+ "default": null,
379
+ "title": "Changed Box"
380
+ },
381
+ "path": {
382
+ "anyOf": [
383
+ {
384
+ "format": "path",
385
+ "type": "string"
386
+ },
387
+ {
388
+ "type": "null"
389
+ }
390
+ ],
391
+ "default": null,
392
+ "title": "Path"
393
+ }
394
+ },
395
+ "required": [
396
+ "index",
397
+ "t",
398
+ "changed_ratio",
399
+ "changed_box",
400
+ "path"
401
+ ],
402
+ "title": "FrameMetrics",
403
+ "type": "object",
404
+ "additionalProperties": false
405
+ },
406
+ "Images": {
407
+ "properties": {
408
+ "full": {
409
+ "format": "path",
410
+ "title": "Full",
411
+ "type": "string"
412
+ },
413
+ "sheet": {
414
+ "format": "path",
415
+ "title": "Sheet",
416
+ "type": "string"
417
+ },
418
+ "heatmap": {
419
+ "format": "path",
420
+ "title": "Heatmap",
421
+ "type": "string"
422
+ },
423
+ "report": {
424
+ "format": "path",
425
+ "title": "Report",
426
+ "type": "string"
427
+ }
428
+ },
429
+ "required": [
430
+ "full",
431
+ "sheet",
432
+ "heatmap",
433
+ "report"
434
+ ],
435
+ "title": "Images",
436
+ "type": "object",
437
+ "additionalProperties": false
438
+ },
439
+ "LoopInfo": {
440
+ "description": "How cleanly the last frame of a cycle joins the first.",
441
+ "properties": {
442
+ "checked": {
443
+ "title": "Checked",
444
+ "type": "boolean"
445
+ },
446
+ "seamless": {
447
+ "anyOf": [
448
+ {
449
+ "type": "boolean"
450
+ },
451
+ {
452
+ "type": "null"
453
+ }
454
+ ],
455
+ "default": null,
456
+ "title": "Seamless"
457
+ },
458
+ "seam_ratio": {
459
+ "anyOf": [
460
+ {
461
+ "type": "number"
462
+ },
463
+ {
464
+ "type": "null"
465
+ }
466
+ ],
467
+ "default": null,
468
+ "title": "Seam Ratio"
469
+ },
470
+ "step_ratio": {
471
+ "anyOf": [
472
+ {
473
+ "type": "number"
474
+ },
475
+ {
476
+ "type": "null"
477
+ }
478
+ ],
479
+ "default": null,
480
+ "title": "Step Ratio"
481
+ },
482
+ "seam_box": {
483
+ "anyOf": [
484
+ {
485
+ "maxItems": 4,
486
+ "minItems": 4,
487
+ "prefixItems": [
488
+ {
489
+ "type": "number"
490
+ },
491
+ {
492
+ "type": "number"
493
+ },
494
+ {
495
+ "type": "number"
496
+ },
497
+ {
498
+ "type": "number"
499
+ }
500
+ ],
501
+ "type": "array"
502
+ },
503
+ {
504
+ "type": "null"
505
+ }
506
+ ],
507
+ "default": null,
508
+ "title": "Seam Box"
509
+ },
510
+ "detail": {
511
+ "title": "Detail",
512
+ "type": "string"
513
+ }
514
+ },
515
+ "required": [
516
+ "checked",
517
+ "seamless",
518
+ "seam_ratio",
519
+ "step_ratio",
520
+ "seam_box",
521
+ "detail"
522
+ ],
523
+ "title": "LoopInfo",
524
+ "type": "object",
525
+ "additionalProperties": false
526
+ },
527
+ "MarkFrame": {
528
+ "additionalProperties": false,
529
+ "description": "Pixel size the coordinates refer to (omit for normalized 0-1 coordinates).",
530
+ "properties": {
531
+ "width": {
532
+ "exclusiveMinimum": 0,
533
+ "title": "Width",
534
+ "type": "number"
535
+ },
536
+ "height": {
537
+ "exclusiveMinimum": 0,
538
+ "title": "Height",
539
+ "type": "number"
540
+ }
541
+ },
542
+ "required": [
543
+ "width",
544
+ "height"
545
+ ],
546
+ "title": "MarkFrame",
547
+ "type": "object"
548
+ },
549
+ "MarkPoint": {
550
+ "additionalProperties": false,
551
+ "description": "An instant at a position, e.g. a click: drawn on the tile nearest to ``t``.",
552
+ "properties": {
553
+ "t": {
554
+ "minimum": 0,
555
+ "title": "T",
556
+ "type": "number"
557
+ },
558
+ "x": {
559
+ "title": "X",
560
+ "type": "number"
561
+ },
562
+ "y": {
563
+ "title": "Y",
564
+ "type": "number"
565
+ },
566
+ "label": {
567
+ "anyOf": [
568
+ {
569
+ "type": "string"
570
+ },
571
+ {
572
+ "type": "null"
573
+ }
574
+ ],
575
+ "default": null,
576
+ "title": "Label"
577
+ },
578
+ "kind": {
579
+ "anyOf": [
580
+ {
581
+ "type": "string"
582
+ },
583
+ {
584
+ "type": "null"
585
+ }
586
+ ],
587
+ "default": null,
588
+ "title": "Kind"
589
+ },
590
+ "duration": {
591
+ "default": 0.0,
592
+ "minimum": 0,
593
+ "title": "Duration",
594
+ "type": "number"
595
+ }
596
+ },
597
+ "required": [
598
+ "t",
599
+ "x",
600
+ "y",
601
+ "label",
602
+ "kind",
603
+ "duration"
604
+ ],
605
+ "title": "MarkPoint",
606
+ "type": "object"
607
+ },
608
+ "MarkRegion": {
609
+ "additionalProperties": false,
610
+ "description": "A time range, optionally with a box: a target element, a zoom, a highlight.",
611
+ "properties": {
612
+ "x": {
613
+ "anyOf": [
614
+ {
615
+ "type": "number"
616
+ },
617
+ {
618
+ "type": "null"
619
+ }
620
+ ],
621
+ "default": null,
622
+ "title": "X"
623
+ },
624
+ "y": {
625
+ "anyOf": [
626
+ {
627
+ "type": "number"
628
+ },
629
+ {
630
+ "type": "null"
631
+ }
632
+ ],
633
+ "default": null,
634
+ "title": "Y"
635
+ },
636
+ "w": {
637
+ "anyOf": [
638
+ {
639
+ "exclusiveMinimum": 0,
640
+ "type": "number"
641
+ },
642
+ {
643
+ "type": "null"
644
+ }
645
+ ],
646
+ "default": null,
647
+ "title": "W"
648
+ },
649
+ "h": {
650
+ "anyOf": [
651
+ {
652
+ "exclusiveMinimum": 0,
653
+ "type": "number"
654
+ },
655
+ {
656
+ "type": "null"
657
+ }
658
+ ],
659
+ "default": null,
660
+ "title": "H"
661
+ },
662
+ "start": {
663
+ "minimum": 0,
664
+ "title": "Start",
665
+ "type": "number"
666
+ },
667
+ "end": {
668
+ "minimum": 0,
669
+ "title": "End",
670
+ "type": "number"
671
+ },
672
+ "label": {
673
+ "anyOf": [
674
+ {
675
+ "type": "string"
676
+ },
677
+ {
678
+ "type": "null"
679
+ }
680
+ ],
681
+ "default": null,
682
+ "title": "Label"
683
+ },
684
+ "kind": {
685
+ "anyOf": [
686
+ {
687
+ "type": "string"
688
+ },
689
+ {
690
+ "type": "null"
691
+ }
692
+ ],
693
+ "default": null,
694
+ "title": "Kind"
695
+ }
696
+ },
697
+ "required": [
698
+ "x",
699
+ "y",
700
+ "w",
701
+ "h",
702
+ "start",
703
+ "end",
704
+ "label",
705
+ "kind"
706
+ ],
707
+ "title": "MarkRegion",
708
+ "type": "object"
709
+ },
710
+ "MarkSpan": {
711
+ "additionalProperties": false,
712
+ "description": "A labelled time range, e.g. a caption; the optional box is its screen area.",
713
+ "properties": {
714
+ "x": {
715
+ "anyOf": [
716
+ {
717
+ "type": "number"
718
+ },
719
+ {
720
+ "type": "null"
721
+ }
722
+ ],
723
+ "default": null,
724
+ "title": "X"
725
+ },
726
+ "y": {
727
+ "anyOf": [
728
+ {
729
+ "type": "number"
730
+ },
731
+ {
732
+ "type": "null"
733
+ }
734
+ ],
735
+ "default": null,
736
+ "title": "Y"
737
+ },
738
+ "w": {
739
+ "anyOf": [
740
+ {
741
+ "exclusiveMinimum": 0,
742
+ "type": "number"
743
+ },
744
+ {
745
+ "type": "null"
746
+ }
747
+ ],
748
+ "default": null,
749
+ "title": "W"
750
+ },
751
+ "h": {
752
+ "anyOf": [
753
+ {
754
+ "exclusiveMinimum": 0,
755
+ "type": "number"
756
+ },
757
+ {
758
+ "type": "null"
759
+ }
760
+ ],
761
+ "default": null,
762
+ "title": "H"
763
+ },
764
+ "start": {
765
+ "minimum": 0,
766
+ "title": "Start",
767
+ "type": "number"
768
+ },
769
+ "end": {
770
+ "minimum": 0,
771
+ "title": "End",
772
+ "type": "number"
773
+ },
774
+ "label": {
775
+ "title": "Label",
776
+ "type": "string"
777
+ },
778
+ "kind": {
779
+ "anyOf": [
780
+ {
781
+ "type": "string"
782
+ },
783
+ {
784
+ "type": "null"
785
+ }
786
+ ],
787
+ "default": null,
788
+ "title": "Kind"
789
+ }
790
+ },
791
+ "required": [
792
+ "x",
793
+ "y",
794
+ "w",
795
+ "h",
796
+ "start",
797
+ "end",
798
+ "label",
799
+ "kind"
800
+ ],
801
+ "title": "MarkSpan",
802
+ "type": "object"
803
+ },
804
+ "Marks": {
805
+ "additionalProperties": false,
806
+ "description": "Annotations drawn onto video tiles and the timeline (``--marks marks.json``).\n\nTimes are seconds of the media; coordinates are fractions (0-1) of the video frame,\nor pixels of ``frame`` if given.",
807
+ "properties": {
808
+ "frame": {
809
+ "anyOf": [
810
+ {
811
+ "$ref": "#/$defs/MarkFrame"
812
+ },
813
+ {
814
+ "type": "null"
815
+ }
816
+ ],
817
+ "default": null
818
+ },
819
+ "points": {
820
+ "items": {
821
+ "$ref": "#/$defs/MarkPoint"
822
+ },
823
+ "title": "Points",
824
+ "type": "array"
825
+ },
826
+ "regions": {
827
+ "items": {
828
+ "$ref": "#/$defs/MarkRegion"
829
+ },
830
+ "title": "Regions",
831
+ "type": "array"
832
+ },
833
+ "spans": {
834
+ "items": {
835
+ "$ref": "#/$defs/MarkSpan"
836
+ },
837
+ "title": "Spans",
838
+ "type": "array"
839
+ }
840
+ },
841
+ "title": "Marks",
842
+ "type": "object",
843
+ "required": [
844
+ "frame",
845
+ "points",
846
+ "regions",
847
+ "spans"
848
+ ]
849
+ },
850
+ "VideoInfo": {
851
+ "description": "Media facts and dense-sample metrics of a video or animated image.",
852
+ "properties": {
853
+ "container": {
854
+ "title": "Container",
855
+ "type": "string"
856
+ },
857
+ "codec": {
858
+ "anyOf": [
859
+ {
860
+ "type": "string"
861
+ },
862
+ {
863
+ "type": "null"
864
+ }
865
+ ],
866
+ "title": "Codec"
867
+ },
868
+ "decoder": {
869
+ "enum": [
870
+ "video",
871
+ "image-decoder"
872
+ ],
873
+ "title": "Decoder",
874
+ "type": "string"
875
+ },
876
+ "width": {
877
+ "title": "Width",
878
+ "type": "integer"
879
+ },
880
+ "height": {
881
+ "title": "Height",
882
+ "type": "integer"
883
+ },
884
+ "media_duration": {
885
+ "anyOf": [
886
+ {
887
+ "type": "number"
888
+ },
889
+ {
890
+ "type": "null"
891
+ }
892
+ ],
893
+ "title": "Media Duration"
894
+ },
895
+ "fps": {
896
+ "anyOf": [
897
+ {
898
+ "type": "number"
899
+ },
900
+ {
901
+ "type": "null"
902
+ }
903
+ ],
904
+ "title": "Fps"
905
+ },
906
+ "frame_count": {
907
+ "anyOf": [
908
+ {
909
+ "type": "integer"
910
+ },
911
+ {
912
+ "type": "null"
913
+ }
914
+ ],
915
+ "title": "Frame Count"
916
+ },
917
+ "start": {
918
+ "title": "Start",
919
+ "type": "number"
920
+ },
921
+ "end": {
922
+ "title": "End",
923
+ "type": "number"
924
+ },
925
+ "static_threshold": {
926
+ "title": "Static Threshold",
927
+ "type": "number"
928
+ },
929
+ "samples": {
930
+ "items": {
931
+ "$ref": "#/$defs/ActivitySample"
932
+ },
933
+ "title": "Samples",
934
+ "type": "array"
935
+ },
936
+ "tiles": {
937
+ "items": {
938
+ "$ref": "#/$defs/VideoTile"
939
+ },
940
+ "title": "Tiles",
941
+ "type": "array"
942
+ }
943
+ },
944
+ "required": [
945
+ "container",
946
+ "codec",
947
+ "decoder",
948
+ "width",
949
+ "height",
950
+ "media_duration",
951
+ "fps",
952
+ "frame_count",
953
+ "start",
954
+ "end",
955
+ "static_threshold",
956
+ "samples",
957
+ "tiles"
958
+ ],
959
+ "title": "VideoInfo",
960
+ "type": "object",
961
+ "additionalProperties": false
962
+ },
963
+ "VideoTile": {
964
+ "description": "Per-tile numbers for videos, so an agent can score without looking.",
965
+ "properties": {
966
+ "index": {
967
+ "title": "Index",
968
+ "type": "integer"
969
+ },
970
+ "t": {
971
+ "title": "T",
972
+ "type": "number"
973
+ },
974
+ "media_time": {
975
+ "anyOf": [
976
+ {
977
+ "type": "number"
978
+ },
979
+ {
980
+ "type": "null"
981
+ }
982
+ ],
983
+ "title": "Media Time"
984
+ },
985
+ "black": {
986
+ "title": "Black",
987
+ "type": "boolean"
988
+ },
989
+ "blank": {
990
+ "title": "Blank",
991
+ "type": "boolean"
992
+ },
993
+ "duplicate": {
994
+ "title": "Duplicate",
995
+ "type": "boolean"
996
+ },
997
+ "sharpness": {
998
+ "title": "Sharpness",
999
+ "type": "number"
1000
+ },
1001
+ "marks": {
1002
+ "items": {
1003
+ "type": "string"
1004
+ },
1005
+ "title": "Marks",
1006
+ "type": "array"
1007
+ }
1008
+ },
1009
+ "required": [
1010
+ "index",
1011
+ "t",
1012
+ "media_time",
1013
+ "black",
1014
+ "blank",
1015
+ "duplicate",
1016
+ "sharpness",
1017
+ "marks"
1018
+ ],
1019
+ "title": "VideoTile",
1020
+ "type": "object",
1021
+ "additionalProperties": false
1022
+ }
1023
+ },
1024
+ "description": "Everything framesheet found out about one input.",
1025
+ "properties": {
1026
+ "source": {
1027
+ "title": "Source",
1028
+ "type": "string"
1029
+ },
1030
+ "kind": {
1031
+ "enum": [
1032
+ "svg",
1033
+ "html",
1034
+ "video"
1035
+ ],
1036
+ "title": "Kind",
1037
+ "type": "string"
1038
+ },
1039
+ "viewport": {
1040
+ "maxItems": 2,
1041
+ "minItems": 2,
1042
+ "prefixItems": [
1043
+ {
1044
+ "type": "integer"
1045
+ },
1046
+ {
1047
+ "type": "integer"
1048
+ }
1049
+ ],
1050
+ "title": "Viewport",
1051
+ "type": "array"
1052
+ },
1053
+ "device_scale_factor": {
1054
+ "title": "Device Scale Factor",
1055
+ "type": "number"
1056
+ },
1057
+ "canvas": {
1058
+ "maxItems": 4,
1059
+ "minItems": 4,
1060
+ "prefixItems": [
1061
+ {
1062
+ "type": "number"
1063
+ },
1064
+ {
1065
+ "type": "number"
1066
+ },
1067
+ {
1068
+ "type": "number"
1069
+ },
1070
+ {
1071
+ "type": "number"
1072
+ }
1073
+ ],
1074
+ "title": "Canvas",
1075
+ "type": "array"
1076
+ },
1077
+ "duration": {
1078
+ "$ref": "#/$defs/DurationInfo"
1079
+ },
1080
+ "times": {
1081
+ "items": {
1082
+ "type": "number"
1083
+ },
1084
+ "title": "Times",
1085
+ "type": "array"
1086
+ },
1087
+ "full_at": {
1088
+ "title": "Full At",
1089
+ "type": "number"
1090
+ },
1091
+ "images": {
1092
+ "$ref": "#/$defs/Images"
1093
+ },
1094
+ "findings": {
1095
+ "items": {
1096
+ "$ref": "#/$defs/Finding"
1097
+ },
1098
+ "title": "Findings",
1099
+ "type": "array"
1100
+ },
1101
+ "frames": {
1102
+ "items": {
1103
+ "$ref": "#/$defs/FrameMetrics"
1104
+ },
1105
+ "title": "Frames",
1106
+ "type": "array"
1107
+ },
1108
+ "elements": {
1109
+ "items": {
1110
+ "$ref": "#/$defs/ElementTrack"
1111
+ },
1112
+ "title": "Elements",
1113
+ "type": "array"
1114
+ },
1115
+ "loop": {
1116
+ "$ref": "#/$defs/LoopInfo"
1117
+ },
1118
+ "console_errors": {
1119
+ "items": {
1120
+ "type": "string"
1121
+ },
1122
+ "title": "Console Errors",
1123
+ "type": "array"
1124
+ },
1125
+ "video": {
1126
+ "anyOf": [
1127
+ {
1128
+ "$ref": "#/$defs/VideoInfo"
1129
+ },
1130
+ {
1131
+ "type": "null"
1132
+ }
1133
+ ],
1134
+ "default": null
1135
+ },
1136
+ "marks": {
1137
+ "anyOf": [
1138
+ {
1139
+ "$ref": "#/$defs/Marks"
1140
+ },
1141
+ {
1142
+ "type": "null"
1143
+ }
1144
+ ],
1145
+ "default": null
1146
+ }
1147
+ },
1148
+ "required": [
1149
+ "source",
1150
+ "kind",
1151
+ "viewport",
1152
+ "device_scale_factor",
1153
+ "canvas",
1154
+ "duration",
1155
+ "times",
1156
+ "full_at",
1157
+ "images",
1158
+ "findings",
1159
+ "frames",
1160
+ "elements",
1161
+ "loop",
1162
+ "console_errors",
1163
+ "video",
1164
+ "marks"
1165
+ ],
1166
+ "title": "InspectionResult",
1167
+ "type": "object",
1168
+ "additionalProperties": false,
1169
+ "x-finding-codes": {
1170
+ "malformed-xml": {
1171
+ "severity": "error",
1172
+ "check": "static",
1173
+ "description": "The SVG is not well-formed XML."
1174
+ },
1175
+ "not-svg": {
1176
+ "severity": "error",
1177
+ "check": "static",
1178
+ "description": "The root element is not <svg>."
1179
+ },
1180
+ "missing-xmlns": {
1181
+ "severity": "error",
1182
+ "check": "static",
1183
+ "description": "The root <svg> lacks the SVG namespace."
1184
+ },
1185
+ "missing-viewbox": {
1186
+ "severity": "error",
1187
+ "check": "static",
1188
+ "description": "The root <svg> has no viewBox."
1189
+ },
1190
+ "missing-title": {
1191
+ "severity": "warning",
1192
+ "check": "static",
1193
+ "description": "No aria-label or <title>."
1194
+ },
1195
+ "script": {
1196
+ "severity": "error",
1197
+ "check": "static",
1198
+ "description": "Contains <script>."
1199
+ },
1200
+ "foreign-object": {
1201
+ "severity": "warning",
1202
+ "check": "static",
1203
+ "description": "Contains <foreignObject>."
1204
+ },
1205
+ "event-handler": {
1206
+ "severity": "error",
1207
+ "check": "static",
1208
+ "description": "Inline on* event handler attribute."
1209
+ },
1210
+ "external-url": {
1211
+ "severity": "warning",
1212
+ "check": "static",
1213
+ "description": "External http(s) URL in an attribute."
1214
+ },
1215
+ "positive-begin": {
1216
+ "severity": "warning",
1217
+ "check": "static",
1218
+ "description": "<animateMotion> with a positive begin."
1219
+ },
1220
+ "duplicate-id": {
1221
+ "severity": "error",
1222
+ "check": "static",
1223
+ "description": "The same id is used more than once."
1224
+ },
1225
+ "broken-ref": {
1226
+ "severity": "error",
1227
+ "check": "static",
1228
+ "description": "#id / url(#id) reference without a matching id."
1229
+ },
1230
+ "css-external": {
1231
+ "severity": "warning",
1232
+ "check": "static",
1233
+ "description": "CSS references an external URL or font."
1234
+ },
1235
+ "no-reduced-motion": {
1236
+ "severity": "warning",
1237
+ "check": "static",
1238
+ "description": "CSS animations without prefers-reduced-motion."
1239
+ },
1240
+ "transform-origin-without-box": {
1241
+ "severity": "warning",
1242
+ "check": "static",
1243
+ "description": "CSS transform-origin without transform-box in SVG."
1244
+ },
1245
+ "transform-without-box": {
1246
+ "severity": "warning",
1247
+ "check": "static",
1248
+ "description": "@keyframes animate transforms in SVG without transform-box."
1249
+ },
1250
+ "large-file": {
1251
+ "severity": "warning",
1252
+ "check": "static",
1253
+ "description": "SVG larger than 100 KB."
1254
+ },
1255
+ "parked-at-origin": {
1256
+ "severity": "warning",
1257
+ "check": "render",
1258
+ "description": "Small SVG element sits at the origin (0,0)."
1259
+ },
1260
+ "outside-bounds": {
1261
+ "severity": "warning",
1262
+ "check": "render",
1263
+ "description": "Element extends outside the viewBox/viewport."
1264
+ },
1265
+ "text-overflow": {
1266
+ "severity": "warning",
1267
+ "check": "render",
1268
+ "description": "Text larger than its container."
1269
+ },
1270
+ "svg-transform-box": {
1271
+ "severity": "warning",
1272
+ "check": "render",
1273
+ "description": "CSS transform animation pivots around the SVG origin."
1274
+ },
1275
+ "non-seamless-loop": {
1276
+ "severity": "warning",
1277
+ "check": "render",
1278
+ "description": "The loop jumps at the cycle end."
1279
+ },
1280
+ "js-driven-motion": {
1281
+ "severity": "warning",
1282
+ "check": "render",
1283
+ "description": "Pixels change without declarative animations."
1284
+ },
1285
+ "no-visible-motion": {
1286
+ "severity": "info",
1287
+ "check": "render",
1288
+ "description": "Animations declared but no pixel changed."
1289
+ },
1290
+ "no-motion": {
1291
+ "severity": "info",
1292
+ "check": "render",
1293
+ "description": "No animation and no pixel change."
1294
+ },
1295
+ "console-error": {
1296
+ "severity": "warning",
1297
+ "check": "render",
1298
+ "description": "console.error or uncaught page error."
1299
+ },
1300
+ "video-static-stretch": {
1301
+ "severity": "warning",
1302
+ "check": "render",
1303
+ "description": "No visible change for longer than the static threshold (dead time)."
1304
+ },
1305
+ "video-black-frames": {
1306
+ "severity": "warning",
1307
+ "check": "render",
1308
+ "description": "Sampled frames that are (almost) all black."
1309
+ },
1310
+ "video-blank-frames": {
1311
+ "severity": "warning",
1312
+ "check": "render",
1313
+ "description": "Sampled frames of one flat colour (not black)."
1314
+ },
1315
+ "video-abrupt-cut": {
1316
+ "severity": "info",
1317
+ "check": "render",
1318
+ "description": "One large change between quiet neighbours."
1319
+ },
1320
+ "video-mark-overlap": {
1321
+ "severity": "warning",
1322
+ "check": "render",
1323
+ "description": "A span box (e.g. a caption) covers an active target region."
1324
+ }
1325
+ }
1326
+ }