@gmgis/gm-sdk 1.12.5 → 2.0.2
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/index.js +1848 -0
- package/dist/gm.min.js +16983 -16483
- package/dist/index.js +1436 -1434
- package/dist/resources/ThirdParty/Workers/pako_deflate.min.js +1 -2
- package/dist/resources/ThirdParty/Workers/pako_inflate.min.js +1 -2
- package/dist/resources/ThirdParty/Workers/z-worker-pako.js +1 -1
- package/dist/resources/ThirdParty/google-earth-dbroot-parser.js +1 -8337
- package/dist/resources/ThirdParty/wasm_splats_bg.wasm +0 -0
- package/dist/resources/Workers/chunk-35SHYARM.js +26 -0
- package/dist/resources/Workers/chunk-37F5JSTI.js +26 -0
- package/dist/resources/Workers/chunk-3SSKC3VN.js +26 -0
- package/dist/resources/Workers/chunk-3W4GT7KQ.js +26 -0
- package/dist/resources/Workers/chunk-4IW2T6GF.js +26 -0
- package/dist/resources/Workers/chunk-5YEWO3HT.js +26 -0
- package/dist/resources/Workers/chunk-64RSHJUE.js +28 -0
- package/dist/resources/Workers/chunk-77IHZJJ3.js +26 -0
- package/dist/resources/Workers/chunk-7HTKERZY.js +26 -0
- package/dist/resources/Workers/{chunk-I2ITFFPX.js → chunk-A56XVLQR.js} +2 -13
- package/dist/resources/Workers/chunk-AJYK4IVJ.js +26 -0
- package/dist/resources/Workers/{chunk-PRGYLLJT.js → chunk-ARG42DC4.js} +2 -31
- package/dist/resources/Workers/chunk-AU7IKHOH.js +26 -0
- package/dist/resources/Workers/chunk-B4AA3ARO.js +26 -0
- package/dist/resources/Workers/chunk-CNCV5UL7.js +26 -0
- package/dist/resources/Workers/chunk-CYCB63OH.js +26 -0
- package/dist/resources/Workers/{chunk-DI5NGJUP.js → chunk-D6AA5QVT.js} +2 -20
- package/dist/resources/Workers/chunk-D6C66QON.js +26 -0
- package/dist/resources/Workers/chunk-DEPHB2WM.js +26 -0
- package/dist/resources/Workers/chunk-DMEY62ID.js +26 -0
- package/dist/resources/Workers/chunk-DQQ63PYM.js +26 -0
- package/dist/resources/Workers/chunk-ED5JPB3S.js +27 -0
- package/dist/resources/Workers/chunk-EZUYS2JF.js +26 -0
- package/dist/resources/Workers/chunk-FEVXJ54I.js +26 -0
- package/dist/resources/Workers/chunk-G5AGHVVC.js +26 -0
- package/dist/resources/Workers/{chunk-7JO7GPJN.js → chunk-GBYLG25F.js} +2 -15
- package/dist/resources/Workers/chunk-GILIDQNQ.js +26 -0
- package/dist/resources/Workers/chunk-HMIYSTF6.js +26 -0
- package/dist/resources/Workers/chunk-HTFSEEMT.js +26 -0
- package/dist/resources/Workers/chunk-HWXX4CWK.js +26 -0
- package/dist/resources/Workers/chunk-IYTZ52EY.js +26 -0
- package/dist/resources/Workers/chunk-J6UP6FLE.js +26 -0
- package/dist/resources/Workers/chunk-LEYMRMBK.js +27 -0
- package/dist/resources/Workers/chunk-M3MGYQSL.js +26 -0
- package/dist/resources/Workers/chunk-N4VJKXZS.js +26 -0
- package/dist/resources/Workers/chunk-NB3ML6JO.js +26 -0
- package/dist/resources/Workers/chunk-OFUUQVMR.js +26 -0
- package/dist/resources/Workers/chunk-OSW76XDF.js +26 -0
- package/dist/resources/Workers/chunk-PSPPBZWI.js +66 -0
- package/dist/resources/Workers/chunk-QN3VOORQ.js +26 -0
- package/dist/resources/Workers/chunk-QOUAJ6TL.js +26 -0
- package/dist/resources/Workers/chunk-RCV6KWXS.js +26 -0
- package/dist/resources/Workers/chunk-TCGIRNHN.js +26 -0
- package/dist/resources/Workers/chunk-U4IEOH5K.js +26 -0
- package/dist/resources/Workers/chunk-UP6I5URU.js +26 -0
- package/dist/resources/Workers/chunk-VTAIKJXX.js +26 -0
- package/dist/resources/Workers/chunk-VTBDSFTG.js +26 -0
- package/dist/resources/Workers/chunk-VW6VD53G.js +26 -0
- package/dist/resources/Workers/chunk-WGGIH7QW.js +26 -0
- package/dist/resources/Workers/chunk-WWA5PL4H.js +26 -0
- package/dist/resources/Workers/{chunk-6CHGCNMW.js → chunk-WZDE3RYP.js} +4 -34
- package/dist/resources/Workers/chunk-XRL4AVS5.js +26 -0
- package/dist/resources/Workers/combineGeometry.js +2 -40
- package/dist/resources/Workers/createBoxGeometry.js +2 -32
- package/dist/resources/Workers/createBoxOutlineGeometry.js +2 -209
- package/dist/resources/Workers/createCircleGeometry.js +2 -175
- package/dist/resources/Workers/createCircleOutlineGeometry.js +2 -121
- package/dist/resources/Workers/createCoplanarPolygonGeometry.js +2 -481
- package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +2 -199
- package/dist/resources/Workers/createCorridorGeometry.js +2 -1237
- package/dist/resources/Workers/createCorridorOutlineGeometry.js +2 -542
- package/dist/resources/Workers/createCylinderGeometry.js +2 -34
- package/dist/resources/Workers/createCylinderOutlineGeometry.js +2 -205
- package/dist/resources/Workers/createEllipseGeometry.js +2 -45
- package/dist/resources/Workers/createEllipseOutlineGeometry.js +2 -38
- package/dist/resources/Workers/createEllipsoidGeometry.js +2 -33
- package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +2 -35
- package/dist/resources/Workers/createFrustumGeometry.js +2 -32
- package/dist/resources/Workers/createFrustumOutlineGeometry.js +2 -210
- package/dist/resources/Workers/createGeometry.js +2 -144
- package/dist/resources/Workers/createGroundPolylineGeometry.js +2 -1582
- package/dist/resources/Workers/createPlaneGeometry.js +2 -198
- package/dist/resources/Workers/createPlaneOutlineGeometry.js +2 -98
- package/dist/resources/Workers/createPolygonGeometry.js +2 -1381
- package/dist/resources/Workers/createPolygonOutlineGeometry.js +2 -509
- package/dist/resources/Workers/createPolylineGeometry.js +2 -470
- package/dist/resources/Workers/createPolylineVolumeGeometry.js +2 -354
- package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +2 -251
- package/dist/resources/Workers/createRectangleGeometry.js +2 -1246
- package/dist/resources/Workers/createRectangleOutlineGeometry.js +2 -453
- package/dist/resources/Workers/createSimplePolylineGeometry.js +2 -374
- package/dist/resources/Workers/createSphereGeometry.js +2 -92
- package/dist/resources/Workers/createSphereOutlineGeometry.js +2 -92
- package/dist/resources/Workers/createTaskProcessorWorker.js +2 -8
- package/dist/resources/Workers/createVectorTileClampedPolylines.js +2 -466
- package/dist/resources/Workers/createVectorTileGeometries.js +2 -361
- package/dist/resources/Workers/createVectorTilePoints.js +2 -88
- package/dist/resources/Workers/createVectorTilePolygons.js +2 -359
- package/dist/resources/Workers/createVectorTilePolylines.js +2 -236
- package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -539
- package/dist/resources/Workers/createVerticesFromHeightmap.js +2 -2252
- package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -729
- package/dist/resources/Workers/createWallGeometry.js +2 -464
- package/dist/resources/Workers/createWallOutlineGeometry.js +2 -312
- package/dist/resources/Workers/decodeDraco.js +2 -345
- package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2642
- package/dist/resources/Workers/decodeI3S.js +2 -1319
- package/dist/resources/Workers/gaussianSplatSorter.js +26 -0
- package/dist/resources/Workers/gaussianSplatTextureGenerator.js +26 -0
- package/dist/resources/Workers/transcodeKTX2.js +29 -3360
- package/dist/resources/Workers/transferTypedArrayTest.js +2 -17
- package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +2 -793
- package/package.json +74 -74
- package/dist/resources/ThirdParty/Workers/basis_transcoder.js +0 -21
- package/dist/resources/Workers/chunk-26GA3JAM.js +0 -139
- package/dist/resources/Workers/chunk-27HUZ7SA.js +0 -305
- package/dist/resources/Workers/chunk-2ZGOQXYU.js +0 -171
- package/dist/resources/Workers/chunk-3Q2L65QU.js +0 -1258
- package/dist/resources/Workers/chunk-472HQ3EH.js +0 -100
- package/dist/resources/Workers/chunk-5ODQSF26.js +0 -101
- package/dist/resources/Workers/chunk-5OOFQLKF.js +0 -634
- package/dist/resources/Workers/chunk-5PTXS2GO.js +0 -10390
- package/dist/resources/Workers/chunk-76BYBWHP.js +0 -122
- package/dist/resources/Workers/chunk-7BMOHCPM.js +0 -390
- package/dist/resources/Workers/chunk-7KTQP4VB.js +0 -59
- package/dist/resources/Workers/chunk-7O373FFS.js +0 -665
- package/dist/resources/Workers/chunk-AD63PIY6.js +0 -163
- package/dist/resources/Workers/chunk-BHQJ2NT7.js +0 -353
- package/dist/resources/Workers/chunk-C6YYBQXW.js +0 -102
- package/dist/resources/Workers/chunk-CKY7HOHV.js +0 -287
- package/dist/resources/Workers/chunk-DHYHSFFJ.js +0 -73
- package/dist/resources/Workers/chunk-E27BLMDD.js +0 -115
- package/dist/resources/Workers/chunk-E63IIM5T.js +0 -75
- package/dist/resources/Workers/chunk-E6V6SQZW.js +0 -456
- package/dist/resources/Workers/chunk-EJZTDTUH.js +0 -138
- package/dist/resources/Workers/chunk-FDOV2LBJ.js +0 -220
- package/dist/resources/Workers/chunk-FIGIZHAQ.js +0 -684
- package/dist/resources/Workers/chunk-GESF4OXQ.js +0 -1800
- package/dist/resources/Workers/chunk-GGZJN2TI.js +0 -2717
- package/dist/resources/Workers/chunk-GNBFYG7F.js +0 -1481
- package/dist/resources/Workers/chunk-GWCFU2SA.js +0 -300
- package/dist/resources/Workers/chunk-IBLIYJZR.js +0 -196
- package/dist/resources/Workers/chunk-JW4FOI6M.js +0 -476
- package/dist/resources/Workers/chunk-K4GQUNB5.js +0 -262
- package/dist/resources/Workers/chunk-M3GMB5OP.js +0 -834
- package/dist/resources/Workers/chunk-MXIZJAPH.js +0 -629
- package/dist/resources/Workers/chunk-N5KJGGCM.js +0 -1073
- package/dist/resources/Workers/chunk-NGPPMXRM.js +0 -435
- package/dist/resources/Workers/chunk-O3E4OAOE.js +0 -511
- package/dist/resources/Workers/chunk-PGRPDNHG.js +0 -1048
- package/dist/resources/Workers/chunk-S6MRMMQU.js +0 -157
- package/dist/resources/Workers/chunk-SMDOP47J.js +0 -945
- package/dist/resources/Workers/chunk-TGONEMZO.js +0 -421
- package/dist/resources/Workers/chunk-TKVT5GQM.js +0 -781
- package/dist/resources/Workers/chunk-U72QNFOJ.js +0 -758
- package/dist/resources/Workers/chunk-VJZB3WAV.js +0 -963
- package/dist/resources/Workers/chunk-VU2MNO7L.js +0 -239
- package/dist/resources/Workers/chunk-XY4BATBS.js +0 -500
- package/dist/resources/Workers/chunk-YFXQECWV.js +0 -2857
- package/dist/resources/Workers/chunk-YSGTGQQO.js +0 -398
- package/dist/resources/Workers/chunk-YZ733KKS.js +0 -368
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.122
|
|
5
|
-
*
|
|
6
|
-
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
-
*
|
|
8
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
-
* you may not use this file except in compliance with the License.
|
|
10
|
-
* You may obtain a copy of the License at
|
|
11
|
-
*
|
|
12
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
-
*
|
|
14
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
-
* See the License for the specific language governing permissions and
|
|
18
|
-
* limitations under the License.
|
|
19
|
-
*
|
|
20
|
-
* Columbus View (Pat. Pend.)
|
|
21
|
-
*
|
|
22
|
-
* Portions licensed separately.
|
|
23
|
-
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
import {
|
|
27
|
-
Math_default
|
|
28
|
-
} from "./chunk-XY4BATBS.js";
|
|
29
|
-
import {
|
|
30
|
-
defaultValue_default
|
|
31
|
-
} from "./chunk-7JO7GPJN.js";
|
|
32
|
-
import {
|
|
33
|
-
Check_default
|
|
34
|
-
} from "./chunk-AD63PIY6.js";
|
|
35
|
-
import {
|
|
36
|
-
defined_default
|
|
37
|
-
} from "./chunk-E63IIM5T.js";
|
|
38
|
-
|
|
39
|
-
// packages/engine/Source/Core/arrayRemoveDuplicates.js
|
|
40
|
-
var removeDuplicatesEpsilon = Math_default.EPSILON10;
|
|
41
|
-
function arrayRemoveDuplicates(values, equalsEpsilon, wrapAround, removedIndices) {
|
|
42
|
-
Check_default.defined("equalsEpsilon", equalsEpsilon);
|
|
43
|
-
if (!defined_default(values)) {
|
|
44
|
-
return void 0;
|
|
45
|
-
}
|
|
46
|
-
wrapAround = defaultValue_default(wrapAround, false);
|
|
47
|
-
const storeRemovedIndices = defined_default(removedIndices);
|
|
48
|
-
const length = values.length;
|
|
49
|
-
if (length < 2) {
|
|
50
|
-
return values;
|
|
51
|
-
}
|
|
52
|
-
let i;
|
|
53
|
-
let v0 = values[0];
|
|
54
|
-
let v1;
|
|
55
|
-
let cleanedValues;
|
|
56
|
-
let lastCleanIndex = 0;
|
|
57
|
-
let removedIndexLCI = -1;
|
|
58
|
-
for (i = 1; i < length; ++i) {
|
|
59
|
-
v1 = values[i];
|
|
60
|
-
if (equalsEpsilon(v0, v1, removeDuplicatesEpsilon)) {
|
|
61
|
-
if (!defined_default(cleanedValues)) {
|
|
62
|
-
cleanedValues = values.slice(0, i);
|
|
63
|
-
lastCleanIndex = i - 1;
|
|
64
|
-
removedIndexLCI = 0;
|
|
65
|
-
}
|
|
66
|
-
if (storeRemovedIndices) {
|
|
67
|
-
removedIndices.push(i);
|
|
68
|
-
}
|
|
69
|
-
} else {
|
|
70
|
-
if (defined_default(cleanedValues)) {
|
|
71
|
-
cleanedValues.push(v1);
|
|
72
|
-
lastCleanIndex = i;
|
|
73
|
-
if (storeRemovedIndices) {
|
|
74
|
-
removedIndexLCI = removedIndices.length;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
v0 = v1;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
if (wrapAround && equalsEpsilon(values[0], values[length - 1], removeDuplicatesEpsilon)) {
|
|
81
|
-
if (storeRemovedIndices) {
|
|
82
|
-
if (defined_default(cleanedValues)) {
|
|
83
|
-
removedIndices.splice(removedIndexLCI, 0, lastCleanIndex);
|
|
84
|
-
} else {
|
|
85
|
-
removedIndices.push(length - 1);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
if (defined_default(cleanedValues)) {
|
|
89
|
-
cleanedValues.length -= 1;
|
|
90
|
-
} else {
|
|
91
|
-
cleanedValues = values.slice(0, -1);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
return defined_default(cleanedValues) ? cleanedValues : values;
|
|
95
|
-
}
|
|
96
|
-
var arrayRemoveDuplicates_default = arrayRemoveDuplicates;
|
|
97
|
-
|
|
98
|
-
export {
|
|
99
|
-
arrayRemoveDuplicates_default
|
|
100
|
-
};
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.122
|
|
5
|
-
*
|
|
6
|
-
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
-
*
|
|
8
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
-
* you may not use this file except in compliance with the License.
|
|
10
|
-
* You may obtain a copy of the License at
|
|
11
|
-
*
|
|
12
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
-
*
|
|
14
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
-
* See the License for the specific language governing permissions and
|
|
18
|
-
* limitations under the License.
|
|
19
|
-
*
|
|
20
|
-
* Columbus View (Pat. Pend.)
|
|
21
|
-
*
|
|
22
|
-
* Portions licensed separately.
|
|
23
|
-
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
import {
|
|
27
|
-
defined_default
|
|
28
|
-
} from "./chunk-E63IIM5T.js";
|
|
29
|
-
|
|
30
|
-
// packages/engine/Source/Core/formatError.js
|
|
31
|
-
function formatError(object) {
|
|
32
|
-
let result;
|
|
33
|
-
const name = object.name;
|
|
34
|
-
const message = object.message;
|
|
35
|
-
if (defined_default(name) && defined_default(message)) {
|
|
36
|
-
result = `${name}: ${message}`;
|
|
37
|
-
} else {
|
|
38
|
-
result = object.toString();
|
|
39
|
-
}
|
|
40
|
-
const stack = object.stack;
|
|
41
|
-
if (defined_default(stack)) {
|
|
42
|
-
result += `
|
|
43
|
-
${stack}`;
|
|
44
|
-
}
|
|
45
|
-
return result;
|
|
46
|
-
}
|
|
47
|
-
var formatError_default = formatError;
|
|
48
|
-
|
|
49
|
-
// packages/engine/Source/Workers/createTaskProcessorWorker.js
|
|
50
|
-
function createTaskProcessorWorker(workerFunction) {
|
|
51
|
-
async function onMessageHandler({ data }) {
|
|
52
|
-
const transferableObjects = [];
|
|
53
|
-
const responseMessage = {
|
|
54
|
-
id: data.id,
|
|
55
|
-
result: void 0,
|
|
56
|
-
error: void 0
|
|
57
|
-
};
|
|
58
|
-
self.CESIUM_BASE_URL = data.baseUrl;
|
|
59
|
-
try {
|
|
60
|
-
const result = await workerFunction(data.parameters, transferableObjects);
|
|
61
|
-
responseMessage.result = result;
|
|
62
|
-
} catch (error) {
|
|
63
|
-
if (error instanceof Error) {
|
|
64
|
-
responseMessage.error = {
|
|
65
|
-
name: error.name,
|
|
66
|
-
message: error.message,
|
|
67
|
-
stack: error.stack
|
|
68
|
-
};
|
|
69
|
-
} else {
|
|
70
|
-
responseMessage.error = error;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
if (!data.canTransferArrayBuffer) {
|
|
74
|
-
transferableObjects.length = 0;
|
|
75
|
-
}
|
|
76
|
-
try {
|
|
77
|
-
postMessage(responseMessage, transferableObjects);
|
|
78
|
-
} catch (error) {
|
|
79
|
-
responseMessage.result = void 0;
|
|
80
|
-
responseMessage.error = `postMessage failed with error: ${formatError_default(
|
|
81
|
-
error
|
|
82
|
-
)}
|
|
83
|
-
with responseMessage: ${JSON.stringify(responseMessage)}`;
|
|
84
|
-
postMessage(responseMessage);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
function onMessageErrorHandler(event) {
|
|
88
|
-
postMessage({
|
|
89
|
-
id: event.data?.id,
|
|
90
|
-
error: `postMessage failed with error: ${JSON.stringify(event)}`
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
self.onmessage = onMessageHandler;
|
|
94
|
-
self.onmessageerror = onMessageErrorHandler;
|
|
95
|
-
return self;
|
|
96
|
-
}
|
|
97
|
-
var createTaskProcessorWorker_default = createTaskProcessorWorker;
|
|
98
|
-
|
|
99
|
-
export {
|
|
100
|
-
createTaskProcessorWorker_default
|
|
101
|
-
};
|