@deck.gl/extensions 9.0.0-alpha.6 → 9.0.0-beta.1
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 +2680 -2548
- package/dist/es5/brushing/shader-module.js +2 -2
- package/dist/es5/brushing/shader-module.js.map +1 -1
- package/dist/es5/clip/clip-extension.js +4 -4
- package/dist/es5/clip/clip-extension.js.map +1 -1
- package/dist/es5/collision-filter/collision-filter-pass.js +4 -2
- package/dist/es5/collision-filter/collision-filter-pass.js.map +1 -1
- package/dist/es5/collision-filter/shader-module.js +1 -1
- package/dist/es5/collision-filter/shader-module.js.map +1 -1
- package/dist/es5/data-filter/aggregator.js +2 -2
- package/dist/es5/data-filter/aggregator.js.map +1 -1
- package/dist/es5/data-filter/shader-module.js +2 -2
- package/dist/es5/data-filter/shader-module.js.map +1 -1
- package/dist/es5/fill-style/shaders.glsl.js +3 -3
- package/dist/es5/fill-style/shaders.glsl.js.map +1 -1
- package/dist/es5/fp64/project64.js.map +1 -1
- package/dist/es5/mask/shader-module.js +4 -4
- package/dist/es5/mask/shader-module.js.map +1 -1
- package/dist/es5/path-style/shaders.glsl.js +4 -4
- package/dist/es5/path-style/shaders.glsl.js.map +1 -1
- package/dist/es5/terrain/shader-module.js +8 -6
- package/dist/es5/terrain/shader-module.js.map +1 -1
- package/dist/esm/brushing/shader-module.js +4 -4
- package/dist/esm/brushing/shader-module.js.map +1 -1
- package/dist/esm/clip/clip-extension.js +4 -4
- package/dist/esm/clip/clip-extension.js.map +1 -1
- package/dist/esm/collision-filter/collision-filter-pass.js +4 -2
- package/dist/esm/collision-filter/collision-filter-pass.js.map +1 -1
- package/dist/esm/collision-filter/shader-module.js +3 -3
- package/dist/esm/collision-filter/shader-module.js.map +1 -1
- package/dist/esm/data-filter/aggregator.js +11 -7
- package/dist/esm/data-filter/aggregator.js.map +1 -1
- package/dist/esm/data-filter/shader-module.js +4 -4
- package/dist/esm/data-filter/shader-module.js.map +1 -1
- package/dist/esm/fill-style/shaders.glsl.js +10 -10
- package/dist/esm/fill-style/shaders.glsl.js.map +1 -1
- package/dist/esm/fp64/project64.js.map +1 -1
- package/dist/esm/mask/shader-module.js +5 -5
- package/dist/esm/mask/shader-module.js.map +1 -1
- package/dist/esm/path-style/shaders.glsl.js +9 -13
- package/dist/esm/path-style/shaders.glsl.js.map +1 -1
- package/dist/esm/terrain/shader-module.js +8 -6
- package/dist/esm/terrain/shader-module.js.map +1 -1
- package/dist.min.js +140 -143
- package/package.json +8 -8
- package/src/brushing/shader-module.ts +6 -5
- package/src/clip/clip-extension.ts +6 -5
- package/src/collision-filter/collision-filter-pass.ts +4 -2
- package/src/collision-filter/shader-module.ts +4 -4
- package/src/data-filter/aggregator.ts +11 -7
- package/src/data-filter/shader-module.ts +5 -6
- package/src/fill-style/shaders.glsl.ts +12 -11
- package/src/fp64/project64.ts +2 -1
- package/src/mask/shader-module.ts +6 -6
- package/src/path-style/shaders.glsl.ts +9 -13
- package/src/terrain/shader-module.ts +8 -8
- package/typed/brushing/brushing-extension.d.ts +1 -1
- package/typed/brushing/brushing-extension.d.ts.map +1 -1
- package/typed/brushing/shader-module.d.ts +3 -2
- package/typed/brushing/shader-module.d.ts.map +1 -1
- package/typed/clip/clip-extension.d.ts +4 -3
- package/typed/clip/clip-extension.d.ts.map +1 -1
- package/typed/collision-filter/collision-filter-extension.d.ts +1 -1
- package/typed/collision-filter/collision-filter-extension.d.ts.map +1 -1
- package/typed/collision-filter/collision-filter-pass.d.ts +5 -3
- package/typed/collision-filter/collision-filter-pass.d.ts.map +1 -1
- package/typed/collision-filter/shader-module.d.ts +2 -2
- package/typed/collision-filter/shader-module.d.ts.map +1 -1
- package/typed/data-filter/aggregator.d.ts.map +1 -1
- package/typed/data-filter/data-filter-extension.d.ts +2 -2
- package/typed/data-filter/data-filter-extension.d.ts.map +1 -1
- package/typed/data-filter/shader-module.d.ts +2 -2
- package/typed/data-filter/shader-module.d.ts.map +1 -1
- package/typed/fill-style/fill-style-extension.d.ts +2 -2
- package/typed/fill-style/fill-style-extension.d.ts.map +1 -1
- package/typed/fill-style/shaders.glsl.d.ts +3 -2
- package/typed/fill-style/shaders.glsl.d.ts.map +1 -1
- package/typed/fp64/project64.d.ts +3 -2
- package/typed/fp64/project64.d.ts.map +1 -1
- package/typed/mask/mask-effect.d.ts +2 -2
- package/typed/mask/mask-effect.d.ts.map +1 -1
- package/typed/mask/mask-extension.d.ts +1 -1
- package/typed/mask/mask-extension.d.ts.map +1 -1
- package/typed/mask/mask-pass.d.ts +1 -1
- package/typed/mask/mask-pass.d.ts.map +1 -1
- package/typed/mask/shader-module.d.ts +2 -2
- package/typed/mask/shader-module.d.ts.map +1 -1
- package/typed/path-style/path-style-extension.d.ts +2 -2
- package/typed/path-style/path-style-extension.d.ts.map +1 -1
- package/typed/path-style/shaders.glsl.d.ts.map +1 -1
- package/typed/terrain/shader-module.d.ts +5 -3
- package/typed/terrain/shader-module.d.ts.map +1 -1
- package/typed/terrain/terrain-extension.d.ts +1 -1
- package/typed/terrain/terrain-extension.d.ts.map +1 -1
- package/typed/terrain/terrain-pass.d.ts +1 -1
- package/typed/terrain/terrain-pass.d.ts.map +1 -1
- package/typed/terrain/terrain-picking-pass.d.ts +1 -1
- package/typed/terrain/terrain-picking-pass.d.ts.map +1 -1
- package/typed/utils/projection-utils.d.ts +1 -1
- package/typed/utils/projection-utils.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@deck.gl/extensions",
|
|
3
3
|
"description": "Plug-and-play functionalities for deck.gl layers",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "9.0.0-
|
|
5
|
+
"version": "9.0.0-beta.1",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.0.0",
|
|
35
|
-
"@luma.gl/shadertools": "9.0.0-alpha.
|
|
35
|
+
"@luma.gl/shadertools": "9.0.0-alpha.54"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@deck.gl/core": "^9.0.0-alpha",
|
|
39
|
-
"@luma.gl/constants": "9.0.0-alpha.
|
|
40
|
-
"@luma.gl/core": "9.0.0-alpha.
|
|
41
|
-
"@luma.gl/engine": "9.0.0-alpha.
|
|
42
|
-
"@luma.gl/shadertools": "9.0.0-alpha.
|
|
43
|
-
"@luma.gl/webgl": "9.0.0-alpha.
|
|
39
|
+
"@luma.gl/constants": "9.0.0-alpha.54",
|
|
40
|
+
"@luma.gl/core": "9.0.0-alpha.54",
|
|
41
|
+
"@luma.gl/engine": "9.0.0-alpha.54",
|
|
42
|
+
"@luma.gl/shadertools": "9.0.0-alpha.54",
|
|
43
|
+
"@luma.gl/webgl": "9.0.0-alpha.54",
|
|
44
44
|
"@math.gl/core": "^4.0.0",
|
|
45
45
|
"@math.gl/web-mercator": "^4.0.0"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "9628417918bec5cc73c1345bfcd2f2be575741f1"
|
|
48
48
|
}
|
|
@@ -18,8 +18,9 @@
|
|
|
18
18
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
19
|
// THE SOFTWARE.
|
|
20
20
|
/* eslint-disable camelcase */
|
|
21
|
+
import type {ShaderModule} from '@luma.gl/shadertools';
|
|
21
22
|
import {project} from '@deck.gl/core';
|
|
22
|
-
import type {Viewport
|
|
23
|
+
import type {Viewport} from '@deck.gl/core';
|
|
23
24
|
|
|
24
25
|
import type {BrushingExtensionProps} from './brushing-extension';
|
|
25
26
|
|
|
@@ -36,12 +37,12 @@ const vs = `
|
|
|
36
37
|
uniform float brushing_radius;
|
|
37
38
|
|
|
38
39
|
#ifdef NON_INSTANCED_MODEL
|
|
39
|
-
|
|
40
|
+
in vec2 brushingTargets;
|
|
40
41
|
#else
|
|
41
|
-
|
|
42
|
+
in vec2 instanceBrushingTargets;
|
|
42
43
|
#endif
|
|
43
44
|
|
|
44
|
-
|
|
45
|
+
out float brushing_isVisible;
|
|
45
46
|
|
|
46
47
|
bool brushing_isPointInRange(vec2 position) {
|
|
47
48
|
if (!brushing_enabled) {
|
|
@@ -65,7 +66,7 @@ const vs = `
|
|
|
65
66
|
|
|
66
67
|
const fs = `
|
|
67
68
|
uniform bool brushing_enabled;
|
|
68
|
-
|
|
69
|
+
in float brushing_isVisible;
|
|
69
70
|
`;
|
|
70
71
|
|
|
71
72
|
const TARGET = {
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
19
|
// THE SOFTWARE.
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import type {ShaderModule} from '@luma.gl/shadertools';
|
|
22
|
+
import {LayerExtension} from '@deck.gl/core';
|
|
22
23
|
|
|
23
24
|
import type {Layer} from '@deck.gl/core';
|
|
24
25
|
|
|
@@ -58,13 +59,13 @@ const shaderModuleVs: ShaderModule = {
|
|
|
58
59
|
|
|
59
60
|
const injectionVs = {
|
|
60
61
|
'vs:#decl': `
|
|
61
|
-
|
|
62
|
+
out float clip_isVisible;
|
|
62
63
|
`,
|
|
63
64
|
'vs:DECKGL_FILTER_GL_POSITION': `
|
|
64
65
|
clip_isVisible = float(clip_isInBounds(geometry.worldPosition.xy));
|
|
65
66
|
`,
|
|
66
67
|
'fs:#decl': `
|
|
67
|
-
|
|
68
|
+
in float clip_isVisible;
|
|
68
69
|
`,
|
|
69
70
|
'fs:DECKGL_FILTER_COLOR': `
|
|
70
71
|
if (clip_isVisible < 0.5) discard;
|
|
@@ -82,13 +83,13 @@ const shaderModuleFs: ShaderModule = {
|
|
|
82
83
|
|
|
83
84
|
const injectionFs = {
|
|
84
85
|
'vs:#decl': `
|
|
85
|
-
|
|
86
|
+
out vec2 clip_commonPosition;
|
|
86
87
|
`,
|
|
87
88
|
'vs:DECKGL_FILTER_GL_POSITION': `
|
|
88
89
|
clip_commonPosition = geometry.position.xy;
|
|
89
90
|
`,
|
|
90
91
|
'fs:#decl': `
|
|
91
|
-
|
|
92
|
+
in vec2 clip_commonPosition;
|
|
92
93
|
`,
|
|
93
94
|
'fs:DECKGL_FILTER_COLOR': `
|
|
94
95
|
if (!clip_isInBounds(clip_commonPosition)) discard;
|
|
@@ -26,8 +26,10 @@ export default class CollisionFilterPass extends LayersPass {
|
|
|
26
26
|
// Draw picking colors into collision FBO
|
|
27
27
|
return {
|
|
28
28
|
drawToCollisionMap: true,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
picking: {
|
|
30
|
+
isActive: 1,
|
|
31
|
+
isAttribute: false
|
|
32
|
+
},
|
|
31
33
|
lightSources: {}
|
|
32
34
|
};
|
|
33
35
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {Framebuffer, Texture} from '@luma.gl/core';
|
|
2
|
+
import type {ShaderModule} from '@luma.gl/shadertools';
|
|
2
3
|
import {project} from '@deck.gl/core';
|
|
3
|
-
import type {_ShaderModule as ShaderModule} from '@deck.gl/core';
|
|
4
4
|
|
|
5
5
|
const vs = `
|
|
6
6
|
#ifdef NON_INSTANCED_MODEL
|
|
7
|
-
|
|
7
|
+
in float collisionPriorities;
|
|
8
8
|
#else
|
|
9
|
-
|
|
9
|
+
in float instanceCollisionPriorities;
|
|
10
10
|
#endif
|
|
11
11
|
|
|
12
12
|
uniform sampler2D collision_texture;
|
|
@@ -19,7 +19,7 @@ vec2 collision_getCoords(vec4 position) {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
float collision_match(vec2 tex, vec3 pickingColor) {
|
|
22
|
-
vec4 collision_pickingColor =
|
|
22
|
+
vec4 collision_pickingColor = texture(collision_texture, tex);
|
|
23
23
|
float delta = dot(abs(collision_pickingColor.rgb - pickingColor), vec3(1.0));
|
|
24
24
|
float e = 0.001;
|
|
25
25
|
return step(delta, e);
|
|
@@ -3,17 +3,18 @@ import {Model} from '@luma.gl/engine';
|
|
|
3
3
|
import {GL} from '@luma.gl/constants';
|
|
4
4
|
|
|
5
5
|
const AGGREGATE_VS = `\
|
|
6
|
+
#version 300 es
|
|
6
7
|
#define SHADER_NAME data-filter-vertex-shader
|
|
7
8
|
|
|
8
9
|
#ifdef FLOAT_TARGET
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
in float filterIndices;
|
|
11
|
+
in float filterPrevIndices;
|
|
11
12
|
#else
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
in vec2 filterIndices;
|
|
14
|
+
in vec2 filterPrevIndices;
|
|
14
15
|
#endif
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
out vec4 vColor;
|
|
17
18
|
const float component = 1.0 / 255.0;
|
|
18
19
|
|
|
19
20
|
void main() {
|
|
@@ -36,16 +37,19 @@ void main() {
|
|
|
36
37
|
`;
|
|
37
38
|
|
|
38
39
|
const AGGREGATE_FS = `\
|
|
40
|
+
#version 300 es
|
|
39
41
|
#define SHADER_NAME data-filter-fragment-shader
|
|
40
42
|
precision highp float;
|
|
41
43
|
|
|
42
|
-
|
|
44
|
+
in vec4 vColor;
|
|
45
|
+
|
|
46
|
+
out vec4 fragColor;
|
|
43
47
|
|
|
44
48
|
void main() {
|
|
45
49
|
if (dataFilter_value < 0.5) {
|
|
46
50
|
discard;
|
|
47
51
|
}
|
|
48
|
-
|
|
52
|
+
fragColor = vColor;
|
|
49
53
|
}
|
|
50
54
|
`;
|
|
51
55
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import type {ShaderModule} from '@luma.gl/shadertools';
|
|
3
2
|
import type {DataFilterExtensionProps} from './data-filter-extension';
|
|
4
3
|
|
|
5
4
|
/*
|
|
@@ -22,15 +21,15 @@ uniform bool filter_transformSize;
|
|
|
22
21
|
#define DATAFILTER_ATTRIB_64LOW instanceFilterValues64Low
|
|
23
22
|
#endif
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
in DATAFILTER_TYPE DATAFILTER_ATTRIB;
|
|
26
25
|
#ifdef DATAFILTER_DOUBLE
|
|
27
|
-
|
|
26
|
+
in DATAFILTER_TYPE DATAFILTER_ATTRIB_64LOW;
|
|
28
27
|
|
|
29
28
|
uniform DATAFILTER_TYPE filter_min64High;
|
|
30
29
|
uniform DATAFILTER_TYPE filter_max64High;
|
|
31
30
|
#endif
|
|
32
31
|
|
|
33
|
-
|
|
32
|
+
out float dataFilter_value;
|
|
34
33
|
|
|
35
34
|
float dataFilter_reduceValue(float value) {
|
|
36
35
|
return value;
|
|
@@ -64,7 +63,7 @@ void dataFilter_setValue(DATAFILTER_TYPE valueFromMin, DATAFILTER_TYPE valueFrom
|
|
|
64
63
|
|
|
65
64
|
const fs = `
|
|
66
65
|
uniform bool filter_transformColor;
|
|
67
|
-
|
|
66
|
+
in float dataFilter_value;
|
|
68
67
|
`;
|
|
69
68
|
|
|
70
69
|
type DataFilterModuleSettings = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type {ShaderModule} from '@luma.gl/shadertools';
|
|
1
2
|
import {project, fp64LowPart} from '@deck.gl/core';
|
|
2
|
-
import type {Viewport,
|
|
3
|
+
import type {Viewport, ProjectUniforms} from '@deck.gl/core';
|
|
3
4
|
|
|
4
5
|
import type {Texture} from '@luma.gl/core';
|
|
5
6
|
|
|
@@ -17,16 +18,16 @@ const patternVs = `
|
|
|
17
18
|
#define FILL_PATTERN_OFFSET_ATTRIB instanceFillPatternOffsets
|
|
18
19
|
#endif
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
in vec4 FILL_PATTERN_FRAME_ATTRIB;
|
|
22
|
+
in float FILL_PATTERN_SCALE_ATTRIB;
|
|
23
|
+
in vec2 FILL_PATTERN_OFFSET_ATTRIB;
|
|
23
24
|
|
|
24
25
|
uniform bool fill_patternEnabled;
|
|
25
26
|
uniform vec2 fill_patternTextureSize;
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
out vec2 fill_uv;
|
|
29
|
+
out vec4 fill_patternBounds;
|
|
30
|
+
out vec4 fill_patternPlacement;
|
|
30
31
|
`;
|
|
31
32
|
|
|
32
33
|
const patternFs = `
|
|
@@ -36,9 +37,9 @@ uniform sampler2D fill_patternTexture;
|
|
|
36
37
|
uniform vec2 fill_uvCoordinateOrigin;
|
|
37
38
|
uniform vec2 fill_uvCoordinateOrigin64Low;
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
in vec4 fill_patternBounds;
|
|
41
|
+
in vec4 fill_patternPlacement;
|
|
42
|
+
in vec2 fill_uv;
|
|
42
43
|
|
|
43
44
|
const float FILL_UV_SCALE = 512.0 / 40000000.0;
|
|
44
45
|
`;
|
|
@@ -64,7 +65,7 @@ const inject = {
|
|
|
64
65
|
|
|
65
66
|
vec2 texCoords = fill_patternBounds.xy + fill_patternBounds.zw * patternUV;
|
|
66
67
|
|
|
67
|
-
vec4 patternColor =
|
|
68
|
+
vec4 patternColor = texture(fill_patternTexture, texCoords);
|
|
68
69
|
color.a *= patternColor.a;
|
|
69
70
|
if (!fill_patternMask) {
|
|
70
71
|
color.rgb = patternColor.rgb;
|
package/src/fp64/project64.ts
CHANGED
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
|
|
21
21
|
/* eslint-disable camelcase */
|
|
22
22
|
import {fp64} from '@luma.gl/shadertools';
|
|
23
|
+
import type {ShaderModule} from '@luma.gl/shadertools';
|
|
23
24
|
const {fp64ify, fp64ifyMatrix4} = fp64;
|
|
24
25
|
import {project, _memoize as memoize} from '@deck.gl/core';
|
|
25
26
|
|
|
26
|
-
import type {Viewport
|
|
27
|
+
import type {Viewport} from '@deck.gl/core';
|
|
27
28
|
import project64Shader from './project64.glsl';
|
|
28
29
|
|
|
29
30
|
type Project64ModuleSettings = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type {ShaderModule} from '@luma.gl/shadertools';
|
|
1
2
|
import {project} from '@deck.gl/core';
|
|
2
|
-
import type {_ShaderModule as ShaderModule} from '@deck.gl/core';
|
|
3
3
|
import type {Texture} from '@luma.gl/core';
|
|
4
4
|
|
|
5
5
|
const vs = `
|
|
@@ -19,7 +19,7 @@ bool mask_isInBounds(vec2 texCoords) {
|
|
|
19
19
|
if (!mask_enabled) {
|
|
20
20
|
return true;
|
|
21
21
|
}
|
|
22
|
-
vec4 maskColor =
|
|
22
|
+
vec4 maskColor = texture(mask_texture, texCoords);
|
|
23
23
|
float maskValue = 1.0;
|
|
24
24
|
if (mask_channel == 0) {
|
|
25
25
|
maskValue = maskColor.r;
|
|
@@ -41,7 +41,7 @@ bool mask_isInBounds(vec2 texCoords) {
|
|
|
41
41
|
|
|
42
42
|
const inject = {
|
|
43
43
|
'vs:#decl': `
|
|
44
|
-
|
|
44
|
+
out vec2 mask_texCoords;
|
|
45
45
|
`,
|
|
46
46
|
'vs:#main-end': `
|
|
47
47
|
vec4 mask_common_position;
|
|
@@ -53,15 +53,15 @@ varying vec2 mask_texCoords;
|
|
|
53
53
|
mask_texCoords = mask_getCoords(mask_common_position);
|
|
54
54
|
`,
|
|
55
55
|
'fs:#decl': `
|
|
56
|
-
|
|
56
|
+
in vec2 mask_texCoords;
|
|
57
57
|
`,
|
|
58
58
|
'fs:#main-start': `
|
|
59
59
|
if (mask_enabled) {
|
|
60
60
|
bool mask = mask_isInBounds(mask_texCoords);
|
|
61
61
|
|
|
62
62
|
// Debug: show extent of render target
|
|
63
|
-
//
|
|
64
|
-
|
|
63
|
+
// fragColor = vec4(mask_texCoords, 0.0, 1.0);
|
|
64
|
+
fragColor = texture(mask_texture, mask_texCoords);
|
|
65
65
|
|
|
66
66
|
if (!mask) discard;
|
|
67
67
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export const dashShaders = {
|
|
2
2
|
inject: {
|
|
3
3
|
'vs:#decl': `
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
in vec2 instanceDashArrays;
|
|
5
|
+
in float instanceDashOffsets;
|
|
6
|
+
out vec2 vDashArray;
|
|
7
|
+
out float vDashOffset;
|
|
8
8
|
`,
|
|
9
9
|
|
|
10
10
|
'vs:#main-end': `
|
|
@@ -16,12 +16,8 @@ vDashOffset = instanceDashOffsets / width.x;
|
|
|
16
16
|
uniform float dashAlignMode;
|
|
17
17
|
uniform float capType;
|
|
18
18
|
uniform bool dashGapPickable;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
float round(float x) {
|
|
23
|
-
return floor(x + 0.5);
|
|
24
|
-
}
|
|
19
|
+
in vec2 vDashArray;
|
|
20
|
+
in float vDashOffset;
|
|
25
21
|
`,
|
|
26
22
|
|
|
27
23
|
// if given position is in the gap part of the dashed line
|
|
@@ -51,7 +47,7 @@ float round(float x) {
|
|
|
51
47
|
|
|
52
48
|
if (gapLength > 0.0 && unitOffset > solidLength) {
|
|
53
49
|
if (capType <= 0.5) {
|
|
54
|
-
if (!(dashGapPickable &&
|
|
50
|
+
if (!(dashGapPickable && bool(picking.isActive))) {
|
|
55
51
|
discard;
|
|
56
52
|
}
|
|
57
53
|
} else {
|
|
@@ -61,7 +57,7 @@ float round(float x) {
|
|
|
61
57
|
vPathPosition.x
|
|
62
58
|
));
|
|
63
59
|
if (distToEnd > 1.0) {
|
|
64
|
-
if (!(dashGapPickable &&
|
|
60
|
+
if (!(dashGapPickable && bool(picking.isActive))) {
|
|
65
61
|
discard;
|
|
66
62
|
}
|
|
67
63
|
}
|
|
@@ -75,7 +71,7 @@ float round(float x) {
|
|
|
75
71
|
export const offsetShaders = {
|
|
76
72
|
inject: {
|
|
77
73
|
'vs:#decl': `
|
|
78
|
-
|
|
74
|
+
in float instanceOffsets;
|
|
79
75
|
`,
|
|
80
76
|
'vs:DECKGL_FILTER_SIZE': `
|
|
81
77
|
float offsetWidth = abs(instanceOffsets * 2.0) + 1.0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
2
|
|
|
3
|
+
import type {ShaderModule} from '@luma.gl/shadertools';
|
|
3
4
|
import {project} from '@deck.gl/core';
|
|
4
|
-
import type {_ShaderModule as ShaderModule} from '@deck.gl/core';
|
|
5
5
|
|
|
6
6
|
import type {Texture} from '@luma.gl/core';
|
|
7
7
|
import type {Bounds} from '../utils/projection-utils';
|
|
@@ -9,7 +9,7 @@ import type {TerrainCover} from './terrain-cover';
|
|
|
9
9
|
|
|
10
10
|
/** Module parameters expected by the terrain shader module */
|
|
11
11
|
export type TerrainModuleSettings = {
|
|
12
|
-
|
|
12
|
+
picking: {isActive?: boolean};
|
|
13
13
|
heightMap: Texture | null;
|
|
14
14
|
heightMapBounds?: Bounds | null;
|
|
15
15
|
dummyHeightMap: Texture;
|
|
@@ -47,7 +47,7 @@ export const terrainModule = {
|
|
|
47
47
|
uniform float terrain_mode;
|
|
48
48
|
uniform sampler2D terrain_map;
|
|
49
49
|
uniform vec4 terrain_bounds;
|
|
50
|
-
|
|
50
|
+
out vec3 commonPos;
|
|
51
51
|
${TERRAIN_MODE_CONSTANTS}
|
|
52
52
|
`,
|
|
53
53
|
'vs:#main-start': `
|
|
@@ -69,7 +69,7 @@ if (terrain_mode == TERRAIN_MODE_USE_HEIGHT_MAP) {
|
|
|
69
69
|
vec3 anchorCommon = project_position(anchor);
|
|
70
70
|
vec2 texCoords = (anchorCommon.xy - terrain_bounds.xy) / terrain_bounds.zw;
|
|
71
71
|
if (texCoords.x >= 0.0 && texCoords.y >= 0.0 && texCoords.x <= 1.0 && texCoords.y <= 1.0) {
|
|
72
|
-
float terrainZ =
|
|
72
|
+
float terrainZ = texture(terrain_map, texCoords).r;
|
|
73
73
|
geometry.position.z += terrainZ;
|
|
74
74
|
position = project_common_position_to_clipspace(geometry.position);
|
|
75
75
|
}
|
|
@@ -79,19 +79,19 @@ if (terrain_mode == TERRAIN_MODE_USE_HEIGHT_MAP) {
|
|
|
79
79
|
uniform float terrain_mode;
|
|
80
80
|
uniform sampler2D terrain_map;
|
|
81
81
|
uniform vec4 terrain_bounds;
|
|
82
|
-
|
|
82
|
+
in vec3 commonPos;
|
|
83
83
|
${TERRAIN_MODE_CONSTANTS}
|
|
84
84
|
`,
|
|
85
85
|
'fs:#main-start': `
|
|
86
86
|
if (terrain_mode == TERRAIN_MODE_WRITE_HEIGHT_MAP) {
|
|
87
|
-
|
|
87
|
+
fragColor = vec4(commonPos.z, 0.0, 0.0, 1.0);
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
90
|
`,
|
|
91
91
|
'fs:DECKGL_FILTER_COLOR': `
|
|
92
92
|
if ((terrain_mode == TERRAIN_MODE_USE_COVER) || (terrain_mode == TERRAIN_MODE_USE_COVER_ONLY)) {
|
|
93
93
|
vec2 texCoords = (commonPos.xy - terrain_bounds.xy) / terrain_bounds.zw;
|
|
94
|
-
vec4 pixel =
|
|
94
|
+
vec4 pixel = texture(terrain_map, texCoords);
|
|
95
95
|
if (terrain_mode == TERRAIN_MODE_USE_COVER_ONLY) {
|
|
96
96
|
color = pixel;
|
|
97
97
|
} else {
|
|
@@ -130,7 +130,7 @@ if ((terrain_mode == TERRAIN_MODE_USE_COVER) || (terrain_mode == TERRAIN_MODE_US
|
|
|
130
130
|
bounds = heightMapBounds!;
|
|
131
131
|
} else if (terrainCover) {
|
|
132
132
|
// This is a terrain layer
|
|
133
|
-
const isPicking = opts.
|
|
133
|
+
const isPicking = opts.picking?.isActive;
|
|
134
134
|
// @ts-expect-error
|
|
135
135
|
sampler = isPicking
|
|
136
136
|
? terrainCover.getPickingFramebuffer()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LayerExtension } from '@deck.gl/core';
|
|
2
2
|
import type { Layer, LayerContext, Accessor } from '@deck.gl/core';
|
|
3
|
-
export
|
|
3
|
+
export type BrushingExtensionProps<DataT = any> = {
|
|
4
4
|
/**
|
|
5
5
|
* Called to retrieve an arbitrary position for each object that it will be filtered by.
|
|
6
6
|
* Only effective if `brushingTarget` is set to `custom`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brushing-extension.d.ts","sourceRoot":"","sources":["../../src/brushing/brushing-extension.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAG7C,OAAO,KAAK,EAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AAUjE,
|
|
1
|
+
{"version":3,"file":"brushing-extension.d.ts","sourceRoot":"","sources":["../../src/brushing/brushing-extension.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAG7C,OAAO,KAAK,EAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AAUjE,MAAM,MAAM,sBAAsB,CAAC,KAAK,GAAG,GAAG,IAAI;IAChD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACtD;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,cAAc,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,eAAe,GAAG,QAAQ,CAAC;IAClE;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,8IAA8I;AAC9I,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,cAAc;IAC3D,MAAM,CAAC,YAAY;;;;;;;;MAAgB;IACnC,MAAM,CAAC,aAAa,SAAuB;IAE3C,UAAU,IAAI,GAAG;IAMjB,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,sBAAsB,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI;IAkC3F,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,sBAAsB,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI;CAW1F"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ShaderModule } from '@luma.gl/shadertools';
|
|
2
|
+
import type { Viewport } from '@deck.gl/core';
|
|
2
3
|
import type { BrushingExtensionProps } from './brushing-extension';
|
|
3
|
-
|
|
4
|
+
type BrushingModuleSettings = {
|
|
4
5
|
viewport: Viewport;
|
|
5
6
|
mousePosition?: {
|
|
6
7
|
x: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shader-module.d.ts","sourceRoot":"","sources":["../../src/brushing/shader-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shader-module.d.ts","sourceRoot":"","sources":["../../src/brushing/shader-module.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAE5C,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAEjE,KAAK,sBAAsB,GAAG;IAE5B,QAAQ,EAAE,QAAQ,CAAC;IACnB,aAAa,CAAC,EAAE;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAC,CAAC;CACxC,GAAG,sBAAsB,CAAC;;AAkF3B,wBA4B0C"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ShaderModule } from '@luma.gl/shadertools';
|
|
2
|
+
import { LayerExtension } from '@deck.gl/core';
|
|
2
3
|
import type { Layer } from '@deck.gl/core';
|
|
3
|
-
export
|
|
4
|
+
export type ClipExtensionProps = {
|
|
4
5
|
/** Rectangular bounds to be used for clipping the rendered region, in `[left, bottom, right, top]`.
|
|
5
6
|
* @default [0, 0, 1, 1]
|
|
6
7
|
*/
|
|
@@ -19,7 +20,7 @@ export default class ClipExtension extends LayerExtension {
|
|
|
19
20
|
};
|
|
20
21
|
static extensionName: string;
|
|
21
22
|
getShaders(this: Layer<ClipExtensionProps>): {
|
|
22
|
-
modules: ShaderModule
|
|
23
|
+
modules: ShaderModule[];
|
|
23
24
|
inject: {
|
|
24
25
|
'vs:#decl': string;
|
|
25
26
|
'vs:DECKGL_FILTER_GL_POSITION': string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clip-extension.d.ts","sourceRoot":"","sources":["../../src/clip/clip-extension.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"clip-extension.d.ts","sourceRoot":"","sources":["../../src/clip/clip-extension.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAE7C,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,eAAe,CAAC;AAOzC,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9C;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AA0DF,uEAAuE;AACvE,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,cAAc;IACvD,MAAM,CAAC,YAAY;;;MAAgB;IACnC,MAAM,CAAC,aAAa,SAAmB;IAEvC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,kBAAkB,CAAC;;;;;;;;;IAwB1C,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,EAAE,EAAC,QAAQ,EAAC,EAAE,GAAG,GAAG,IAAI;CAgBvE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Accessor, Layer, LayerContext, LayerExtension } from '@deck.gl/core';
|
|
2
|
-
export
|
|
2
|
+
export type CollisionFilterExtensionProps<DataT = any> = {
|
|
3
3
|
/**
|
|
4
4
|
* Accessor for collision priority. Must return a number in the range -1000 -> 1000. Features with higher values are shown preferentially.
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collision-filter-extension.d.ts","sourceRoot":"","sources":["../../src/collision-filter/collision-filter-extension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,cAAc,EAAC,MAAM,eAAe,CAAC;AAW5E,
|
|
1
|
+
{"version":3,"file":"collision-filter-extension.d.ts","sourceRoot":"","sources":["../../src/collision-filter/collision-filter-extension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,cAAc,EAAC,MAAM,eAAe,CAAC;AAW5E,MAAM,MAAM,6BAA6B,CAAC,KAAK,GAAG,GAAG,IAAI;IACvD;;OAEG;IACH,oBAAoB,CAAC,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAE/C;;;OAGG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,kBAAkB,CAAC,EAAE,EAAE,CAAC;CACzB,CAAC;AAEF,iDAAiD;AACjD,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,cAAc;IAClE,MAAM,CAAC,YAAY;;;;;;;;;;;MAAgB;IACnC,MAAM,CAAC,aAAa,SAA8B;IAElD,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,6BAA6B,CAAC,GAAG,GAAG;IAK3D,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,6BAA6B,CAAC,EAAE,EAAC,QAAQ,EAAE,OAAO,EAAE,gBAAgB,EAAC,EAAE,GAAG;IAa3F,eAAe,CACb,IAAI,EAAE,KAAK,CAAC,6BAA6B,CAAC,EAC1C,OAAO,EAAE,YAAY,EACrB,SAAS,EAAE,IAAI;IAmBjB,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,6BAA6B,CAAC,GAAG,OAAO;CAG3E"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { Framebuffer } from '@luma.gl/core';
|
|
2
2
|
import { _LayersPass as LayersPass, LayersPassRenderOptions } from '@deck.gl/core';
|
|
3
|
-
|
|
3
|
+
type CollisionFilterPassRenderOptions = LayersPassRenderOptions & {};
|
|
4
4
|
export default class CollisionFilterPass extends LayersPass {
|
|
5
5
|
renderCollisionMap(target: Framebuffer, options: CollisionFilterPassRenderOptions): any;
|
|
6
6
|
getModuleParameters(): {
|
|
7
7
|
drawToCollisionMap: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
picking: {
|
|
9
|
+
isActive: number;
|
|
10
|
+
isAttribute: boolean;
|
|
11
|
+
};
|
|
10
12
|
lightSources: {};
|
|
11
13
|
};
|
|
12
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collision-filter-pass.d.ts","sourceRoot":"","sources":["../../src/collision-filter/collision-filter-pass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAC,WAAW,IAAI,UAAU,EAAE,uBAAuB,EAAC,MAAM,eAAe,CAAC;AAEjF,
|
|
1
|
+
{"version":3,"file":"collision-filter-pass.d.ts","sourceRoot":"","sources":["../../src/collision-filter/collision-filter-pass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAC,WAAW,IAAI,UAAU,EAAE,uBAAuB,EAAC,MAAM,eAAe,CAAC;AAEjF,KAAK,gCAAgC,GAAG,uBAAuB,GAAG,EAAE,CAAC;AAErE,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,UAAU;IACzD,kBAAkB,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,gCAAgC;IAiBjF,mBAAmB;;;;;;;;CAWpB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Framebuffer, Texture } from '@luma.gl/core';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
2
|
+
import type { ShaderModule } from '@luma.gl/shadertools';
|
|
3
|
+
type CollisionModuleSettings = {
|
|
4
4
|
collisionFBO?: Framebuffer;
|
|
5
5
|
drawToCollisionMap?: boolean;
|
|
6
6
|
dummyCollisionMap?: Texture;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shader-module.d.ts","sourceRoot":"","sources":["../../src/collision-filter/shader-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,OAAO,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"shader-module.d.ts","sourceRoot":"","sources":["../../src/collision-filter/shader-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,OAAO,EAAC,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAmFvD,KAAK,uBAAuB,GAAG;IAC7B,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;;AAqBF,wBAM2C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aggregator.d.ts","sourceRoot":"","sources":["../../src/data-filter/aggregator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,KAAK,EAAC,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAC,EAAE,EAAC,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"aggregator.d.ts","sourceRoot":"","sources":["../../src/data-filter/aggregator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,KAAK,EAAC,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAC,EAAE,EAAC,MAAM,oBAAoB,CAAC;AAqDtC,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAY3D;AAGD,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,GAAG,WAAW,CAmBnF;AAGD,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,EAAE,cAAc,EAAE,OAAO,GAAG,KAAK,CAe3F;AAED,eAAO,MAAM,UAAU;;;;;CAKb,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Layer, LayerContext, Accessor, UpdateParameters } from '@deck.gl/core';
|
|
2
2
|
import { LayerExtension } from '@deck.gl/core';
|
|
3
|
-
export
|
|
3
|
+
export type DataFilterExtensionProps<DataT = any> = {
|
|
4
4
|
/**
|
|
5
5
|
* Accessor to retrieve the value for each object that it will be filtered by.
|
|
6
6
|
* Returns either a number (if `filterSize: 1`) or an array of numbers.
|
|
@@ -43,7 +43,7 @@ export declare type DataFilterExtensionProps<DataT = any> = {
|
|
|
43
43
|
count: number;
|
|
44
44
|
}) => void;
|
|
45
45
|
};
|
|
46
|
-
|
|
46
|
+
type DataFilterExtensionOptions = {
|
|
47
47
|
/**
|
|
48
48
|
* The size of the filter (number of columns to filter by). The data filter can show/hide data based on 1-4 numeric properties of each object.
|
|
49
49
|
* @default 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-filter-extension.d.ts","sourceRoot":"","sources":["../../src/data-filter/data-filter-extension.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAC;AACnF,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAe7C,
|
|
1
|
+
{"version":3,"file":"data-filter-extension.d.ts","sourceRoot":"","sources":["../../src/data-filter/data-filter-extension.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAC;AACnF,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAe7C,MAAM,MAAM,wBAAwB,CAAC,KAAK,GAAG,GAAG,IAAI;IAClD;;;OAGG;IACH,cAAc,CAAC,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;IACpD;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IACpD;;;;OAIG;IACH,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC;IAC/D;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;OAEG;IACH,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE;QAC5B,kCAAkC;QAClC,EAAE,EAAE,MAAM,CAAC;QACX,uDAAuD;QACvD,KAAK,EAAE,MAAM,CAAC;KACf,KAAK,IAAI,CAAC;CACZ,CAAC;AAEF,KAAK,0BAA0B,GAAG;IAChC;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,IAAI,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AASF,0IAA0I;AAC1I,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,cAAc,CAAC,0BAA0B,CAAC;IACzF,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;MAAgB;IACnC,MAAM,CAAC,aAAa,SAAyB;gBAEjC,EACV,UAAc,EACd,IAAY,EACZ,UAAkB,EACnB,GAAE,OAAO,CAAC,0BAA0B,CAAM;IAQ3C,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,wBAAwB,CAAC,EAAE,SAAS,EAAE,IAAI,GAAG,GAAG;IAYvE,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,wBAAwB,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI;IAyD7F,WAAW,CACT,IAAI,EAAE,KAAK,CAAC,wBAAwB,CAAC,EACrC,EAAC,KAAK,EAAE,QAAQ,EAAC,EAAE,gBAAgB,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAgBtE,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,wBAAwB,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI;IA2CxE,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,wBAAwB,CAAC;CAQpD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ShaderModule } from '@luma.gl/shadertools';
|
|
2
2
|
import type { DataFilterExtensionProps } from './data-filter-extension';
|
|
3
|
-
|
|
3
|
+
type DataFilterModuleSettings = {
|
|
4
4
|
extensions: any[];
|
|
5
5
|
} & DataFilterExtensionProps;
|
|
6
6
|
export declare const shaderModule: ShaderModule<DataFilterModuleSettings>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shader-module.d.ts","sourceRoot":"","sources":["../../src/data-filter/shader-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"shader-module.d.ts","sourceRoot":"","sources":["../../src/data-filter/shader-module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,yBAAyB,CAAC;AAmEtE,KAAK,wBAAwB,GAAG;IAC9B,UAAU,EAAE,GAAG,EAAE,CAAC;CACnB,GAAG,wBAAwB,CAAC;AAiG7B,eAAO,MAAM,YAAY,EAAE,YAAY,CAAC,wBAAwB,CAM/D,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,YAAY,CAAC,wBAAwB,CAMjE,CAAC"}
|