@pggis/pg-sdk 3.3.10 → 4.3.3
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 +8 -8
- package/dist/index.js +1966 -4
- package/dist/pggis.min.css +1 -1
- package/dist/pggis.min.js +10980 -7539
- 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-F3YA3Y2Z.js → chunk-A56XVLQR.js} +2 -13
- package/dist/resources/Workers/chunk-AJYK4IVJ.js +26 -0
- package/dist/resources/Workers/{chunk-EHWHNOEX.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-4H7PY4U5.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-BBWDMCVU.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-WZDE3RYP.js +28 -0
- package/dist/resources/Workers/chunk-XRL4AVS5.js +26 -0
- package/dist/resources/Workers/combineGeometry.js +2 -44
- package/dist/resources/Workers/createBoxGeometry.js +2 -34
- package/dist/resources/Workers/createBoxOutlineGeometry.js +2 -211
- package/dist/resources/Workers/createCircleGeometry.js +2 -173
- package/dist/resources/Workers/createCircleOutlineGeometry.js +2 -123
- package/dist/resources/Workers/createCoplanarPolygonGeometry.js +2 -482
- package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +2 -201
- package/dist/resources/Workers/createCorridorGeometry.js +2 -1239
- package/dist/resources/Workers/createCorridorOutlineGeometry.js +2 -544
- package/dist/resources/Workers/createCylinderGeometry.js +2 -36
- package/dist/resources/Workers/createCylinderOutlineGeometry.js +2 -207
- package/dist/resources/Workers/createEllipseGeometry.js +2 -47
- package/dist/resources/Workers/createEllipseOutlineGeometry.js +2 -40
- package/dist/resources/Workers/createEllipsoidGeometry.js +2 -35
- package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +2 -37
- package/dist/resources/Workers/createFrustumGeometry.js +2 -34
- package/dist/resources/Workers/createFrustumOutlineGeometry.js +2 -211
- package/dist/resources/Workers/createGeometry.js +2 -147
- package/dist/resources/Workers/createGroundPolylineGeometry.js +2 -1584
- package/dist/resources/Workers/createPlaneGeometry.js +2 -200
- package/dist/resources/Workers/createPlaneOutlineGeometry.js +2 -100
- package/dist/resources/Workers/createPolygonGeometry.js +2 -1387
- package/dist/resources/Workers/createPolygonOutlineGeometry.js +2 -519
- package/dist/resources/Workers/createPolylineGeometry.js +2 -472
- package/dist/resources/Workers/createPolylineVolumeGeometry.js +2 -355
- package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +2 -253
- package/dist/resources/Workers/createRectangleGeometry.js +2 -1250
- package/dist/resources/Workers/createRectangleOutlineGeometry.js +2 -455
- package/dist/resources/Workers/createSimplePolylineGeometry.js +2 -376
- package/dist/resources/Workers/createSphereGeometry.js +2 -94
- package/dist/resources/Workers/createSphereOutlineGeometry.js +2 -94
- package/dist/resources/Workers/createTaskProcessorWorker.js +2 -8
- package/dist/resources/Workers/createVectorTileClampedPolylines.js +2 -468
- package/dist/resources/Workers/createVectorTileGeometries.js +2 -363
- package/dist/resources/Workers/createVectorTilePoints.js +2 -88
- package/dist/resources/Workers/createVectorTilePolygons.js +2 -361
- package/dist/resources/Workers/createVectorTilePolylines.js +2 -238
- package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -545
- package/dist/resources/Workers/createVerticesFromHeightmap.js +2 -2254
- package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -722
- package/dist/resources/Workers/createWallGeometry.js +2 -466
- package/dist/resources/Workers/createWallOutlineGeometry.js +2 -314
- package/dist/resources/Workers/decodeDraco.js +2 -345
- package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2626
- package/dist/resources/Workers/decodeI3S.js +2 -1320
- package/dist/resources/Workers/gaussianSplatSorter.js +26 -0
- package/dist/resources/Workers/gaussianSplatTextureGenerator.js +26 -0
- package/dist/resources/Workers/transcodeKTX2.js +29 -3398
- package/dist/resources/Workers/transferTypedArrayTest.js +2 -17
- package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +2 -795
- package/package.json +9 -8
- package/dist/resources/ThirdParty/Workers/basis_transcoder.js +0 -21
- package/dist/resources/Workers/chunk-23UFSGND.js +0 -236
- package/dist/resources/Workers/chunk-2A75IWRS.js +0 -218
- package/dist/resources/Workers/chunk-2FRVPMCS.js +0 -1258
- package/dist/resources/Workers/chunk-2FWRMUTY.js +0 -138
- package/dist/resources/Workers/chunk-2UPKWTMJ.js +0 -117
- package/dist/resources/Workers/chunk-34FXV7D7.js +0 -73
- package/dist/resources/Workers/chunk-3VAZEH7M.js +0 -101
- package/dist/resources/Workers/chunk-4DO5W5XZ.js +0 -196
- package/dist/resources/Workers/chunk-5QULIR53.js +0 -501
- package/dist/resources/Workers/chunk-7TC63SJW.js +0 -302
- package/dist/resources/Workers/chunk-7ZFGPDJA.js +0 -122
- package/dist/resources/Workers/chunk-A5DWLWCY.js +0 -834
- package/dist/resources/Workers/chunk-BG4UCVXN.js +0 -73
- package/dist/resources/Workers/chunk-BIKA3NRA.js +0 -59
- package/dist/resources/Workers/chunk-BROJAZRZ.js +0 -390
- package/dist/resources/Workers/chunk-DDUQAJ4P.js +0 -476
- package/dist/resources/Workers/chunk-EERJKOAF.js +0 -305
- package/dist/resources/Workers/chunk-EG6PTBY2.js +0 -2716
- package/dist/resources/Workers/chunk-F4HFJMGM.js +0 -353
- package/dist/resources/Workers/chunk-FJKNFAKQ.js +0 -8219
- package/dist/resources/Workers/chunk-FNIRWHJB.js +0 -289
- package/dist/resources/Workers/chunk-FZRIVR7Y.js +0 -100
- package/dist/resources/Workers/chunk-G43QFN4Q.js +0 -157
- package/dist/resources/Workers/chunk-GATZHF3K.js +0 -1860
- package/dist/resources/Workers/chunk-GRC2ZTAF.js +0 -398
- package/dist/resources/Workers/chunk-HU6N6EXB.js +0 -767
- package/dist/resources/Workers/chunk-I46ZRR5W.js +0 -1052
- package/dist/resources/Workers/chunk-JURN7NPV.js +0 -1075
- package/dist/resources/Workers/chunk-KKCR2YOP.js +0 -421
- package/dist/resources/Workers/chunk-LPR3YNP2.js +0 -138
- package/dist/resources/Workers/chunk-M7ERACJJ.js +0 -511
- package/dist/resources/Workers/chunk-MDWEGWPA.js +0 -1007
- package/dist/resources/Workers/chunk-OGXZVPPM.js +0 -2365
- package/dist/resources/Workers/chunk-PGSJK77E.js +0 -634
- package/dist/resources/Workers/chunk-PPH7OFP3.js +0 -258
- package/dist/resources/Workers/chunk-SH5USDPI.js +0 -456
- package/dist/resources/Workers/chunk-SOWMRMWA.js +0 -629
- package/dist/resources/Workers/chunk-STW2DGFI.js +0 -58
- package/dist/resources/Workers/chunk-T3XIFPYR.js +0 -1477
- package/dist/resources/Workers/chunk-TTUZP4BO.js +0 -501
- package/dist/resources/Workers/chunk-UEXTBDBE.js +0 -693
- package/dist/resources/Workers/chunk-VOXYEYJT.js +0 -684
- package/dist/resources/Workers/chunk-X4356LRH.js +0 -368
- package/dist/resources/Workers/chunk-XGI5BXZY.js +0 -163
- package/dist/resources/Workers/chunk-Y2ME2IJV.js +0 -781
- package/dist/resources/Workers/chunk-Y5UQJLYE.js +0 -171
- package/dist/resources/Workers/chunk-YJEBABKH.js +0 -2977
- package/dist/resources/Workers/chunk-YWTJ2B4B.js +0 -77
- package/dist/resources/Workers/chunk-Z3TIFFGF.js +0 -430
- package/dist/resources/Workers/chunk-ZT7KWISZ.js +0 -102
|
@@ -1,501 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.115
|
|
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
|
-
defaultValue_default
|
|
28
|
-
} from "./chunk-BBWDMCVU.js";
|
|
29
|
-
import {
|
|
30
|
-
Check_default,
|
|
31
|
-
DeveloperError_default
|
|
32
|
-
} from "./chunk-XGI5BXZY.js";
|
|
33
|
-
import {
|
|
34
|
-
defined_default
|
|
35
|
-
} from "./chunk-YWTJ2B4B.js";
|
|
36
|
-
|
|
37
|
-
// packages/engine/Source/Core/Fullscreen.js
|
|
38
|
-
var _supportsFullscreen;
|
|
39
|
-
var _names = {
|
|
40
|
-
requestFullscreen: void 0,
|
|
41
|
-
exitFullscreen: void 0,
|
|
42
|
-
fullscreenEnabled: void 0,
|
|
43
|
-
fullscreenElement: void 0,
|
|
44
|
-
fullscreenchange: void 0,
|
|
45
|
-
fullscreenerror: void 0
|
|
46
|
-
};
|
|
47
|
-
var Fullscreen = {};
|
|
48
|
-
Object.defineProperties(Fullscreen, {
|
|
49
|
-
/**
|
|
50
|
-
* The element that is currently fullscreen, if any. To simply check if the
|
|
51
|
-
* browser is in fullscreen mode or not, use {@link Fullscreen#fullscreen}.
|
|
52
|
-
* @memberof Fullscreen
|
|
53
|
-
* @type {object}
|
|
54
|
-
* @readonly
|
|
55
|
-
*/
|
|
56
|
-
element: {
|
|
57
|
-
get: function() {
|
|
58
|
-
if (!Fullscreen.supportsFullscreen()) {
|
|
59
|
-
return void 0;
|
|
60
|
-
}
|
|
61
|
-
return document[_names.fullscreenElement];
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
/**
|
|
65
|
-
* The name of the event on the document that is fired when fullscreen is
|
|
66
|
-
* entered or exited. This event name is intended for use with addEventListener.
|
|
67
|
-
* In your event handler, to determine if the browser is in fullscreen mode or not,
|
|
68
|
-
* use {@link Fullscreen#fullscreen}.
|
|
69
|
-
* @memberof Fullscreen
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @readonly
|
|
72
|
-
*/
|
|
73
|
-
changeEventName: {
|
|
74
|
-
get: function() {
|
|
75
|
-
if (!Fullscreen.supportsFullscreen()) {
|
|
76
|
-
return void 0;
|
|
77
|
-
}
|
|
78
|
-
return _names.fullscreenchange;
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
/**
|
|
82
|
-
* The name of the event that is fired when a fullscreen error
|
|
83
|
-
* occurs. This event name is intended for use with addEventListener.
|
|
84
|
-
* @memberof Fullscreen
|
|
85
|
-
* @type {string}
|
|
86
|
-
* @readonly
|
|
87
|
-
*/
|
|
88
|
-
errorEventName: {
|
|
89
|
-
get: function() {
|
|
90
|
-
if (!Fullscreen.supportsFullscreen()) {
|
|
91
|
-
return void 0;
|
|
92
|
-
}
|
|
93
|
-
return _names.fullscreenerror;
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
/**
|
|
97
|
-
* Determine whether the browser will allow an element to be made fullscreen, or not.
|
|
98
|
-
* For example, by default, iframes cannot go fullscreen unless the containing page
|
|
99
|
-
* adds an "allowfullscreen" attribute (or prefixed equivalent).
|
|
100
|
-
* @memberof Fullscreen
|
|
101
|
-
* @type {boolean}
|
|
102
|
-
* @readonly
|
|
103
|
-
*/
|
|
104
|
-
enabled: {
|
|
105
|
-
get: function() {
|
|
106
|
-
if (!Fullscreen.supportsFullscreen()) {
|
|
107
|
-
return void 0;
|
|
108
|
-
}
|
|
109
|
-
return document[_names.fullscreenEnabled];
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
/**
|
|
113
|
-
* Determines if the browser is currently in fullscreen mode.
|
|
114
|
-
* @memberof Fullscreen
|
|
115
|
-
* @type {boolean}
|
|
116
|
-
* @readonly
|
|
117
|
-
*/
|
|
118
|
-
fullscreen: {
|
|
119
|
-
get: function() {
|
|
120
|
-
if (!Fullscreen.supportsFullscreen()) {
|
|
121
|
-
return void 0;
|
|
122
|
-
}
|
|
123
|
-
return Fullscreen.element !== null;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
Fullscreen.supportsFullscreen = function() {
|
|
128
|
-
if (defined_default(_supportsFullscreen)) {
|
|
129
|
-
return _supportsFullscreen;
|
|
130
|
-
}
|
|
131
|
-
_supportsFullscreen = false;
|
|
132
|
-
const body = document.body;
|
|
133
|
-
if (typeof body.requestFullscreen === "function") {
|
|
134
|
-
_names.requestFullscreen = "requestFullscreen";
|
|
135
|
-
_names.exitFullscreen = "exitFullscreen";
|
|
136
|
-
_names.fullscreenEnabled = "fullscreenEnabled";
|
|
137
|
-
_names.fullscreenElement = "fullscreenElement";
|
|
138
|
-
_names.fullscreenchange = "fullscreenchange";
|
|
139
|
-
_names.fullscreenerror = "fullscreenerror";
|
|
140
|
-
_supportsFullscreen = true;
|
|
141
|
-
return _supportsFullscreen;
|
|
142
|
-
}
|
|
143
|
-
const prefixes = ["webkit", "moz", "o", "ms", "khtml"];
|
|
144
|
-
let name;
|
|
145
|
-
for (let i = 0, len = prefixes.length; i < len; ++i) {
|
|
146
|
-
const prefix = prefixes[i];
|
|
147
|
-
name = `${prefix}RequestFullscreen`;
|
|
148
|
-
if (typeof body[name] === "function") {
|
|
149
|
-
_names.requestFullscreen = name;
|
|
150
|
-
_supportsFullscreen = true;
|
|
151
|
-
} else {
|
|
152
|
-
name = `${prefix}RequestFullScreen`;
|
|
153
|
-
if (typeof body[name] === "function") {
|
|
154
|
-
_names.requestFullscreen = name;
|
|
155
|
-
_supportsFullscreen = true;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
name = `${prefix}ExitFullscreen`;
|
|
159
|
-
if (typeof document[name] === "function") {
|
|
160
|
-
_names.exitFullscreen = name;
|
|
161
|
-
} else {
|
|
162
|
-
name = `${prefix}CancelFullScreen`;
|
|
163
|
-
if (typeof document[name] === "function") {
|
|
164
|
-
_names.exitFullscreen = name;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
name = `${prefix}FullscreenEnabled`;
|
|
168
|
-
if (document[name] !== void 0) {
|
|
169
|
-
_names.fullscreenEnabled = name;
|
|
170
|
-
} else {
|
|
171
|
-
name = `${prefix}FullScreenEnabled`;
|
|
172
|
-
if (document[name] !== void 0) {
|
|
173
|
-
_names.fullscreenEnabled = name;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
name = `${prefix}FullscreenElement`;
|
|
177
|
-
if (document[name] !== void 0) {
|
|
178
|
-
_names.fullscreenElement = name;
|
|
179
|
-
} else {
|
|
180
|
-
name = `${prefix}FullScreenElement`;
|
|
181
|
-
if (document[name] !== void 0) {
|
|
182
|
-
_names.fullscreenElement = name;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
name = `${prefix}fullscreenchange`;
|
|
186
|
-
if (document[`on${name}`] !== void 0) {
|
|
187
|
-
if (prefix === "ms") {
|
|
188
|
-
name = "MSFullscreenChange";
|
|
189
|
-
}
|
|
190
|
-
_names.fullscreenchange = name;
|
|
191
|
-
}
|
|
192
|
-
name = `${prefix}fullscreenerror`;
|
|
193
|
-
if (document[`on${name}`] !== void 0) {
|
|
194
|
-
if (prefix === "ms") {
|
|
195
|
-
name = "MSFullscreenError";
|
|
196
|
-
}
|
|
197
|
-
_names.fullscreenerror = name;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
return _supportsFullscreen;
|
|
201
|
-
};
|
|
202
|
-
Fullscreen.requestFullscreen = function(element, vrDevice) {
|
|
203
|
-
if (!Fullscreen.supportsFullscreen()) {
|
|
204
|
-
return;
|
|
205
|
-
}
|
|
206
|
-
element[_names.requestFullscreen]({ vrDisplay: vrDevice });
|
|
207
|
-
};
|
|
208
|
-
Fullscreen.exitFullscreen = function() {
|
|
209
|
-
if (!Fullscreen.supportsFullscreen()) {
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
212
|
-
document[_names.exitFullscreen]();
|
|
213
|
-
};
|
|
214
|
-
Fullscreen._names = _names;
|
|
215
|
-
var Fullscreen_default = Fullscreen;
|
|
216
|
-
|
|
217
|
-
// packages/engine/Source/Core/FeatureDetection.js
|
|
218
|
-
var theNavigator;
|
|
219
|
-
if (typeof navigator !== "undefined") {
|
|
220
|
-
theNavigator = navigator;
|
|
221
|
-
} else {
|
|
222
|
-
theNavigator = {};
|
|
223
|
-
}
|
|
224
|
-
function extractVersion(versionString) {
|
|
225
|
-
const parts = versionString.split(".");
|
|
226
|
-
for (let i = 0, len = parts.length; i < len; ++i) {
|
|
227
|
-
parts[i] = parseInt(parts[i], 10);
|
|
228
|
-
}
|
|
229
|
-
return parts;
|
|
230
|
-
}
|
|
231
|
-
var isChromeResult;
|
|
232
|
-
var chromeVersionResult;
|
|
233
|
-
function isChrome() {
|
|
234
|
-
if (!defined_default(isChromeResult)) {
|
|
235
|
-
isChromeResult = false;
|
|
236
|
-
if (!isEdge()) {
|
|
237
|
-
const fields = / Chrome\/([\.0-9]+)/.exec(theNavigator.userAgent);
|
|
238
|
-
if (fields !== null) {
|
|
239
|
-
isChromeResult = true;
|
|
240
|
-
chromeVersionResult = extractVersion(fields[1]);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
return isChromeResult;
|
|
245
|
-
}
|
|
246
|
-
function chromeVersion() {
|
|
247
|
-
return isChrome() && chromeVersionResult;
|
|
248
|
-
}
|
|
249
|
-
var isSafariResult;
|
|
250
|
-
var safariVersionResult;
|
|
251
|
-
function isSafari() {
|
|
252
|
-
if (!defined_default(isSafariResult)) {
|
|
253
|
-
isSafariResult = false;
|
|
254
|
-
if (!isChrome() && !isEdge() && / Safari\/[\.0-9]+/.test(theNavigator.userAgent)) {
|
|
255
|
-
const fields = / Version\/([\.0-9]+)/.exec(theNavigator.userAgent);
|
|
256
|
-
if (fields !== null) {
|
|
257
|
-
isSafariResult = true;
|
|
258
|
-
safariVersionResult = extractVersion(fields[1]);
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
return isSafariResult;
|
|
263
|
-
}
|
|
264
|
-
function safariVersion() {
|
|
265
|
-
return isSafari() && safariVersionResult;
|
|
266
|
-
}
|
|
267
|
-
var isWebkitResult;
|
|
268
|
-
var webkitVersionResult;
|
|
269
|
-
function isWebkit() {
|
|
270
|
-
if (!defined_default(isWebkitResult)) {
|
|
271
|
-
isWebkitResult = false;
|
|
272
|
-
const fields = / AppleWebKit\/([\.0-9]+)(\+?)/.exec(theNavigator.userAgent);
|
|
273
|
-
if (fields !== null) {
|
|
274
|
-
isWebkitResult = true;
|
|
275
|
-
webkitVersionResult = extractVersion(fields[1]);
|
|
276
|
-
webkitVersionResult.isNightly = !!fields[2];
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
return isWebkitResult;
|
|
280
|
-
}
|
|
281
|
-
function webkitVersion() {
|
|
282
|
-
return isWebkit() && webkitVersionResult;
|
|
283
|
-
}
|
|
284
|
-
var isInternetExplorerResult;
|
|
285
|
-
var internetExplorerVersionResult;
|
|
286
|
-
function isInternetExplorer() {
|
|
287
|
-
if (!defined_default(isInternetExplorerResult)) {
|
|
288
|
-
isInternetExplorerResult = false;
|
|
289
|
-
let fields;
|
|
290
|
-
if (theNavigator.appName === "Microsoft Internet Explorer") {
|
|
291
|
-
fields = /MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(theNavigator.userAgent);
|
|
292
|
-
if (fields !== null) {
|
|
293
|
-
isInternetExplorerResult = true;
|
|
294
|
-
internetExplorerVersionResult = extractVersion(fields[1]);
|
|
295
|
-
}
|
|
296
|
-
} else if (theNavigator.appName === "Netscape") {
|
|
297
|
-
fields = /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(
|
|
298
|
-
theNavigator.userAgent
|
|
299
|
-
);
|
|
300
|
-
if (fields !== null) {
|
|
301
|
-
isInternetExplorerResult = true;
|
|
302
|
-
internetExplorerVersionResult = extractVersion(fields[1]);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
return isInternetExplorerResult;
|
|
307
|
-
}
|
|
308
|
-
function internetExplorerVersion() {
|
|
309
|
-
return isInternetExplorer() && internetExplorerVersionResult;
|
|
310
|
-
}
|
|
311
|
-
var isEdgeResult;
|
|
312
|
-
var edgeVersionResult;
|
|
313
|
-
function isEdge() {
|
|
314
|
-
if (!defined_default(isEdgeResult)) {
|
|
315
|
-
isEdgeResult = false;
|
|
316
|
-
const fields = / Edg\/([\.0-9]+)/.exec(theNavigator.userAgent);
|
|
317
|
-
if (fields !== null) {
|
|
318
|
-
isEdgeResult = true;
|
|
319
|
-
edgeVersionResult = extractVersion(fields[1]);
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
return isEdgeResult;
|
|
323
|
-
}
|
|
324
|
-
function edgeVersion() {
|
|
325
|
-
return isEdge() && edgeVersionResult;
|
|
326
|
-
}
|
|
327
|
-
var isFirefoxResult;
|
|
328
|
-
var firefoxVersionResult;
|
|
329
|
-
function isFirefox() {
|
|
330
|
-
if (!defined_default(isFirefoxResult)) {
|
|
331
|
-
isFirefoxResult = false;
|
|
332
|
-
const fields = /Firefox\/([\.0-9]+)/.exec(theNavigator.userAgent);
|
|
333
|
-
if (fields !== null) {
|
|
334
|
-
isFirefoxResult = true;
|
|
335
|
-
firefoxVersionResult = extractVersion(fields[1]);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
return isFirefoxResult;
|
|
339
|
-
}
|
|
340
|
-
var isWindowsResult;
|
|
341
|
-
function isWindows() {
|
|
342
|
-
if (!defined_default(isWindowsResult)) {
|
|
343
|
-
isWindowsResult = /Windows/i.test(theNavigator.appVersion);
|
|
344
|
-
}
|
|
345
|
-
return isWindowsResult;
|
|
346
|
-
}
|
|
347
|
-
var isIPadOrIOSResult;
|
|
348
|
-
function isIPadOrIOS() {
|
|
349
|
-
if (!defined_default(isIPadOrIOSResult)) {
|
|
350
|
-
isIPadOrIOSResult = navigator.platform === "iPhone" || navigator.platform === "iPod" || navigator.platform === "iPad";
|
|
351
|
-
}
|
|
352
|
-
return isIPadOrIOSResult;
|
|
353
|
-
}
|
|
354
|
-
function firefoxVersion() {
|
|
355
|
-
return isFirefox() && firefoxVersionResult;
|
|
356
|
-
}
|
|
357
|
-
var hasPointerEvents;
|
|
358
|
-
function supportsPointerEvents() {
|
|
359
|
-
if (!defined_default(hasPointerEvents)) {
|
|
360
|
-
hasPointerEvents = !isFirefox() && typeof PointerEvent !== "undefined" && (!defined_default(theNavigator.pointerEnabled) || theNavigator.pointerEnabled);
|
|
361
|
-
}
|
|
362
|
-
return hasPointerEvents;
|
|
363
|
-
}
|
|
364
|
-
var imageRenderingValueResult;
|
|
365
|
-
var supportsImageRenderingPixelatedResult;
|
|
366
|
-
function supportsImageRenderingPixelated() {
|
|
367
|
-
if (!defined_default(supportsImageRenderingPixelatedResult)) {
|
|
368
|
-
const canvas = document.createElement("canvas");
|
|
369
|
-
canvas.setAttribute(
|
|
370
|
-
"style",
|
|
371
|
-
"image-rendering: -moz-crisp-edges;image-rendering: pixelated;"
|
|
372
|
-
);
|
|
373
|
-
const tmp = canvas.style.imageRendering;
|
|
374
|
-
supportsImageRenderingPixelatedResult = defined_default(tmp) && tmp !== "";
|
|
375
|
-
if (supportsImageRenderingPixelatedResult) {
|
|
376
|
-
imageRenderingValueResult = tmp;
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
return supportsImageRenderingPixelatedResult;
|
|
380
|
-
}
|
|
381
|
-
function imageRenderingValue() {
|
|
382
|
-
return supportsImageRenderingPixelated() ? imageRenderingValueResult : void 0;
|
|
383
|
-
}
|
|
384
|
-
function supportsWebP() {
|
|
385
|
-
if (!supportsWebP.initialized) {
|
|
386
|
-
throw new DeveloperError_default(
|
|
387
|
-
"You must call FeatureDetection.supportsWebP.initialize and wait for the promise to resolve before calling FeatureDetection.supportsWebP"
|
|
388
|
-
);
|
|
389
|
-
}
|
|
390
|
-
return supportsWebP._result;
|
|
391
|
-
}
|
|
392
|
-
supportsWebP._promise = void 0;
|
|
393
|
-
supportsWebP._result = void 0;
|
|
394
|
-
supportsWebP.initialize = function() {
|
|
395
|
-
if (defined_default(supportsWebP._promise)) {
|
|
396
|
-
return supportsWebP._promise;
|
|
397
|
-
}
|
|
398
|
-
supportsWebP._promise = new Promise((resolve) => {
|
|
399
|
-
const image = new Image();
|
|
400
|
-
image.onload = function() {
|
|
401
|
-
supportsWebP._result = image.width > 0 && image.height > 0;
|
|
402
|
-
resolve(supportsWebP._result);
|
|
403
|
-
};
|
|
404
|
-
image.onerror = function() {
|
|
405
|
-
supportsWebP._result = false;
|
|
406
|
-
resolve(supportsWebP._result);
|
|
407
|
-
};
|
|
408
|
-
image.src = "data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA";
|
|
409
|
-
});
|
|
410
|
-
return supportsWebP._promise;
|
|
411
|
-
};
|
|
412
|
-
Object.defineProperties(supportsWebP, {
|
|
413
|
-
initialized: {
|
|
414
|
-
get: function() {
|
|
415
|
-
return defined_default(supportsWebP._result);
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
});
|
|
419
|
-
var typedArrayTypes = [];
|
|
420
|
-
if (typeof ArrayBuffer !== "undefined") {
|
|
421
|
-
typedArrayTypes.push(
|
|
422
|
-
Int8Array,
|
|
423
|
-
Uint8Array,
|
|
424
|
-
Int16Array,
|
|
425
|
-
Uint16Array,
|
|
426
|
-
Int32Array,
|
|
427
|
-
Uint32Array,
|
|
428
|
-
Float32Array,
|
|
429
|
-
Float64Array
|
|
430
|
-
);
|
|
431
|
-
if (typeof Uint8ClampedArray !== "undefined") {
|
|
432
|
-
typedArrayTypes.push(Uint8ClampedArray);
|
|
433
|
-
}
|
|
434
|
-
if (typeof Uint8ClampedArray !== "undefined") {
|
|
435
|
-
typedArrayTypes.push(Uint8ClampedArray);
|
|
436
|
-
}
|
|
437
|
-
if (typeof BigInt64Array !== "undefined") {
|
|
438
|
-
typedArrayTypes.push(BigInt64Array);
|
|
439
|
-
}
|
|
440
|
-
if (typeof BigUint64Array !== "undefined") {
|
|
441
|
-
typedArrayTypes.push(BigUint64Array);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
var FeatureDetection = {
|
|
445
|
-
isChrome,
|
|
446
|
-
chromeVersion,
|
|
447
|
-
isSafari,
|
|
448
|
-
safariVersion,
|
|
449
|
-
isWebkit,
|
|
450
|
-
webkitVersion,
|
|
451
|
-
isInternetExplorer,
|
|
452
|
-
internetExplorerVersion,
|
|
453
|
-
isEdge,
|
|
454
|
-
edgeVersion,
|
|
455
|
-
isFirefox,
|
|
456
|
-
firefoxVersion,
|
|
457
|
-
isWindows,
|
|
458
|
-
isIPadOrIOS,
|
|
459
|
-
hardwareConcurrency: defaultValue_default(theNavigator.hardwareConcurrency, 3),
|
|
460
|
-
supportsPointerEvents,
|
|
461
|
-
supportsImageRenderingPixelated,
|
|
462
|
-
supportsWebP,
|
|
463
|
-
imageRenderingValue,
|
|
464
|
-
typedArrayTypes
|
|
465
|
-
};
|
|
466
|
-
FeatureDetection.supportsBasis = function(scene) {
|
|
467
|
-
return FeatureDetection.supportsWebAssembly() && scene.context.supportsBasis;
|
|
468
|
-
};
|
|
469
|
-
FeatureDetection.supportsFullscreen = function() {
|
|
470
|
-
return Fullscreen_default.supportsFullscreen();
|
|
471
|
-
};
|
|
472
|
-
FeatureDetection.supportsTypedArrays = function() {
|
|
473
|
-
return typeof ArrayBuffer !== "undefined";
|
|
474
|
-
};
|
|
475
|
-
FeatureDetection.supportsBigInt64Array = function() {
|
|
476
|
-
return typeof BigInt64Array !== "undefined";
|
|
477
|
-
};
|
|
478
|
-
FeatureDetection.supportsBigUint64Array = function() {
|
|
479
|
-
return typeof BigUint64Array !== "undefined";
|
|
480
|
-
};
|
|
481
|
-
FeatureDetection.supportsBigInt = function() {
|
|
482
|
-
return typeof BigInt !== "undefined";
|
|
483
|
-
};
|
|
484
|
-
FeatureDetection.supportsWebWorkers = function() {
|
|
485
|
-
return typeof Worker !== "undefined";
|
|
486
|
-
};
|
|
487
|
-
FeatureDetection.supportsWebAssembly = function() {
|
|
488
|
-
return typeof WebAssembly !== "undefined";
|
|
489
|
-
};
|
|
490
|
-
FeatureDetection.supportsWebgl2 = function(scene) {
|
|
491
|
-
Check_default.defined("scene", scene);
|
|
492
|
-
return scene.context.webgl2;
|
|
493
|
-
};
|
|
494
|
-
FeatureDetection.supportsEsmWebWorkers = function() {
|
|
495
|
-
return !isFirefox() || parseInt(firefoxVersionResult) >= 114;
|
|
496
|
-
};
|
|
497
|
-
var FeatureDetection_default = FeatureDetection;
|
|
498
|
-
|
|
499
|
-
export {
|
|
500
|
-
FeatureDetection_default
|
|
501
|
-
};
|