@luma.gl/core 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/dist/adapter/canvas-context.d.ts.map +1 -1
- package/dist/adapter/canvas-context.js +2 -1
- package/dist/dist.dev.js +1 -1
- package/dist/dist.min.js +2 -2
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +2 -2
- package/dist/init.js +1 -1
- package/package.json +2 -2
- package/src/adapter/canvas-context.ts +2 -1
package/dist/init.js
CHANGED
|
@@ -11,7 +11,7 @@ import { lumaStats } from "./utils/stats-manager.js";
|
|
|
11
11
|
function initializeLuma() {
|
|
12
12
|
// Version detection using babel plugin
|
|
13
13
|
// @ts-expect-error
|
|
14
|
-
const VERSION = typeof "9.0.
|
|
14
|
+
const VERSION = typeof "9.0.28" !== 'undefined' ? "9.0.28" : 'running from source';
|
|
15
15
|
const STARTUP_MESSAGE = 'set luma.log.level=1 (or higher) to trace rendering';
|
|
16
16
|
// Assign luma.log.level in console to control logging: \
|
|
17
17
|
// 0: none, 1: minimal, 2: verbose, 3: attribute/uniforms, 4: gl logs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luma.gl/core",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.28",
|
|
4
4
|
"description": "The luma.gl core Device API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"@probe.gl/stats": "^4.0.2",
|
|
47
47
|
"@types/offscreencanvas": "^2019.6.4"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "2068c74ce8b2417f64f4e80993ecf71085d2219d"
|
|
50
50
|
}
|
|
@@ -198,7 +198,8 @@ export abstract class CanvasContext {
|
|
|
198
198
|
// For headless gl we might have used custom width and height
|
|
199
199
|
// hence use cached clientWidth
|
|
200
200
|
const [drawingBufferWidth] = this.getDrawingBufferSize();
|
|
201
|
-
|
|
201
|
+
// _canvasSizeInfo may not be populated if `setDevicePixelRatio` is never called
|
|
202
|
+
const clientWidth = this._canvasSizeInfo.clientWidth || this.htmlCanvas?.clientWidth;
|
|
202
203
|
return clientWidth ? drawingBufferWidth / clientWidth : 1;
|
|
203
204
|
} catch {
|
|
204
205
|
return 1;
|