@luma.gl/core 8.5.19 → 8.5.21

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/dist/dist.js CHANGED
@@ -3612,7 +3612,7 @@ __webpack_require__.r(__webpack_exports__);
3612
3612
 
3613
3613
 
3614
3614
 
3615
- const VERSION = true ? "8.5.18" : undefined;
3615
+ const VERSION = true ? "8.5.20" : undefined;
3616
3616
  const isBrowser = Object(_lib_is_browser__WEBPACK_IMPORTED_MODULE_0__["default"])();
3617
3617
  //# sourceMappingURL=globals.js.map
3618
3618
 
@@ -17506,8 +17506,10 @@ function cssToDeviceRatio(gl) {
17506
17506
 
17507
17507
  if (gl.canvas && luma) {
17508
17508
  // For headless gl we might have used custom width and height
17509
- // hence use cached clientWidth
17510
- const {clientWidth} = luma.canvasSizeInfo;
17509
+ // hence prioritize cached clientWidth
17510
+ const cachedSize = luma.canvasSizeInfo;
17511
+ const clientWidth =
17512
+ 'clientWidth' in cachedSize ? cachedSize.clientWidth : gl.canvas.clientWidth;
17511
17513
  return clientWidth ? gl.drawingBufferWidth / clientWidth : 1;
17512
17514
  }
17513
17515
  // use default device pixel ratio
@@ -31123,7 +31125,7 @@ __webpack_require__.r(__webpack_exports__);
31123
31125
  // Version detection using babel plugin
31124
31126
  /* global __VERSION__ */
31125
31127
  // @ts-ignore
31126
- const VERSION = true ? "8.5.18" : undefined;
31128
+ const VERSION = true ? "8.5.20" : undefined;
31127
31129
 
31128
31130
  const STARTUP_MESSAGE = 'set luma.log.level=1 (or higher) to trace rendering';
31129
31131
  // Assign luma.log.level in console to control logging: \