m4-w-fast 1.2.0 → 1.2.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.
Files changed (172) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/index.mjs +1 -1
  4. package/dist/intersect.worker.js +2 -2
  5. package/dist/isoBands.worker.js +1 -1
  6. package/dist/m4-w-fast.umd.js +1 -1
  7. package/dist/raster-leaflet/index.cjs +2 -2
  8. package/dist/raster-leaflet/index.js +1 -1
  9. package/dist/raster-leaflet/index.mjs +2 -2
  10. package/dist/raster-leaflet/m4-w-raster-leaflet.umd.js +2 -2
  11. package/dist/raster-mars3d/cesiumRasterPlaneRenderer.js +1 -1
  12. package/dist/raster-mars3d/cesiumRasterTextureAdapter.js +1 -1
  13. package/dist/raster-mars3d/index.cjs +2 -2
  14. package/dist/raster-mars3d/index.js +1 -1
  15. package/dist/raster-mars3d/index.mjs +2 -2
  16. package/dist/raster-mars3d/m4-w-raster-mars3d.umd.js +2 -2
  17. package/dist/raster-mars3d/mars3dRasterImageryProvider.js +1 -1
  18. package/dist/raster-mars3d/mars3dRasterPlaneLayer.js +1 -1
  19. package/dist/raster-mars3d/rasterPlaneGeometry.js +1 -1
  20. package/dist/raster-mars3d/rasterPlaneGridChunks.js +1 -1
  21. package/dist/raster-mars3d/rasterPlaneMaterial.js +1 -1
  22. package/dist/raster-overlay/color.js +1 -1
  23. package/dist/raster-overlay/core.js +1 -1
  24. package/dist/raster-overlay/index.cjs +2 -2
  25. package/dist/raster-overlay/index.js +1 -1
  26. package/dist/raster-overlay/index.mjs +2 -2
  27. package/dist/raster-overlay/leaflet-renderers/createRenderer.js +1 -1
  28. package/dist/raster-overlay/leafletLayer.js +1 -1
  29. package/dist/raster-overlay/m4-w-raster-overlay.umd.js +2 -2
  30. package/dist/raster-overlay/query.js +1 -1
  31. package/dist/raster-overlay/rendering/createRasterRenderer.js +1 -1
  32. package/dist/raster-overlay/rendering/index.js +1 -1
  33. package/dist/raster-overlay/rendering/rasterRenderState.js +1 -1
  34. package/dist/raster-overlay/rendering/webgl2RasterRenderer.js +1 -1
  35. package/dist/raster-overlay/rendering/webgpuRasterRenderer.js +1 -1
  36. package/dist/raster-rendering/index.cjs +2 -2
  37. package/dist/raster-rendering/index.js +1 -1
  38. package/dist/raster-rendering/index.mjs +2 -2
  39. package/dist/raster-rendering/m4-w-raster-rendering.umd.js +2 -2
  40. package/dist/raster-rendering/webgpuRasterTileRenderer.js +1 -1
  41. package/dist/readFile.js +1 -1
  42. package/dist/rendering/index.js +1 -1
  43. package/dist/rendering/webgl2/baseWebgl2Renderer.js +1 -1
  44. package/dist/rendering/webgl2/index.js +1 -1
  45. package/dist/rendering/webgl2/webgl2CoverageResources.js +1 -1
  46. package/dist/rendering/webgl2/webgl2VisualizationResources.js +1 -1
  47. package/dist/rendering/webgpu/baseWebgpuRenderer.js +1 -1
  48. package/dist/rendering/webgpu/index.js +1 -1
  49. package/dist/rendering/webgpu/visualizationParams.js +1 -1
  50. package/dist/rendering/webgpu/visualizationResources.js +1 -1
  51. package/dist/rendering/webgpu/webgpuCoverageResources.js +1 -1
  52. package/dist/road-overlay/coordinateTransform.js +1 -1
  53. package/dist/road-overlay/index.cjs +2 -2
  54. package/dist/road-overlay/index.js +1 -1
  55. package/dist/road-overlay/index.mjs +2 -2
  56. package/dist/road-overlay/leaflet-renderers/createRenderer.js +1 -1
  57. package/dist/road-overlay/leafletLayer.js +1 -1
  58. package/dist/road-overlay/m4-w-road-overlay.umd.js +2 -2
  59. package/dist/road-overlay/options.js +1 -1
  60. package/dist/road-overlay/rendering/index.js +1 -1
  61. package/dist/road-overlay/rendering/roadRenderState.js +1 -1
  62. package/dist/road-overlay/rendering/webgl2RoadRenderer.js +1 -1
  63. package/dist/road-overlay/rendering/webgpuRoadRenderer.js +1 -1
  64. package/dist/road-overlay/roadData.js +1 -1
  65. package/dist/road-overlay/roadGeometry.js +1 -1
  66. package/dist/road-overlay/roadMesh.js +1 -1
  67. package/dist/shared/coordinate-shader/webgl2/index.js +1 -1
  68. package/dist/shared/coordinate-shader/webgpu/index.js +1 -1
  69. package/dist/shared/map/index.js +1 -1
  70. package/dist/shared/map/leaflet.js +1 -1
  71. package/dist/shared/polygon/contains.js +1 -1
  72. package/dist/shared/polygon/index.js +1 -1
  73. package/dist/shared/polygon/polygonMesh.js +1 -1
  74. package/dist/shared/shader/assemble.js +1 -1
  75. package/dist/shared/visualization/index.js +1 -1
  76. package/dist/shared/visualization/shader/webgl2/index.js +1 -1
  77. package/dist/shared/visualization/shader/webgpu/index.js +1 -1
  78. package/dist/shared/visualization/utils.js +1 -1
  79. package/dist/volume-data/index.cjs +1 -0
  80. package/dist/volume-data/index.d.ts +5 -0
  81. package/dist/volume-data/index.js +1 -0
  82. package/dist/volume-data/index.mjs +1 -0
  83. package/dist/volume-data/input.d.ts +2 -0
  84. package/dist/volume-data/input.js +1 -0
  85. package/dist/volume-data/loadVolumeSource.d.ts +2 -0
  86. package/dist/volume-data/loadVolumeSource.js +1 -0
  87. package/dist/volume-data/m4-w-volume-data.umd.js +1 -0
  88. package/dist/volume-data/parserRegistry.d.ts +5 -0
  89. package/dist/volume-data/parserRegistry.js +1 -0
  90. package/dist/volume-data/radarGridVolumeMetadata.d.ts +2 -0
  91. package/dist/volume-data/radarGridVolumeMetadata.js +1 -0
  92. package/dist/volume-data/radarGridVolumeParser.d.ts +2 -0
  93. package/dist/volume-data/radarGridVolumeParser.js +1 -0
  94. package/dist/volume-data/radarGridVolumeSource.d.ts +3 -0
  95. package/dist/volume-data/radarGridVolumeSource.js +1 -0
  96. package/dist/volume-data/volumeDataError.d.ts +5 -0
  97. package/dist/volume-data/volumeDataError.js +1 -0
  98. package/dist/volume-data/volumeDataTypes.d.ts +54 -0
  99. package/dist/volume-data/volumeDataTypes.js +1 -0
  100. package/dist/volume-data/zipArchive.d.ts +6 -0
  101. package/dist/volume-data/zipArchive.js +1 -0
  102. package/dist/volume-mars3d/createMars3dVolumeScene.js +1 -1
  103. package/dist/volume-mars3d/index.cjs +1 -1
  104. package/dist/volume-mars3d/index.js +1 -1
  105. package/dist/volume-mars3d/index.mjs +1 -1
  106. package/dist/volume-mars3d/m4-w-volume-mars3d.umd.js +1 -1
  107. package/dist/volume-mars3d/mars3dCanvasCompensation.js +1 -1
  108. package/dist/volume-mars3d/mars3dRaymarchShader.js +1 -1
  109. package/dist/volume-mars3d/mars3dVolumeLayer.js +1 -1
  110. package/dist/volume-mars3d/mars3dVolumeRenderer.js +1 -1
  111. package/dist/volume-mars3d-native/index.cjs +1 -1
  112. package/dist/volume-mars3d-native/index.js +1 -1
  113. package/dist/volume-mars3d-native/index.mjs +1 -1
  114. package/dist/volume-mars3d-native/liveUpdateScheduler.js +1 -1
  115. package/dist/volume-mars3d-native/m4-w-volume-mars3d-native.umd.js +1 -1
  116. package/dist/volume-mars3d-native/mars3dNativeSliceLayer.js +1 -1
  117. package/dist/volume-mars3d-native/mars3dNativeSliceRenderer.js +1 -1
  118. package/dist/volume-mars3d-native/mars3dNativeVolumeLayer.js +1 -1
  119. package/dist/volume-mars3d-native/mars3dNativeVolumeRenderer.js +1 -1
  120. package/dist/volume-mars3d-native/nativeAxisSliceRenderer.js +1 -1
  121. package/dist/volume-mars3d-native/nativeSliceAtlas.js +1 -1
  122. package/dist/volume-mars3d-native/nativeVoxelProvider.js +1 -1
  123. package/dist/volume-mars3d-native/nativeVoxelShader.js +1 -1
  124. package/dist/volume-mars3d-native/voxelData.js +1 -1
  125. package/dist/volume-scene/brickLayout.js +1 -1
  126. package/dist/volume-scene/brickResidency.js +1 -1
  127. package/dist/volume-scene/camera.js +1 -1
  128. package/dist/volume-scene/createVolumeScene.js +1 -1
  129. package/dist/volume-scene/geographicVolume.js +1 -1
  130. package/dist/volume-scene/inMemoryVolumeSource.js +1 -1
  131. package/dist/volume-scene/index.cjs +1 -1
  132. package/dist/volume-scene/index.js +1 -1
  133. package/dist/volume-scene/index.mjs +1 -1
  134. package/dist/volume-scene/m4-w-volume-scene.umd.js +1 -1
  135. package/dist/volume-scene/matrix.js +1 -1
  136. package/dist/volume-scene/rendering/webgpu/index.js +1 -1
  137. package/dist/volume-scene/rendering/webgpu/webgpuBrickAtlas.js +1 -1
  138. package/dist/volume-scene/rendering/webgpu/webgpuSceneAttachments.js +1 -1
  139. package/dist/volume-scene/rendering/webgpu/webgpuSceneMeshResources.js +1 -1
  140. package/dist/volume-scene/rendering/webgpu/webgpuSliceResources.js +1 -1
  141. package/dist/volume-scene/rendering/webgpu/webgpuTransferResources.js +1 -1
  142. package/dist/volume-scene/rendering/webgpu/webgpuVolumeSceneRenderer.js +1 -1
  143. package/dist/volume-scene/routeProfileMesh.js +1 -1
  144. package/dist/volume-scene/sliceInteractionController.js +1 -1
  145. package/dist/volume-scene/sliceMarkerOverlay.js +1 -1
  146. package/dist/volume-scene/sliceState.js +1 -1
  147. package/dist/volume-scene/volumeBrickData.js +1 -1
  148. package/dist/volume-scene/volumeScene.js +1 -1
  149. package/dist/volume-scene/volumeTransfer.js +1 -1
  150. package/dist/volume-scene/volumeValidation.js +1 -1
  151. package/dist/volume-section/createHorizontalRasterGrid.d.ts +3 -0
  152. package/dist/volume-section/createHorizontalRasterGrid.js +1 -0
  153. package/dist/volume-section/createVolumeSection.d.ts +3 -0
  154. package/dist/volume-section/createVolumeSection.js +1 -0
  155. package/dist/volume-section/createVolumeSectionRasterGrid.d.ts +3 -0
  156. package/dist/volume-section/createVolumeSectionRasterGrid.js +1 -0
  157. package/dist/volume-section/createVolumeSectionRouteProfile.d.ts +3 -0
  158. package/dist/volume-section/createVolumeSectionRouteProfile.js +1 -0
  159. package/dist/volume-section/geographic.d.ts +3 -0
  160. package/dist/volume-section/geographic.js +1 -0
  161. package/dist/volume-section/gridLayerStatistics.d.ts +9 -0
  162. package/dist/volume-section/gridLayerStatistics.js +1 -0
  163. package/dist/volume-section/index.cjs +1 -0
  164. package/dist/volume-section/index.d.ts +8 -0
  165. package/dist/volume-section/index.js +1 -0
  166. package/dist/volume-section/index.mjs +1 -0
  167. package/dist/volume-section/m4-w-volume-section.umd.js +1 -0
  168. package/dist/volume-section/routeSampling.d.ts +9 -0
  169. package/dist/volume-section/routeSampling.js +1 -0
  170. package/dist/volume-section/volumeSectionTypes.d.ts +39 -0
  171. package/dist/volume-section/volumeSectionTypes.js +1 -0
  172. package/package.json +58 -12
@@ -1 +1 @@
1
- const _0x219b8a=_0x4ee7;(function(_0x577cda,_0x57ecfa){const _0x4378d0=_0x4ee7,_0x5b0e49=_0x577cda();while(!![]){try{const _0x1a08c2=parseInt(_0x4378d0(0x118))/0x1+-parseInt(_0x4378d0(0x104))/0x2*(parseInt(_0x4378d0(0x10f))/0x3)+parseInt(_0x4378d0(0x10a))/0x4+-parseInt(_0x4378d0(0x11f))/0x5+-parseInt(_0x4378d0(0xf9))/0x6+parseInt(_0x4378d0(0x106))/0x7+parseInt(_0x4378d0(0x124))/0x8;if(_0x1a08c2===_0x57ecfa)break;else _0x5b0e49['push'](_0x5b0e49['shift']());}catch(_0x1c8a5a){_0x5b0e49['push'](_0x5b0e49['shift']());}}}(_0x578a,0x92136));import{normalizeColorStops}from'../raster-overlay/color';import{RasterRenderState}from'../raster-overlay/rendering/rasterRenderState';function _0x4ee7(_0x55f73f,_0x39d0a2){const _0x578a2b=_0x578a();return _0x4ee7=function(_0x4ee7c4,_0x231034){_0x4ee7c4=_0x4ee7c4-0xf9;let _0x410806=_0x578a2b[_0x4ee7c4];return _0x410806;},_0x4ee7(_0x55f73f,_0x39d0a2);}function _0x578a(){const _0x28c92f=['height','smooth','requestRender','destroyDetachedEntries','add','sampleMode','setGrid','setSampleMode','setOpacity','currentHeight','2562570oQEfmw','material','push','colorStops','destroyed','setColorStops','shown','maximumTextureSize','entries','assertAlive','textureAdapter','2CQzRys','primitives','4569803zklwNC','isDestroyed','show','grid','1598144AjmjDk','Cesium','scene','destroyEntry','primitive','1270239KEzJyO','destroy','setColorMode','已销毁的\x20Mars3D\x20高度栅格图层不能继续更新。','colorMode','interpolate','colorRange','setColorRange','map','1042181oyTiVW','rebuildGeometry','length','removePrimitive','remove','update','createEntries','3901160jLxgNz','applyInitialState','state','updateGrid','addEntries','1076160xilUFB'];_0x578a=function(){return _0x28c92f;};return _0x578a();}import{CesiumRasterTextureAdapter}from'./cesiumRasterTextureAdapter';import{createRasterPlanePrimitive,validateHeight}from'./rasterPlaneGeometry';import{createRasterPlaneGridChunks,gridChunkLayoutEqual}from'./rasterPlaneGridChunks';import{RasterPlaneMaterial}from'./rasterPlaneMaterial';export class CesiumRasterPlaneRenderer{['Cesium'];[_0x219b8a(0x117)];[_0x219b8a(0x121)]=new RasterRenderState();[_0x219b8a(0x103)];[_0x219b8a(0x101)]=[];[_0x219b8a(0x12e)];[_0x219b8a(0xff)];[_0x219b8a(0xfd)]=![];constructor(_0x45cba7,_0x329092,_0x1fdf51){const _0x5c0bc1=_0x219b8a;validateHeight(_0x1fdf51[_0x5c0bc1(0x125)]),this[_0x5c0bc1(0x10b)]=_0x45cba7,this[_0x5c0bc1(0x117)]=_0x329092,this[_0x5c0bc1(0x12e)]=_0x1fdf51['height'],this[_0x5c0bc1(0xff)]=_0x1fdf51['show']??!![],this[_0x5c0bc1(0x120)](_0x1fdf51),this[_0x5c0bc1(0x103)]=new CesiumRasterTextureAdapter(_0x45cba7,_0x329092[_0x5c0bc1(0x10c)]);const _0x15897a=createRasterPlaneGridChunks(_0x1fdf51[_0x5c0bc1(0x109)],this[_0x5c0bc1(0x103)][_0x5c0bc1(0x100)]),_0x4c42d9=this[_0x5c0bc1(0x11e)](_0x15897a);try{this[_0x5c0bc1(0x123)](_0x4c42d9),this[_0x5c0bc1(0x101)]=_0x4c42d9;}catch(_0x1efefa){this['destroyDetachedEntries'](_0x4c42d9);throw _0x1efefa;}this[_0x5c0bc1(0x117)]['scene'][_0x5c0bc1(0x127)]();}get[_0x219b8a(0x125)](){return this['currentHeight'];}['setShow'](_0x50d154){const _0x1017a8=_0x219b8a;this['assertAlive'](),this[_0x1017a8(0xff)]=_0x50d154;for(const _0x55c978 of this['entries'])_0x55c978[_0x1017a8(0x10e)][_0x1017a8(0x108)]=_0x50d154;this['map'][_0x1017a8(0x10c)][_0x1017a8(0x127)]();}[_0x219b8a(0x11d)](_0x1e6f02){const _0x4c2618=_0x219b8a;this[_0x4c2618(0x102)]();if(_0x1e6f02[_0x4c2618(0x125)]!==undefined)validateHeight(_0x1e6f02[_0x4c2618(0x125)]);const _0x143190=_0x1e6f02['height']!==undefined&&_0x1e6f02[_0x4c2618(0x125)]!==this[_0x4c2618(0x12e)];if(_0x1e6f02[_0x4c2618(0x109)])this[_0x4c2618(0x121)][_0x4c2618(0x12b)](_0x1e6f02['grid']);if(_0x1e6f02[_0x4c2618(0xfc)])this[_0x4c2618(0x121)][_0x4c2618(0xfe)](normalizeColorStops(_0x1e6f02[_0x4c2618(0xfc)]));if(_0x1e6f02['colorRange']!==undefined)this[_0x4c2618(0x121)][_0x4c2618(0x116)](_0x1e6f02[_0x4c2618(0x115)]);if(_0x1e6f02['colorMode'])this['state'][_0x4c2618(0x111)](_0x1e6f02[_0x4c2618(0x113)]);if(_0x1e6f02['sampleMode'])this[_0x4c2618(0x121)][_0x4c2618(0x12c)](_0x1e6f02['sampleMode']);if(_0x1e6f02['opacity']!==undefined)this['state'][_0x4c2618(0x12d)](_0x1e6f02['opacity']);if(_0x1e6f02[_0x4c2618(0x125)]!==undefined)this[_0x4c2618(0x12e)]=_0x1e6f02[_0x4c2618(0x125)];let _0x156935=![];if(_0x1e6f02['grid']){const _0x48649f=createRasterPlaneGridChunks(_0x1e6f02[_0x4c2618(0x109)],this[_0x4c2618(0x103)]['maximumTextureSize']),_0x5e81bc=this[_0x4c2618(0x101)]['map'](_0x5924f8=>_0x5924f8[_0x4c2618(0x109)]);if(gridChunkLayoutEqual(_0x5e81bc,_0x48649f))for(let _0x249530=0x0;_0x249530<_0x48649f[_0x4c2618(0x11a)];_0x249530+=0x1){const _0x4e59f5=this[_0x4c2618(0x101)][_0x249530],_0x3a6764=_0x48649f[_0x249530];_0x4e59f5[_0x4c2618(0x109)]=_0x3a6764,_0x4e59f5['material'][_0x4c2618(0x122)](this[_0x4c2618(0x121)],_0x3a6764);}else this['replaceEntries'](_0x48649f),_0x156935=!![];}if(_0x1e6f02[_0x4c2618(0xfc)]&&!_0x156935){for(const _0xd3bc8f of this[_0x4c2618(0x101)])_0xd3bc8f[_0x4c2618(0xfa)]['updateColorStops'](this[_0x4c2618(0x121)],_0xd3bc8f[_0x4c2618(0x109)]);}if(!_0x156935){for(const _0x4bf86e of this[_0x4c2618(0x101)])_0x4bf86e[_0x4c2618(0xfa)]['updateUniforms'](this[_0x4c2618(0x121)],_0x4bf86e[_0x4c2618(0x109)]);}if(_0x143190&&!_0x156935)this[_0x4c2618(0x119)]();this[_0x4c2618(0x117)][_0x4c2618(0x10c)][_0x4c2618(0x127)]();}['destroy'](){const _0x56234a=_0x219b8a;if(this[_0x56234a(0xfd)])return;this[_0x56234a(0xfd)]=!![];const _0x369c3c=this[_0x56234a(0x101)];this[_0x56234a(0x101)]=[];for(const _0x3fb629 of _0x369c3c)this['destroyEntry'](_0x3fb629);}[_0x219b8a(0x120)](_0x401f7e){const _0x77e1e6=_0x219b8a;this['state'][_0x77e1e6(0x12b)](_0x401f7e[_0x77e1e6(0x109)]),this[_0x77e1e6(0x121)]['setColorStops'](normalizeColorStops(_0x401f7e[_0x77e1e6(0xfc)])),this['state']['setColorRange'](_0x401f7e[_0x77e1e6(0x115)]??null),this[_0x77e1e6(0x121)][_0x77e1e6(0x111)](_0x401f7e[_0x77e1e6(0x113)]??_0x77e1e6(0x126)),this[_0x77e1e6(0x121)]['setSampleMode'](_0x401f7e[_0x77e1e6(0x12a)]??_0x77e1e6(0x114)),this['state'][_0x77e1e6(0x12d)](_0x401f7e['opacity']??0x1);}['createEntry'](_0x39f499){const _0x3ef5ac=_0x219b8a,_0x5b3238=new RasterPlaneMaterial(this[_0x3ef5ac(0x10b)],this[_0x3ef5ac(0x103)],this['state'],_0x39f499);try{const _0x2b409e=createRasterPlanePrimitive(this['Cesium'],_0x39f499,this[_0x3ef5ac(0x12e)],_0x5b3238['material'],this['shown']);return{'grid':_0x39f499,'material':_0x5b3238,'primitive':_0x2b409e};}catch(_0xac873){_0x5b3238[_0x3ef5ac(0x110)]();throw _0xac873;}}[_0x219b8a(0x11e)](_0x1e8c0c){const _0x561e13=_0x219b8a,_0x594088=[];try{for(const _0x2daf4b of _0x1e8c0c)_0x594088['push'](this['createEntry'](_0x2daf4b));return _0x594088;}catch(_0x49fa6f){this[_0x561e13(0x128)](_0x594088);throw _0x49fa6f;}}[_0x219b8a(0x123)](_0x1ac063){const _0x2aaa1f=_0x219b8a,_0x32f94e=[];try{for(const _0x5f1f6f of _0x1ac063){this['map'][_0x2aaa1f(0x10c)][_0x2aaa1f(0x105)][_0x2aaa1f(0x129)](_0x5f1f6f[_0x2aaa1f(0x10e)]),_0x32f94e['push'](_0x5f1f6f);}}catch(_0xd6f099){for(const _0x2afae4 of _0x32f94e)this[_0x2aaa1f(0x11b)](_0x2afae4[_0x2aaa1f(0x10e)]);throw _0xd6f099;}}['replaceEntries'](_0x525dac){const _0x1e47e=_0x219b8a,_0x25a746=this['createEntries'](_0x525dac);try{this['addEntries'](_0x25a746);}catch(_0x48d04a){this[_0x1e47e(0x128)](_0x25a746);throw _0x48d04a;}const _0xa7b7cf=this[_0x1e47e(0x101)];for(const _0x5aefc5 of _0xa7b7cf)_0x5aefc5[_0x1e47e(0x10e)][_0x1e47e(0x108)]=![];this[_0x1e47e(0x101)]=_0x25a746;for(const _0x4eda50 of _0xa7b7cf)this[_0x1e47e(0x10d)](_0x4eda50);}[_0x219b8a(0x119)](){const _0x122fda=_0x219b8a,_0x1f6008=[];try{for(const _0xc44842 of this['entries']){_0x1f6008[_0x122fda(0xfb)](createRasterPlanePrimitive(this[_0x122fda(0x10b)],_0xc44842[_0x122fda(0x109)],this['currentHeight'],_0xc44842[_0x122fda(0xfa)]['material'],this[_0x122fda(0xff)]));}}catch(_0x1b2985){for(const _0xe869b4 of _0x1f6008){if(!_0xe869b4['isDestroyed']())_0xe869b4[_0x122fda(0x110)]();}throw _0x1b2985;}const _0x5b26ed=[];try{for(const _0x197ada of _0x1f6008){this[_0x122fda(0x117)][_0x122fda(0x10c)][_0x122fda(0x105)][_0x122fda(0x129)](_0x197ada),_0x5b26ed[_0x122fda(0xfb)](_0x197ada);}}catch(_0x35cf0b){for(const _0x55cbb8 of _0x5b26ed)this['removePrimitive'](_0x55cbb8);for(const _0x4ea422 of _0x1f6008){if(!_0x4ea422[_0x122fda(0x107)]())_0x4ea422['destroy']();}throw _0x35cf0b;}const _0x3c73bf=this['entries'][_0x122fda(0x117)](_0x12b56d=>_0x12b56d[_0x122fda(0x10e)]);for(const _0x2b11ec of _0x3c73bf)_0x2b11ec[_0x122fda(0x108)]=![];for(let _0x412d0f=0x0;_0x412d0f<this[_0x122fda(0x101)][_0x122fda(0x11a)];_0x412d0f+=0x1)this[_0x122fda(0x101)][_0x412d0f][_0x122fda(0x10e)]=_0x1f6008[_0x412d0f];for(const _0x1ef6e9 of _0x3c73bf)this[_0x122fda(0x11b)](_0x1ef6e9);}[_0x219b8a(0x10d)](_0x2fe2ed){const _0x2a93f4=_0x219b8a;this[_0x2a93f4(0x11b)](_0x2fe2ed['primitive']),_0x2fe2ed[_0x2a93f4(0xfa)][_0x2a93f4(0x110)]();}[_0x219b8a(0x128)](_0xca0ac6){const _0x4d1aa1=_0x219b8a;for(const _0x3a3ec4 of _0xca0ac6){if(!_0x3a3ec4[_0x4d1aa1(0x10e)][_0x4d1aa1(0x107)]())_0x3a3ec4[_0x4d1aa1(0x10e)][_0x4d1aa1(0x110)]();_0x3a3ec4[_0x4d1aa1(0xfa)][_0x4d1aa1(0x110)]();}}[_0x219b8a(0x11b)](_0x4dc724){const _0x8d191e=_0x219b8a;this['map']['scene'][_0x8d191e(0x105)][_0x8d191e(0x11c)](_0x4dc724);if(!_0x4dc724[_0x8d191e(0x107)]())_0x4dc724[_0x8d191e(0x110)]();}['assertAlive'](){const _0xc9765=_0x219b8a;if(this[_0xc9765(0xfd)])throw new Error(_0xc9765(0x112));}}
1
+ const _0x5353f9=_0x21ad;(function(_0x209e0a,_0x36f9bb){const _0x351f1f=_0x21ad,_0x251af1=_0x209e0a();while(!![]){try{const _0x59c2e9=parseInt(_0x351f1f(0x8c))/0x1*(-parseInt(_0x351f1f(0x96))/0x2)+-parseInt(_0x351f1f(0x92))/0x3+parseInt(_0x351f1f(0x95))/0x4*(-parseInt(_0x351f1f(0x8e))/0x5)+-parseInt(_0x351f1f(0x76))/0x6+-parseInt(_0x351f1f(0xa2))/0x7+-parseInt(_0x351f1f(0xa4))/0x8+parseInt(_0x351f1f(0xa1))/0x9;if(_0x59c2e9===_0x36f9bb)break;else _0x251af1['push'](_0x251af1['shift']());}catch(_0x439ef1){_0x251af1['push'](_0x251af1['shift']());}}}(_0x2796,0x5fe94));import{normalizeColorStops}from'../raster-overlay/color';import{RasterRenderState}from'../raster-overlay/rendering/rasterRenderState';function _0x21ad(_0x4fa818,_0x376339){const _0x2796b8=_0x2796();return _0x21ad=function(_0x21adc5,_0x4caa20){_0x21adc5=_0x21adc5-0x6e;let _0x490ebd=_0x2796b8[_0x21adc5];return _0x490ebd;},_0x21ad(_0x4fa818,_0x376339);}import{CesiumRasterTextureAdapter}from'./cesiumRasterTextureAdapter';import{createRasterPlanePrimitive,validateHeight}from'./rasterPlaneGeometry';import{createRasterPlaneGridChunks,gridChunkLayoutEqual}from'./rasterPlaneGridChunks';function _0x2796(){const _0x17ba7c=['createEntries','colorRange','opacity','setSampleMode','addEntries','destroy','grid','shown','smooth','scene','textureAdapter','updateGrid','setColorRange','interpolate','isDestroyed','已销毁的\x20Mars3D\x20高度栅格图层不能继续更新。','primitive','1SwpgWt','material','45Wxcmyq','height','primitives','push','1350960WDdSsh','createEntry','colorStops','267908sjEZvU','1162826TvMKBr','setOpacity','map','state','removePrimitive','currentHeight','setColorMode','add','length','destroyDetachedEntries','updateUniforms','29929977WpDrfz','2573270yWomTI','rebuildGeometry','2177040UgwOBV','Cesium','applyInitialState','requestRender','entries','sampleMode','setColorStops','destroyed','colorMode','maximumTextureSize','3950610afozGJ','show','replaceEntries','destroyEntry','assertAlive'];_0x2796=function(){return _0x17ba7c;};return _0x2796();}import{RasterPlaneMaterial}from'./rasterPlaneMaterial';export class CesiumRasterPlaneRenderer{[_0x5353f9(0xa5)];[_0x5353f9(0x98)];[_0x5353f9(0x99)]=new RasterRenderState();[_0x5353f9(0x85)];[_0x5353f9(0x70)]=[];['currentHeight'];[_0x5353f9(0x82)];[_0x5353f9(0x73)]=![];constructor(_0x1a5266,_0x19b1db,_0x6851cc){const _0x5a93b3=_0x5353f9;validateHeight(_0x6851cc[_0x5a93b3(0x8f)]),this[_0x5a93b3(0xa5)]=_0x1a5266,this[_0x5a93b3(0x98)]=_0x19b1db,this[_0x5a93b3(0x9b)]=_0x6851cc['height'],this[_0x5a93b3(0x82)]=_0x6851cc[_0x5a93b3(0x77)]??!![],this[_0x5a93b3(0x6e)](_0x6851cc),this['textureAdapter']=new CesiumRasterTextureAdapter(_0x1a5266,_0x19b1db[_0x5a93b3(0x84)]);const _0xf2dd0a=createRasterPlaneGridChunks(_0x6851cc[_0x5a93b3(0x81)],this[_0x5a93b3(0x85)][_0x5a93b3(0x75)]),_0x18c69f=this[_0x5a93b3(0x7b)](_0xf2dd0a);try{this[_0x5a93b3(0x7f)](_0x18c69f),this[_0x5a93b3(0x70)]=_0x18c69f;}catch(_0x1da786){this['destroyDetachedEntries'](_0x18c69f);throw _0x1da786;}this[_0x5a93b3(0x98)][_0x5a93b3(0x84)][_0x5a93b3(0x6f)]();}get[_0x5353f9(0x8f)](){const _0x39bfb9=_0x5353f9;return this[_0x39bfb9(0x9b)];}['setShow'](_0x20492d){const _0x1b2fcd=_0x5353f9;this[_0x1b2fcd(0x7a)](),this[_0x1b2fcd(0x82)]=_0x20492d;for(const _0x5b380b of this[_0x1b2fcd(0x70)])_0x5b380b[_0x1b2fcd(0x8b)]['show']=_0x20492d;this[_0x1b2fcd(0x98)][_0x1b2fcd(0x84)]['requestRender']();}['update'](_0x682af2){const _0x4afb9f=_0x5353f9;this[_0x4afb9f(0x7a)]();if(_0x682af2['height']!==undefined)validateHeight(_0x682af2['height']);const _0x17f15b=_0x682af2['height']!==undefined&&_0x682af2[_0x4afb9f(0x8f)]!==this[_0x4afb9f(0x9b)];if(_0x682af2[_0x4afb9f(0x81)])this[_0x4afb9f(0x99)]['setGrid'](_0x682af2[_0x4afb9f(0x81)]);if(_0x682af2[_0x4afb9f(0x94)])this[_0x4afb9f(0x99)][_0x4afb9f(0x72)](normalizeColorStops(_0x682af2[_0x4afb9f(0x94)]));if(_0x682af2[_0x4afb9f(0x7c)]!==undefined)this[_0x4afb9f(0x99)][_0x4afb9f(0x87)](_0x682af2['colorRange']);if(_0x682af2[_0x4afb9f(0x74)])this[_0x4afb9f(0x99)][_0x4afb9f(0x9c)](_0x682af2['colorMode']);if(_0x682af2[_0x4afb9f(0x71)])this[_0x4afb9f(0x99)][_0x4afb9f(0x7e)](_0x682af2[_0x4afb9f(0x71)]);if(_0x682af2[_0x4afb9f(0x7d)]!==undefined)this['state'][_0x4afb9f(0x97)](_0x682af2['opacity']);if(_0x682af2['height']!==undefined)this[_0x4afb9f(0x9b)]=_0x682af2[_0x4afb9f(0x8f)];let _0x251d07=![];if(_0x682af2[_0x4afb9f(0x81)]){const _0x448477=createRasterPlaneGridChunks(_0x682af2[_0x4afb9f(0x81)],this[_0x4afb9f(0x85)][_0x4afb9f(0x75)]),_0x1684e8=this[_0x4afb9f(0x70)]['map'](_0x1a3db4=>_0x1a3db4[_0x4afb9f(0x81)]);if(gridChunkLayoutEqual(_0x1684e8,_0x448477))for(let _0x32f110=0x0;_0x32f110<_0x448477[_0x4afb9f(0x9e)];_0x32f110+=0x1){const _0x229036=this[_0x4afb9f(0x70)][_0x32f110],_0x397acf=_0x448477[_0x32f110];_0x229036[_0x4afb9f(0x81)]=_0x397acf,_0x229036['material'][_0x4afb9f(0x86)](this[_0x4afb9f(0x99)],_0x397acf);}else this[_0x4afb9f(0x78)](_0x448477),_0x251d07=!![];}if(_0x682af2[_0x4afb9f(0x94)]&&!_0x251d07){for(const _0x473927 of this[_0x4afb9f(0x70)])_0x473927['material']['updateColorStops'](this[_0x4afb9f(0x99)],_0x473927['grid']);}if(!_0x251d07){for(const _0x43e103 of this['entries'])_0x43e103[_0x4afb9f(0x8d)][_0x4afb9f(0xa0)](this[_0x4afb9f(0x99)],_0x43e103[_0x4afb9f(0x81)]);}if(_0x17f15b&&!_0x251d07)this[_0x4afb9f(0xa3)]();this[_0x4afb9f(0x98)][_0x4afb9f(0x84)][_0x4afb9f(0x6f)]();}[_0x5353f9(0x80)](){const _0xaed85b=_0x5353f9;if(this[_0xaed85b(0x73)])return;this[_0xaed85b(0x73)]=!![];const _0x1dcc2b=this[_0xaed85b(0x70)];this[_0xaed85b(0x70)]=[];for(const _0x389e01 of _0x1dcc2b)this[_0xaed85b(0x79)](_0x389e01);}[_0x5353f9(0x6e)](_0x394aef){const _0x6a2b7a=_0x5353f9;this[_0x6a2b7a(0x99)]['setGrid'](_0x394aef['grid']),this[_0x6a2b7a(0x99)][_0x6a2b7a(0x72)](normalizeColorStops(_0x394aef['colorStops'])),this[_0x6a2b7a(0x99)][_0x6a2b7a(0x87)](_0x394aef[_0x6a2b7a(0x7c)]??null),this[_0x6a2b7a(0x99)][_0x6a2b7a(0x9c)](_0x394aef['colorMode']??_0x6a2b7a(0x83)),this[_0x6a2b7a(0x99)]['setSampleMode'](_0x394aef[_0x6a2b7a(0x71)]??_0x6a2b7a(0x88)),this[_0x6a2b7a(0x99)][_0x6a2b7a(0x97)](_0x394aef[_0x6a2b7a(0x7d)]??0x1);}[_0x5353f9(0x93)](_0x4a8b1d){const _0x470fa1=_0x5353f9,_0xc48aee=new RasterPlaneMaterial(this[_0x470fa1(0xa5)],this['textureAdapter'],this[_0x470fa1(0x99)],_0x4a8b1d);try{const _0x48f2fa=createRasterPlanePrimitive(this['Cesium'],_0x4a8b1d,this[_0x470fa1(0x9b)],_0xc48aee['material'],this[_0x470fa1(0x82)]);return{'grid':_0x4a8b1d,'material':_0xc48aee,'primitive':_0x48f2fa};}catch(_0x1a0fcf){_0xc48aee[_0x470fa1(0x80)]();throw _0x1a0fcf;}}['createEntries'](_0x159db4){const _0x3d97fe=_0x5353f9,_0x81f8d7=[];try{for(const _0x31c38f of _0x159db4)_0x81f8d7[_0x3d97fe(0x91)](this[_0x3d97fe(0x93)](_0x31c38f));return _0x81f8d7;}catch(_0xae1724){this['destroyDetachedEntries'](_0x81f8d7);throw _0xae1724;}}[_0x5353f9(0x7f)](_0x29343c){const _0x4e613e=_0x5353f9,_0x4058d5=[];try{for(const _0x3c5b60 of _0x29343c){this[_0x4e613e(0x98)][_0x4e613e(0x84)][_0x4e613e(0x90)]['add'](_0x3c5b60[_0x4e613e(0x8b)]),_0x4058d5[_0x4e613e(0x91)](_0x3c5b60);}}catch(_0x489906){for(const _0x57ca2a of _0x4058d5)this[_0x4e613e(0x9a)](_0x57ca2a[_0x4e613e(0x8b)]);throw _0x489906;}}['replaceEntries'](_0x2c7b53){const _0xcec74c=_0x5353f9,_0x1ffdf6=this[_0xcec74c(0x7b)](_0x2c7b53);try{this[_0xcec74c(0x7f)](_0x1ffdf6);}catch(_0x102587){this['destroyDetachedEntries'](_0x1ffdf6);throw _0x102587;}const _0x4ded43=this[_0xcec74c(0x70)];for(const _0x35c620 of _0x4ded43)_0x35c620[_0xcec74c(0x8b)][_0xcec74c(0x77)]=![];this[_0xcec74c(0x70)]=_0x1ffdf6;for(const _0x332726 of _0x4ded43)this[_0xcec74c(0x79)](_0x332726);}['rebuildGeometry'](){const _0xdfeba0=_0x5353f9,_0x314851=[];try{for(const _0x228968 of this[_0xdfeba0(0x70)]){_0x314851[_0xdfeba0(0x91)](createRasterPlanePrimitive(this[_0xdfeba0(0xa5)],_0x228968[_0xdfeba0(0x81)],this[_0xdfeba0(0x9b)],_0x228968[_0xdfeba0(0x8d)][_0xdfeba0(0x8d)],this['shown']));}}catch(_0x567ac2){for(const _0x4fb6c8 of _0x314851){if(!_0x4fb6c8[_0xdfeba0(0x89)]())_0x4fb6c8[_0xdfeba0(0x80)]();}throw _0x567ac2;}const _0x5aea5e=[];try{for(const _0x5e3185 of _0x314851){this['map']['scene'][_0xdfeba0(0x90)][_0xdfeba0(0x9d)](_0x5e3185),_0x5aea5e[_0xdfeba0(0x91)](_0x5e3185);}}catch(_0x1dd94f){for(const _0x35600d of _0x5aea5e)this[_0xdfeba0(0x9a)](_0x35600d);for(const _0x1e88c8 of _0x314851){if(!_0x1e88c8[_0xdfeba0(0x89)]())_0x1e88c8[_0xdfeba0(0x80)]();}throw _0x1dd94f;}const _0x4954b0=this[_0xdfeba0(0x70)][_0xdfeba0(0x98)](_0x263da3=>_0x263da3['primitive']);for(const _0x52163d of _0x4954b0)_0x52163d[_0xdfeba0(0x77)]=![];for(let _0x1bf94a=0x0;_0x1bf94a<this[_0xdfeba0(0x70)][_0xdfeba0(0x9e)];_0x1bf94a+=0x1)this['entries'][_0x1bf94a]['primitive']=_0x314851[_0x1bf94a];for(const _0x52ed58 of _0x4954b0)this[_0xdfeba0(0x9a)](_0x52ed58);}[_0x5353f9(0x79)](_0x5d641e){const _0x313079=_0x5353f9;this[_0x313079(0x9a)](_0x5d641e[_0x313079(0x8b)]),_0x5d641e[_0x313079(0x8d)][_0x313079(0x80)]();}[_0x5353f9(0x9f)](_0x25b795){const _0x40d056=_0x5353f9;for(const _0x5b2f15 of _0x25b795){if(!_0x5b2f15[_0x40d056(0x8b)][_0x40d056(0x89)]())_0x5b2f15[_0x40d056(0x8b)]['destroy']();_0x5b2f15[_0x40d056(0x8d)]['destroy']();}}['removePrimitive'](_0x58941c){const _0x385bb6=_0x5353f9;this[_0x385bb6(0x98)][_0x385bb6(0x84)]['primitives']['remove'](_0x58941c);if(!_0x58941c[_0x385bb6(0x89)]())_0x58941c[_0x385bb6(0x80)]();}[_0x5353f9(0x7a)](){const _0x1991d6=_0x5353f9;if(this[_0x1991d6(0x73)])throw new Error(_0x1991d6(0x8a));}}
@@ -1 +1 @@
1
- const _0x50d225=_0x20fd;function _0x20fd(_0x1729e2,_0x2fe1df){const _0x4d9a33=_0x4d9a();return _0x20fd=function(_0x20fd83,_0x3ece09){_0x20fd83=_0x20fd83-0x10f;let _0x483e78=_0x4d9a33[_0x20fd83];return _0x483e78;},_0x20fd(_0x1729e2,_0x2fe1df);}(function(_0x5caaf4,_0xfa4659){const _0x215960=_0x20fd,_0x2eb700=_0x5caaf4();while(!![]){try{const _0x8834e0=parseInt(_0x215960(0x120))/0x1*(-parseInt(_0x215960(0x12b))/0x2)+parseInt(_0x215960(0x12d))/0x3+parseInt(_0x215960(0x127))/0x4+-parseInt(_0x215960(0x12e))/0x5+-parseInt(_0x215960(0x132))/0x6*(-parseInt(_0x215960(0x125))/0x7)+-parseInt(_0x215960(0x113))/0x8*(parseInt(_0x215960(0x11f))/0x9)+parseInt(_0x215960(0x118))/0xa;if(_0x8834e0===_0xfa4659)break;else _0x2eb700['push'](_0x2eb700['shift']());}catch(_0x399965){_0x2eb700['push'](_0x2eb700['shift']());}}}(_0x4d9a,0xd02b9));export class CesiumRasterTextureAdapter{[_0x50d225(0x129)];[_0x50d225(0x11a)];[_0x50d225(0x121)];['sampler'];constructor(_0x255a04,_0x8a367b){const _0x23c124=_0x50d225;this[_0x23c124(0x128)](_0x255a04),this['Cesium']=_0x255a04,this[_0x23c124(0x121)]=this[_0x23c124(0x11b)](_0x8a367b),this[_0x23c124(0x129)]=this[_0x23c124(0x12a)](),this['sampler']=new _0x255a04['Sampler']({'minificationFilter':_0x255a04[_0x23c124(0x115)][_0x23c124(0x123)],'magnificationFilter':_0x255a04[_0x23c124(0x11e)]['NEAREST'],'wrapS':_0x255a04[_0x23c124(0x126)][_0x23c124(0x130)],'wrapT':_0x255a04[_0x23c124(0x126)][_0x23c124(0x130)]});}[_0x50d225(0x116)](_0x2911a8,_0x2cfcc9,_0x41a393,_0x3b744a){const _0x49ed74=_0x50d225;return new this[(_0x49ed74(0x11a))][(_0x49ed74(0x110))]({'context':this[_0x49ed74(0x121)],'source':{'arrayBufferView':_0x2911a8},'width':_0x2cfcc9,'height':_0x41a393,'pixelFormat':_0x3b744a,'pixelDatatype':this[_0x49ed74(0x11a)][_0x49ed74(0x10f)]['FLOAT'],'sampler':this[_0x49ed74(0x11d)],'flipY':![]});}[_0x50d225(0x131)](_0x1c3373){const _0x5f1d00=_0x50d225;_0x1c3373[_0x5f1d00(0x11c)](this[_0x5f1d00(0x121)]);}[_0x50d225(0x11b)](_0x2171df){const _0x9a00dd=_0x50d225,_0x20e0af=_0x2171df['context']??_0x2171df[_0x9a00dd(0x124)];if(!_0x20e0af)throw new Error(_0x9a00dd(0x114));return _0x20e0af;}[_0x50d225(0x12a)](){const _0x2b2679=_0x50d225,_0x40dcd6=this[_0x2b2679(0x121)]['_gl']['getParameter'](this[_0x2b2679(0x121)][_0x2b2679(0x12c)][_0x2b2679(0x117)]);if(typeof _0x40dcd6!==_0x2b2679(0x111)||!Number[_0x2b2679(0x122)](_0x40dcd6)||_0x40dcd6<=0x0)throw new Error(_0x2b2679(0x12f));return _0x40dcd6;}['validateRuntime'](_0x5f4459){const _0x58a7a6=_0x50d225;if(!_0x5f4459[_0x58a7a6(0x110)]||!_0x5f4459['Sampler']||!_0x5f4459[_0x58a7a6(0x112)]||!_0x5f4459[_0x58a7a6(0x10f)]||!_0x5f4459[_0x58a7a6(0x115)]||!_0x5f4459[_0x58a7a6(0x11e)]||!_0x5f4459['TextureWrap'])throw new Error(_0x58a7a6(0x119));}}function _0x4d9a(){const _0x38b112=['2657808uyBRFG','validateRuntime','maximumTextureSize','queryMaximumTextureSize','4YUNeqw','_gl','112986DMpQgr','4177580AQnvZP','无法查询\x20Cesium\x20WebGL\x20MAX_TEXTURE_SIZE。','CLAMP_TO_EDGE','updateMaterial','1299834FThvKJ','PixelDatatype','Texture','number','PixelFormat','8kgUewo','当前\x20Mars3D\x20Cesium\x20Scene\x20未暴露\x20WebGL\x20Context。','TextureMinificationFilter','createTexture','MAX_TEXTURE_SIZE','7013290ubwBpI','当前\x20Mars3D\x20Cesium\x20运行时未暴露高度栅格所需的浮点纹理能力。','Cesium','getContext','update','sampler','TextureMagnificationFilter','8259957IRQiWl','156981ElPKdF','context','isFinite','NEAREST','_context','49rqBRmx','TextureWrap'];_0x4d9a=function(){return _0x38b112;};return _0x4d9a();}
1
+ function _0xf402(){const _0x47143e=['validateRuntime','3014214AyxGde','7yycYDA','sampler','Sampler','TextureWrap','当前\x20Mars3D\x20Cesium\x20Scene\x20未暴露\x20WebGL\x20Context。','372kqSNBh','TextureMagnificationFilter','PixelDatatype','当前\x20Mars3D\x20Cesium\x20运行时未暴露高度栅格所需的浮点纹理能力。','_gl','NEAREST','update','getContext','4751577yIgHaO','FLOAT','maximumTextureSize','37545JoszvQ','context','updateMaterial','PixelFormat','105619TkVuNX','queryMaximumTextureSize','TextureMinificationFilter','CLAMP_TO_EDGE','createTexture','无法查询\x20Cesium\x20WebGL\x20MAX_TEXTURE_SIZE。','17730750RNNtQG','9231480DTwUOz','14XjwdnB','getParameter','Texture','Cesium','MAX_TEXTURE_SIZE','isFinite','3305526GGbAix'];_0xf402=function(){return _0x47143e;};return _0xf402();}const _0x58c28c=_0x41a1;(function(_0x565862,_0x26c427){const _0x6a2a7=_0x41a1,_0xdd67b6=_0x565862();while(!![]){try{const _0x1befb8=-parseInt(_0x6a2a7(0x14d))/0x1*(parseInt(_0x6a2a7(0x155))/0x2)+-parseInt(_0x6a2a7(0x138))/0x3+-parseInt(_0x6a2a7(0x13e))/0x4*(-parseInt(_0x6a2a7(0x149))/0x5)+parseInt(_0x6a2a7(0x136))/0x6+-parseInt(_0x6a2a7(0x139))/0x7*(parseInt(_0x6a2a7(0x154))/0x8)+parseInt(_0x6a2a7(0x146))/0x9+parseInt(_0x6a2a7(0x153))/0xa;if(_0x1befb8===_0x26c427)break;else _0xdd67b6['push'](_0xdd67b6['shift']());}catch(_0x50757b){_0xdd67b6['push'](_0xdd67b6['shift']());}}}(_0xf402,0x9f3f8));function _0x41a1(_0x119499,_0x324181){const _0xf4027a=_0xf402();return _0x41a1=function(_0x41a1af,_0x6835e8){_0x41a1af=_0x41a1af-0x136;let _0x3c1ab6=_0xf4027a[_0x41a1af];return _0x3c1ab6;},_0x41a1(_0x119499,_0x324181);}export class CesiumRasterTextureAdapter{[_0x58c28c(0x148)];[_0x58c28c(0x158)];[_0x58c28c(0x14a)];[_0x58c28c(0x13a)];constructor(_0x466aa3,_0x37d19a){const _0x279f4b=_0x58c28c;this[_0x279f4b(0x137)](_0x466aa3),this[_0x279f4b(0x158)]=_0x466aa3,this[_0x279f4b(0x14a)]=this['getContext'](_0x37d19a),this['maximumTextureSize']=this[_0x279f4b(0x14e)](),this[_0x279f4b(0x13a)]=new _0x466aa3[(_0x279f4b(0x13b))]({'minificationFilter':_0x466aa3[_0x279f4b(0x14f)][_0x279f4b(0x143)],'magnificationFilter':_0x466aa3[_0x279f4b(0x13f)]['NEAREST'],'wrapS':_0x466aa3[_0x279f4b(0x13c)][_0x279f4b(0x150)],'wrapT':_0x466aa3[_0x279f4b(0x13c)]['CLAMP_TO_EDGE']});}[_0x58c28c(0x151)](_0x5bfbff,_0x126c71,_0xa5fc32,_0x3f26ee){const _0x4d8142=_0x58c28c;return new this[(_0x4d8142(0x158))][(_0x4d8142(0x157))]({'context':this[_0x4d8142(0x14a)],'source':{'arrayBufferView':_0x5bfbff},'width':_0x126c71,'height':_0xa5fc32,'pixelFormat':_0x3f26ee,'pixelDatatype':this[_0x4d8142(0x158)][_0x4d8142(0x140)][_0x4d8142(0x147)],'sampler':this['sampler'],'flipY':![]});}[_0x58c28c(0x14b)](_0x3c283e){const _0x31fcc7=_0x58c28c;_0x3c283e[_0x31fcc7(0x144)](this['context']);}[_0x58c28c(0x145)](_0x4f844c){const _0x581aa3=_0x58c28c,_0x3dd766=_0x4f844c['context']??_0x4f844c['_context'];if(!_0x3dd766)throw new Error(_0x581aa3(0x13d));return _0x3dd766;}[_0x58c28c(0x14e)](){const _0x538a54=_0x58c28c,_0x4ce812=this[_0x538a54(0x14a)][_0x538a54(0x142)][_0x538a54(0x156)](this[_0x538a54(0x14a)][_0x538a54(0x142)][_0x538a54(0x159)]);if(typeof _0x4ce812!=='number'||!Number[_0x538a54(0x15a)](_0x4ce812)||_0x4ce812<=0x0)throw new Error(_0x538a54(0x152));return _0x4ce812;}[_0x58c28c(0x137)](_0x2664b1){const _0x4f7e31=_0x58c28c;if(!_0x2664b1[_0x4f7e31(0x157)]||!_0x2664b1[_0x4f7e31(0x13b)]||!_0x2664b1[_0x4f7e31(0x14c)]||!_0x2664b1[_0x4f7e31(0x140)]||!_0x2664b1[_0x4f7e31(0x14f)]||!_0x2664b1['TextureMagnificationFilter']||!_0x2664b1['TextureWrap'])throw new Error(_0x4f7e31(0x141));}}