deck.gl 9.2.3 → 9.2.5
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.dev.js +21 -6
- package/dist.min.js +4 -4
- package/package.json +17 -17
package/dist/dist.dev.js
CHANGED
|
@@ -1907,7 +1907,7 @@ or create a device with the 'debug: true' prop.`;
|
|
|
1907
1907
|
VERSION = (
|
|
1908
1908
|
// Version detection using build plugin
|
|
1909
1909
|
// @ts-expect-error no-undef
|
|
1910
|
-
true ? "9.2.
|
|
1910
|
+
true ? "9.2.4" : "running from source"
|
|
1911
1911
|
);
|
|
1912
1912
|
spector;
|
|
1913
1913
|
preregisteredAdapters = /* @__PURE__ */ new Map();
|
|
@@ -7164,9 +7164,19 @@ ${source4}`;
|
|
|
7164
7164
|
const { width, height, depth } = this;
|
|
7165
7165
|
const { mipLevel = 0, byteOffset = 0, x: x4 = 0, y: y5 = 0, z: z4 = 0 } = options;
|
|
7166
7166
|
const { glFormat, glType, compressed } = this;
|
|
7167
|
-
const glTarget = getWebGLCubeFaceTarget(this.glTarget, this.dimension,
|
|
7167
|
+
const glTarget = getWebGLCubeFaceTarget(this.glTarget, this.dimension, z4);
|
|
7168
|
+
let unpackRowLength;
|
|
7169
|
+
if (!this.compressed) {
|
|
7170
|
+
const { bytesPerPixel } = this.device.getTextureFormatInfo(this.format);
|
|
7171
|
+
if (bytesPerPixel) {
|
|
7172
|
+
if (options.bytesPerRow % bytesPerPixel !== 0) {
|
|
7173
|
+
throw new Error(`bytesPerRow (${options.bytesPerRow}) must be a multiple of bytesPerPixel (${bytesPerPixel}) for ${this.format}`);
|
|
7174
|
+
}
|
|
7175
|
+
unpackRowLength = options.bytesPerRow / bytesPerPixel;
|
|
7176
|
+
}
|
|
7177
|
+
}
|
|
7168
7178
|
const glParameters = !this.compressed ? {
|
|
7169
|
-
[3314]:
|
|
7179
|
+
...unpackRowLength !== void 0 ? { [3314]: unpackRowLength } : {},
|
|
7170
7180
|
[32878]: options.rowsPerImage
|
|
7171
7181
|
} : {};
|
|
7172
7182
|
this.gl.bindTexture(glTarget, this.handle);
|
|
@@ -43033,9 +43043,10 @@ void main() {
|
|
|
43033
43043
|
onRenderHTML(rootElement) {
|
|
43034
43044
|
}
|
|
43035
43045
|
onViewportChange(viewport) {
|
|
43036
|
-
if (this.isVisible && viewport.id === this.lastViewport?.id && viewport
|
|
43046
|
+
if (this.isVisible && viewport.id === this.lastViewport?.id && !viewport.equals(this.lastViewport)) {
|
|
43037
43047
|
this.setTooltip(null);
|
|
43038
43048
|
}
|
|
43049
|
+
this.lastViewport = viewport;
|
|
43039
43050
|
}
|
|
43040
43051
|
onHover(info) {
|
|
43041
43052
|
const { deck } = this;
|
|
@@ -43044,7 +43055,6 @@ void main() {
|
|
|
43044
43055
|
return;
|
|
43045
43056
|
}
|
|
43046
43057
|
const displayInfo = getTooltip(info);
|
|
43047
|
-
this.lastViewport = info.viewport;
|
|
43048
43058
|
this.setTooltip(displayInfo, info.x, info.y);
|
|
43049
43059
|
}
|
|
43050
43060
|
setTooltip(displayInfo, x4, y5) {
|
|
@@ -43575,7 +43585,12 @@ void main() {
|
|
|
43575
43585
|
_createDevice(props) {
|
|
43576
43586
|
const canvasContextUserProps = this.props.deviceProps?.createCanvasContext;
|
|
43577
43587
|
const canvasContextProps = typeof canvasContextUserProps === "object" ? canvasContextUserProps : void 0;
|
|
43578
|
-
const deviceProps = {
|
|
43588
|
+
const deviceProps = {
|
|
43589
|
+
adapters: [],
|
|
43590
|
+
_cacheShaders: true,
|
|
43591
|
+
_cachePipelines: true,
|
|
43592
|
+
...props.deviceProps
|
|
43593
|
+
};
|
|
43579
43594
|
if (!deviceProps.adapters.includes(webgl2Adapter)) {
|
|
43580
43595
|
deviceProps.adapters.push(webgl2Adapter);
|
|
43581
43596
|
}
|