mirror of
https://github.com/penpot/penpot.git
synced 2026-09-20 02:46:14 +00:00
* ♻️ Refactor viewbox * 🎉 Add draw_atlas alternative to draw tiles * 🐛 Fix minor glitches * ♻️ Change how process_animation_frame works * ♻️ Refactor document atlas * ♻️ Refactor max texture size * ♻️ Refactor entrypoints and dead_code
11 lines
433 B
JavaScript
11 lines
433 B
JavaScript
addToLibrary({
|
|
wapi_notifyTilesRenderComplete: function wapi_notifyTilesRenderComplete() {
|
|
// The corresponding listener lives on `document` (main thread), so in a
|
|
// worker context we simply skip the dispatch instead of crashing.
|
|
if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {
|
|
return;
|
|
}
|
|
document.dispatchEvent(new CustomEvent('penpot:wasm:tiles-complete'));
|
|
}
|
|
});
|