@luma.gl/engine
Advanced tools
Comparing version 8.1.1 to 8.1.2
@@ -45,2 +45,3 @@ "use strict"; | ||
onFinalize = _props$onFinalize === void 0 ? function () {} : _props$onFinalize, | ||
onError = props.onError, | ||
_props$gl = props.gl, | ||
@@ -75,2 +76,3 @@ gl = _props$gl === void 0 ? null : _props$gl, | ||
onFinalize: onFinalize, | ||
onError: onError, | ||
gl: gl, | ||
@@ -150,3 +152,3 @@ glOptions: glOptions, | ||
this._getPageLoadPromise().then(function () { | ||
var startPromise = this._getPageLoadPromise().then(function () { | ||
if (!_this._running || _this._initialized) { | ||
@@ -183,2 +185,6 @@ return null; | ||
if (this.props.onError) { | ||
startPromise["catch"](this.props.onError); | ||
} | ||
return this; | ||
@@ -185,0 +191,0 @@ } |
@@ -14,2 +14,3 @@ import { isWebGL, createGLContext, instrumentGLContext, resizeGLContext, resetParameters } from '@luma.gl/gltools'; | ||
onFinalize = () => {}, | ||
onError, | ||
gl = null, | ||
@@ -38,2 +39,3 @@ glOptions = {}, | ||
onFinalize, | ||
onError, | ||
gl, | ||
@@ -104,3 +106,3 @@ glOptions, | ||
this._getPageLoadPromise().then(() => { | ||
const startPromise = this._getPageLoadPromise().then(() => { | ||
if (!this._running || this._initialized) { | ||
@@ -137,2 +139,6 @@ return null; | ||
if (this.props.onError) { | ||
startPromise.catch(this.props.onError); | ||
} | ||
return this; | ||
@@ -139,0 +145,0 @@ } |
@@ -30,2 +30,3 @@ import _typeof from "@babel/runtime/helpers/esm/typeof"; | ||
onFinalize = _props$onFinalize === void 0 ? function () {} : _props$onFinalize, | ||
onError = props.onError, | ||
_props$gl = props.gl, | ||
@@ -59,2 +60,3 @@ gl = _props$gl === void 0 ? null : _props$gl, | ||
onFinalize: onFinalize, | ||
onError: onError, | ||
gl: gl, | ||
@@ -134,3 +136,3 @@ glOptions: glOptions, | ||
this._getPageLoadPromise().then(function () { | ||
var startPromise = this._getPageLoadPromise().then(function () { | ||
if (!_this._running || _this._initialized) { | ||
@@ -167,2 +169,6 @@ return null; | ||
if (this.props.onError) { | ||
startPromise["catch"](this.props.onError); | ||
} | ||
return this; | ||
@@ -169,0 +175,0 @@ } |
{ | ||
"name": "@luma.gl/engine", | ||
"version": "8.1.1", | ||
"version": "8.1.2", | ||
"description": "WebGL2 Components for High Performance Rendering and Computation", | ||
@@ -11,3 +11,3 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://github.com/uber/luma.gl" | ||
"url": "https://github.com/visgl/luma.gl" | ||
}, | ||
@@ -35,10 +35,10 @@ "keywords": [ | ||
"@babel/runtime": "^7.0.0", | ||
"@luma.gl/constants": "8.1.1", | ||
"@luma.gl/gltools": "8.1.1", | ||
"@luma.gl/shadertools": "8.1.1", | ||
"@luma.gl/webgl": "8.1.1", | ||
"@luma.gl/constants": "8.1.2", | ||
"@luma.gl/gltools": "8.1.2", | ||
"@luma.gl/shadertools": "8.1.2", | ||
"@luma.gl/webgl": "8.1.2", | ||
"math.gl": "^3.1.3", | ||
"probe.gl": "^3.2.1" | ||
}, | ||
"gitHead": "4400f4aee7f8ea408f6952c01dc580973f4a821e" | ||
"gitHead": "3a8b3f262b401068dad3cb0f91305d4ee93aeec8" | ||
} |
@@ -36,2 +36,3 @@ /* global window, OffscreenCanvas */ | ||
onFinalize = () => {}, | ||
onError, | ||
@@ -63,2 +64,3 @@ gl = null, | ||
onFinalize, | ||
onError, | ||
@@ -136,3 +138,3 @@ gl, | ||
// Wait for start promise before rendering frame | ||
this._getPageLoadPromise() | ||
const startPromise = this._getPageLoadPromise() | ||
.then(() => { | ||
@@ -171,2 +173,7 @@ if (!this._running || this._initialized) { | ||
}); | ||
if (this.props.onError) { | ||
startPromise.catch(this.props.onError); | ||
} | ||
return this; | ||
@@ -173,0 +180,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2485117
41001
+ Added@luma.gl/constants@8.1.2(transitive)
+ Added@luma.gl/gltools@8.1.2(transitive)
+ Added@luma.gl/shadertools@8.1.2(transitive)
+ Added@luma.gl/webgl@8.1.2(transitive)
- Removed@luma.gl/constants@8.1.1(transitive)
- Removed@luma.gl/gltools@8.1.1(transitive)
- Removed@luma.gl/shadertools@8.1.1(transitive)
- Removed@luma.gl/webgl@8.1.1(transitive)
Updated@luma.gl/constants@8.1.2
Updated@luma.gl/gltools@8.1.2
Updated@luma.gl/shadertools@8.1.2
Updated@luma.gl/webgl@8.1.2