UNPKG

motion-dom

Version:
1 lines • 1.01 kB
{"version":3,"file":"buffer.mjs","sources":["../../../src/stats/buffer.ts"],"sourcesContent":["import type { LayoutProjectionMetrics, StatsRecording } from \"./types\"\n\nexport type InactiveStatsBuffer = {\n value: null\n addProjectionMetrics: null\n countProjection?: undefined\n}\n\nexport type ActiveStatsBuffer = {\n value: StatsRecording\n addProjectionMetrics: (metrics: LayoutProjectionMetrics) => void\n /**\n * Counts one projection metric, by its index in recordStats()'s\n * projectionMetrics.\n * Called without one at the end of a projection frame, it records the\n * frame's counts and starts the next.\n */\n countProjection: (metric?: number) => void\n}\n\nexport const statsBuffer: InactiveStatsBuffer | ActiveStatsBuffer = {\n value: null,\n addProjectionMetrics: null,\n countProjection: undefined,\n}\n"],"names":[],"mappings":"AAoBO,MAAM,WAAW,GAA4C;AAChE,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,oBAAoB,EAAE,IAAI;AAC1B,IAAA,eAAe,EAAE,SAAS;;;;;"}