@waveform-playlist/ui-components 13.1.0 → 13.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2513,12 +2513,12 @@ var SpectrogramChannel = ({
|
|
|
2513
2513
|
const register = onCanvasRegisterRef.current;
|
|
2514
2514
|
const remaining = [];
|
|
2515
2515
|
for (const id of registeredIdsRef.current) {
|
|
2516
|
-
const
|
|
2517
|
-
if (!
|
|
2516
|
+
const parsed = (0, import_core5.parseSpectrogramCanvasId)(id);
|
|
2517
|
+
if (!parsed) {
|
|
2518
2518
|
remaining.push(id);
|
|
2519
2519
|
continue;
|
|
2520
2520
|
}
|
|
2521
|
-
const chunkIdx =
|
|
2521
|
+
const chunkIdx = parsed.chunkIndex;
|
|
2522
2522
|
const canvas = canvasMapRef.current.get(chunkIdx);
|
|
2523
2523
|
if (canvas && canvas.isConnected) {
|
|
2524
2524
|
remaining.push(id);
|
|
@@ -2533,7 +2533,7 @@ var SpectrogramChannel = ({
|
|
|
2533
2533
|
registeredIdsRef.current = remaining;
|
|
2534
2534
|
for (const [canvasIdx, canvas] of canvasMapRef.current.entries()) {
|
|
2535
2535
|
if (transferredCanvasesRef.current.has(canvas)) continue;
|
|
2536
|
-
const canvasId =
|
|
2536
|
+
const canvasId = (0, import_core5.buildSpectrogramCanvasId)({ clipId, channelIndex, chunkIndex: canvasIdx });
|
|
2537
2537
|
let offscreen;
|
|
2538
2538
|
try {
|
|
2539
2539
|
offscreen = canvas.transferControlToOffscreen();
|