@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/dist/dist.dev.js +70 -786
- package/dist/index.cjs +52 -96
- package/dist/index.cjs.map +2 -2
- package/dist/mesh-layer/mesh-layer-fragment.glsl.d.ts +1 -1
- package/dist/mesh-layer/mesh-layer-fragment.glsl.d.ts.map +1 -1
- package/dist/mesh-layer/mesh-layer-fragment.glsl.js +14 -36
- package/dist/mesh-layer/mesh-layer-vertex.glsl.js +37 -58
- package/dist/mesh-layer/mesh-layer.d.ts.map +1 -1
- package/dist/mesh-layer/mesh-layer.js +1 -2
- package/dist/trips-layer/trips-layer.d.ts +1 -1
- package/dist/trips-layer/trips-layer.d.ts.map +1 -1
- package/dist.min.js +65 -117
- package/package.json +12 -12
- package/src/mesh-layer/mesh-layer-fragment.glsl.ts +1 -9
- package/src/mesh-layer/mesh-layer.ts +1 -2
- package/src/trips-layer/trips-layer.ts +1 -1
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.
|
|
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.
|
|
51
|
-
"@luma.gl/core": "9.0.0-beta.
|
|
52
|
-
"@luma.gl/engine": "9.0.0-beta.
|
|
53
|
-
"@luma.gl/gltf": "9.0.0-beta.
|
|
54
|
-
"@luma.gl/shadertools": "9.0.0-beta.
|
|
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.
|
|
69
|
-
"@luma.gl/core": "9.0.0-beta.
|
|
70
|
-
"@luma.gl/engine": "9.0.0-beta.
|
|
71
|
-
"@luma.gl/gltf": "9.0.0-beta.
|
|
72
|
-
"@luma.gl/shadertools": "9.0.0-beta.
|
|
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": "
|
|
74
|
+
"gitHead": "373729308eb3fdec4b7c8b5842ddeff4f2d70338"
|
|
75
75
|
}
|
|
@@ -31,15 +31,7 @@ void main(void) {
|
|
|
31
31
|
vec3 normal;
|
|
32
32
|
if (flatShading) {
|
|
33
33
|
|
|
34
|
-
|
|
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:
|
|
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
|
|
61
|
+
Required<_TripsLayerProps<DataT>> & ExtraProps
|
|
62
62
|
> {
|
|
63
63
|
static layerName = 'TripsLayer';
|
|
64
64
|
static defaultProps = defaultProps;
|