@deck.gl/extensions 8.9.5 → 8.9.7

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.
Files changed (131) hide show
  1. package/dist/dist.dev.js +17 -17
  2. package/dist/es5/brushing/{brushing.js → brushing-extension.js} +1 -1
  3. package/dist/es5/brushing/brushing-extension.js.map +1 -0
  4. package/dist/es5/brushing/shader-module.js.map +1 -1
  5. package/dist/es5/clip/{clip.js → clip-extension.js} +1 -1
  6. package/dist/es5/clip/clip-extension.js.map +1 -0
  7. package/dist/es5/collision-filter/{collision-filter.js → collision-filter-extension.js} +1 -1
  8. package/dist/es5/collision-filter/collision-filter-extension.js.map +1 -0
  9. package/dist/es5/data-filter/{data-filter.js → data-filter-extension.js} +1 -1
  10. package/dist/es5/data-filter/data-filter-extension.js.map +1 -0
  11. package/dist/es5/data-filter/shader-module.js.map +1 -1
  12. package/dist/es5/fill-style/{fill-style.js → fill-style-extension.js} +1 -1
  13. package/dist/es5/fill-style/fill-style-extension.js.map +1 -0
  14. package/dist/es5/fp64/{fp64.js → fp64-extension.js} +1 -1
  15. package/dist/es5/fp64/fp64-extension.js.map +1 -0
  16. package/dist/es5/index.js +18 -18
  17. package/dist/es5/index.js.map +1 -1
  18. package/dist/es5/mask/{mask.js → mask-extension.js} +1 -1
  19. package/dist/es5/mask/mask-extension.js.map +1 -0
  20. package/dist/es5/path-style/{path-style.js → path-style-extension.js} +1 -1
  21. package/dist/es5/path-style/path-style-extension.js.map +1 -0
  22. package/dist/es5/terrain/{terrain.js → terrain-extension.js} +1 -1
  23. package/dist/es5/terrain/terrain-extension.js.map +1 -0
  24. package/dist/esm/brushing/{brushing.js → brushing-extension.js} +1 -1
  25. package/dist/esm/brushing/brushing-extension.js.map +1 -0
  26. package/dist/esm/brushing/shader-module.js.map +1 -1
  27. package/dist/esm/clip/{clip.js → clip-extension.js} +1 -1
  28. package/dist/esm/clip/clip-extension.js.map +1 -0
  29. package/dist/esm/collision-filter/{collision-filter.js → collision-filter-extension.js} +1 -1
  30. package/dist/esm/collision-filter/collision-filter-extension.js.map +1 -0
  31. package/dist/esm/data-filter/{data-filter.js → data-filter-extension.js} +1 -1
  32. package/dist/esm/data-filter/data-filter-extension.js.map +1 -0
  33. package/dist/esm/data-filter/shader-module.js.map +1 -1
  34. package/dist/esm/fill-style/{fill-style.js → fill-style-extension.js} +1 -1
  35. package/dist/esm/fill-style/fill-style-extension.js.map +1 -0
  36. package/dist/esm/fp64/{fp64.js → fp64-extension.js} +1 -1
  37. package/dist/esm/fp64/fp64-extension.js.map +1 -0
  38. package/dist/esm/index.js +9 -9
  39. package/dist/esm/index.js.map +1 -1
  40. package/dist/esm/mask/{mask.js → mask-extension.js} +1 -1
  41. package/dist/esm/mask/mask-extension.js.map +1 -0
  42. package/dist/esm/path-style/{path-style.js → path-style-extension.js} +1 -1
  43. package/dist/esm/path-style/path-style-extension.js.map +1 -0
  44. package/dist/esm/terrain/{terrain.js → terrain-extension.js} +1 -1
  45. package/dist/esm/terrain/terrain-extension.js.map +1 -0
  46. package/package.json +2 -2
  47. package/src/brushing/shader-module.ts +1 -1
  48. package/src/data-filter/shader-module.ts +1 -1
  49. package/src/index.ts +17 -17
  50. package/typed/brushing/brushing-extension.d.ts +39 -0
  51. package/typed/brushing/brushing-extension.d.ts.map +1 -0
  52. package/typed/brushing/brushing.js +83 -0
  53. package/typed/brushing/shader-module.d.ts +1 -1
  54. package/typed/brushing/shader-module.d.ts.map +1 -1
  55. package/typed/brushing/shader-module.js +116 -0
  56. package/typed/clip/clip-extension.d.ts +32 -0
  57. package/typed/clip/clip-extension.d.ts.map +1 -0
  58. package/typed/clip/clip.js +114 -0
  59. package/typed/collide/collide-effect.d.ts +1 -1
  60. package/typed/collide/collide-effect.d.ts.map +1 -1
  61. package/typed/collide/collide-pass.d.ts +0 -1
  62. package/typed/collide/collide-pass.d.ts.map +1 -1
  63. package/typed/collide/collide.d.ts +0 -1
  64. package/typed/collide/collide.d.ts.map +1 -1
  65. package/typed/collide/shader-module.d.ts.map +1 -1
  66. package/typed/collision-filter/collision-filter-extension.d.ts +41 -0
  67. package/typed/collision-filter/collision-filter-extension.d.ts.map +1 -0
  68. package/typed/data-filter/aggregator.js +98 -0
  69. package/typed/data-filter/data-filter-extension.d.ts +90 -0
  70. package/typed/data-filter/data-filter-extension.d.ts.map +1 -0
  71. package/typed/data-filter/data-filter.js +159 -0
  72. package/typed/data-filter/shader-module.d.ts +1 -1
  73. package/typed/data-filter/shader-module.d.ts.map +1 -1
  74. package/typed/data-filter/shader-module.js +152 -0
  75. package/typed/fill-style/fill-style-extension.d.ts +86 -0
  76. package/typed/fill-style/fill-style-extension.d.ts.map +1 -0
  77. package/typed/fill-style/fill-style.js +152 -0
  78. package/typed/fill-style/shaders.glsl.js +95 -0
  79. package/typed/fp64/fp64-extension.d.ts +8 -0
  80. package/typed/fp64/fp64-extension.d.ts.map +1 -0
  81. package/typed/fp64/fp64.js +34 -0
  82. package/typed/fp64/project64.glsl.js +100 -0
  83. package/typed/fp64/project64.js +50 -0
  84. package/typed/index.d.ts +17 -17
  85. package/typed/index.d.ts.map +1 -1
  86. package/typed/index.js +9 -0
  87. package/typed/mask/mask-extension.d.ts +30 -0
  88. package/typed/mask/mask-extension.d.ts.map +1 -0
  89. package/typed/mask/mask.js +48 -0
  90. package/typed/mask/shader-module.js +73 -0
  91. package/typed/path-style/path-style-extension.d.ts +66 -0
  92. package/typed/path-style/path-style-extension.d.ts.map +1 -0
  93. package/typed/path-style/path-style.js +107 -0
  94. package/typed/path-style/shaders.glsl.js +93 -0
  95. package/typed/terrain/height-map.d.ts +27 -0
  96. package/typed/terrain/height-map.d.ts.map +1 -0
  97. package/typed/terrain/shader-module-offset.d.ts +4 -0
  98. package/typed/terrain/shader-module-offset.d.ts.map +1 -0
  99. package/typed/terrain/shader-module-source.d.ts +4 -0
  100. package/typed/terrain/shader-module-source.d.ts.map +1 -0
  101. package/typed/terrain/terrain-extension.d.ts +21 -0
  102. package/typed/terrain/terrain-extension.d.ts.map +1 -0
  103. package/dist/es5/brushing/brushing.js.map +0 -1
  104. package/dist/es5/clip/clip.js.map +0 -1
  105. package/dist/es5/collision-filter/collision-filter.js.map +0 -1
  106. package/dist/es5/data-filter/data-filter.js.map +0 -1
  107. package/dist/es5/fill-style/fill-style.js.map +0 -1
  108. package/dist/es5/fp64/fp64.js.map +0 -1
  109. package/dist/es5/mask/mask.js.map +0 -1
  110. package/dist/es5/path-style/path-style.js.map +0 -1
  111. package/dist/es5/terrain/terrain.js.map +0 -1
  112. package/dist/esm/brushing/brushing.js.map +0 -1
  113. package/dist/esm/clip/clip.js.map +0 -1
  114. package/dist/esm/collision-filter/collision-filter.js.map +0 -1
  115. package/dist/esm/data-filter/data-filter.js.map +0 -1
  116. package/dist/esm/fill-style/fill-style.js.map +0 -1
  117. package/dist/esm/fp64/fp64.js.map +0 -1
  118. package/dist/esm/mask/mask.js.map +0 -1
  119. package/dist/esm/path-style/path-style.js.map +0 -1
  120. package/dist/esm/terrain/terrain.js.map +0 -1
  121. package/typed/effect-order.d.ts +0 -6
  122. package/typed/effect-order.d.ts.map +0 -1
  123. /package/src/brushing/{brushing.ts → brushing-extension.ts} +0 -0
  124. /package/src/clip/{clip.ts → clip-extension.ts} +0 -0
  125. /package/src/collision-filter/{collision-filter.ts → collision-filter-extension.ts} +0 -0
  126. /package/src/data-filter/{data-filter.ts → data-filter-extension.ts} +0 -0
  127. /package/src/fill-style/{fill-style.ts → fill-style-extension.ts} +0 -0
  128. /package/src/fp64/{fp64.ts → fp64-extension.ts} +0 -0
  129. /package/src/mask/{mask.ts → mask-extension.ts} +0 -0
  130. /package/src/path-style/{path-style.ts → path-style-extension.ts} +0 -0
  131. /package/src/terrain/{terrain.ts → terrain-extension.ts} +0 -0
@@ -0,0 +1,116 @@
1
+ // Copyright (c) 2015-2017 Uber Technologies, Inc.
2
+ //
3
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ // of this software and associated documentation files (the "Software"), to deal
5
+ // in the Software without restriction, including without limitation the rights
6
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ // copies of the Software, and to permit persons to whom the Software is
8
+ // furnished to do so, subject to the following conditions:
9
+ //
10
+ // The above copyright notice and this permission notice shall be included in
11
+ // all copies or substantial portions of the Software.
12
+ //
13
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ // THE SOFTWARE.
20
+ import { project } from '@deck.gl/core';
21
+ const vs = `
22
+ uniform bool brushing_enabled;
23
+ uniform int brushing_target;
24
+ uniform vec2 brushing_mousePos;
25
+ uniform float brushing_radius;
26
+
27
+ #ifdef NON_INSTANCED_MODEL
28
+ attribute vec2 brushingTargets;
29
+ #else
30
+ attribute vec2 instanceBrushingTargets;
31
+ #endif
32
+
33
+ varying float brushing_isVisible;
34
+
35
+ bool brushing_isPointInRange(vec2 position) {
36
+ if (!brushing_enabled) {
37
+ return true;
38
+ }
39
+ vec2 source_commonspace = project_position(position);
40
+ vec2 target_commonspace = project_position(brushing_mousePos);
41
+ float distance = length((target_commonspace - source_commonspace) / project_uCommonUnitsPerMeter.xy);
42
+
43
+ return distance <= brushing_radius;
44
+ }
45
+
46
+ bool brushing_arePointsInRange(vec2 sourcePos, vec2 targetPos) {
47
+ return brushing_isPointInRange(sourcePos) || brushing_isPointInRange(targetPos);
48
+ }
49
+
50
+ void brushing_setVisible(bool visible) {
51
+ brushing_isVisible = float(visible);
52
+ }
53
+ `;
54
+ const fs = `
55
+ uniform bool brushing_enabled;
56
+ varying float brushing_isVisible;
57
+ `;
58
+ const TARGET = {
59
+ source: 0,
60
+ target: 1,
61
+ custom: 2,
62
+ source_target: 3
63
+ };
64
+ const inject = {
65
+ 'vs:DECKGL_FILTER_GL_POSITION': `
66
+ vec2 brushingTarget;
67
+ vec2 brushingSource;
68
+ if (brushing_target == 3) {
69
+ brushingTarget = geometry.worldPositionAlt.xy;
70
+ brushingSource = geometry.worldPosition.xy;
71
+ } else if (brushing_target == 0) {
72
+ brushingTarget = geometry.worldPosition.xy;
73
+ } else if (brushing_target == 1) {
74
+ brushingTarget = geometry.worldPositionAlt.xy;
75
+ } else {
76
+ #ifdef NON_INSTANCED_MODEL
77
+ brushingTarget = brushingTargets;
78
+ #else
79
+ brushingTarget = instanceBrushingTargets;
80
+ #endif
81
+ }
82
+ bool visible;
83
+ if (brushing_target == 3) {
84
+ visible = brushing_arePointsInRange(brushingSource, brushingTarget);
85
+ } else {
86
+ visible = brushing_isPointInRange(brushingTarget);
87
+ }
88
+ brushing_setVisible(visible);
89
+ `,
90
+ 'fs:DECKGL_FILTER_COLOR': `
91
+ if (brushing_enabled && brushing_isVisible < 0.5) {
92
+ discard;
93
+ }
94
+ `
95
+ };
96
+ export default {
97
+ name: 'brushing',
98
+ dependencies: [project],
99
+ vs,
100
+ fs,
101
+ inject,
102
+ getUniforms: opts => {
103
+ if (!opts || !opts.viewport) {
104
+ return {};
105
+ }
106
+ const { brushingEnabled = true, brushingRadius = 10000, brushingTarget = 'source', mousePosition, viewport } = opts;
107
+ return {
108
+ brushing_enabled: Boolean(brushingEnabled && mousePosition && viewport.containsPixel(mousePosition)),
109
+ brushing_radius: brushingRadius,
110
+ brushing_target: TARGET[brushingTarget] || 0,
111
+ brushing_mousePos: mousePosition
112
+ ? viewport.unproject([mousePosition.x - viewport.x, mousePosition.y - viewport.y])
113
+ : [0, 0]
114
+ };
115
+ }
116
+ };
@@ -0,0 +1,32 @@
1
+ import { LayerExtension, _ShaderModule as ShaderModule } from '@deck.gl/core/typed';
2
+ import type { Layer } from '@deck.gl/core/typed';
3
+ export declare type ClipExtensionProps = {
4
+ /** Rectangular bounds to be used for clipping the rendered region, in `[left, bottom, right, top]`.
5
+ * @default [0, 0, 1, 1]
6
+ */
7
+ clipBounds?: [number, number, number, number];
8
+ /**
9
+ * Controls whether an object is clipped by its anchor (e.g. icon, point) or by its geometry (e.g. path, polygon).
10
+ * If not specified, it is automatically deduced from the layer.
11
+ */
12
+ clipByInstance?: boolean;
13
+ };
14
+ /** Adds support for clipping rendered layers by rectangular bounds. */
15
+ export default class ClipExtension extends LayerExtension {
16
+ static defaultProps: {
17
+ clipBounds: number[];
18
+ clipByInstance: undefined;
19
+ };
20
+ static extensionName: string;
21
+ getShaders(this: Layer<ClipExtensionProps>): {
22
+ modules: ShaderModule<any>[];
23
+ inject: {
24
+ 'vs:#decl': string;
25
+ 'vs:DECKGL_FILTER_GL_POSITION': string;
26
+ 'fs:#decl': string;
27
+ 'fs:DECKGL_FILTER_COLOR': string;
28
+ };
29
+ };
30
+ draw(this: Layer<Required<ClipExtensionProps>>, { uniforms }: any): void;
31
+ }
32
+ //# sourceMappingURL=clip-extension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clip-extension.d.ts","sourceRoot":"","sources":["../../src/clip/clip-extension.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAC,cAAc,EAAE,aAAa,IAAI,YAAY,EAAC,MAAM,eAAe,CAAC;AAE5E,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,eAAe,CAAC;AAOzC,oBAAY,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;;;;;;;;;IAyB1C,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,EAAE,EAAC,QAAQ,EAAC,EAAE,GAAG,GAAG,IAAI;CAgBvE"}
@@ -0,0 +1,114 @@
1
+ // Copyright (c) 2015 - 2017 Uber Technologies, Inc.
2
+ //
3
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ // of this software and associated documentation files (the "Software"), to deal
5
+ // in the Software without restriction, including without limitation the rights
6
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ // copies of the Software, and to permit persons to whom the Software is
8
+ // furnished to do so, subject to the following conditions:
9
+ //
10
+ // The above copyright notice and this permission notice shall be included in
11
+ // all copies or substantial portions of the Software.
12
+ //
13
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ // THE SOFTWARE.
20
+ import { LayerExtension } from '@deck.gl/core';
21
+ const defaultProps = {
22
+ clipBounds: [0, 0, 1, 1]
23
+ };
24
+ const shaderFunction = `
25
+ uniform vec4 clip_bounds;
26
+
27
+ bool clip_isInBounds(vec2 position) {
28
+ return position.x >= clip_bounds[0] && position.y >= clip_bounds[1] && position.x < clip_bounds[2] && position.y < clip_bounds[3];
29
+ }
30
+ `;
31
+ /*
32
+ * The vertex-shader version clips geometries by their anchor position
33
+ * e.g. ScatterplotLayer - show if the center of a circle is within bounds
34
+ */
35
+ const shaderModuleVs = {
36
+ name: 'clip-vs',
37
+ vs: shaderFunction
38
+ };
39
+ const injectionVs = {
40
+ 'vs:#decl': `
41
+ varying float clip_isVisible;
42
+ `,
43
+ 'vs:DECKGL_FILTER_GL_POSITION': `
44
+ clip_isVisible = float(clip_isInBounds(geometry.worldPosition.xy));
45
+ `,
46
+ 'fs:#decl': `
47
+ varying float clip_isVisible;
48
+ `,
49
+ 'fs:DECKGL_FILTER_COLOR': `
50
+ if (clip_isVisible < 0.5) discard;
51
+ `
52
+ };
53
+ /*
54
+ * The fragment-shader version clips pixels at the bounds
55
+ * e.g. PolygonLayer - show the part of the polygon that intersect with the bounds
56
+ */
57
+ const shaderModuleFs = {
58
+ name: 'clip-fs',
59
+ fs: shaderFunction
60
+ };
61
+ const injectionFs = {
62
+ 'vs:#decl': `
63
+ varying vec2 clip_commonPosition;
64
+ `,
65
+ 'vs:DECKGL_FILTER_GL_POSITION': `
66
+ clip_commonPosition = geometry.position.xy;
67
+ `,
68
+ 'fs:#decl': `
69
+ varying vec2 clip_commonPosition;
70
+ `,
71
+ 'fs:DECKGL_FILTER_COLOR': `
72
+ if (!clip_isInBounds(clip_commonPosition)) discard;
73
+ `
74
+ };
75
+ export default class ClipExtension extends LayerExtension {
76
+ getShaders() {
77
+ // If `clipByInstance: true`, the entire object is shown/hidden based on its anchor position (done by vertex shader)
78
+ // Otherwise, the object is trimmed by the clip bounds (done by fragment shader)
79
+ // Default behavior: consider a layer instanced if it has attribute `instancePositions`
80
+ let clipByInstance = 'instancePositions' in this.getAttributeManager().attributes;
81
+ // Users can override by setting the `clipByInstance` prop
82
+ if ('clipByInstance' in this.props) {
83
+ clipByInstance = this.props.clipByInstance;
84
+ }
85
+ this.state.clipByInstance = clipByInstance;
86
+ return clipByInstance
87
+ ? {
88
+ modules: [shaderModuleVs],
89
+ inject: injectionVs
90
+ }
91
+ : {
92
+ modules: [shaderModuleFs],
93
+ inject: injectionFs
94
+ };
95
+ }
96
+ draw({ uniforms }) {
97
+ const { clipBounds = defaultProps.clipBounds } = this.props;
98
+ if (this.state.clipByInstance) {
99
+ uniforms.clip_bounds = clipBounds;
100
+ }
101
+ else {
102
+ const corner0 = this.projectPosition([clipBounds[0], clipBounds[1], 0]);
103
+ const corner1 = this.projectPosition([clipBounds[2], clipBounds[3], 0]);
104
+ uniforms.clip_bounds = [
105
+ Math.min(corner0[0], corner1[0]),
106
+ Math.min(corner0[1], corner1[1]),
107
+ Math.max(corner0[0], corner1[0]),
108
+ Math.max(corner0[1], corner1[1])
109
+ ];
110
+ }
111
+ }
112
+ }
113
+ ClipExtension.extensionName = 'ClipExtension';
114
+ ClipExtension.defaultProps = defaultProps;
@@ -10,7 +10,7 @@ export default class CollideEffect implements Effect {
10
10
  private collideFBOs;
11
11
  private dummyCollideMap?;
12
12
  private lastViewport?;
13
- preRender(gl: WebGLRenderingContext, { effects: allEffects, layers, layerFilter, viewports, onViewportActive, views, pass, preRenderStats }: PreRenderOptions): void;
13
+ preRender(gl: WebGLRenderingContext, { effects: allEffects, layers, layerFilter, viewports, onViewportActive, views, isPicking, preRenderStats }: PreRenderOptions): void;
14
14
  private _render;
15
15
  /**
16
16
  * Group layers by collideGroup
@@ -1 +1 @@
1
- {"version":3,"file":"collide-effect.d.ts","sourceRoot":"","sources":["../../src/collide/collide-effect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAgB,SAAS,EAAmB,MAAM,eAAe,CAAC;AAGrF,OAAO,KAAK,EAAC,MAAM,EAAE,KAAK,EAAE,gBAAgB,EAAW,MAAM,eAAe,CAAC;AAoB7E,MAAM,CAAC,OAAO,OAAO,aAAc,YAAW,MAAM;IAClD,EAAE,SAAoB;IACtB,KAAK,OAAQ;IACb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AAS,CACP,EAAE,EAAE,qBAAqB,EACzB,EACE,OAAO,EAAE,UAAU,EACnB,MAAM,EACN,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,KAAK,EACL,SAAS,EACT,cAAmB,EACpB,EAAE,gBAAgB,GAClB,IAAI;IAuDP,OAAO,CAAC,OAAO;IA0Df;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAsC5B,mBAAmB,CAAC,KAAK,EAAE,KAAK,GAAG;QACjC,UAAU,EAAE,WAAW,CAAC;QACxB,eAAe,EAAE,SAAS,CAAC;KAC5B;IAMD,OAAO,IAAI,IAAI;IAaf,SAAS,CAAC,EAAE,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM;IAyBzD,UAAU,CAAC,YAAY,EAAE,MAAM;CAQhC"}
@@ -3,7 +3,6 @@ import { _LayersPass as LayersPass, LayersPassRenderOptions } from '@deck.gl/cor
3
3
  declare type CollidePassRenderOptions = LayersPassRenderOptions & {};
4
4
  export default class CollidePass extends LayersPass {
5
5
  renderCollideMap(target: Framebuffer, options: CollidePassRenderOptions): any;
6
- shouldDrawLayer(layer: any): any;
7
6
  getModuleParameters(): {
8
7
  drawToCollideMap: boolean;
9
8
  pickingActive: number;
@@ -1 +1 @@
1
- {"version":3,"file":"collide-pass.d.ts","sourceRoot":"","sources":["../../src/collide/collide-pass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAiB,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAC,WAAW,IAAI,UAAU,EAAE,uBAAuB,EAAC,MAAM,eAAe,CAAC;AAEjF,aAAK,wBAAwB,GAAG,uBAAuB,GAAG,EAAE,CAAC;AAE7D,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,UAAU;IACjD,gBAAgB,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,wBAAwB;IAqBvE,eAAe,CAAC,KAAK,KAAA;IAQrB,mBAAmB;;;;;;CASpB"}
1
+ {"version":3,"file":"collide-pass.d.ts","sourceRoot":"","sources":["../../src/collide/collide-pass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAiB,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAC,WAAW,IAAI,UAAU,EAAE,uBAAuB,EAAC,MAAM,eAAe,CAAC;AAEjF,aAAK,wBAAwB,GAAG,uBAAuB,GAAG,EAAE,CAAC;AAE7D,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,UAAU;IACjD,gBAAgB,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,wBAAwB;IAmBvE,mBAAmB;;;;;;CASpB"}
@@ -33,7 +33,6 @@ export default class CollideExtension extends LayerExtension {
33
33
  collideTestProps: {};
34
34
  };
35
35
  static extensionName: string;
36
- isEnabled(layer: Layer<CollideExtensionProps>): boolean;
37
36
  getShaders(this: Layer<CollideExtensionProps>): any;
38
37
  draw(this: Layer<CollideExtensionProps>, { uniforms, context, moduleParameters }: any): void;
39
38
  initializeState(this: Layer<CollideExtensionProps>, context: LayerContext, extension: this): void;
@@ -1 +1 @@
1
- {"version":3,"file":"collide.d.ts","sourceRoot":"","sources":["../../src/collide/collide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,cAAc,EAAC,MAAM,eAAe,CAAC;AAW5E,oBAAY,qBAAqB,CAAC,KAAK,GAAG,GAAG,IAAI;IAC/C;;OAEG;IACH,kBAAkB,CAAC,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAE7C;;;OAGG;IACH,cAAc,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,gBAAgB,CAAC,EAAE,EAAE,CAAC;CACvB,CAAC;AAEF,iDAAiD;AACjD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,cAAc;IAC1D,MAAM,CAAC,YAAY;;;;;;;;;;;MAAgB;IACnC,MAAM,C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EAAC,EAAE,GAAG;IAanF,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,qBAAqB,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI;IAkB1F,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,qBAAqB,CAAC,GAAG,OAAO;CAGnE"}
@@ -1 +1 @@
1
- {"version":3,"file":"shader-module.d.ts","sourceRoot":"","sources":["../../src/collide/shader-module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,aAAa,IAAI,YAAY,EAAC,MAAM,eAAe,CAAC;;AAuGjE,wBAMkB"}
1
+ {"version":3,"file":"shader-module.d.ts","sourceRoot":"","sources":["../../src/collide/shader-module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,aAAa,IAAI,YAAY,EAAC,MAAM,eAAe,CAAC;;AAwGjE,wBAMkB"}
@@ -0,0 +1,41 @@
1
+ import { Accessor, Layer, LayerContext, LayerExtension } from '@deck.gl/core/typed';
2
+ export declare type CollisionFilterExtensionProps<DataT = any> = {
3
+ /**
4
+ * Accessor for collision priority. Must return a number in the range -1000 -> 1000. Features with higher values are shown preferentially.
5
+ */
6
+ getCollisionPriority?: Accessor<DataT, number>;
7
+ /**
8
+ * Enable/disable collisions. If collisions are disabled, all objects are rendered.
9
+ * @default true
10
+ */
11
+ collisionEnabled: boolean;
12
+ /**
13
+ * Collision group this layer belongs to. If it is not set, the 'default' collision group is used
14
+ */
15
+ collisionGroup?: string;
16
+ /**
17
+ * Props to override when rendering collision map
18
+ */
19
+ collisionTestProps?: {};
20
+ };
21
+ /** Allows layers to hide overlapping objects. */
22
+ export default class CollisionFilterExtension extends LayerExtension {
23
+ static defaultProps: {
24
+ getCollisionPriority: {
25
+ type: string;
26
+ value: number;
27
+ };
28
+ collisionEnabled: boolean;
29
+ collisionGroup: {
30
+ type: string;
31
+ value: string;
32
+ };
33
+ collisionTestProps: {};
34
+ };
35
+ static extensionName: string;
36
+ getShaders(this: Layer<CollisionFilterExtensionProps>): any;
37
+ draw(this: Layer<CollisionFilterExtensionProps>, { uniforms, context, moduleParameters }: any): void;
38
+ initializeState(this: Layer<CollisionFilterExtensionProps>, context: LayerContext, extension: this): void;
39
+ getNeedsPickingBuffer(this: Layer<CollisionFilterExtensionProps>): boolean;
40
+ }
41
+ //# sourceMappingURL=collision-filter-extension.d.ts.map
@@ -0,0 +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,oBAAY,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"}
@@ -0,0 +1,98 @@
1
+ import { Model, Texture2D, Framebuffer, isWebGL2 } from '@luma.gl/core';
2
+ import GL from '@luma.gl/constants';
3
+ const AGGREGATE_VS = `\
4
+ #define SHADER_NAME data-filter-vertex-shader
5
+
6
+ #ifdef FLOAT_TARGET
7
+ attribute float filterIndices;
8
+ attribute float filterPrevIndices;
9
+ #else
10
+ attribute vec2 filterIndices;
11
+ attribute vec2 filterPrevIndices;
12
+ #endif
13
+
14
+ varying vec4 vColor;
15
+ const float component = 1.0 / 255.0;
16
+
17
+ void main() {
18
+ #ifdef FLOAT_TARGET
19
+ dataFilter_value *= float(filterIndices != filterPrevIndices);
20
+ gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
21
+ vColor = vec4(0.0, 0.0, 0.0, 1.0);
22
+ #else
23
+ // Float texture is not supported: pack result into 4 channels x 256 px x 64px
24
+ dataFilter_value *= float(filterIndices.x != filterPrevIndices.x);
25
+ float col = filterIndices.x;
26
+ float row = filterIndices.y * 4.0;
27
+ float channel = floor(row);
28
+ row = fract(row);
29
+ vColor = component * vec4(bvec4(channel == 0.0, channel == 1.0, channel == 2.0, channel == 3.0));
30
+ gl_Position = vec4(col * 2.0 - 1.0, row * 2.0 - 1.0, 0.0, 1.0);
31
+ #endif
32
+ gl_PointSize = 1.0;
33
+ }
34
+ `;
35
+ const AGGREGATE_FS = `\
36
+ #define SHADER_NAME data-filter-fragment-shader
37
+ precision highp float;
38
+
39
+ varying vec4 vColor;
40
+
41
+ void main() {
42
+ if (dataFilter_value < 0.5) {
43
+ discard;
44
+ }
45
+ gl_FragColor = vColor;
46
+ }
47
+ `;
48
+ export function supportsFloatTarget(gl) {
49
+ // https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/WebGL_best_practices#Support_for_float_textures_doesnt_mean_you_can_render_into_them!
50
+ return (gl.getExtension('EXT_float_blend') &&
51
+ // WebGL 2
52
+ (gl.getExtension('EXT_color_buffer_float') ||
53
+ // WebGL 1
54
+ gl.getExtension('WEBGL_color_buffer_float')));
55
+ }
56
+ // A 1x1 framebuffer object that encodes the total count of filtered items
57
+ export function getFramebuffer(gl, useFloatTarget) {
58
+ if (useFloatTarget) {
59
+ return new Framebuffer(gl, {
60
+ width: 1,
61
+ height: 1,
62
+ attachments: {
63
+ [GL.COLOR_ATTACHMENT0]: new Texture2D(gl, {
64
+ format: isWebGL2(gl) ? GL.RGBA32F : GL.RGBA,
65
+ type: GL.FLOAT,
66
+ mipmaps: false
67
+ })
68
+ }
69
+ });
70
+ }
71
+ return new Framebuffer(gl, {
72
+ width: 256,
73
+ height: 64,
74
+ depth: false
75
+ });
76
+ }
77
+ // Increments the counter based on dataFilter_value
78
+ export function getModel(gl, shaderOptions, useFloatTarget) {
79
+ shaderOptions.defines.NON_INSTANCED_MODEL = 1;
80
+ if (useFloatTarget) {
81
+ shaderOptions.defines.FLOAT_TARGET = 1;
82
+ }
83
+ return new Model(gl, {
84
+ id: 'data-filter-aggregation-model',
85
+ vertexCount: 1,
86
+ isInstanced: false,
87
+ drawMode: GL.POINTS,
88
+ vs: AGGREGATE_VS,
89
+ fs: AGGREGATE_FS,
90
+ ...shaderOptions
91
+ });
92
+ }
93
+ export const parameters = {
94
+ blend: true,
95
+ blendFunc: [GL.ONE, GL.ONE, GL.ONE, GL.ONE],
96
+ blendEquation: [GL.FUNC_ADD, GL.FUNC_ADD],
97
+ depthTest: false
98
+ };
@@ -0,0 +1,90 @@
1
+ import { LayerExtension } from '@deck.gl/core/typed';
2
+ import type { Layer, LayerContext, Accessor, UpdateParameters } from '@deck.gl/core/typed';
3
+ export declare type DataFilterExtensionProps<DataT = any> = {
4
+ /**
5
+ * Accessor to retrieve the value for each object that it will be filtered by.
6
+ * Returns either a number (if `filterSize: 1`) or an array of numbers.
7
+ */
8
+ getFilterValue?: Accessor<DataT, number | number[]>;
9
+ /**
10
+ * Enable/disable the data filter. If the data filter is disabled, all objects are rendered.
11
+ * @default true
12
+ */
13
+ filterEnabled?: boolean;
14
+ /**
15
+ * The [min, max] bounds which defines whether an object should be rendered.
16
+ * If an object's filtered value is within the bounds, the object will be rendered; otherwise it will be hidden.
17
+ * @default [-1, 1]
18
+ */
19
+ filterRange?: [number, number] | [number, number][];
20
+ /**
21
+ * If specified, objects will be faded in/out instead of abruptly shown/hidden.
22
+ * When the filtered value is outside of the bounds defined by `filterSoftRange` but still within the bounds defined by `filterRange`, the object will be rendered as "faded."
23
+ * @default null
24
+ */
25
+ filterSoftRange?: [number, number] | [number, number][] | null;
26
+ /**
27
+ * When an object is "faded", manipulate its size so that it appears smaller or thinner. Only works if `filterSoftRange` is specified.
28
+ * @default true
29
+ */
30
+ filterTransformSize?: boolean;
31
+ /**
32
+ * When an object is "faded", manipulate its opacity so that it appears more translucent. Only works if `filterSoftRange` is specified.
33
+ * @default true
34
+ */
35
+ filterTransformColor?: boolean;
36
+ /**
37
+ * Only called if the `countItems` option is enabled.
38
+ */
39
+ onFilteredItemsChange?: (evt: {
40
+ /** The id of the source layer. */
41
+ id: string;
42
+ /** The number of data objects that pass the filter. */
43
+ count: number;
44
+ }) => void;
45
+ };
46
+ declare type DataFilterExtensionOptions = {
47
+ /**
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
+ * @default 1
50
+ */
51
+ filterSize: number;
52
+ /**
53
+ * Use 64-bit precision instead of 32-bit.
54
+ * @default false
55
+ */
56
+ fp64: boolean;
57
+ /**
58
+ * If `true`, reports the number of filtered objects with the `onFilteredItemsChange` callback.
59
+ * @default `false`.
60
+ */
61
+ countItems: boolean;
62
+ };
63
+ /** Adds GPU-based data filtering functionalities to layers. It allows the layer to show/hide objects based on user-defined properties. */
64
+ export default class DataFilterExtension extends LayerExtension<DataFilterExtensionOptions> {
65
+ static defaultProps: {
66
+ getFilterValue: {
67
+ type: string;
68
+ value: number;
69
+ };
70
+ onFilteredItemsChange: {
71
+ type: string;
72
+ value: null;
73
+ optional: boolean;
74
+ };
75
+ filterEnabled: boolean;
76
+ filterRange: number[];
77
+ filterSoftRange: null;
78
+ filterTransformSize: boolean;
79
+ filterTransformColor: boolean;
80
+ };
81
+ static extensionName: string;
82
+ constructor({ filterSize, fp64, countItems }?: Partial<DataFilterExtensionOptions>);
83
+ getShaders(this: Layer<DataFilterExtensionProps>, extension: this): any;
84
+ initializeState(this: Layer<DataFilterExtensionProps>, context: LayerContext, extension: this): void;
85
+ updateState(this: Layer<DataFilterExtensionProps>, { props, oldProps }: UpdateParameters<Layer<DataFilterExtensionProps>>): void;
86
+ draw(this: Layer<DataFilterExtensionProps>, params: any, extension: this): void;
87
+ finalizeState(this: Layer<DataFilterExtensionProps>): void;
88
+ }
89
+ export {};
90
+ //# sourceMappingURL=data-filter-extension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-filter-extension.d.ts","sourceRoot":"","sources":["../../src/data-filter/data-filter-extension.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAM7C,OAAO,KAAK,EAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAanF,oBAAY,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,CAA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