Skip to content

An open source design system that's fully customizable and agent ready

TypeScript
3.5 KB
Raw Blame
// Copyright (c) Meta Platforms, Inc. and affiliates.

/**
 * @file busy.slowtail.fixture.ts
 * @input One recorded busy-main-thread run of a spring settling through a
 *   1,000 ms block in headless Chromium, with a compositor control box
 * @output `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. The spring moves 3.6 px a frame over the window
 *   and about 1.7 px a frame in its tail, on a 1 px cast grid: at +968 ms its
 *   frame holds the position before (the control moved), and the next frame
 *   catches up 2 px.
 * @position Fixture for busy.test.ts
 */

export const block = {from: 0, to: 1000};

export const tracked: ReadonlyArray<readonly [number, number | null]> = [
  [-73.1, null],
  [-56.1, 9],
  [-41.3, 41],
  [-26, 45],
  [-10.1, 50],
  [1.1, 55],
  [17.1, 59],
  [29.7, 64],
  [46.8, 68],
  [57.2, 74],
  [73.9, 78],
  [85.1, 83],
  [101.3, 87],
  [124.4, 93],
  [141.7, 101],
  [152.3, 107],
  [169.5, 110],
  [185.6, 116],
  [196.6, 122],
  [212.6, 125],
  [229.8, 131],
  [246.5, 136],
  [257.7, 141],
  [273.8, 145],
  [286, 150],
  [301.1, 154],
  [323.4, 158],
  [340.6, 165],
  [350.6, 170],
  [367.9, 172],
  [384.2, 177],
  [395.7, 181],
  [411.8, 184],
  [429.2, 189],
  [446.7, 193],
  [456.8, 197],
  [474.1, 200],
  [484.4, 204],
  [501.8, 206],
  [523.8, 210],
  [540.9, 214],
  [551.3, 218],
  [568.7, 220],
  [584.9, 223],
  [596.2, 226],
  [612.3, 229],
  [630, 231],
  [647.3, 235],
  [658.4, 237],
  [675.6, 239],
  [686.1, 242],
  [703.2, 244],
  [729, 246],
  [746.3, 250],
  [756.5, 252],
  [773.6, 254],
  [784.8, 256],
  [801, 257],
  [812.3, 259],
  [829.7, 260],
  [846.9, 262],
  [857, 264],
  [874.2, 265],
  [884.3, 267],
  [901.5, 268],
  [923.8, 270],
  [941, 272],
  [951.2, 274],
  [968.4, 274],
  [981.9, 276],
  [996, 277],
  [1008.7, 278],
  [1029, 279],
  [1046.2, 281],
  [1056.3, 282],
  [1073.7, 282],
  [1085.9, 284],
  [1103.6, 284],
  [1113.8, 285],
  [1131, 286],
  [1141.1, 287],
  [1158.8, 288],
  [1168.9, 289],
  [1186.3, 289],
  [1196.5, 290],
];

export const control: ReadonlyArray<readonly [number, number | null]> = [
  [-73.1, null],
  [-56.1, 123],
  [-41.3, 133],
  [-26, 142],
  [-10.1, 151],
  [1.1, 160],
  [17.1, 167],
  [29.7, 177],
  [46.8, 184],
  [57.2, 194],
  [73.9, 201],
  [85.1, 210],
  [101.3, 217],
  [124.4, 226],
  [141.7, 241],
  [152.3, 231],
  [169.5, 224],
  [185.6, 214],
  [196.6, 204],
  [212.6, 198],
  [229.8, 188],
  [246.5, 178],
  [257.7, 168],
  [273.8, 161],
  [286, 151],
  [301.1, 144],
  [323.4, 135],
  [340.6, 122],
  [350.6, 110],
  [367.9, 105],
  [384.2, 94],
  [395.7, 85],
  [411.8, 78],
  [429.2, 68],
  [446.7, 58],
  [456.8, 48],
  [474.1, 42],
  [484.4, 30],
  [501.8, 25],
  [523.8, 14],
  [540.9, 0],
  [551.3, 11],
  [568.7, 17],
  [584.9, 28],
  [596.2, 37],
  [612.3, 44],
  [630, 54],
  [647.3, 64],
  [658.4, 75],
  [675.6, 81],
  [686.1, 92],
  [703.2, 98],
  [729, 108],
  [746.3, 124],
  [756.5, 134],
  [773.6, 140],
  [784.8, 151],
  [801, 157],
  [812.3, 167],
  [829.7, 174],
  [846.9, 184],
  [857, 194],
  [874.2, 201],
  [884.3, 210],
  [901.5, 217],
  [923.8, 226],
  [941, 241],
  [951.2, 231],
  [968.4, 225],
  [981.9, 215],
  [996, 206],
  [1008.7, 198],
  [1029, 190],
  [1046.2, 178],
  [1056.3, 168],
  [1073.7, 162],
  [1085.9, 151],
  [1103.6, 144],
  [1113.8, 133],
  [1131, 126],
  [1141.1, 117],
  [1158.8, 110],
  [1168.9, 100],
  [1186.3, 94],
  [1196.5, 84],
];