@luma.gl/engine 9.0.0-beta.7 → 9.0.0-beta.9
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/debug/copy-texture-to-image.d.ts.map +1 -1
- package/dist/debug/copy-texture-to-image.js +1 -3
- package/dist/dist.dev.js +6867 -2877
- package/dist/dist.min.js +102 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/model/model.d.ts.map +1 -1
- package/dist/model/model.js +1 -1
- package/package.json +6 -6
- package/src/debug/copy-texture-to-image.ts +1 -5
- package/src/index.ts +1 -1
- package/src/model/model.ts +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-texture-to-image.d.ts","sourceRoot":"","sources":["../../src/debug/copy-texture-to-image.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,OAAO,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"copy-texture-to-image.d.ts","sourceRoot":"","sources":["../../src/debug/copy-texture-to-image.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,OAAO,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;AAGnD;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAChC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,OAAO,GAAG,WAAW,EAC7B,OAAO,CAAC,EAAE,yBAAyB,GAClC,gBAAgB,CAMlB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,OAAO,GAAG,WAAW,EAC7B,OAAO,GAAE,yBAA8B,GACtC,MAAM,CAyBR"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// luma.gl
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { GL } from '@luma.gl/constants';
|
|
5
4
|
import { flipRows, scalePixels } from "./pixel-data-utils.js";
|
|
6
5
|
/**
|
|
7
6
|
* Reads pixels from a Framebuffer or Texture object into an HTML Image
|
|
@@ -23,8 +22,7 @@ export function copyTextureToImage(source, options) {
|
|
|
23
22
|
* @param options
|
|
24
23
|
*/
|
|
25
24
|
export function copyTextureToDataUrl(source, options = {}) {
|
|
26
|
-
const { sourceAttachment =
|
|
27
|
-
targetMaxHeight = Number.MAX_SAFE_INTEGER } = options;
|
|
25
|
+
const { sourceAttachment, targetMaxHeight = Number.MAX_SAFE_INTEGER } = options;
|
|
28
26
|
let data = source.device.readPixelsToArrayWebGL(source, { sourceAttachment });
|
|
29
27
|
// Scale down
|
|
30
28
|
let { width, height } = source;
|