An open source design system that's fully customizable and agent ready
TypeScript
// Copyright (c) Meta Platforms, Inc. and affiliates.
/**
* @file busy.lateblock.fixture.ts
* @input One recorded busy-main-thread run of a slow spring through a 1 s
* block that started 200 ms into its curve, in Playwright's WebKit, in the
* CI WebKit lane's container (4 CPUs, one worker), with a compositor
* control box
* @output `step`, the cast's position step; `tracked` and `control`: the
* screencast frames each was tracked in, as [ms after the block started, x
* in CSS px, or null where it was not found]; `block`: the block's span on
* the same clock. Late in the block the spring moves about 1.3 px a frame
* in 1 px changes. The screencast stamps its frames unevenly. Against
* their stamps, its four frames before +925 ms read 2.4 px a frame. The
* run from +925 ms reads 1.0. Its frame at +942 ms holds the position
* before while the control moves 6 px, against 10 on the frames around
* it. The next frame catches up 2 px.
* @position Fixture for busy.test.ts
*/
/**
* The cast's position step, CSS px: its frames are JPEGs at the viewport's
* size whose 4:2:0 chroma holds color in 2 by 2 pixel blocks.
*/
export const step = {x: 2, y: 2};
export const block = {from: 0, to: 1000};
export const tracked: ReadonlyArray<readonly [number, number | null]> = [
[-207.1, 9],
[-193.2, 9],
[-176.5, 9],
[-163.4, 10],
[-140.7, 11],
[-123.1, 14],
[-107.1, 17],
[-96.2, 20],
[-80.4, 22],
[-68.7, 26],
[-53.9, 29],
[-41.6, 33],
[-26.9, 36],
[-15.0, 41],
[-0.2, 44],
[11.8, 49],
[26.6, 53],
[39.1, 58],
[53.9, 62],
[72.6, 67],
[89.5, 73],
[99.2, 79],
[116.9, 82],
[126.8, 88],
[143.7, 92],
[166.2, 98],
[183.7, 105],
[193.3, 111],
[211.0, 115],
[220.7, 121],
[237.5, 124],
[259.2, 129],
[276.8, 136],
[292.6, 142],
[303.3, 147],
[319.2, 150],
[330.3, 155],
[346.0, 158],
[363.5, 163],
[380.3, 168],
[397.1, 173],
[406.8, 177],
[423.6, 180],
[433.5, 184],
[457.0, 187],
[474.2, 193],
[491.0, 197],
[501.1, 201],
[518.8, 203],
[528.7, 207],
[545.4, 209],
[565.1, 213],
[582.7, 217],
[592.6, 221],
[610.3, 223],
[620.6, 226],
[637.5, 228],
[659.7, 231],
[676.5, 235],
[693.4, 238],
[703.2, 240],
[719.9, 242],
[730.0, 244],
[746.9, 246],
[760.1, 248],
[777.7, 250],
[793.6, 253],
[804.9, 255],
[820.7, 256],
[831.5, 258],
[847.2, 259],
[872.0, 261],
[888.9, 264],
[898.7, 266],
[915.4, 267],
[925.1, 269],
[941.9, 269],
[957.5, 271],
[975.1, 273],
[991.0, 274],
[1001.6, 275],
[1017.4, 276],
[1028.0, 278],
[1043.8, 278],
[1055.1, 280],
[1070.8, 280],
[1082.1, 281],
[1097.8, 282],
[1108.9, 283],
[1124.6, 284],
[1135.6, 285],
[1151.3, 286],
[1162.5, 287],
[1178.2, 287],
[1189.4, 288],
];
export const control: ReadonlyArray<readonly [number, number | null]> = [
[-207.1, null],
[-193.2, 22],
[-176.5, 30],
[-163.4, 41],
[-140.7, 49],
[-123.1, 62],
[-107.1, 73],
[-96.2, 82],
[-80.4, 89],
[-68.7, 98],
[-53.9, 105],
[-41.6, 114],
[-26.9, 122],
[-15.0, 130],
[-0.2, 138],
[11.8, 146],
[26.6, 154],
[39.1, 162],
[53.9, 170],
[72.6, 178],
[89.5, 190],
[99.2, 200],
[116.9, 206],
[126.8, 217],
[143.7, 222],
[166.2, 233],
[183.7, 236],
[193.3, 225],
[211.0, 219],
[220.7, 209],
[237.5, 203],
[259.2, 193],
[276.8, 180],
[292.6, 169],
[303.3, 160],
[319.2, 153],
[330.3, 144],
[346.0, 137],
[363.5, 128],
[380.3, 117],
[397.1, 107],
[406.8, 97],
[423.6, 91],
[433.5, 81],
[457.0, 75],
[474.2, 61],
[491.0, 50],
[501.1, 41],
[518.8, 34],
[528.7, 24],
[545.4, 18],
[565.1, 8],
[582.7, 6],
[592.6, 16],
[610.3, 22],
[620.6, 33],
[637.5, 39],
[659.7, 49],
[676.5, 62],
[693.4, 73],
[703.2, 82],
[719.9, 89],
[730.0, 98],
[746.9, 105],
[760.1, 114],
[777.7, 123],
[793.6, 133],
[804.9, 142],
[820.7, 150],
[831.5, 158],
[847.2, 166],
[872.0, 174],
[888.9, 190],
[898.7, 200],
[915.4, 206],
[925.1, 216],
[941.9, 222],
[957.5, 232],
[975.1, 241],
[991.0, 230],
[1001.6, 221],
[1017.4, 214],
[1028.0, 205],
[1043.8, 199],
[1055.1, 189],
[1070.8, 182],
[1082.1, 173],
[1097.8, 166],
[1108.9, 157],
[1124.6, 150],
[1135.6, 141],
[1151.3, 134],
[1162.5, 125],
[1178.2, 118],
[1189.4, 108],
];