* 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)
| 444 | * @returns {Object} Manifest object with files and frameRate |
| 445 | */ |
| 446 | function 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 |
no test coverage detected