Continued work on media schedule panel.

This commit is contained in:
rainbow napkin 2025-01-25 08:37:27 -05:00
parent 42c20455e5
commit 07d1a37453
8 changed files with 344 additions and 67 deletions

View file

@ -35,6 +35,20 @@ class canopyUtils{
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/escape */
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
}
async awaitNextFrame(){
//return a new promise
return new Promise((resolve)=>{
//Before the next frame
requestAnimationFrame(()=>{
//fires before next-next frame (after next frame)
requestAnimationFrame(()=>{
//resolve the promise
resolve();
});
});
})
}
}
class canopyUXUtils{