@luma.gl/webgl 9.0.26 → 9.0.28
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luma.gl/webgl",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.28",
|
|
4
4
|
"description": "WebGL2 adapter for the luma.gl core API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@luma.gl/core": "^9.0.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@luma.gl/constants": "9.0.
|
|
46
|
+
"@luma.gl/constants": "9.0.28",
|
|
47
47
|
"@probe.gl/env": "^4.0.2"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "2068c74ce8b2417f64f4e80993ecf71085d2219d"
|
|
50
50
|
}
|
|
@@ -203,7 +203,8 @@ ${device.info.vendor}, ${device.info.renderer} for canvas: ${device.canvasContex
|
|
|
203
203
|
|
|
204
204
|
// Create and instrument context
|
|
205
205
|
const canvas = props.gl?.canvas || props.canvas;
|
|
206
|
-
|
|
206
|
+
const autoResize = !props.gl;
|
|
207
|
+
this.canvasContext = new WebGLCanvasContext(this, {...props, autoResize, canvas});
|
|
207
208
|
|
|
208
209
|
this.lost = new Promise<{reason: 'destroyed'; message: string}>(resolve => {
|
|
209
210
|
this._resolveContextLost = resolve;
|
|
@@ -241,7 +242,9 @@ ${device.info.vendor}, ${device.info.renderer} for canvas: ${device.canvasContex
|
|
|
241
242
|
this.features.initializeFeatures();
|
|
242
243
|
}
|
|
243
244
|
|
|
244
|
-
|
|
245
|
+
if (autoResize) {
|
|
246
|
+
this.canvasContext.resize();
|
|
247
|
+
}
|
|
245
248
|
|
|
246
249
|
// Install context state tracking
|
|
247
250
|
// @ts-expect-error - hidden parameters
|