@deck.gl/geo-layers 9.0.0-beta.4 → 9.0.0-beta.6

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
@@ -3,7 +3,7 @@
3
3
  "description": "deck.gl layers supporting geospatial use cases and GIS formats",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
- "version": "9.0.0-beta.4",
6
+ "version": "9.0.0-beta.6",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -47,11 +47,11 @@
47
47
  "@loaders.gl/terrain": "^4.1.0",
48
48
  "@loaders.gl/tiles": "^4.1.0",
49
49
  "@loaders.gl/wms": "^4.1.0",
50
- "@luma.gl/constants": "9.0.0-beta.4",
51
- "@luma.gl/core": "9.0.0-beta.4",
52
- "@luma.gl/engine": "9.0.0-beta.4",
53
- "@luma.gl/gltf": "9.0.0-beta.4",
54
- "@luma.gl/shadertools": "9.0.0-beta.4",
50
+ "@luma.gl/constants": "9.0.0-beta.6",
51
+ "@luma.gl/core": "9.0.0-beta.6",
52
+ "@luma.gl/engine": "9.0.0-beta.6",
53
+ "@luma.gl/gltf": "9.0.0-beta.6",
54
+ "@luma.gl/shadertools": "9.0.0-beta.6",
55
55
  "@math.gl/core": "^4.0.0",
56
56
  "@math.gl/culling": "^4.0.0",
57
57
  "@math.gl/web-mercator": "^4.0.0",
@@ -65,11 +65,11 @@
65
65
  "@deck.gl/layers": "^9.0.0-alpha",
66
66
  "@deck.gl/mesh-layers": "^9.0.0-alpha",
67
67
  "@loaders.gl/core": "^4.1.0",
68
- "@luma.gl/constants": "9.0.0-beta.4",
69
- "@luma.gl/core": "9.0.0-beta.4",
70
- "@luma.gl/engine": "9.0.0-beta.4",
71
- "@luma.gl/gltf": "9.0.0-beta.4",
72
- "@luma.gl/shadertools": "9.0.0-beta.4"
68
+ "@luma.gl/constants": "9.0.0-beta.6",
69
+ "@luma.gl/core": "9.0.0-beta.6",
70
+ "@luma.gl/engine": "9.0.0-beta.6",
71
+ "@luma.gl/gltf": "9.0.0-beta.6",
72
+ "@luma.gl/shadertools": "9.0.0-beta.6"
73
73
  },
74
- "gitHead": "7063cbec75a5fbcefc51f33f6e2488134533d34a"
74
+ "gitHead": "373729308eb3fdec4b7c8b5842ddeff4f2d70338"
75
75
  }
@@ -31,15 +31,7 @@ void main(void) {
31
31
  vec3 normal;
32
32
  if (flatShading) {
33
33
 
34
- // NOTE(Tarek): This is necessary because
35
- // headless.gl reports the extension as
36
- // available but does not support it in
37
- // the shader.
38
- #ifdef DERIVATIVES_AVAILABLE
39
- normal = normalize(cross(dFdx(position_commonspace.xyz), dFdy(position_commonspace.xyz)));
40
- #else
41
- normal = vec3(0.0, 0.0, 1.0);
42
- #endif
34
+ normal = normalize(cross(dFdx(position_commonspace.xyz), dFdy(position_commonspace.xyz)));
43
35
  } else {
44
36
  normal = normals_commonspace;
45
37
  }
@@ -2,7 +2,6 @@ import type {NumericArray} from '@math.gl/core';
2
2
  import {parsePBRMaterial, ParsedPBRMaterial} from '@luma.gl/gltf';
3
3
  import {pbr} from '@luma.gl/shadertools';
4
4
  import {Model} from '@luma.gl/engine';
5
- import {GL} from '@luma.gl/constants';
6
5
  import type {MeshAttribute, MeshAttributes} from '@loaders.gl/schema';
7
6
  import type {UpdateParameters, DefaultProps, LayerContext} from '@deck.gl/core';
8
7
  import {SimpleMeshLayer, SimpleMeshLayerProps} from '@deck.gl/mesh-layers';
@@ -72,7 +71,7 @@ export default class MeshLayer<DataT = any, ExtraProps extends {} = {}> extends
72
71
  // attributeManager is always defined in a primitive layer
73
72
  attributeManager!.add({
74
73
  featureIdsPickingColors: {
75
- type: GL.UNSIGNED_BYTE,
74
+ type: 'uint8',
76
75
  size: 3,
77
76
  noAlloc: true,
78
77
  // eslint-disable-next-line @typescript-eslint/unbound-method
@@ -58,7 +58,7 @@ type _TripsLayerProps<DataT = unknown> = {
58
58
  /** Render animated paths that represent vehicle trips. */
59
59
  export default class TripsLayer<DataT = any, ExtraProps extends {} = {}> extends PathLayer<
60
60
  DataT,
61
- Required<_TripsLayerProps> & ExtraProps
61
+ Required<_TripsLayerProps<DataT>> & ExtraProps
62
62
  > {
63
63
  static layerName = 'TripsLayer';
64
64
  static defaultProps = defaultProps;