@luma.gl/core
Advanced tools
Comparing version 9.0.0-alpha.51 to 9.0.0-alpha.52
@@ -45,3 +45,3 @@ let _Symbol$toStringTag; | ||
_displayShaderLog(messages) { | ||
var _document, _document$getElements; | ||
var _document, _errors$; | ||
if (typeof document === 'undefined' || !((_document = document) !== null && _document !== void 0 && _document.createElement)) { | ||
@@ -69,3 +69,6 @@ return; | ||
document.body.appendChild(button); | ||
(_document$getElements = document.getElementsByClassName('luma-compiler-log-error')[0]) === null || _document$getElements === void 0 ? void 0 : _document$getElements.scrollIntoView(); | ||
const errors = document.getElementsByClassName('luma-compiler-log-error'); | ||
if ((_errors$ = errors[0]) !== null && _errors$ !== void 0 && _errors$.scrollIntoView) { | ||
errors[0].scrollIntoView(); | ||
} | ||
button.onclick = () => { | ||
@@ -72,0 +75,0 @@ const dataURI = `data:text/plain,${encodeURIComponent(this.source)}`; |
@@ -67,3 +67,3 @@ export { VERSION } from './init'; | ||
export { uid, isPowerOfTwo, isObjectEmpty } from './lib/utils/utils'; | ||
export { isUniformValue, splitUniformsAndBindings } from './lib/utils/uniform'; | ||
export { isUniformValue, splitUniformsAndBindings } from './lib/uniforms/uniform'; | ||
export { formatValue } from './lib/utils/format-value'; | ||
@@ -76,3 +76,3 @@ export { stubRemovedMethods } from './lib/utils/stub-methods'; | ||
export { deepEqual } from './lib/utils/deep-equal'; | ||
export { requestAnimationFrame, cancelAnimationFrame } from './lib/request-animation-frame'; | ||
export { requestAnimationFrame, cancelAnimationFrame } from './lib/utils/request-animation-frame'; | ||
/** | ||
@@ -83,3 +83,4 @@ * Marks GLSL shaders for syntax highlighting: glsl`...` | ||
export declare const glsl: (x: TemplateStringsArray) => string; | ||
export { getDebugTableForShaderLayout } from './lib/debug/debug-shader-layout'; | ||
export type { CopyBufferToBufferOptions, CopyBufferToTextureOptions, CopyTextureToBufferOptions, CopyTextureToTextureOptions } from './adapter/resources/command-encoder'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -36,3 +36,3 @@ export { VERSION } from "./init.js"; | ||
export { uid, isPowerOfTwo, isObjectEmpty } from "./lib/utils/utils.js"; | ||
export { isUniformValue, splitUniformsAndBindings } from "./lib/utils/uniform.js"; | ||
export { isUniformValue, splitUniformsAndBindings } from "./lib/uniforms/uniform.js"; | ||
export { formatValue } from "./lib/utils/format-value.js"; | ||
@@ -45,4 +45,5 @@ export { stubRemovedMethods } from "./lib/utils/stub-methods.js"; | ||
export { deepEqual } from "./lib/utils/deep-equal.js"; | ||
export { requestAnimationFrame, cancelAnimationFrame } from "./lib/request-animation-frame.js"; | ||
export { requestAnimationFrame, cancelAnimationFrame } from "./lib/utils/request-animation-frame.js"; | ||
export const glsl = x => `${x}`; | ||
export { getDebugTableForShaderLayout } from "./lib/debug/debug-shader-layout.js"; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@luma.gl/core", | ||
"version": "9.0.0-alpha.51", | ||
"version": "9.0.0-alpha.52", | ||
"description": "luma.gl API", | ||
@@ -45,3 +45,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "368b615bdd46d0006717f004244a942f3d2812e7" | ||
"gitHead": "41fa29f78dc260e5ef4c6a48e657fb5d23c96e8f" | ||
} |
@@ -120,3 +120,6 @@ // luma.gl, MIT license | ||
document.getElementsByClassName('luma-compiler-log-error')[0]?.scrollIntoView(); | ||
const errors = document.getElementsByClassName('luma-compiler-log-error'); | ||
if (errors[0]?.scrollIntoView) { | ||
errors[0].scrollIntoView(); | ||
} | ||
@@ -123,0 +126,0 @@ // TODO - add a small embedded copy button (instead of main button) |
@@ -140,3 +140,3 @@ // luma.gl, MIT license | ||
export {uid, isPowerOfTwo, isObjectEmpty} from './lib/utils/utils'; | ||
export {isUniformValue, splitUniformsAndBindings} from './lib/utils/uniform'; | ||
export {isUniformValue, splitUniformsAndBindings} from './lib/uniforms/uniform'; | ||
export {formatValue} from './lib/utils/format-value'; | ||
@@ -157,3 +157,3 @@ export {stubRemovedMethods} from './lib/utils/stub-methods'; | ||
// ENGINE - TODO/move to @luma.gl/engine once that module is webgl-independent? | ||
export {requestAnimationFrame, cancelAnimationFrame} from './lib/request-animation-frame'; | ||
export {requestAnimationFrame, cancelAnimationFrame} from './lib/utils/request-animation-frame'; | ||
@@ -168,2 +168,6 @@ // SHADER HELPERS | ||
// DEBUG | ||
export {getDebugTableForShaderLayout} from './lib/debug/debug-shader-layout'; | ||
// INTERNAL | ||
@@ -170,0 +174,0 @@ |
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 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
1020788
306
15023