Bind webglcontextlost/webglcontextrestored handling for one canvas.
Returns an idempotent DeckGlDisposalHandle that removes both listeners.
This is a thin recovery seam, not a recovery implementation: it only
cancels the loss event's default action (the browser otherwise treats the
context as permanently lost) and forwards both events. Rebuilding the
Deck instance, re-running adapter.project(...), and re-mounting is the
host's responsibility, exactly as the initial mount was.
Bind
webglcontextlost/webglcontextrestoredhandling for one canvas. Returns an idempotentDeckGlDisposalHandlethat removes both listeners.This is a thin recovery seam, not a recovery implementation: it only cancels the loss event's default action (the browser otherwise treats the context as permanently lost) and forwards both events. Rebuilding the
Deckinstance, re-runningadapter.project(...), and re-mounting is the host's responsibility, exactly as the initial mount was.