@luma.gl/webgl 9.0.0-alpha.23 → 9.0.0-alpha.24
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/converters/texture-formats.d.ts +2 -2
- package/dist/adapter/converters/texture-formats.d.ts.map +1 -1
- package/dist/adapter/device-helpers/device-limits.d.ts +1 -1
- package/dist/adapter/device-helpers/device-limits.d.ts.map +1 -1
- package/dist/adapter/helpers/get-shader-info.d.ts +1 -1
- package/dist/adapter/helpers/get-shader-info.d.ts.map +1 -1
- package/dist/adapter/objects/webgl-renderbuffer.d.ts +1 -1
- package/dist/adapter/objects/webgl-renderbuffer.d.ts.map +1 -1
- package/dist/adapter/objects/webgl-vertex-array-object.d.ts +1 -1
- package/dist/adapter/objects/webgl-vertex-array-object.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-command-buffer.d.ts +5 -5
- package/dist/adapter/resources/webgl-command-buffer.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-framebuffer.d.ts +2 -2
- package/dist/adapter/resources/webgl-framebuffer.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-render-pipeline.js +2 -1
- package/dist/adapter/resources/webgl-render-pipeline.js.map +1 -1
- package/dist/adapter/resources/webgl-texture.d.ts +5 -5
- package/dist/adapter/resources/webgl-texture.d.ts.map +1 -1
- package/dist/classic/buffer.d.ts +1 -1
- package/dist/classic/buffer.d.ts.map +1 -1
- package/dist/classic/clear.d.ts +22 -0
- package/dist/classic/clear.d.ts.map +1 -0
- package/dist/classic/clear.js +88 -0
- package/dist/classic/clear.js.map +1 -0
- package/dist/classic/copy-and-blit.d.ts +45 -0
- package/dist/classic/copy-and-blit.d.ts.map +1 -0
- package/dist/classic/copy-and-blit.js +136 -0
- package/dist/classic/copy-and-blit.js.map +1 -0
- package/dist/classic/format-utils.d.ts +3 -0
- package/dist/classic/format-utils.d.ts.map +1 -0
- package/dist/classic/format-utils.js +38 -0
- package/dist/classic/format-utils.js.map +1 -0
- package/dist/context/context/create-browser-context.d.ts +17 -19
- package/dist/context/context/create-browser-context.d.ts.map +1 -1
- package/dist/context/context/create-browser-context.js +4 -4
- package/dist/context/context/create-browser-context.js.map +1 -1
- package/dist/context/context/create-headless-context.d.ts +1 -1
- package/dist/context/context/create-headless-context.d.ts.map +1 -1
- package/dist/context/debug/spector.d.ts +1 -3
- package/dist/context/debug/spector.d.ts.map +1 -1
- package/dist/context/debug/webgl-developer-tools.d.ts +1 -1
- package/dist/context/debug/webgl-developer-tools.d.ts.map +1 -1
- package/dist/context/parameters/webgl-parameter-tables.d.ts +1 -1
- package/dist/context/parameters/webgl-parameter-tables.d.ts.map +1 -1
- package/dist/dist.dev.js +220 -5
- package/dist/index.cjs +191 -6
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist.min.js +22 -22
- package/package.json +5 -5
- package/src/adapter/resources/webgl-render-pipeline.ts +1 -1
- package/src/classic/clear.ts +110 -0
- package/src/classic/copy-and-blit.ts +189 -0
- package/src/classic/format-utils.ts +43 -0
- package/src/context/context/create-browser-context.ts +37 -30
- package/src/index.ts +6 -1
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { assert, Framebuffer } from '@luma.gl/api';
|
|
2
|
+
import GL from '@luma.gl/constants';
|
|
3
|
+
import { ClassicBuffer as Buffer } from "./buffer.js";
|
|
4
|
+
import { withParameters } from "../context/state-tracker/with-parameters.js";
|
|
5
|
+
import { getGLTypeFromTypedArray, getTypedArrayFromGLType } from "./typed-array-utils.js";
|
|
6
|
+
import { glFormatToComponents, glTypeToBytes } from "./format-utils.js";
|
|
7
|
+
export function readPixelsToArray(source, options) {
|
|
8
|
+
const {
|
|
9
|
+
sourceX = 0,
|
|
10
|
+
sourceY = 0,
|
|
11
|
+
sourceFormat = GL.RGBA
|
|
12
|
+
} = options || {};
|
|
13
|
+
let {
|
|
14
|
+
sourceAttachment = GL.COLOR_ATTACHMENT0,
|
|
15
|
+
target = null,
|
|
16
|
+
sourceWidth,
|
|
17
|
+
sourceHeight,
|
|
18
|
+
sourceType
|
|
19
|
+
} = options || {};
|
|
20
|
+
const {
|
|
21
|
+
framebuffer,
|
|
22
|
+
deleteFramebuffer
|
|
23
|
+
} = getFramebuffer(source);
|
|
24
|
+
assert(framebuffer);
|
|
25
|
+
const {
|
|
26
|
+
gl,
|
|
27
|
+
handle
|
|
28
|
+
} = framebuffer;
|
|
29
|
+
sourceWidth = sourceWidth || framebuffer.width;
|
|
30
|
+
sourceHeight = sourceHeight || framebuffer.height;
|
|
31
|
+
if (sourceAttachment === GL.COLOR_ATTACHMENT0 && handle === null) {
|
|
32
|
+
sourceAttachment = GL.FRONT;
|
|
33
|
+
}
|
|
34
|
+
const attachment = sourceAttachment - GL.COLOR_ATTACHMENT0;
|
|
35
|
+
sourceType = sourceType || framebuffer.colorAttachments[attachment].type;
|
|
36
|
+
target = getPixelArray(target, sourceType, sourceFormat, sourceWidth, sourceHeight);
|
|
37
|
+
sourceType = sourceType || getGLTypeFromTypedArray(target);
|
|
38
|
+
const prevHandle = gl.bindFramebuffer(GL.FRAMEBUFFER, handle);
|
|
39
|
+
gl.readPixels(sourceX, sourceY, sourceWidth, sourceHeight, sourceFormat, sourceType, target);
|
|
40
|
+
gl.bindFramebuffer(GL.FRAMEBUFFER, prevHandle || null);
|
|
41
|
+
if (deleteFramebuffer) {
|
|
42
|
+
framebuffer.destroy();
|
|
43
|
+
}
|
|
44
|
+
return target;
|
|
45
|
+
}
|
|
46
|
+
export function readPixelsToBuffer(source, options) {
|
|
47
|
+
const {
|
|
48
|
+
sourceX = 0,
|
|
49
|
+
sourceY = 0,
|
|
50
|
+
sourceFormat = GL.RGBA,
|
|
51
|
+
targetByteOffset = 0
|
|
52
|
+
} = options || {};
|
|
53
|
+
let {
|
|
54
|
+
target,
|
|
55
|
+
sourceWidth,
|
|
56
|
+
sourceHeight,
|
|
57
|
+
sourceType
|
|
58
|
+
} = options || {};
|
|
59
|
+
const {
|
|
60
|
+
framebuffer,
|
|
61
|
+
deleteFramebuffer
|
|
62
|
+
} = getFramebuffer(source);
|
|
63
|
+
assert(framebuffer);
|
|
64
|
+
sourceWidth = sourceWidth || framebuffer.width;
|
|
65
|
+
sourceHeight = sourceHeight || framebuffer.height;
|
|
66
|
+
const webglFramebuffer = framebuffer;
|
|
67
|
+
const gl2 = webglFramebuffer.device.assertWebGL2();
|
|
68
|
+
sourceType = sourceType || (target ? target.type : GL.UNSIGNED_BYTE);
|
|
69
|
+
if (!target) {
|
|
70
|
+
const components = glFormatToComponents(sourceFormat);
|
|
71
|
+
const byteCount = glTypeToBytes(sourceType);
|
|
72
|
+
const byteLength = targetByteOffset + sourceWidth * sourceHeight * components * byteCount;
|
|
73
|
+
target = new Buffer(gl2, {
|
|
74
|
+
byteLength,
|
|
75
|
+
accessor: {
|
|
76
|
+
type: sourceType,
|
|
77
|
+
size: components
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
target.bind({
|
|
82
|
+
target: GL.PIXEL_PACK_BUFFER
|
|
83
|
+
});
|
|
84
|
+
withParameters(gl2, {
|
|
85
|
+
framebuffer
|
|
86
|
+
}, () => {
|
|
87
|
+
gl2.readPixels(sourceX, sourceY, sourceWidth, sourceHeight, sourceFormat, sourceType, targetByteOffset);
|
|
88
|
+
});
|
|
89
|
+
target.unbind({
|
|
90
|
+
target: GL.PIXEL_PACK_BUFFER
|
|
91
|
+
});
|
|
92
|
+
if (deleteFramebuffer) {
|
|
93
|
+
framebuffer.destroy();
|
|
94
|
+
}
|
|
95
|
+
return target;
|
|
96
|
+
}
|
|
97
|
+
function getFramebuffer(source) {
|
|
98
|
+
if (!(source instanceof Framebuffer)) {
|
|
99
|
+
return {
|
|
100
|
+
framebuffer: toFramebuffer(source),
|
|
101
|
+
deleteFramebuffer: true
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
framebuffer: source,
|
|
106
|
+
deleteFramebuffer: false
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
export function toFramebuffer(texture, props) {
|
|
110
|
+
const {
|
|
111
|
+
device,
|
|
112
|
+
width,
|
|
113
|
+
height,
|
|
114
|
+
id
|
|
115
|
+
} = texture;
|
|
116
|
+
const framebuffer = device.createFramebuffer({
|
|
117
|
+
...props,
|
|
118
|
+
id: "framebuffer-for-".concat(id),
|
|
119
|
+
width,
|
|
120
|
+
height,
|
|
121
|
+
colorAttachments: [texture]
|
|
122
|
+
});
|
|
123
|
+
return framebuffer;
|
|
124
|
+
}
|
|
125
|
+
function getPixelArray(pixelArray, type, format, width, height) {
|
|
126
|
+
if (pixelArray) {
|
|
127
|
+
return pixelArray;
|
|
128
|
+
}
|
|
129
|
+
type = type || GL.UNSIGNED_BYTE;
|
|
130
|
+
const ArrayType = getTypedArrayFromGLType(type, {
|
|
131
|
+
clamped: false
|
|
132
|
+
});
|
|
133
|
+
const components = glFormatToComponents(format);
|
|
134
|
+
return new ArrayType(width * height * components);
|
|
135
|
+
}
|
|
136
|
+
//# sourceMappingURL=copy-and-blit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-and-blit.js","names":["assert","Framebuffer","GL","ClassicBuffer","Buffer","withParameters","getGLTypeFromTypedArray","getTypedArrayFromGLType","glFormatToComponents","glTypeToBytes","readPixelsToArray","source","options","sourceX","sourceY","sourceFormat","RGBA","sourceAttachment","COLOR_ATTACHMENT0","target","sourceWidth","sourceHeight","sourceType","framebuffer","deleteFramebuffer","getFramebuffer","gl","handle","width","height","FRONT","attachment","colorAttachments","type","getPixelArray","prevHandle","bindFramebuffer","FRAMEBUFFER","readPixels","destroy","readPixelsToBuffer","targetByteOffset","webglFramebuffer","gl2","device","assertWebGL2","UNSIGNED_BYTE","components","byteCount","byteLength","accessor","size","bind","PIXEL_PACK_BUFFER","unbind","toFramebuffer","texture","props","id","createFramebuffer","concat","pixelArray","format","ArrayType","clamped"],"sources":["../../src/classic/copy-and-blit.ts"],"sourcesContent":["// luma.gl, MIT license\nimport {assert, Texture, Framebuffer, FramebufferProps} from '@luma.gl/api';\nimport GL from '@luma.gl/constants';\n\nimport {ClassicBuffer as Buffer} from './buffer';\nimport {WEBGLTexture} from '../adapter/resources/webgl-texture';\nimport {WEBGLFramebuffer} from '../adapter/resources/webgl-framebuffer';\nimport {withParameters} from '../context/state-tracker/with-parameters';\nimport {getGLTypeFromTypedArray, getTypedArrayFromGLType} from './typed-array-utils';\nimport {glFormatToComponents, glTypeToBytes} from './format-utils';\n\n/**\n * Copies data from a type or a Texture object into ArrayBuffer object.\n * App can provide targetPixelArray or have it auto allocated by this method\n * newly allocated by this method unless provided by app.\n * @deprecated Use CommandEncoder.copyTextureToBuffer and Buffer.read\n * @note Slow requires roundtrip to GPU\n *\n * @param source\n * @param options\n * @returns pixel array,\n */\nexport function readPixelsToArray(\n source: Framebuffer | Texture,\n options?: {\n sourceX?: number;\n sourceY?: number;\n sourceFormat?: number;\n sourceAttachment?: number;\n target?: Uint8Array | Uint16Array | Float32Array;\n // following parameters are auto deduced if not provided\n sourceWidth?: number;\n sourceHeight?: number;\n sourceType?: number;\n }\n): Uint8Array | Uint16Array | Float32Array {\n const {sourceX = 0, sourceY = 0, sourceFormat = GL.RGBA} = options || {};\n let {\n sourceAttachment = GL.COLOR_ATTACHMENT0, // TODO - support gl.readBuffer\n target = null,\n // following parameters are auto deduced if not provided\n sourceWidth,\n sourceHeight,\n sourceType\n } = options || {};\n\n const {framebuffer, deleteFramebuffer} = getFramebuffer(source);\n assert(framebuffer);\n const {gl, handle} = framebuffer as WEBGLFramebuffer;\n sourceWidth = sourceWidth || framebuffer.width;\n sourceHeight = sourceHeight || framebuffer.height;\n\n // TODO - Set and unset gl.readBuffer\n if (sourceAttachment === GL.COLOR_ATTACHMENT0 && handle === null) {\n sourceAttachment = GL.FRONT;\n }\n\n const attachment = sourceAttachment - GL.COLOR_ATTACHMENT0;\n // assert(attachments[sourceAttachment]);\n\n // Deduce the type from color attachment if not provided.\n sourceType = sourceType || (framebuffer.colorAttachments[attachment] as WEBGLTexture).type;\n\n // Deduce type and allocated pixelArray if needed\n target = getPixelArray(target, sourceType, sourceFormat, sourceWidth, sourceHeight);\n\n // Pixel array available, if necessary, deduce type from it.\n sourceType = sourceType || getGLTypeFromTypedArray(target);\n\n const prevHandle = gl.bindFramebuffer(GL.FRAMEBUFFER, handle);\n gl.readPixels(sourceX, sourceY, sourceWidth, sourceHeight, sourceFormat, sourceType, target);\n // @ts-expect-error\n gl.bindFramebuffer(GL.FRAMEBUFFER, prevHandle || null);\n if (deleteFramebuffer) {\n framebuffer.destroy();\n }\n return target;\n}\n\n/**\n * Copies data from a Framebuffer or a Texture object into a Buffer object.\n * NOTE: doesn't wait for copy to be complete, it programs GPU to perform a DMA transffer.\n * @param source\n * @param options\n */\nexport function readPixelsToBuffer(\n source: Framebuffer | Texture,\n options?: {\n sourceX?: number;\n sourceY?: number;\n sourceFormat?: number;\n target?: Buffer; // A new Buffer object is created when not provided.\n targetByteOffset?: number; // byte offset in buffer object\n // following parameters are auto deduced if not provided\n sourceWidth?: number;\n sourceHeight?: number;\n sourceType?: number;\n }\n): Buffer {\n const {sourceX = 0, sourceY = 0, sourceFormat = GL.RGBA, targetByteOffset = 0} = options || {};\n // following parameters are auto deduced if not provided\n let {target, sourceWidth, sourceHeight, sourceType} = options || {};\n const {framebuffer, deleteFramebuffer} = getFramebuffer(source);\n assert(framebuffer);\n sourceWidth = sourceWidth || framebuffer.width;\n sourceHeight = sourceHeight || framebuffer.height;\n\n // Asynchronous read (PIXEL_PACK_BUFFER) is WebGL2 only feature\n const webglFramebuffer = framebuffer as WEBGLFramebuffer;\n const gl2 = webglFramebuffer.device.assertWebGL2();\n\n // deduce type if not available.\n sourceType = sourceType || (target ? target.type : GL.UNSIGNED_BYTE);\n\n if (!target) {\n // Create new buffer with enough size\n const components = glFormatToComponents(sourceFormat);\n const byteCount = glTypeToBytes(sourceType);\n const byteLength = targetByteOffset + sourceWidth * sourceHeight * components * byteCount;\n target = new Buffer(gl2, {byteLength, accessor: {type: sourceType, size: components}});\n }\n\n // @ts-expect-error\n target.bind({target: GL.PIXEL_PACK_BUFFER});\n withParameters(gl2, {framebuffer}, () => {\n gl2.readPixels(\n sourceX,\n sourceY,\n sourceWidth,\n sourceHeight,\n sourceFormat,\n sourceType,\n targetByteOffset\n );\n });\n target.unbind({target: GL.PIXEL_PACK_BUFFER});\n if (deleteFramebuffer) {\n framebuffer.destroy();\n }\n\n return target;\n}\n\nfunction getFramebuffer(source: Texture | Framebuffer): {\n framebuffer: Framebuffer;\n deleteFramebuffer: boolean;\n} {\n if (!(source instanceof Framebuffer)) {\n return {framebuffer: toFramebuffer(source), deleteFramebuffer: true};\n }\n return {framebuffer: source, deleteFramebuffer: false};\n}\n\n/**\n * Wraps a given texture into a framebuffer object, that can be further used\n * to read data from the texture object.\n */\nexport function toFramebuffer(texture: Texture, props?: FramebufferProps): Framebuffer {\n const {device, width, height, id} = texture;\n const framebuffer = device.createFramebuffer({\n ...props,\n id: `framebuffer-for-${id}`,\n width,\n height,\n colorAttachments: [\n texture\n ]\n }\n );\n return framebuffer;\n}\n\nfunction getPixelArray(\n pixelArray,\n type,\n format,\n width: number,\n height: number\n): Uint8Array | Uint16Array | Float32Array {\n if (pixelArray) {\n return pixelArray;\n }\n // Allocate pixel array if not already available, using supplied type\n type = type || GL.UNSIGNED_BYTE;\n const ArrayType = getTypedArrayFromGLType(type, {clamped: false});\n const components = glFormatToComponents(format);\n // TODO - check for composite type (components = 1).\n return new ArrayType(width * height * components) as Uint8Array | Uint16Array | Float32Array;\n}\n"],"mappings":"AACA,SAAQA,MAAM,EAAWC,WAAW,QAAyB,cAAc;AAC3E,OAAOC,EAAE,MAAM,oBAAoB;AAAC,SAE5BC,aAAa,IAAIC,MAAM;AAAA,SAGvBC,cAAc;AAAA,SAC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;IAC3B9B,KAAK;IACLC,MAAM;IACNG,gBAAgB,EAAE,CAChBwB,OAAO;EAEX,CAAC,CACA;EACD,OAAOjC,WAAW;AACpB;AAEA,SAASW,aAAaA,CACpB2B,UAAU,EACV5B,IAAI,EACJ6B,MAAM,EACNlC,KAAa,EACbC,MAAc,EAC2B;EACzC,IAAIgC,UAAU,EAAE;IACd,OAAOA,UAAU;EACnB;EAEA5B,IAAI,GAAGA,IAAI,IAAI/B,EAAE,CAAC4C,aAAa;EAC/B,MAAMiB,SAAS,GAAGxD,uBAAuB,CAAC0B,IAAI,EAAE;IAAC+B,OAAO,EAAE;EAAK,CAAC,CAAC;EACjE,MAAMjB,UAAU,GAAGvC,oBAAoB,CAACsD,MAAM,CAAC;EAE/C,OAAO,IAAIC,SAAS,CAACnC,KAAK,GAAGC,MAAM,GAAGkB,UAAU,CAAC;AACnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-utils.d.ts","sourceRoot":"","sources":["../../src/classic/format-utils.ts"],"names":[],"mappings":"AAIA,wBAAgB,oBAAoB,CAAC,MAAM,KAAA,qBAoB1C;AAGD,wBAAgB,aAAa,CAAC,IAAI,KAAA,iBAejC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { assert } from '@luma.gl/api';
|
|
2
|
+
import GL from '@luma.gl/constants';
|
|
3
|
+
export function glFormatToComponents(format) {
|
|
4
|
+
switch (format) {
|
|
5
|
+
case GL.ALPHA:
|
|
6
|
+
case GL.R32F:
|
|
7
|
+
case GL.RED:
|
|
8
|
+
return 1;
|
|
9
|
+
case GL.RG32F:
|
|
10
|
+
case GL.RG:
|
|
11
|
+
return 2;
|
|
12
|
+
case GL.RGB:
|
|
13
|
+
case GL.RGB32F:
|
|
14
|
+
return 3;
|
|
15
|
+
case GL.RGBA:
|
|
16
|
+
case GL.RGBA32F:
|
|
17
|
+
return 4;
|
|
18
|
+
default:
|
|
19
|
+
assert(false);
|
|
20
|
+
return 0;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export function glTypeToBytes(type) {
|
|
24
|
+
switch (type) {
|
|
25
|
+
case GL.UNSIGNED_BYTE:
|
|
26
|
+
return 1;
|
|
27
|
+
case GL.UNSIGNED_SHORT_5_6_5:
|
|
28
|
+
case GL.UNSIGNED_SHORT_4_4_4_4:
|
|
29
|
+
case GL.UNSIGNED_SHORT_5_5_5_1:
|
|
30
|
+
return 2;
|
|
31
|
+
case GL.FLOAT:
|
|
32
|
+
return 4;
|
|
33
|
+
default:
|
|
34
|
+
assert(false);
|
|
35
|
+
return 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=format-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-utils.js","names":["assert","GL","glFormatToComponents","format","ALPHA","R32F","RED","RG32F","RG","RGB","RGB32F","RGBA","RGBA32F","glTypeToBytes","type","UNSIGNED_BYTE","UNSIGNED_SHORT_5_6_5","UNSIGNED_SHORT_4_4_4_4","UNSIGNED_SHORT_5_5_5_1","FLOAT"],"sources":["../../src/classic/format-utils.ts"],"sourcesContent":["import {assert} from '@luma.gl/api';\nimport GL from '@luma.gl/constants';\n\n// Returns number of components in a specific readPixels WebGL format\nexport function glFormatToComponents(format) {\n switch (format) {\n case GL.ALPHA:\n case GL.R32F:\n case GL.RED:\n return 1;\n case GL.RG32F:\n case GL.RG:\n return 2;\n case GL.RGB:\n case GL.RGB32F:\n return 3;\n case GL.RGBA:\n case GL.RGBA32F:\n return 4;\n // TODO: Add support for additional WebGL2 formats\n default:\n assert(false);\n return 0;\n }\n}\n\n// Return byte count for given readPixels WebGL type\nexport function glTypeToBytes(type) {\n switch (type) {\n case GL.UNSIGNED_BYTE:\n return 1;\n case GL.UNSIGNED_SHORT_5_6_5:\n case GL.UNSIGNED_SHORT_4_4_4_4:\n case GL.UNSIGNED_SHORT_5_5_5_1:\n return 2;\n case GL.FLOAT:\n return 4;\n // TODO: Add support for additional WebGL2 types\n default:\n assert(false);\n return 0;\n }\n}\n"],"mappings":"AAAA,SAAQA,MAAM,QAAO,cAAc;AACnC,OAAOC,EAAE,MAAM,oBAAoB;AAGnC,OAAO,SAASC,oBAAoBA,CAACC,MAAM,EAAE;EAC3C,QAAQA,MAAM;IACZ,KAAKF,EAAE,CAACG,KAAK;IACb,KAAKH,EAAE,CAACI,IAAI;IACZ,KAAKJ,EAAE,CAACK,GAAG;MACT,OAAO,CAAC;IACV,KAAKL,EAAE,CAACM,KAAK;IACb,KAAKN,EAAE,CAACO,EAAE;MACR,OAAO,CAAC;IACV,KAAKP,EAAE,CAACQ,GAAG;IACX,KAAKR,EAAE,CAACS,MAAM;MACZ,OAAO,CAAC;IACV,KAAKT,EAAE,CAACU,IAAI;IACZ,KAAKV,EAAE,CAACW,OAAO;MACb,OAAO,CAAC;IAEV;MACEZ,MAAM,CAAC,KAAK,CAAC;MACb,OAAO,CAAC;EAAC;AAEf;AAGA,OAAO,SAASa,aAAaA,CAACC,IAAI,EAAE;EAClC,QAAQA,IAAI;IACV,KAAKb,EAAE,CAACc,aAAa;MACnB,OAAO,CAAC;IACV,KAAKd,EAAE,CAACe,oBAAoB;IAC5B,KAAKf,EAAE,CAACgB,sBAAsB;IAC9B,KAAKhB,EAAE,CAACiB,sBAAsB;MAC5B,OAAO,CAAC;IACV,KAAKjB,EAAE,CAACkB,KAAK;MACX,OAAO,CAAC;IAEV;MACEnB,MAAM,CAAC,KAAK,CAAC;MACb,OAAO,CAAC;EAAC;AAEf"}
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
/// <reference types="dist" />
|
|
2
|
-
/// <reference types="offscreencanvas" />
|
|
3
1
|
/**
|
|
4
2
|
* ContextProps
|
|
5
|
-
* @param webgl2 Set to false to not create a WebGL2 context (force webgl1)
|
|
6
|
-
* @param webgl1 set to false to not create a WebGL1 context (fail if webgl2 not available)
|
|
7
|
-
* @param onContextLost
|
|
8
|
-
* @param onContextRestored
|
|
9
|
-
*
|
|
10
|
-
* BROWSER CONTEXT PARAMETERS
|
|
11
|
-
* @param debug Instrument context (at the expense of performance).
|
|
12
|
-
* @param alpha Default render target has an alpha buffer.
|
|
13
|
-
* @param depth Default render target has a depth buffer of at least 16 bits.
|
|
14
|
-
* @param stencil Default render target has a stencil buffer of at least 8 bits.
|
|
15
|
-
* @param antialias Boolean that indicates whether or not to perform anti-aliasing.
|
|
16
|
-
* @param premultipliedAlpha Boolean that indicates that the page compositor will assume the drawing buffer contains colors with pre-multiplied alpha.
|
|
17
|
-
* @param preserveDrawingBuffer Default render target buffers will not be automatically cleared and will preserve their values until cleared or overwritten
|
|
18
|
-
* @param failIfMajorPerformanceCaveat Do not create if the system performance is low.
|
|
19
|
-
*/
|
|
20
|
-
|
|
3
|
+
* @param webgl2 Set to false to not create a WebGL2 context (force webgl1)
|
|
4
|
+
* @param webgl1 set to false to not create a WebGL1 context (fail if webgl2 not available)
|
|
5
|
+
* @param onContextLost
|
|
6
|
+
* @param onContextRestored
|
|
7
|
+
*
|
|
8
|
+
* BROWSER CONTEXT PARAMETERS
|
|
9
|
+
* @param debug Instrument context (at the expense of performance).
|
|
10
|
+
* @param alpha Default render target has an alpha buffer.
|
|
11
|
+
* @param depth Default render target has a depth buffer of at least 16 bits.
|
|
12
|
+
* @param stencil Default render target has a stencil buffer of at least 8 bits.
|
|
13
|
+
* @param antialias Boolean that indicates whether or not to perform anti-aliasing.
|
|
14
|
+
* @param premultipliedAlpha Boolean that indicates that the page compositor will assume the drawing buffer contains colors with pre-multiplied alpha.
|
|
15
|
+
* @param preserveDrawingBuffer Default render target buffers will not be automatically cleared and will preserve their values until cleared or overwritten
|
|
16
|
+
* @param failIfMajorPerformanceCaveat Do not create if the system performance is low.
|
|
17
|
+
*/
|
|
18
|
+
type ContextProps = {
|
|
21
19
|
type?: 'webgl' | 'webgl1' | 'webgl2' | string;
|
|
22
20
|
webgl1?: boolean;
|
|
23
21
|
webgl2?: boolean;
|
|
@@ -35,7 +33,7 @@ declare type ContextProps = {
|
|
|
35
33
|
/**
|
|
36
34
|
* Create a WebGL context for a canvas
|
|
37
35
|
* Note calling this multiple time on the same canvas does return the same context
|
|
38
|
-
* @param canvas A canvas element or offscreen canvas
|
|
36
|
+
* @param canvas A canvas element or offscreen canvas
|
|
39
37
|
*/
|
|
40
38
|
export declare function createBrowserContext(canvas: HTMLCanvasElement | OffscreenCanvas, props: ContextProps): WebGLRenderingContext;
|
|
41
39
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-browser-context.d.ts","sourceRoot":"","sources":["../../../src/context/context/create-browser-context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-browser-context.d.ts","sourceRoot":"","sources":["../../../src/context/context/create-browser-context.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AACH,KAAK,YAAY,GAAG;IAClB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC9C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACvC,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC3C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,eAAe,CAAC,EAAE,SAAS,GAAG,kBAAkB,GAAG,WAAW,CAAC;IAC/D,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAYF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,iBAAiB,GAAG,eAAe,EAC3C,KAAK,EAAE,YAAY,GAClB,qBAAqB,CAqDvB"}
|
|
@@ -26,11 +26,11 @@ export function createBrowserContext(canvas, props) {
|
|
|
26
26
|
webgl2: false
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
if (props.webgl2) {
|
|
30
|
-
gl =
|
|
29
|
+
if (!gl && props.webgl2) {
|
|
30
|
+
gl = canvas.getContext('webgl2', props);
|
|
31
31
|
}
|
|
32
|
-
if (props.webgl1) {
|
|
33
|
-
gl =
|
|
32
|
+
if (!gl && props.webgl1) {
|
|
33
|
+
gl = canvas.getContext('webgl', props);
|
|
34
34
|
}
|
|
35
35
|
canvas.removeEventListener('webglcontextcreationerror', onCreateError, false);
|
|
36
36
|
if (!gl) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-browser-context.js","names":["DEFAULT_CONTEXT_PROPS","webgl2","webgl1","powerPreference","onContextLost","console","error","onContextRestored","info","createBrowserContext","canvas","props","errorMessage","onCreateError","statusMessage","addEventListener","gl","type","getContext","removeEventListener","Error","concat","event"],"sources":["../../../src/context/context/create-browser-context.ts"],"sourcesContent":["// luma.gl, MIT license\n\n/**\n * ContextProps\n* @param webgl2 Set to false to not create a WebGL2 context (force webgl1)\n* @param webgl1 set to false to not create a WebGL1 context (fail if webgl2 not available)\n* @param onContextLost\n* @param onContextRestored\n*\n* BROWSER CONTEXT PARAMETERS\n* @param debug Instrument context (at the expense of performance).\n* @param alpha Default render target has an alpha buffer.\n* @param depth Default render target has a depth buffer of at least 16 bits.\n* @param stencil Default render target has a stencil buffer of at least 8 bits.\n* @param antialias Boolean that indicates whether or not to perform anti-aliasing.\n* @param premultipliedAlpha Boolean that indicates that the page compositor will assume the drawing buffer contains colors with pre-multiplied alpha.\n* @param preserveDrawingBuffer Default render target buffers will not be automatically cleared and will preserve their values until cleared or overwritten\n* @param failIfMajorPerformanceCaveat Do not create if the system performance is low.\n*/\ntype ContextProps = {\n type?: 'webgl' | 'webgl1' | 'webgl2' | string;\n webgl1?: boolean;\n webgl2?: boolean;\n onContextLost?: (event: Event) => void;\n onContextRestored?: (event: Event) => void;\n alpha?: boolean; // indicates if the canvas contains an alpha buffer.\n desynchronized?: boolean; // hints the user agent to reduce the latency by desynchronizing the canvas paint cycle from the event loop\n antialias?: boolean; // indicates whether or not to perform anti-aliasing.\n depth?: boolean; // indicates that the drawing buffer has a depth buffer of at least 16 bits.\n failIfMajorPerformanceCaveat?: boolean
|
|
1
|
+
{"version":3,"file":"create-browser-context.js","names":["DEFAULT_CONTEXT_PROPS","webgl2","webgl1","powerPreference","onContextLost","console","error","onContextRestored","info","createBrowserContext","canvas","props","errorMessage","onCreateError","statusMessage","addEventListener","gl","type","getContext","removeEventListener","Error","concat","event"],"sources":["../../../src/context/context/create-browser-context.ts"],"sourcesContent":["// luma.gl, MIT license\n\n/**\n * ContextProps\n * @param webgl2 Set to false to not create a WebGL2 context (force webgl1)\n * @param webgl1 set to false to not create a WebGL1 context (fail if webgl2 not available)\n * @param onContextLost\n * @param onContextRestored\n *\n * BROWSER CONTEXT PARAMETERS\n * @param debug Instrument context (at the expense of performance).\n * @param alpha Default render target has an alpha buffer.\n * @param depth Default render target has a depth buffer of at least 16 bits.\n * @param stencil Default render target has a stencil buffer of at least 8 bits.\n * @param antialias Boolean that indicates whether or not to perform anti-aliasing.\n * @param premultipliedAlpha Boolean that indicates that the page compositor will assume the drawing buffer contains colors with pre-multiplied alpha.\n * @param preserveDrawingBuffer Default render target buffers will not be automatically cleared and will preserve their values until cleared or overwritten\n * @param failIfMajorPerformanceCaveat Do not create if the system performance is low.\n */\ntype ContextProps = {\n type?: 'webgl' | 'webgl1' | 'webgl2' | string;\n webgl1?: boolean;\n webgl2?: boolean;\n onContextLost?: (event: Event) => void;\n onContextRestored?: (event: Event) => void;\n alpha?: boolean; // indicates if the canvas contains an alpha buffer.\n desynchronized?: boolean; // hints the user agent to reduce the latency by desynchronizing the canvas paint cycle from the event loop\n antialias?: boolean; // indicates whether or not to perform anti-aliasing.\n depth?: boolean; // indicates that the drawing buffer has a depth buffer of at least 16 bits.\n failIfMajorPerformanceCaveat?: boolean; // indicates if a context will be created if the system performance is low or if no hardware GPU is available.\n powerPreference?: 'default' | 'high-performance' | 'low-power';\n premultipliedAlpha?: boolean; // page compositor will assume the drawing buffer contains colors with pre-multiplied alpha.\n preserveDrawingBuffer?: boolean; // buffers will not be cleared and will preserve their values until cleared or overwritten by the author.\n};\n\nconst DEFAULT_CONTEXT_PROPS: ContextProps = {\n webgl2: true, // Attempt to create a WebGL2 context\n webgl1: true, // Attempt to create a WebGL1 context (false to fail if webgl2 not available)\n powerPreference: 'high-performance', // After all, most apps are using WebGL for performance reasons\n // eslint-disable-next-line no-console\n onContextLost: () => console.error('WebGL context lost'),\n // eslint-disable-next-line no-console\n onContextRestored: () => console.info('WebGL context restored')\n};\n\n/**\n * Create a WebGL context for a canvas\n * Note calling this multiple time on the same canvas does return the same context\n * @param canvas A canvas element or offscreen canvas\n */\nexport function createBrowserContext(\n canvas: HTMLCanvasElement | OffscreenCanvas,\n props: ContextProps\n): WebGLRenderingContext {\n props = {...DEFAULT_CONTEXT_PROPS, ...props};\n\n // Try to extract any extra information about why context creation failed\n let errorMessage = null;\n const onCreateError = error => (errorMessage = error.statusMessage || errorMessage);\n canvas.addEventListener('webglcontextcreationerror', onCreateError, false);\n\n // Create the desired context\n let gl: WebGLRenderingContext | WebGL2RenderingContext | null = null;\n\n if (props.type === 'webgl2') {\n props = {...props, webgl1: false};\n }\n if (props.type === 'webgl1') {\n props = {...props, webgl2: false};\n }\n\n // Prefer webgl2 over webgl1 if both are acceptable\n if (!gl && props.webgl2) {\n gl = canvas.getContext('webgl2', props) as WebGL2RenderingContext;\n }\n if (!gl && props.webgl1) {\n gl = canvas.getContext('webgl', props) as WebGLRenderingContext;\n }\n\n // TODO are we removing this listener before giving it a chance to fire?\n canvas.removeEventListener('webglcontextcreationerror', onCreateError, false);\n\n if (!gl) {\n throw new Error(\n `Failed to create ${props.webgl2 && !props.webgl1 ? 'WebGL2' : 'WebGL'} context: ${\n errorMessage || 'Unknown error'\n }`\n );\n }\n\n if (props.onContextLost) {\n // Carefully extract and wrap callbacks to prevent addEventListener from rebinding them.\n const {onContextLost} = props;\n canvas.addEventListener('webglcontextlost', (event: Event) => onContextLost(event), false);\n }\n if (props.onContextRestored) {\n // Carefully extract and wrap callbacks to prevent addEventListener from rebinding them.\n const {onContextRestored} = props;\n canvas.addEventListener(\n 'webglcontextrestored',\n (event: Event) => onContextRestored(event),\n false\n );\n }\n\n return gl;\n}\n\n/* TODO - can we call this asynchronously to catch the error events?\nexport async function createBrowserContextAsync(canvas: HTMLCanvasElement | OffscreenCanvas, props: ContextProps): Promise<WebGLRenderingContext> {\n props = {...DEFAULT_CONTEXT_PROPS, ...props};\n\n // Try to extract any extra information about why context creation failed\n let errorMessage = null;\n const onCreateError = (error) => (errorMessage = error.statusMessage || errorMessage);\n canvas.addEventListener('webglcontextcreationerror', onCreateError, false);\n\n const gl = createBrowserContext(canvas, props);\n\n // Give the listener a chance to fire\n await new Promise(resolve => setTimeout(resolve, 0));\n\n canvas.removeEventListener('webglcontextcreationerror', onCreateError, false);\n\n return gl;\n}\n*/\n"],"mappings":"AAmCA,MAAMA,qBAAmC,GAAG;EAC1CC,MAAM,EAAE,IAAI;EACZC,MAAM,EAAE,IAAI;EACZC,eAAe,EAAE,kBAAkB;EAEnCC,aAAa,EAAEA,CAAA,KAAMC,OAAO,CAACC,KAAK,CAAC,oBAAoB,CAAC;EAExDC,iBAAiB,EAAEA,CAAA,KAAMF,OAAO,CAACG,IAAI,CAAC,wBAAwB;AAChE,CAAC;AAOD,OAAO,SAASC,oBAAoBA,CAClCC,MAA2C,EAC3CC,KAAmB,EACI;EACvBA,KAAK,GAAG;IAAC,GAAGX,qBAAqB;IAAE,GAAGW;EAAK,CAAC;EAG5C,IAAIC,YAAY,GAAG,IAAI;EACvB,MAAMC,aAAa,GAAGP,KAAK,IAAKM,Y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,MAAM,CAACK,gBAAgB,CACrB,sBAAsB,EACrBO,KAAY,IAAKf,iBAAiB,CAACe,KAAK,CAAC,EAC1C,KAAK,CACN;EACH;EAEA,OAAON,EAAE;AACX"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Duck typing for the main headless gl export, a function to create contexts */
|
|
2
|
-
export
|
|
2
|
+
export type HeadlessGL = (width: number, height: number, options: Record<string, unknown>) => WebGLRenderingContext;
|
|
3
3
|
/** By importing `gl` and registering it with this function, contexts can be created under Node.js */
|
|
4
4
|
export declare function registerHeadlessGL(headlessgl: HeadlessGL): void;
|
|
5
5
|
/** @returns true if headless gl is registered */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-headless-context.d.ts","sourceRoot":"","sources":["../../../src/context/context/create-headless-context.ts"],"names":[],"mappings":"AAeA,iFAAiF;AACjF,
|
|
1
|
+
{"version":3,"file":"create-headless-context.d.ts","sourceRoot":"","sources":["../../../src/context/context/create-headless-context.ts"],"names":[],"mappings":"AAeA,iFAAiF;AACjF,MAAM,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,qBAAqB,CAAC;AAIpH,qGAAqG;AACrG,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,QAExD;AAED,iDAAiD;AACjD,wBAAgB,sBAAsB,IAAI,OAAO,CAEhD;AAED,6DAA6D;AAC7D,wBAAgB,qBAAqB,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,qBAAqB,CAgB1F"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
/// <reference types="dist" />
|
|
2
|
-
/// <reference types="offscreencanvas" />
|
|
3
1
|
/** Spector debug initialization options */
|
|
4
|
-
|
|
2
|
+
type SpectorProps = {
|
|
5
3
|
/** Canvas to monitor */
|
|
6
4
|
canvas?: HTMLCanvasElement | OffscreenCanvas;
|
|
7
5
|
/** Whether debug is enabled. Auto-detected if ommitted */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spector.d.ts","sourceRoot":"","sources":["../../../src/context/debug/spector.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"spector.d.ts","sourceRoot":"","sources":["../../../src/context/debug/spector.ts"],"names":[],"mappings":"AAGA,2CAA2C;AAC3C,KAAK,YAAY,GAAG;IAClB,wBAAwB;IACxB,MAAM,CAAC,EAAE,iBAAiB,GAAG,eAAe,CAAC;IAC7C,0DAA0D;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kCAAkC;IAClC,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;CACrC,CAAC;AAaF,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,OAAO,EAAE,GAAG,CAAC;CAClB;AAED,sDAAsD;AACtD,wBAAsB,aAAa,CAAC,KAAK,CAAC,EAAE,YAAY,iBAQvD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,YAAY,OAoDvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webgl-developer-tools.d.ts","sourceRoot":"","sources":["../../../src/context/debug/webgl-developer-tools.ts"],"names":[],"mappings":"AAMA,
|
|
1
|
+
{"version":3,"file":"webgl-developer-tools.d.ts","sourceRoot":"","sources":["../../../src/context/debug/webgl-developer-tools.ts"],"names":[],"mappings":"AAMA,KAAK,iBAAiB,GAAG;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAeF,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,eAAe,EAAE,GAAG,CAAC;CAC1B;AAED;;;;;GAKG;AACH,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC,CAO7D;AAID,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,qBAAqB,EAAE,KAAK,GAAE,iBAAsB,GAAG,qBAAqB,GAAG,IAAI,CAOvH"}
|
|
@@ -115,7 +115,7 @@ export declare const GL_COMPOSITE_PARAMETER_SETTERS: {
|
|
|
115
115
|
stencilOpFront: (gl: WebGLRenderingContext, values: any, cache: any) => void;
|
|
116
116
|
stencilOpBack: (gl: WebGLRenderingContext, values: any, cache: any) => void;
|
|
117
117
|
};
|
|
118
|
-
|
|
118
|
+
type UpdateFunc = (params: Record<string, any>) => void;
|
|
119
119
|
export declare const GL_HOOKED_SETTERS: {
|
|
120
120
|
enable: (update: UpdateFunc, capability: GL) => void;
|
|
121
121
|
disable: (update: UpdateFunc, capability: GL) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webgl-parameter-tables.d.ts","sourceRoot":"","sources":["../../../src/context/parameters/webgl-parameter-tables.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,EAAE,EAAE,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAOpD,eAAO,MAAM,qBAAqB,EAAE,YAiFnC,CAAC;AA0CF,eAAO,MAAM,oBAAoB;eAtCb,qBAAqB,SAAS,OAAO,OAAO,EAAE;gBAwCzC,qBAAqB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;;;;;;;eAQxD,qBAAqB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;eAEhE,qBAAqB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC;eAlD3E,qBAAqB,SAAS,OAAO,OAAO,EAAE;eAoDtC,qBAAqB;eApD7B,qBAAqB,SAAS,OAAO,OAAO,EAAE;eAsDnC,qBAAqB;eAC5B,qBAAqB;eACpB,qBAAqB,SAAS,CAAC,MAAM,EAAE,MA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