MCPcopy Create free account
hub / github.com/FastLED/FastLED / getFileManifestJson

Function getFileManifestJson

src/platforms/wasm/compiler/index.ts:446–456  ·  view source on GitHub ↗

* Creates a file manifest JSON for the WASM module * @param {Array } filesJson - Array of file objects * @param {number} frame_rate - Target frame rate for animations * @returns {Object} Manifest object with files and frameRate

(filesJson, frame_rate)

Source from the content-addressed store, hash-verified

444 * @returns {Object} Manifest object with files and frameRate
445 */
446function getFileManifestJson(filesJson, frame_rate) {
447 const trimmedFilesJson = filesJson.map((file) => ({
448 path: file.path,
449 size: file.size,
450 }));
451 const options = {
452 files: trimmedFilesJson,
453 frameRate: frame_rate,
454 };
455 return options;
456}
457
458/**
459 * Updates the canvas with new frame data from FastLED

Callers 1

fastledLoadSetupLoopFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected