@loaders.gl/raster 5.0.0-beta.4 → 5.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/README.md +1 -1
- package/dist/geotiff/advanced.cjs +4 -4
- package/dist/geotiff/geotiff-loader-types.js +1 -1
- package/dist/geotiff/geotiff-raster-loader-types.js +1 -1
- package/dist/geotiff/geotiff-source-loader.js +1 -1
- package/dist/geotiff/loaders.js +1 -1
- package/dist/geotiff/ometiff-source-loader.js +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lerc/lerc-loader-types.js +1 -1
- package/dist/quantized-mesh-worker.js +3684 -3505
- package/dist/terrain/heightmap.cjs +2 -333
- package/dist/terrain/heightmap.cjs.map +4 -4
- package/dist/terrain/heightmap.d.ts +1 -5
- package/dist/terrain/heightmap.d.ts.map +1 -1
- package/dist/terrain/heightmap.js +0 -3
- package/dist/terrain/heightmap.js.map +1 -1
- package/dist/terrain/index.cjs +41 -82
- package/dist/terrain/index.cjs.map +3 -3
- package/dist/terrain/index.d.ts +1 -2
- package/dist/terrain/index.d.ts.map +1 -1
- package/dist/terrain/index.js.map +1 -1
- package/dist/terrain/lib/helpers/skirt.d.ts +2 -9
- package/dist/terrain/lib/helpers/skirt.d.ts.map +1 -1
- package/dist/terrain/lib/helpers/skirt.js +30 -114
- package/dist/terrain/lib/helpers/skirt.js.map +1 -1
- package/dist/terrain/lib/terrain-contracts.d.ts +0 -15
- package/dist/terrain/lib/terrain-contracts.d.ts.map +1 -1
- package/dist/terrain/lib/utils/version.js +1 -1
- package/dist/terrain/quantized-mesh-loader.js +1 -1
- package/dist/terrain/quantized-mesh-loader.js.map +1 -1
- package/dist/terrain/terrain-loader.js +1 -1
- package/dist/terrain/terrain-loader.js.map +1 -1
- package/dist/terrain-worker.js +788 -457
- package/package.json +5 -17
- package/src/index.ts +0 -7
- package/src/terrain/heightmap.ts +0 -10
- package/src/terrain/index.ts +0 -7
- package/src/terrain/lib/helpers/skirt.ts +41 -151
- package/src/terrain/lib/terrain-contracts.ts +0 -19
- package/src/terrain/quantized-mesh-loader.ts +1 -1
- package/src/terrain/terrain-loader.ts +1 -1
- package/dist/terrain/lib/terrain-height-field.d.ts +0 -51
- package/dist/terrain/lib/terrain-height-field.d.ts.map +0 -1
- package/dist/terrain/lib/terrain-height-field.js +0 -260
- package/dist/terrain/lib/terrain-height-field.js.map +0 -1
- package/dist/terrain/lib/terrain-height-grid.d.ts +0 -14
- package/dist/terrain/lib/terrain-height-grid.d.ts.map +0 -1
- package/dist/terrain/lib/terrain-height-grid.js +0 -104
- package/dist/terrain/lib/terrain-height-grid.js.map +0 -1
- package/dist/terrain/lib/terrain-neighborhood.d.ts +0 -15
- package/dist/terrain/lib/terrain-neighborhood.d.ts.map +0 -1
- package/dist/terrain/lib/terrain-neighborhood.js +0 -58
- package/dist/terrain/lib/terrain-neighborhood.js.map +0 -1
- package/src/terrain/lib/terrain-height-field.ts +0 -355
- package/src/terrain/lib/terrain-height-grid.ts +0 -157
- package/src/terrain/lib/terrain-neighborhood.ts +0 -69
|
@@ -1,127 +1,43 @@
|
|
|
1
1
|
// loaders.gl
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import {
|
|
5
|
-
/**
|
|
6
|
-
* Add skirt to existing mesh
|
|
7
|
-
* @param {object} attributes - POSITION and TEXCOOD_0 attributes data
|
|
8
|
-
* @param {any} triangles - indices array of the mesh geometry
|
|
9
|
-
* @param skirtHeight - height of the skirt geometry
|
|
10
|
-
* @param outsideIndices - edge indices from quantized mesh data
|
|
11
|
-
* @returns - geometry data with added skirt
|
|
12
|
-
*/
|
|
4
|
+
import { createTerrainSkirt } from '@math.gl/geospatial/terrain';
|
|
5
|
+
/** Add a visual skirt while retaining the loader's texture coordinates and index representation. */
|
|
13
6
|
export function addSkirt(attributes, triangles, skirtHeight, outsideIndices) {
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
updateAttributesForNewEdge({
|
|
25
|
-
edge,
|
|
26
|
-
edgeIndex: i,
|
|
27
|
-
attributes,
|
|
28
|
-
skirtHeight,
|
|
29
|
-
newPosition,
|
|
30
|
-
newTexcoord0,
|
|
31
|
-
newTriangles
|
|
32
|
-
});
|
|
7
|
+
const positions = attributes.POSITION.value;
|
|
8
|
+
const sourceIndices = Array.isArray(triangles) ? Uint32Array.from(triangles) : triangles;
|
|
9
|
+
const edges = outsideIndices ? getBoundaryEdges(outsideIndices, positions) : undefined;
|
|
10
|
+
const skirt = createTerrainSkirt({ positions, indices: sourceIndices }, { height: skirtHeight, edges });
|
|
11
|
+
const textureCoordinates = attributes.TEXCOORD_0.value;
|
|
12
|
+
const outputTextureCoordinates = new textureCoordinates.constructor((skirt.positions.length / 3) * 2);
|
|
13
|
+
outputTextureCoordinates.set(textureCoordinates);
|
|
14
|
+
for (let i = 0; i < skirt.sourceVertexIndices.length; i++) {
|
|
15
|
+
const source = skirt.sourceVertexIndices[i];
|
|
16
|
+
outputTextureCoordinates.set(textureCoordinates.subarray(source * 2, source * 2 + 2), (skirt.skirtVertexOffset + i) * 2);
|
|
33
17
|
}
|
|
34
|
-
attributes.POSITION.value =
|
|
35
|
-
attributes.TEXCOORD_0.value =
|
|
36
|
-
const resultTriangles = triangles instanceof Array
|
|
37
|
-
? triangles.concat(newTriangles)
|
|
38
|
-
: concatenateTypedArrays(triangles, newTriangles);
|
|
18
|
+
attributes.POSITION.value = skirt.positions;
|
|
19
|
+
attributes.TEXCOORD_0.value = outputTextureCoordinates;
|
|
39
20
|
return {
|
|
40
21
|
attributes,
|
|
41
|
-
triangles:
|
|
22
|
+
triangles: Array.isArray(triangles) ? Array.from(skirt.indices) : skirt.indices
|
|
42
23
|
};
|
|
43
24
|
}
|
|
44
|
-
/**
|
|
45
|
-
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
|
|
49
|
-
|
|
25
|
+
/** Translate quantized mesh side lists into selected boundary edge pairs. */
|
|
26
|
+
function getBoundaryEdges(indices, positions) {
|
|
27
|
+
indices.westIndices.sort((a, b) => positions[3 * a + 1] - positions[3 * b + 1]);
|
|
28
|
+
indices.eastIndices.sort((a, b) => positions[3 * b + 1] - positions[3 * a + 1]);
|
|
29
|
+
indices.southIndices.sort((a, b) => positions[3 * b] - positions[3 * a]);
|
|
30
|
+
indices.northIndices.sort((a, b) => positions[3 * a] - positions[3 * b]);
|
|
50
31
|
const edges = [];
|
|
51
|
-
for (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
32
|
+
for (const side of [
|
|
33
|
+
indices.westIndices,
|
|
34
|
+
indices.northIndices,
|
|
35
|
+
indices.eastIndices,
|
|
36
|
+
indices.southIndices
|
|
37
|
+
]) {
|
|
38
|
+
for (let i = 1; i < side.length; i++)
|
|
39
|
+
edges.push(side[i - 1], side[i]);
|
|
55
40
|
}
|
|
56
|
-
|
|
57
|
-
const outsideEdges = [];
|
|
58
|
-
let index = 0;
|
|
59
|
-
while (index < edges.length) {
|
|
60
|
-
if (edges[index][0] === edges[index + 1]?.[1] && edges[index][1] === edges[index + 1]?.[0]) {
|
|
61
|
-
index += 2;
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
outsideEdges.push(edges[index]);
|
|
65
|
-
index++;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
return outsideEdges;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Get geometry edges that located on a border of the mesh
|
|
72
|
-
* @param {object} indices - edge indices from quantized mesh data
|
|
73
|
-
* @param {TypedArray} position - position attribute geometry data
|
|
74
|
-
* @returns {number[][]} - outside edges data
|
|
75
|
-
*/
|
|
76
|
-
function getOutsideEdgesFromIndices(indices, position) {
|
|
77
|
-
// Sort skirt indices to create adjacent triangles
|
|
78
|
-
indices.westIndices.sort((a, b) => position[3 * a + 1] - position[3 * b + 1]);
|
|
79
|
-
// Reverse (b - a) to match triangle winding
|
|
80
|
-
indices.eastIndices.sort((a, b) => position[3 * b + 1] - position[3 * a + 1]);
|
|
81
|
-
indices.southIndices.sort((a, b) => position[3 * b] - position[3 * a]);
|
|
82
|
-
// Reverse (b - a) to match triangle winding
|
|
83
|
-
indices.northIndices.sort((a, b) => position[3 * a] - position[3 * b]);
|
|
84
|
-
const edges = [];
|
|
85
|
-
for (const index in indices) {
|
|
86
|
-
const indexGroup = indices[index];
|
|
87
|
-
for (let i = 0; i < indexGroup.length - 1; i++) {
|
|
88
|
-
edges.push([indexGroup[i], indexGroup[i + 1]]);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return edges;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Get geometry edges that located on a border of the mesh
|
|
95
|
-
* @param {object} args
|
|
96
|
-
* @param {number[]} args.edge - edge indices in geometry
|
|
97
|
-
* @param {number} args.edgeIndex - edge index in outsideEdges array
|
|
98
|
-
* @param {object} args.attributes - POSITION and TEXCOORD_0 attributes
|
|
99
|
-
* @param {number} args.skirtHeight - height of the skirt geometry
|
|
100
|
-
* @param {TypedArray} args.newPosition - POSITION array for skirt data
|
|
101
|
-
* @param {TypedArray} args.newTexcoord0 - TEXCOORD_0 array for skirt data
|
|
102
|
-
* @param {TypedArray | Array} args.newTriangles - trinagle indices array for skirt data
|
|
103
|
-
* @returns {void}
|
|
104
|
-
*/
|
|
105
|
-
function updateAttributesForNewEdge({ edge, edgeIndex, attributes, skirtHeight, newPosition, newTexcoord0, newTriangles }) {
|
|
106
|
-
const positionsLength = attributes.POSITION.value.length;
|
|
107
|
-
const vertex1Offset = edgeIndex * 2;
|
|
108
|
-
const vertex2Offset = edgeIndex * 2 + 1;
|
|
109
|
-
// Define POSITION for new 1st vertex
|
|
110
|
-
newPosition.set(attributes.POSITION.value.subarray(edge[0] * 3, edge[0] * 3 + 3), vertex1Offset * 3);
|
|
111
|
-
newPosition[vertex1Offset * 3 + 2] = newPosition[vertex1Offset * 3 + 2] - skirtHeight; // put down elevation on the skirt height
|
|
112
|
-
// Define POSITION for new 2nd vertex
|
|
113
|
-
newPosition.set(attributes.POSITION.value.subarray(edge[1] * 3, edge[1] * 3 + 3), vertex2Offset * 3);
|
|
114
|
-
newPosition[vertex2Offset * 3 + 2] = newPosition[vertex2Offset * 3 + 2] - skirtHeight; // put down elevation on the skirt height
|
|
115
|
-
// Use same TEXCOORDS for skirt vertices
|
|
116
|
-
newTexcoord0.set(attributes.TEXCOORD_0.value.subarray(edge[0] * 2, edge[0] * 2 + 2), vertex1Offset * 2);
|
|
117
|
-
newTexcoord0.set(attributes.TEXCOORD_0.value.subarray(edge[1] * 2, edge[1] * 2 + 2), vertex2Offset * 2);
|
|
118
|
-
// Define new triangles
|
|
119
|
-
const triangle1Offset = edgeIndex * 2 * 3;
|
|
120
|
-
newTriangles[triangle1Offset] = edge[0];
|
|
121
|
-
newTriangles[triangle1Offset + 1] = positionsLength / 3 + vertex2Offset;
|
|
122
|
-
newTriangles[triangle1Offset + 2] = edge[1];
|
|
123
|
-
newTriangles[triangle1Offset + 3] = positionsLength / 3 + vertex2Offset;
|
|
124
|
-
newTriangles[triangle1Offset + 4] = edge[0];
|
|
125
|
-
newTriangles[triangle1Offset + 5] = positionsLength / 3 + vertex1Offset;
|
|
41
|
+
return Uint32Array.from(edges);
|
|
126
42
|
}
|
|
127
43
|
//# sourceMappingURL=skirt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skirt.js","sourceRoot":"","sources":["../../../../src/terrain/lib/helpers/skirt.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAEpC,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"skirt.js","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GAAG,CAAC,CAAC,CAAC,CAAC;IACzE,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,MAAM,IAAI,IAAI;QACjB,OAAO,CAAC,WAAW;QACnB,OAAO,CAAC,YAAY;QACpB,OAAO,CAAC,WAAW;QACnB,OAAO,CAAC,YAAY;KACrB,EAAE,CAAC;QACF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE;YAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACzE,CAAC;IACD,OAAO,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACjC,CAAC"}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
import type { TerrainHeightmap } from "./terrain-heightmap-types.js";
|
|
2
|
-
/** Georeferencing supplied by a source, never inferred from a provider name. */
|
|
3
|
-
export type TerrainGridMetadata = {
|
|
4
|
-
/** West, south, east, north in unwrapped EPSG:3857 meters; row zero is north. */
|
|
5
|
-
readonly bounds: readonly [number, number, number, number];
|
|
6
|
-
/** Pixel centers or samples including both footprint edges. */
|
|
7
|
-
readonly registration: 'pixel-center' | 'grid-node';
|
|
8
|
-
/** Physical height reference; this API does not convert vertical datums. */
|
|
9
|
-
readonly verticalDatum: 'ellipsoidal' | 'orthometric' | 'unknown';
|
|
10
|
-
};
|
|
11
|
-
/** Physical source meters, independent of projection, display relief and mesh resolution. */
|
|
12
|
-
export type TerrainHeightGrid = TerrainHeightmap & TerrainGridMetadata & {
|
|
13
|
-
/** One byte per sample: zero is missing; invalid heights are NaN. Alpha is not inferred. */
|
|
14
|
-
readonly valid: Uint8Array;
|
|
15
|
-
};
|
|
16
1
|
/** Ray coordinates must match the queried surface; direction need not be normalized. */
|
|
17
2
|
export type TerrainRay = {
|
|
18
3
|
/** Absolute content-space origin, before camera or room-placement transforms. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terrain-contracts.d.ts","sourceRoot":"","sources":["../../../src/terrain/lib/terrain-contracts.ts"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"terrain-contracts.d.ts","sourceRoot":"","sources":["../../../src/terrain/lib/terrain-contracts.ts"],"names":[],"mappings":"AAIA,wFAAwF;AACxF,MAAM,MAAM,UAAU,GAAG;IACvB,iFAAiF;IACjF,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACnD,gCAAgC;IAChC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CACvD,CAAC;AAEF,gFAAgF;AAChF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,2DAA2D;IAC3D,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACrD,+FAA+F;IAC/F,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACvD,oFAAoF;IACpF,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,wDAAwD;IACxD,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACnD,kDAAkD;IAClD,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,uDAAuD;IACvD,QAAQ,CAAC,WAAW,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CACzD,CAAC;AAEF,uEAAuE;AACvE,MAAM,MAAM,oBAAoB,GAAG;IACjC,2BAA2B;IAC3B,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACpD,2BAA2B;IAC3B,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CACrD,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,iFAAiF;IACjF,QAAQ,CAAC,UAAU,EAAE,cAAc,GAAG,OAAO,CAAC;IAC9C,kGAAkG;IAClG,YAAY,CAAC,GAAG,EAAE,UAAU,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI,CAAC;IAC9E,qEAAqE;IACrE,SAAS,CAAC,IAAI,oBAAoB,GAAG,IAAI,CAAC;CAC3C,CAAC"}
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
// Version constant cannot be imported, it needs to correspond to the build version of **this** module.
|
|
5
5
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
6
6
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
7
|
-
export const VERSION = typeof "5.0.0-beta.
|
|
7
|
+
export const VERSION = typeof "5.0.0-beta.6" !== 'undefined' ? "5.0.0-beta.6" : 'latest';
|
|
8
8
|
//# sourceMappingURL=version.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// loaders.gl
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { serializeArrowWorkerResult, deserializeArrowWorkerResult } from '@loaders.gl/core/
|
|
4
|
+
import { serializeArrowWorkerResult, deserializeArrowWorkerResult } from '@loaders.gl/core/arrow-worker-transport';
|
|
5
5
|
import { convertMeshToTable, convertTableToMesh } from '@loaders.gl/core/schema-utils';
|
|
6
6
|
import { parseQuantizedMesh } from "./lib/parse-quantized-mesh.js";
|
|
7
7
|
import { QuantizedMeshLoader as QuantizedMeshLoaderMetadata } from "./quantized-mesh-loader-types.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quantized-mesh-loader.js","sourceRoot":"","sources":["../../src/terrain/quantized-mesh-loader.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAEpC,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC7B,MAAM
|
|
1
|
+
{"version":3,"file":"quantized-mesh-loader.js","sourceRoot":"","sources":["../../src/terrain/quantized-mesh-loader.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAEpC,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC7B,MAAM,yCAAyC,CAAC;AAGjD,OAAO,EAAC,kBAAkB,EAAE,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAC,kBAAkB,EAAC,sCAAmC;AAC9D,OAAO,EACL,mBAAmB,IAAI,2BAA2B,EAEnD,yCAAsC;AAEvC,MAAM,EAAC,OAAO,EAAE,2BAA2B,EAAE,GAAG,yCAAyC,EAAC,GACxF,2BAA2B,CAAC;AAE9B;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,GAAG,yCAAyC;IAC5C,qBAAqB,EAAE,0BAA0B;IACjD,uBAAuB,EAAE,4BAA4B;IACrD,SAAS,EAAE,kCAAkC;IAC7C,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,CAAC,kCAAkC,CAAC,WAAW,EAAE,OAAO,CAAC;CACF,CAAC;AAEhG,SAAS,kCAAkC,CACzC,WAAwB,EACxB,OAAoC;IAEpC,MAAM,IAAI,GAAG,kBAAkB,CAAC,WAAW,EAAE,OAAO,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAC1E,MAAM,KAAK,GAAG,kBAAkB,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IACtD,IAAI,OAAO,EAAE,CAAC,gBAAgB,CAAC,EAAE,KAAK,KAAK,aAAa,EAAE,CAAC;QACzD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO;QACL,GAAG,kBAAkB,CAAC,KAAK,CAAC;QAC5B,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,UAAU,EAAE,IAAI,CAAC,UAAU;KAC5B,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// loaders.gl
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { serializeArrowWorkerResult, deserializeArrowWorkerResult } from '@loaders.gl/core/
|
|
4
|
+
import { serializeArrowWorkerResult, deserializeArrowWorkerResult } from '@loaders.gl/core/arrow-worker-transport';
|
|
5
5
|
import { parseFromContext } from '@loaders.gl/core/loader-utils';
|
|
6
6
|
import { convertMeshToTable, convertTableToMesh } from '@loaders.gl/core/schema-utils';
|
|
7
7
|
import { ImageLoader, getImageData } from '@loaders.gl/images';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terrain-loader.js","sourceRoot":"","sources":["../../src/terrain/terrain-loader.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAEpC,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC7B,MAAM
|
|
1
|
+
{"version":3,"file":"terrain-loader.js","sourceRoot":"","sources":["../../src/terrain/terrain-loader.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAEpC,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC7B,MAAM,yCAAyC,CAAC;AAEjD,OAAO,EAAC,gBAAgB,EAAC,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAC,kBAAkB,EAAE,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAC,WAAW,EAAE,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAiB,wBAAwB,EAAC,+BAA4B;AAC7E,OAAO,EACL,aAAa,IAAI,qBAAqB,EAEvC,kCAA+B;AAEhC,MAAM,EAAC,OAAO,EAAE,qBAAqB,EAAE,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