@cesium/engine 22.3.0 → 23.0.0

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.
Files changed (193) hide show
  1. package/Build/Workers/{chunk-EAAH543Q.js → chunk-2GL2EUEE.js} +11 -11
  2. package/Build/Workers/{chunk-EUDHHS7K.js → chunk-2WI4HGJU.js} +6 -6
  3. package/Build/Workers/{chunk-LWZHJWYK.js → chunk-36LBFITA.js} +665 -366
  4. package/Build/Workers/{chunk-7U5YNLF3.js → chunk-3B65YFXC.js} +1 -1
  5. package/Build/Workers/{chunk-D63Z7KKL.js → chunk-4LGFX2P5.js} +11 -11
  6. package/Build/Workers/{chunk-D6OKR3BQ.js → chunk-4UNQX2MP.js} +2 -2
  7. package/Build/Workers/{chunk-BO22JHBX.js → chunk-52K3GJKG.js} +3 -3
  8. package/Build/Workers/{chunk-XLIJV3YZ.js → chunk-56OHFSLH.js} +10 -10
  9. package/Build/Workers/{chunk-AWELU5C6.js → chunk-5A7YSAXT.js} +14 -14
  10. package/Build/Workers/{chunk-T5MJDW43.js → chunk-5JP5FG7U.js} +7 -7
  11. package/Build/Workers/{chunk-NVL7JXAQ.js → chunk-5R7SBUTW.js} +10 -10
  12. package/Build/Workers/chunk-5VKZVPO5.js +1829 -0
  13. package/Build/Workers/{chunk-YHPBT4I5.js → chunk-6FVFM2KB.js} +5 -5
  14. package/Build/Workers/{chunk-WHLGBMBC.js → chunk-6SLGTBB2.js} +5 -5
  15. package/Build/Workers/{chunk-VIQIKMTZ.js → chunk-7KRN6JPQ.js} +14 -14
  16. package/Build/Workers/{chunk-TCOUGKXF.js → chunk-AA33B6PU.js} +4 -4
  17. package/Build/Workers/{chunk-S2KVL7OJ.js → chunk-AP6XWET5.js} +8 -8
  18. package/Build/Workers/{chunk-5PJB7ASO.js → chunk-APDKMX7W.js} +6 -6
  19. package/Build/Workers/{chunk-IXL46IYV.js → chunk-ARCFIOKA.js} +12 -12
  20. package/Build/Workers/{chunk-KIJR26N3.js → chunk-BNBD2YZK.js} +16 -16
  21. package/Build/Workers/{chunk-4R6FGUFP.js → chunk-DT5SJBKA.js} +29 -15
  22. package/Build/Workers/{chunk-FUDC3KOT.js → chunk-ESD4IEOU.js} +5 -5
  23. package/Build/Workers/{chunk-K2PLKJJG.js → chunk-FSDVXW7M.js} +5 -5
  24. package/Build/Workers/{chunk-4BBANFU6.js → chunk-G3YT7M7A.js} +1 -1
  25. package/Build/Workers/{chunk-K4PGSAR5.js → chunk-GN5NEUDT.js} +8 -8
  26. package/Build/Workers/{chunk-OOYICVOK.js → chunk-HYLEKKO5.js} +1 -1
  27. package/Build/Workers/{chunk-FDOLXORR.js → chunk-HYTFXWMY.js} +7 -7
  28. package/Build/Workers/{chunk-7SLNBIZS.js → chunk-IFA7VHHP.js} +560 -277
  29. package/Build/Workers/{chunk-N66PIK46.js → chunk-IYVDOB5V.js} +4 -4
  30. package/Build/Workers/{chunk-ZWWN2CQH.js → chunk-JUGY5AZN.js} +4 -4
  31. package/Build/Workers/{chunk-4O2ARYS7.js → chunk-KPYU6YZG.js} +1 -1
  32. package/Build/Workers/{chunk-TY5JXMVO.js → chunk-L7RDJ4V7.js} +1 -1
  33. package/Build/Workers/{chunk-L4OFWHNI.js → chunk-LDQWNMEC.js} +1 -1
  34. package/Build/Workers/{chunk-N6XBJBI7.js → chunk-MQJG522T.js} +6 -6
  35. package/Build/Workers/{chunk-FS42VX2H.js → chunk-MT5M7RLZ.js} +2 -2
  36. package/Build/Workers/{chunk-7ATKQRBM.js → chunk-N4AWE7TZ.js} +10 -10
  37. package/Build/Workers/{chunk-EOSX23OS.js → chunk-NAYRNPEP.js} +4 -4
  38. package/Build/Workers/{chunk-NO3LMU7T.js → chunk-NNHU33JK.js} +7 -7
  39. package/Build/Workers/{chunk-HWGP4GVC.js → chunk-NQCAZU7S.js} +13 -13
  40. package/Build/Workers/{chunk-6GBGEUWR.js → chunk-NUYLNQKV.js} +2 -2
  41. package/Build/Workers/{chunk-E4YDCSQK.js → chunk-OC6X22PG.js} +9 -9
  42. package/Build/Workers/{chunk-ZGGVEGTA.js → chunk-OHBM4YG4.js} +12 -12
  43. package/Build/Workers/{chunk-6WDMPXQ7.js → chunk-OMXN7YF4.js} +12 -12
  44. package/Build/Workers/{chunk-LK7GEFGB.js → chunk-OQ3EAJNW.js} +2 -2
  45. package/Build/Workers/{chunk-M5DVYXJJ.js → chunk-OQBPOKPZ.js} +6 -6
  46. package/Build/Workers/{chunk-WUWPKBOZ.js → chunk-PQVNT5CJ.js} +6 -6
  47. package/Build/Workers/{chunk-W5NV72VR.js → chunk-QA24Q62E.js} +17 -17
  48. package/Build/Workers/{chunk-PJLRXIMS.js → chunk-QQX7S5QT.js} +17 -17
  49. package/Build/Workers/{chunk-D2PEV362.js → chunk-QTOHIXGF.js} +10 -10
  50. package/Build/Workers/{chunk-MASEF4OV.js → chunk-R7M4XNPP.js} +8 -8
  51. package/Build/Workers/{chunk-2MLJ46ZZ.js → chunk-SGKTBHFQ.js} +13 -13
  52. package/Build/Workers/{chunk-EY5HOJFQ.js → chunk-SQTRWKO2.js} +5 -5
  53. package/Build/Workers/{chunk-AFGP5BXS.js → chunk-T43FXHNC.js} +7 -7
  54. package/Build/Workers/{chunk-IHFAFGR2.js → chunk-UEEGWJJP.js} +2 -2
  55. package/Build/Workers/{chunk-TMGLPEZW.js → chunk-WKXDCVBO.js} +4 -4
  56. package/Build/Workers/{chunk-VRAAQ3FS.js → chunk-Y5AJSEEN.js} +2 -2
  57. package/Build/Workers/{chunk-Y5MRBKQN.js → chunk-ZIW5FCIW.js} +18 -18
  58. package/Build/Workers/combineGeometry.js +24 -24
  59. package/Build/Workers/createBoxGeometry.js +18 -18
  60. package/Build/Workers/createBoxOutlineGeometry.js +16 -16
  61. package/Build/Workers/createCircleGeometry.js +26 -26
  62. package/Build/Workers/createCircleOutlineGeometry.js +19 -19
  63. package/Build/Workers/createCoplanarPolygonGeometry.js +33 -33
  64. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +31 -31
  65. package/Build/Workers/createCorridorGeometry.js +29 -29
  66. package/Build/Workers/createCorridorOutlineGeometry.js +28 -28
  67. package/Build/Workers/createCylinderGeometry.js +20 -20
  68. package/Build/Workers/createCylinderOutlineGeometry.js +18 -18
  69. package/Build/Workers/createEllipseGeometry.js +26 -26
  70. package/Build/Workers/createEllipseOutlineGeometry.js +19 -19
  71. package/Build/Workers/createEllipsoidGeometry.js +19 -19
  72. package/Build/Workers/createEllipsoidOutlineGeometry.js +18 -18
  73. package/Build/Workers/createFrustumGeometry.js +18 -18
  74. package/Build/Workers/createFrustumOutlineGeometry.js +18 -18
  75. package/Build/Workers/createGeometry.js +24 -24
  76. package/Build/Workers/createGroundPolylineGeometry.js +22 -22
  77. package/Build/Workers/createPlaneGeometry.js +16 -16
  78. package/Build/Workers/createPlaneOutlineGeometry.js +15 -15
  79. package/Build/Workers/createPolygonGeometry.js +32 -32
  80. package/Build/Workers/createPolygonOutlineGeometry.js +30 -30
  81. package/Build/Workers/createPolylineGeometry.js +25 -25
  82. package/Build/Workers/createPolylineVolumeGeometry.js +31 -31
  83. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +27 -27
  84. package/Build/Workers/createRectangleGeometry.js +27 -27
  85. package/Build/Workers/createRectangleOutlineGeometry.js +20 -20
  86. package/Build/Workers/createSimplePolylineGeometry.js +23 -23
  87. package/Build/Workers/createSphereGeometry.js +19 -19
  88. package/Build/Workers/createSphereOutlineGeometry.js +18 -18
  89. package/Build/Workers/createTaskProcessorWorker.js +3 -3
  90. package/Build/Workers/createVectorTileClampedPolylines.js +14 -14
  91. package/Build/Workers/createVectorTileGeometries.js +24 -24
  92. package/Build/Workers/createVectorTilePoints.js +13 -13
  93. package/Build/Workers/createVectorTilePolygons.js +22 -22
  94. package/Build/Workers/createVectorTilePolylines.js +14 -14
  95. package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +25 -25
  96. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +22 -22
  97. package/Build/Workers/createVerticesFromHeightmap.js +22 -22
  98. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +20 -20
  99. package/Build/Workers/createWallGeometry.js +24 -24
  100. package/Build/Workers/createWallOutlineGeometry.js +23 -23
  101. package/Build/Workers/decodeDraco.js +10 -10
  102. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
  103. package/Build/Workers/decodeI3S.js +10 -10
  104. package/Build/Workers/gaussianSplatSorter.js +4 -4
  105. package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
  106. package/Build/Workers/incrementallyBuildTerrainPicker.js +10 -10
  107. package/Build/Workers/transcodeKTX2.js +6 -6
  108. package/Build/Workers/transferTypedArrayTest.js +1 -1
  109. package/Build/Workers/upsampleQuantizedTerrainMesh.js +22 -22
  110. package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -25
  111. package/Source/Core/AttributeCompression.js +53 -6
  112. package/Source/Core/Cartesian2.js +689 -684
  113. package/Source/Core/Cartesian3.js +1044 -1043
  114. package/Source/Core/Cartesian4.js +816 -813
  115. package/Source/Core/GoogleMaps.js +23 -2
  116. package/Source/Core/Ion.js +1 -1
  117. package/Source/Core/OpenCageGeocoderService.js +2 -3
  118. package/Source/Core/globalTypes.js +16 -0
  119. package/Source/Renderer/ShaderDestination.js +54 -13
  120. package/Source/Scene/ArcGisMapService.js +1 -1
  121. package/Source/Scene/Billboard.js +7 -4
  122. package/Source/Scene/BillboardCollection.js +64 -25
  123. package/Source/Scene/BufferLoader.js +65 -74
  124. package/Source/Scene/CubeMapPanorama.js +351 -0
  125. package/Source/Scene/DerivedCommand.js +8 -31
  126. package/Source/Scene/DracoLoader.js +79 -78
  127. package/Source/Scene/EquirectangularPanorama.js +264 -0
  128. package/Source/Scene/FrameState.js +7 -0
  129. package/Source/Scene/GaussianSplatPrimitive.js +906 -167
  130. package/Source/Scene/GlobeSurfaceShaderSet.js +36 -32
  131. package/Source/Scene/GltfBufferViewLoader.js +109 -118
  132. package/Source/Scene/GltfDracoLoader.js +167 -176
  133. package/Source/Scene/GltfImageLoader.js +91 -101
  134. package/Source/Scene/GltfIndexBufferLoader.js +228 -241
  135. package/Source/Scene/GltfJsonLoader.js +90 -99
  136. package/Source/Scene/GltfLoader.js +313 -324
  137. package/Source/Scene/GltfSpzLoader.js +127 -134
  138. package/Source/Scene/GltfStructuralMetadataLoader.js +181 -186
  139. package/Source/Scene/GltfTextureLoader.js +217 -231
  140. package/Source/Scene/GltfVertexBufferLoader.js +267 -276
  141. package/Source/Scene/GoogleStreetViewCubeMapPanoramaProvider.js +341 -0
  142. package/Source/Scene/Label.js +6 -4
  143. package/Source/Scene/LabelCollection.js +59 -1
  144. package/Source/Scene/MetadataClassProperty.js +212 -7
  145. package/Source/Scene/MetadataComponentType.js +162 -127
  146. package/Source/Scene/MetadataSchemaLoader.js +60 -67
  147. package/Source/Scene/MetadataTable.js +14 -0
  148. package/Source/Scene/MetadataTableProperty.js +14 -0
  149. package/Source/Scene/Model/B3dmLoader.js +216 -224
  150. package/Source/Scene/Model/CustomShader.js +6 -1
  151. package/Source/Scene/Model/CustomShaderPipelineStage.js +122 -7
  152. package/Source/Scene/Model/GeoJsonLoader.js +53 -61
  153. package/Source/Scene/Model/GeometryPipelineStage.js +17 -3
  154. package/Source/Scene/Model/I3dmLoader.js +232 -240
  155. package/Source/Scene/Model/MaterialPipelineStage.js +1 -1
  156. package/Source/Scene/Model/MetadataPipelineStage.js +438 -22
  157. package/Source/Scene/Model/PntsLoader.js +78 -89
  158. package/Source/Scene/Panorama.js +53 -0
  159. package/Source/Scene/PanoramaProvider.js +43 -0
  160. package/Source/Scene/PointPrimitiveCollection.js +14 -22
  161. package/Source/Scene/PropertyTable.js +43 -0
  162. package/Source/Scene/PropertyTexture.js +1 -1
  163. package/Source/Scene/PropertyTextureProperty.js +0 -97
  164. package/Source/Scene/ResourceLoader.js +84 -92
  165. package/Source/Scene/Scene.js +12 -0
  166. package/Source/Scene/SkyBox.js +29 -164
  167. package/Source/Scene/StructuralMetadata.js +18 -3
  168. package/Source/Scene/parseStructuralMetadata.js +244 -0
  169. package/Source/Shaders/BillboardCollectionFS.glsl +66 -40
  170. package/Source/Shaders/BillboardCollectionFS.js +67 -40
  171. package/Source/Shaders/BillboardCollectionVS.glsl +22 -31
  172. package/Source/Shaders/BillboardCollectionVS.js +22 -31
  173. package/Source/Shaders/Builtin/CzmBuiltins.js +4 -0
  174. package/Source/Shaders/Builtin/Functions/decodeRGB8.glsl +22 -0
  175. package/Source/Shaders/Builtin/Functions/decodeRGB8.js +24 -0
  176. package/Source/Shaders/Builtin/Functions/unpackTexture.glsl +35 -0
  177. package/Source/Shaders/Builtin/Functions/unpackTexture.js +37 -0
  178. package/Source/Shaders/CubeMapPanoramaVS.glsl +11 -0
  179. package/Source/Shaders/CubeMapPanoramaVS.js +13 -0
  180. package/Source/Shaders/Model/MetadataStageFS.glsl +2 -1
  181. package/Source/Shaders/Model/MetadataStageFS.js +2 -1
  182. package/Source/Shaders/Model/MetadataStageVS.glsl +2 -1
  183. package/Source/Shaders/Model/MetadataStageVS.js +2 -1
  184. package/Source/Shaders/Model/ModelFS.glsl +2 -2
  185. package/Source/Shaders/Model/ModelFS.js +2 -2
  186. package/Source/Shaders/Model/ModelVS.glsl +2 -2
  187. package/Source/Shaders/Model/ModelVS.js +2 -2
  188. package/Source/Shaders/PointPrimitiveCollectionVS.glsl +8 -39
  189. package/Source/Shaders/PointPrimitiveCollectionVS.js +8 -39
  190. package/index.d.ts +564 -189
  191. package/index.js +127 -119
  192. package/package.json +1 -1
  193. package/Build/Workers/chunk-LYBNPUEI.js +0 -1443
@@ -23,53 +23,47 @@ import ModelUtility from "./Model/ModelUtility.js";
23
23
  * Implements the {@link ResourceLoader} interface.
24
24
  * </p>
25
25
  *
26
- * @alias GltfJsonLoader
27
- * @constructor
28
- * @augments ResourceLoader
29
- *
30
- * @param {object} options Object with the following properties:
31
- * @param {ResourceCache} options.resourceCache The {@link ResourceCache} (to avoid circular dependencies).
32
- * @param {Resource} options.gltfResource The {@link Resource} containing the glTF.
33
- * @param {Resource} options.baseResource The {@link Resource} that paths in the glTF JSON are relative to.
34
- * @param {Uint8Array} [options.typedArray] The typed array containing the glTF contents.
35
- * @param {object} [options.gltfJson] The parsed glTF JSON contents.
36
- * @param {string} [options.cacheKey] The cache key of the resource.
37
- *
38
26
  * @private
39
27
  */
40
- function GltfJsonLoader(options) {
41
- options = options ?? Frozen.EMPTY_OBJECT;
42
- const resourceCache = options.resourceCache;
43
- const gltfResource = options.gltfResource;
44
- const baseResource = options.baseResource;
45
- const typedArray = options.typedArray;
46
- const gltfJson = options.gltfJson;
47
- const cacheKey = options.cacheKey;
48
-
49
- //>>includeStart('debug', pragmas.debug);
50
- Check.typeOf.func("options.resourceCache", resourceCache);
51
- Check.typeOf.object("options.gltfResource", gltfResource);
52
- Check.typeOf.object("options.baseResource", baseResource);
53
- //>>includeEnd('debug');
54
-
55
- this._resourceCache = resourceCache;
56
- this._gltfResource = gltfResource;
57
- this._baseResource = baseResource;
58
- this._typedArray = typedArray;
59
- this._gltfJson = gltfJson;
60
- this._cacheKey = cacheKey;
61
- this._gltf = undefined;
62
- this._bufferLoaders = [];
63
- this._state = ResourceLoaderState.UNLOADED;
64
- this._promise = undefined;
65
- }
66
-
67
- if (defined(Object.create)) {
68
- GltfJsonLoader.prototype = Object.create(ResourceLoader.prototype);
69
- GltfJsonLoader.prototype.constructor = GltfJsonLoader;
70
- }
28
+ class GltfJsonLoader extends ResourceLoader {
29
+ /**
30
+ * @param {object} options Object with the following properties:
31
+ * @param {ResourceCache} options.resourceCache The {@link ResourceCache} (to avoid circular dependencies).
32
+ * @param {Resource} options.gltfResource The {@link Resource} containing the glTF.
33
+ * @param {Resource} options.baseResource The {@link Resource} that paths in the glTF JSON are relative to.
34
+ * @param {Uint8Array} [options.typedArray] The typed array containing the glTF contents.
35
+ * @param {object} [options.gltfJson] The parsed glTF JSON contents.
36
+ * @param {string} [options.cacheKey] The cache key of the resource.
37
+ */
38
+ constructor(options) {
39
+ super();
40
+
41
+ options = options ?? Frozen.EMPTY_OBJECT;
42
+ const resourceCache = options.resourceCache;
43
+ const gltfResource = options.gltfResource;
44
+ const baseResource = options.baseResource;
45
+ const typedArray = options.typedArray;
46
+ const gltfJson = options.gltfJson;
47
+ const cacheKey = options.cacheKey;
48
+
49
+ //>>includeStart('debug', pragmas.debug);
50
+ Check.typeOf.func("options.resourceCache", resourceCache);
51
+ Check.typeOf.object("options.gltfResource", gltfResource);
52
+ Check.typeOf.object("options.baseResource", baseResource);
53
+ //>>includeEnd('debug');
54
+
55
+ this._resourceCache = resourceCache;
56
+ this._gltfResource = gltfResource;
57
+ this._baseResource = baseResource;
58
+ this._typedArray = typedArray;
59
+ this._gltfJson = gltfJson;
60
+ this._cacheKey = cacheKey;
61
+ this._gltf = undefined;
62
+ this._bufferLoaders = [];
63
+ this._state = ResourceLoaderState.UNLOADED;
64
+ this._promise = undefined;
65
+ }
71
66
 
72
- Object.defineProperties(GltfJsonLoader.prototype, {
73
67
  /**
74
68
  * The cache key of the resource.
75
69
  *
@@ -79,11 +73,10 @@ Object.defineProperties(GltfJsonLoader.prototype, {
79
73
  * @readonly
80
74
  * @private
81
75
  */
82
- cacheKey: {
83
- get: function () {
84
- return this._cacheKey;
85
- },
86
- },
76
+ get cacheKey() {
77
+ return this._cacheKey;
78
+ }
79
+
87
80
  /**
88
81
  * The glTF JSON.
89
82
  *
@@ -93,38 +86,62 @@ Object.defineProperties(GltfJsonLoader.prototype, {
93
86
  * @readonly
94
87
  * @private
95
88
  */
96
- gltf: {
97
- get: function () {
98
- return this._gltf;
99
- },
100
- },
101
- });
102
-
103
- /**
104
- * Loads the resource.
105
- * @returns {Promise<GltfJsonLoader>} A promise which resolves to the loader when the resource loading is completed.
106
- * @private
107
- */
108
- GltfJsonLoader.prototype.load = async function () {
109
- if (defined(this._promise)) {
110
- return this._promise;
89
+ get gltf() {
90
+ return this._gltf;
111
91
  }
112
92
 
113
- this._state = ResourceLoaderState.LOADING;
93
+ /**
94
+ * Loads the resource.
95
+ * @returns {Promise<GltfJsonLoader>} A promise which resolves to the loader when the resource loading is completed.
96
+ * @private
97
+ */
98
+ async load() {
99
+ if (defined(this._promise)) {
100
+ return this._promise;
101
+ }
102
+
103
+ this._state = ResourceLoaderState.LOADING;
104
+
105
+ if (defined(this._gltfJson)) {
106
+ this._promise = processGltfJson(this, this._gltfJson);
107
+ return this._promise;
108
+ }
109
+
110
+ if (defined(this._typedArray)) {
111
+ this._promise = processGltfTypedArray(this, this._typedArray);
112
+ return this._promise;
113
+ }
114
114
 
115
- if (defined(this._gltfJson)) {
116
- this._promise = processGltfJson(this, this._gltfJson);
115
+ this._promise = loadFromUri(this);
117
116
  return this._promise;
118
117
  }
119
118
 
120
- if (defined(this._typedArray)) {
121
- this._promise = processGltfTypedArray(this, this._typedArray);
122
- return this._promise;
119
+ /**
120
+ * Unloads the resource.
121
+ * @private
122
+ */
123
+ unload() {
124
+ const bufferLoaders = this._bufferLoaders;
125
+ const bufferLoadersLength = bufferLoaders.length;
126
+ for (let i = 0; i < bufferLoadersLength; ++i) {
127
+ bufferLoaders[i] =
128
+ !bufferLoaders[i].isDestroyed() &&
129
+ this._resourceCache.unload(bufferLoaders[i]);
130
+ }
131
+ this._bufferLoaders.length = 0;
132
+
133
+ this._gltf = undefined;
123
134
  }
124
135
 
125
- this._promise = loadFromUri(this);
126
- return this._promise;
127
- };
136
+ /**
137
+ * Exposed for testing
138
+ *
139
+ * @private
140
+ */
141
+ _fetchGltf() {
142
+ return this._gltfResource.fetchArrayBuffer();
143
+ }
144
+ }
128
145
 
129
146
  async function loadFromUri(gltfJsonLoader) {
130
147
  let typedArray;
@@ -285,30 +302,4 @@ async function processGltfTypedArray(gltfJsonLoader, typedArray) {
285
302
  return processGltfJson(gltfJsonLoader, gltf);
286
303
  }
287
304
 
288
- /**
289
- * Unloads the resource.
290
- * @private
291
- */
292
- GltfJsonLoader.prototype.unload = function () {
293
- const bufferLoaders = this._bufferLoaders;
294
- const bufferLoadersLength = bufferLoaders.length;
295
- for (let i = 0; i < bufferLoadersLength; ++i) {
296
- bufferLoaders[i] =
297
- !bufferLoaders[i].isDestroyed() &&
298
- this._resourceCache.unload(bufferLoaders[i]);
299
- }
300
- this._bufferLoaders.length = 0;
301
-
302
- this._gltf = undefined;
303
- };
304
-
305
- /**
306
- * Exposed for testing
307
- *
308
- * @private
309
- */
310
- GltfJsonLoader.prototype._fetchGltf = function () {
311
- return this._gltfResource.fetchArrayBuffer();
312
- };
313
-
314
305
  export default GltfJsonLoader;