@xterm/addon-webgl 0.20.0-beta.265 → 0.20.0-beta.267
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/README.md +1 -1
- package/lib/addon-webgl.js +1 -1
- package/lib/addon-webgl.js.map +1 -1
- package/lib/addon-webgl.mjs +1 -1
- package/lib/addon-webgl.mjs.map +1 -1
- package/package.json +3 -3
- package/src/GlyphRenderer.ts +1 -1
- package/src/TextureAtlas.ts +3 -3
- package/src/WebglAddon.ts +1 -1
- package/src/WebglRenderer.ts +2 -2
- package/typings/addon-webgl.d.ts +2 -2
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ See the full [API](https://github.com/xtermjs/xterm.js/blob/master/addons/addon-
|
|
|
23
23
|
|
|
24
24
|
### Handling Context Loss
|
|
25
25
|
|
|
26
|
-
The browser may drop WebGL contexts for various reasons like OOM or after the system has been suspended. There is an API exposed that fires the `webglcontextlost` event
|
|
26
|
+
The browser may drop WebGL contexts for various reasons like OOM or after the system has been suspended. There is an API exposed that fires the `webglcontextlost` event on the canvas so embedders can handle it however they wish. An easy, but suboptimal way, to handle this is by disposing of WebglAddon when the event fires:
|
|
27
27
|
|
|
28
28
|
```ts
|
|
29
29
|
const terminal = new Terminal();
|