@deck.gl/extensions 9.0.0-alpha.7 → 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/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-alpha.7",
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.53"
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.53",
40
- "@luma.gl/core": "9.0.0-alpha.53",
41
- "@luma.gl/engine": "9.0.0-alpha.53",
42
- "@luma.gl/shadertools": "9.0.0-alpha.53",
43
- "@luma.gl/webgl": "9.0.0-alpha.53",
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": "de061268077ab74e163792162efbc07be95d10f5"
47
+ "gitHead": "9628417918bec5cc73c1345bfcd2f2be575741f1"
48
48
  }
@@ -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
- pickingActive: 1,
30
- pickingAttribute: false,
29
+ picking: {
30
+ isActive: 1,
31
+ isAttribute: false
32
+ },
31
33
  lightSources: {}
32
34
  };
33
35
  }
@@ -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
- pickingActive?: boolean;
12
+ picking: {isActive?: boolean};
13
13
  heightMap: Texture | null;
14
14
  heightMapBounds?: Bounds | null;
15
15
  dummyHeightMap: Texture;
@@ -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.pickingActive;
133
+ const isPicking = opts.picking?.isActive;
134
134
  // @ts-expect-error
135
135
  sampler = isPicking
136
136
  ? terrainCover.getPickingFramebuffer()
@@ -5,8 +5,10 @@ export default class CollisionFilterPass extends LayersPass {
5
5
  renderCollisionMap(target: Framebuffer, options: CollisionFilterPassRenderOptions): any;
6
6
  getModuleParameters(): {
7
7
  drawToCollisionMap: boolean;
8
- pickingActive: number;
9
- pickingAttribute: boolean;
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,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;;;;;;CASpB"}
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"}
@@ -4,7 +4,9 @@ import type { Bounds } from '../utils/projection-utils';
4
4
  import type { TerrainCover } from './terrain-cover';
5
5
  /** Module parameters expected by the terrain shader module */
6
6
  export type TerrainModuleSettings = {
7
- pickingActive?: boolean;
7
+ picking: {
8
+ isActive?: boolean;
9
+ };
8
10
  heightMap: Texture | null;
9
11
  heightMapBounds?: Bounds | null;
10
12
  dummyHeightMap: Texture;
@@ -1 +1 @@
1
- {"version":3,"file":"shader-module.d.ts","sourceRoot":"","sources":["../../src/terrain/shader-module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAElD,8DAA8D;AAC9D,MAAM,MAAM,qBAAqB,GAAG;IAClC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IACnC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,mBAA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