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.
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/intersect.worker.js +2 -2
- package/dist/isoBands.worker.js +1 -1
- package/dist/m4-w-fast.umd.js +1 -1
- package/dist/raster-leaflet/index.cjs +2 -2
- package/dist/raster-leaflet/index.js +1 -1
- package/dist/raster-leaflet/index.mjs +2 -2
- package/dist/raster-leaflet/m4-w-raster-leaflet.umd.js +2 -2
- package/dist/raster-mars3d/cesiumRasterPlaneRenderer.js +1 -1
- package/dist/raster-mars3d/cesiumRasterTextureAdapter.js +1 -1
- package/dist/raster-mars3d/index.cjs +2 -2
- package/dist/raster-mars3d/index.js +1 -1
- package/dist/raster-mars3d/index.mjs +2 -2
- package/dist/raster-mars3d/m4-w-raster-mars3d.umd.js +2 -2
- package/dist/raster-mars3d/mars3dRasterImageryProvider.js +1 -1
- package/dist/raster-mars3d/mars3dRasterPlaneLayer.js +1 -1
- package/dist/raster-mars3d/rasterPlaneGeometry.js +1 -1
- package/dist/raster-mars3d/rasterPlaneGridChunks.js +1 -1
- package/dist/raster-mars3d/rasterPlaneMaterial.js +1 -1
- package/dist/raster-overlay/color.js +1 -1
- package/dist/raster-overlay/core.js +1 -1
- package/dist/raster-overlay/index.cjs +2 -2
- package/dist/raster-overlay/index.js +1 -1
- package/dist/raster-overlay/index.mjs +2 -2
- package/dist/raster-overlay/leaflet-renderers/createRenderer.js +1 -1
- package/dist/raster-overlay/leafletLayer.js +1 -1
- package/dist/raster-overlay/m4-w-raster-overlay.umd.js +2 -2
- package/dist/raster-overlay/query.js +1 -1
- package/dist/raster-overlay/rendering/createRasterRenderer.js +1 -1
- package/dist/raster-overlay/rendering/index.js +1 -1
- package/dist/raster-overlay/rendering/rasterRenderState.js +1 -1
- package/dist/raster-overlay/rendering/webgl2RasterRenderer.js +1 -1
- package/dist/raster-overlay/rendering/webgpuRasterRenderer.js +1 -1
- package/dist/raster-rendering/index.cjs +2 -2
- package/dist/raster-rendering/index.js +1 -1
- package/dist/raster-rendering/index.mjs +2 -2
- package/dist/raster-rendering/m4-w-raster-rendering.umd.js +2 -2
- package/dist/raster-rendering/webgpuRasterTileRenderer.js +1 -1
- package/dist/readFile.js +1 -1
- package/dist/rendering/index.js +1 -1
- package/dist/rendering/webgl2/baseWebgl2Renderer.js +1 -1
- package/dist/rendering/webgl2/index.js +1 -1
- package/dist/rendering/webgl2/webgl2CoverageResources.js +1 -1
- package/dist/rendering/webgl2/webgl2VisualizationResources.js +1 -1
- package/dist/rendering/webgpu/baseWebgpuRenderer.js +1 -1
- package/dist/rendering/webgpu/index.js +1 -1
- package/dist/rendering/webgpu/visualizationParams.js +1 -1
- package/dist/rendering/webgpu/visualizationResources.js +1 -1
- package/dist/rendering/webgpu/webgpuCoverageResources.js +1 -1
- package/dist/road-overlay/coordinateTransform.js +1 -1
- package/dist/road-overlay/index.cjs +2 -2
- package/dist/road-overlay/index.js +1 -1
- package/dist/road-overlay/index.mjs +2 -2
- package/dist/road-overlay/leaflet-renderers/createRenderer.js +1 -1
- package/dist/road-overlay/leafletLayer.js +1 -1
- package/dist/road-overlay/m4-w-road-overlay.umd.js +2 -2
- package/dist/road-overlay/options.js +1 -1
- package/dist/road-overlay/rendering/index.js +1 -1
- package/dist/road-overlay/rendering/roadRenderState.js +1 -1
- package/dist/road-overlay/rendering/webgl2RoadRenderer.js +1 -1
- package/dist/road-overlay/rendering/webgpuRoadRenderer.js +1 -1
- package/dist/road-overlay/roadData.js +1 -1
- package/dist/road-overlay/roadGeometry.js +1 -1
- package/dist/road-overlay/roadMesh.js +1 -1
- package/dist/shared/coordinate-shader/webgl2/index.js +1 -1
- package/dist/shared/coordinate-shader/webgpu/index.js +1 -1
- package/dist/shared/map/index.js +1 -1
- package/dist/shared/map/leaflet.js +1 -1
- package/dist/shared/polygon/contains.js +1 -1
- package/dist/shared/polygon/index.js +1 -1
- package/dist/shared/polygon/polygonMesh.js +1 -1
- package/dist/shared/shader/assemble.js +1 -1
- package/dist/shared/visualization/index.js +1 -1
- package/dist/shared/visualization/shader/webgl2/index.js +1 -1
- package/dist/shared/visualization/shader/webgpu/index.js +1 -1
- package/dist/shared/visualization/utils.js +1 -1
- package/dist/volume-data/index.cjs +1 -0
- package/dist/volume-data/index.d.ts +5 -0
- package/dist/volume-data/index.js +1 -0
- package/dist/volume-data/index.mjs +1 -0
- package/dist/volume-data/input.d.ts +2 -0
- package/dist/volume-data/input.js +1 -0
- package/dist/volume-data/loadVolumeSource.d.ts +2 -0
- package/dist/volume-data/loadVolumeSource.js +1 -0
- package/dist/volume-data/m4-w-volume-data.umd.js +1 -0
- package/dist/volume-data/parserRegistry.d.ts +5 -0
- package/dist/volume-data/parserRegistry.js +1 -0
- package/dist/volume-data/radarGridVolumeMetadata.d.ts +2 -0
- package/dist/volume-data/radarGridVolumeMetadata.js +1 -0
- package/dist/volume-data/radarGridVolumeParser.d.ts +2 -0
- package/dist/volume-data/radarGridVolumeParser.js +1 -0
- package/dist/volume-data/radarGridVolumeSource.d.ts +3 -0
- package/dist/volume-data/radarGridVolumeSource.js +1 -0
- package/dist/volume-data/volumeDataError.d.ts +5 -0
- package/dist/volume-data/volumeDataError.js +1 -0
- package/dist/volume-data/volumeDataTypes.d.ts +54 -0
- package/dist/volume-data/volumeDataTypes.js +1 -0
- package/dist/volume-data/zipArchive.d.ts +6 -0
- package/dist/volume-data/zipArchive.js +1 -0
- package/dist/volume-mars3d/createMars3dVolumeScene.js +1 -1
- package/dist/volume-mars3d/index.cjs +1 -1
- package/dist/volume-mars3d/index.js +1 -1
- package/dist/volume-mars3d/index.mjs +1 -1
- package/dist/volume-mars3d/m4-w-volume-mars3d.umd.js +1 -1
- package/dist/volume-mars3d/mars3dCanvasCompensation.js +1 -1
- package/dist/volume-mars3d/mars3dRaymarchShader.js +1 -1
- package/dist/volume-mars3d/mars3dVolumeLayer.js +1 -1
- package/dist/volume-mars3d/mars3dVolumeRenderer.js +1 -1
- package/dist/volume-mars3d-native/index.cjs +1 -1
- package/dist/volume-mars3d-native/index.js +1 -1
- package/dist/volume-mars3d-native/index.mjs +1 -1
- package/dist/volume-mars3d-native/liveUpdateScheduler.js +1 -1
- package/dist/volume-mars3d-native/m4-w-volume-mars3d-native.umd.js +1 -1
- package/dist/volume-mars3d-native/mars3dNativeSliceLayer.js +1 -1
- package/dist/volume-mars3d-native/mars3dNativeSliceRenderer.js +1 -1
- package/dist/volume-mars3d-native/mars3dNativeVolumeLayer.js +1 -1
- package/dist/volume-mars3d-native/mars3dNativeVolumeRenderer.js +1 -1
- package/dist/volume-mars3d-native/nativeAxisSliceRenderer.js +1 -1
- package/dist/volume-mars3d-native/nativeSliceAtlas.js +1 -1
- package/dist/volume-mars3d-native/nativeVoxelProvider.js +1 -1
- package/dist/volume-mars3d-native/nativeVoxelShader.js +1 -1
- package/dist/volume-mars3d-native/voxelData.js +1 -1
- package/dist/volume-scene/brickLayout.js +1 -1
- package/dist/volume-scene/brickResidency.js +1 -1
- package/dist/volume-scene/camera.js +1 -1
- package/dist/volume-scene/createVolumeScene.js +1 -1
- package/dist/volume-scene/geographicVolume.js +1 -1
- package/dist/volume-scene/inMemoryVolumeSource.js +1 -1
- package/dist/volume-scene/index.cjs +1 -1
- package/dist/volume-scene/index.js +1 -1
- package/dist/volume-scene/index.mjs +1 -1
- package/dist/volume-scene/m4-w-volume-scene.umd.js +1 -1
- package/dist/volume-scene/matrix.js +1 -1
- package/dist/volume-scene/rendering/webgpu/index.js +1 -1
- package/dist/volume-scene/rendering/webgpu/webgpuBrickAtlas.js +1 -1
- package/dist/volume-scene/rendering/webgpu/webgpuSceneAttachments.js +1 -1
- package/dist/volume-scene/rendering/webgpu/webgpuSceneMeshResources.js +1 -1
- package/dist/volume-scene/rendering/webgpu/webgpuSliceResources.js +1 -1
- package/dist/volume-scene/rendering/webgpu/webgpuTransferResources.js +1 -1
- package/dist/volume-scene/rendering/webgpu/webgpuVolumeSceneRenderer.js +1 -1
- package/dist/volume-scene/routeProfileMesh.js +1 -1
- package/dist/volume-scene/sliceInteractionController.js +1 -1
- package/dist/volume-scene/sliceMarkerOverlay.js +1 -1
- package/dist/volume-scene/sliceState.js +1 -1
- package/dist/volume-scene/volumeBrickData.js +1 -1
- package/dist/volume-scene/volumeScene.js +1 -1
- package/dist/volume-scene/volumeTransfer.js +1 -1
- package/dist/volume-scene/volumeValidation.js +1 -1
- package/dist/volume-section/createHorizontalRasterGrid.d.ts +3 -0
- package/dist/volume-section/createHorizontalRasterGrid.js +1 -0
- package/dist/volume-section/createVolumeSection.d.ts +3 -0
- package/dist/volume-section/createVolumeSection.js +1 -0
- package/dist/volume-section/createVolumeSectionRasterGrid.d.ts +3 -0
- package/dist/volume-section/createVolumeSectionRasterGrid.js +1 -0
- package/dist/volume-section/createVolumeSectionRouteProfile.d.ts +3 -0
- package/dist/volume-section/createVolumeSectionRouteProfile.js +1 -0
- package/dist/volume-section/geographic.d.ts +3 -0
- package/dist/volume-section/geographic.js +1 -0
- package/dist/volume-section/gridLayerStatistics.d.ts +9 -0
- package/dist/volume-section/gridLayerStatistics.js +1 -0
- package/dist/volume-section/index.cjs +1 -0
- package/dist/volume-section/index.d.ts +8 -0
- package/dist/volume-section/index.js +1 -0
- package/dist/volume-section/index.mjs +1 -0
- package/dist/volume-section/m4-w-volume-section.umd.js +1 -0
- package/dist/volume-section/routeSampling.d.ts +9 -0
- package/dist/volume-section/routeSampling.js +1 -0
- package/dist/volume-section/volumeSectionTypes.d.ts +39 -0
- package/dist/volume-section/volumeSectionTypes.js +1 -0
- package/package.json +58 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x136b(){const _0x49fdd4=['setTimeIndex','Native\x20volume\x20opacity\x20must\x20be\x20finite.\x20原生体积透明度必须是有限数。','depthTest','1491345KSJTcM','auto','setSource','screenSpaceError','loadController','abs','statistics','densityScale','show','\x20must\x20be\x20a\x20positive\x20finite\x20number.\x20','Cartesian3','onError','690KHDMMX','A\x20destroyed\x20native\x20Mars3D\x20volume\x20cannot\x20be\x20used.\x20已销毁的\x20Mars3D\x20原生体积不能继续使用。','createCustomShader','timeCount','21ApvHge','readyPromise','2250tpILcy','TRANSLUCENT','customShader','remove','primitive','cesium','UNLIT','4627RKznCk','6408216nVhtZq','colorStops','texturesByteLength','opacity','quality','scene','nearestSampling','source','76164yjeQfB','5117800NwBOky','4AAsFIy','colorMode','maxBounds','end','VoxelPrimitive','abort','\x20必须是正有限数。','smooth','CustomShaderTranslucencyMode','min','UniformType','setShow','stepSize','CustomShader','aborted','requestRender','primitives','replacePrimitive','max','assertAlive','opacityStops','184581bkFRnj','replaceCustomShader','start','updateBounds','update','destroyed','u_densityScale','LightingModel','updateShaderUniforms','verticalScale','map','shown','signal','destroy','performance','9YypaKS','isFinite','330346iuZsGq','FLOAT','timeIndex'];_0x136b=function(){return _0x49fdd4;};return _0x136b();}const _0x456ae8=_0xc1f7;(function(_0x20ffb0,_0xbd7d22){const _0x5407f2=_0xc1f7,_0x111c93=_0x20ffb0();while(!![]){try{const _0x308a07=-parseInt(_0x5407f2(0x1a0))/0x1+parseInt(_0x5407f2(0x1b1))/0x2*(parseInt(_0x5407f2(0x177))/0x3)+parseInt(_0x5407f2(0x18b))/0x4*(-parseInt(_0x5407f2(0x1b7))/0x5)+-parseInt(_0x5407f2(0x173))/0x6*(parseInt(_0x5407f2(0x180))/0x7)+parseInt(_0x5407f2(0x18a))/0x8*(-parseInt(_0x5407f2(0x1af))/0x9)+parseInt(_0x5407f2(0x179))/0xa*(parseInt(_0x5407f2(0x189))/0xb)+-parseInt(_0x5407f2(0x181))/0xc;if(_0x308a07===_0xbd7d22)break;else _0x111c93['push'](_0x111c93['shift']());}catch(_0x298513){_0x111c93['push'](_0x111c93['shift']());}}}(_0x136b,0xef9ff));import{createNativeVoxelFragmentShader}from'./nativeVoxelShader';import{createNativeVoxelProvider}from'./nativeVoxelProvider';function _0xc1f7(_0x534a5b,_0x49465a){const _0x136b4b=_0x136b();return _0xc1f7=function(_0xc1f73c,_0x1c9afb){_0xc1f73c=_0xc1f73c-0x168;let _0xef84ff=_0x136b4b[_0xc1f73c];return _0xef84ff;},_0xc1f7(_0x534a5b,_0x49465a);}import{loadNativeVoxelData}from'./voxelData';const getError=_0x183807=>_0x183807 instanceof Error?_0x183807:new Error(String(_0x183807)),getStepSize=_0x36e9a3=>{const _0x4fe8fb=_0xc1f7;if(_0x36e9a3===_0x4fe8fb(0x185))return 0.65;if(_0x36e9a3===_0x4fe8fb(0x1ae))return 1.8;if(_0x36e9a3===_0x4fe8fb(0x168))return 1.15;return 0x1;},validatePositive=(_0x36a9b0,_0x308908)=>{const _0x1e87cd=_0xc1f7;if(!(_0x36a9b0>0x0)||!Number['isFinite'](_0x36a9b0))throw new Error(_0x308908+_0x1e87cd(0x170)+_0x308908+_0x1e87cd(0x191));return _0x36a9b0;},clampOpacity=_0x214b2d=>{const _0x48cf89=_0xc1f7;if(!Number[_0x48cf89(0x1b0)](_0x214b2d))throw new Error(_0x48cf89(0x1b5));return Math[_0x48cf89(0x19d)](0x0,Math['min'](0x1,_0x214b2d));};export class Mars3dNativeVolumeRenderer{[_0x456ae8(0x178)];[_0x456ae8(0x1aa)];['cesium'];['onError'];['primitive']=null;[_0x456ae8(0x188)];[_0x456ae8(0x1b3)];[_0x456ae8(0x185)];[_0x456ae8(0x184)];[_0x456ae8(0x16e)];['verticalScale'];[_0x456ae8(0x182)];[_0x456ae8(0x19f)];[_0x456ae8(0x18c)];[_0x456ae8(0x1ab)];[_0x456ae8(0x1a5)]=![];['loadController']=null;constructor(_0x2e7fd2,_0x5d6804,_0x556915){const _0x57bf5b=_0x456ae8;this[_0x57bf5b(0x1aa)]=_0x2e7fd2,this[_0x57bf5b(0x17e)]=_0x5d6804,this[_0x57bf5b(0x172)]=_0x556915[_0x57bf5b(0x172)],this[_0x57bf5b(0x188)]=_0x556915['source'],this['timeIndex']=_0x556915[_0x57bf5b(0x1b3)]??0x0,this[_0x57bf5b(0x185)]=_0x556915[_0x57bf5b(0x185)]??'balanced',this[_0x57bf5b(0x184)]=clampOpacity(_0x556915['opacity']??0.3),this[_0x57bf5b(0x16e)]=validatePositive(_0x556915[_0x57bf5b(0x16e)]??0x64,'densityScale'),this[_0x57bf5b(0x1a9)]=validatePositive(_0x556915['verticalScale']??0x1,_0x57bf5b(0x1a9)),this['colorStops']=[..._0x556915[_0x57bf5b(0x182)]],this[_0x57bf5b(0x19f)]=[..._0x556915[_0x57bf5b(0x19f)]],this[_0x57bf5b(0x18c)]=_0x556915[_0x57bf5b(0x18c)]??_0x57bf5b(0x192),this['shown']=_0x556915[_0x57bf5b(0x16f)]??!![],this[_0x57bf5b(0x178)]=this[_0x57bf5b(0x19c)]();}get[_0x456ae8(0x16d)](){const _0x2c3054=_0x456ae8,_0x4d7c1e=this[_0x2c3054(0x17d)]?.[_0x2c3054(0x16d)];if(!_0x4d7c1e)return null;return{'texturesByteLength':_0x4d7c1e[_0x2c3054(0x183)]??0x0,'visited':_0x4d7c1e['visited']??0x0,'numberOfTilesWithContentReady':_0x4d7c1e['numberOfTilesWithContentReady']??0x0};}[_0x456ae8(0x196)](_0x13622b){const _0x3ff091=_0x456ae8;this[_0x3ff091(0x19e)](),this['shown']=_0x13622b;if(this[_0x3ff091(0x17d)])this['primitive'][_0x3ff091(0x16f)]=_0x13622b;this[_0x3ff091(0x1aa)]['scene'][_0x3ff091(0x19a)]();}[_0x456ae8(0x1a4)](_0xa6031a){const _0x3aa481=_0x456ae8;this[_0x3aa481(0x19e)]();if(_0xa6031a['quality']){this[_0x3aa481(0x185)]=_0xa6031a['quality'];if(this[_0x3aa481(0x17d)])this[_0x3aa481(0x17d)][_0x3aa481(0x197)]=getStepSize(this[_0x3aa481(0x185)]);}if(_0xa6031a[_0x3aa481(0x184)]!==undefined)this['opacity']=clampOpacity(_0xa6031a[_0x3aa481(0x184)]);if(_0xa6031a[_0x3aa481(0x16e)]!==undefined)this[_0x3aa481(0x16e)]=validatePositive(_0xa6031a[_0x3aa481(0x16e)],_0x3aa481(0x16e));_0xa6031a[_0x3aa481(0x1a9)]!==undefined&&(this[_0x3aa481(0x1a9)]=validatePositive(_0xa6031a[_0x3aa481(0x1a9)],_0x3aa481(0x1a9)),this[_0x3aa481(0x1a3)]());const _0x165d9e=_0xa6031a[_0x3aa481(0x182)]!==undefined||_0xa6031a[_0x3aa481(0x19f)]!==undefined||_0xa6031a[_0x3aa481(0x18c)]!==undefined;if(_0xa6031a[_0x3aa481(0x182)])this[_0x3aa481(0x182)]=[..._0xa6031a[_0x3aa481(0x182)]];if(_0xa6031a['opacityStops'])this[_0x3aa481(0x19f)]=[..._0xa6031a[_0x3aa481(0x19f)]];if(_0xa6031a[_0x3aa481(0x18c)])this[_0x3aa481(0x18c)]=_0xa6031a[_0x3aa481(0x18c)];if(_0x165d9e)this[_0x3aa481(0x1a1)]();this[_0x3aa481(0x1a8)](),this['map']['scene'][_0x3aa481(0x19a)]();}async[_0x456ae8(0x169)](_0x255e2c){const _0x4f9ff3=_0x456ae8;this[_0x4f9ff3(0x19e)](),this[_0x4f9ff3(0x188)]=_0x255e2c,this[_0x4f9ff3(0x1b3)]=Math['min'](this[_0x4f9ff3(0x1b3)],_0x255e2c['metadata'][_0x4f9ff3(0x176)]-0x1),await this[_0x4f9ff3(0x19c)]();}async[_0x456ae8(0x1b4)](_0x534683){const _0x55003b=_0x456ae8;this['assertAlive']();if(_0x534683===this[_0x55003b(0x1b3)])return;this[_0x55003b(0x1b3)]=_0x534683,await this[_0x55003b(0x19c)]();}[_0x456ae8(0x1ad)](){const _0x4e42c0=_0x456ae8;if(this['destroyed'])return;this[_0x4e42c0(0x1a5)]=!![],this[_0x4e42c0(0x16b)]?.[_0x4e42c0(0x190)](),this[_0x4e42c0(0x16b)]=null;if(this[_0x4e42c0(0x17d)])this['map'][_0x4e42c0(0x186)][_0x4e42c0(0x19b)][_0x4e42c0(0x17c)](this['primitive']);this['primitive']=null;}async[_0x456ae8(0x19c)](){const _0x580084=_0x456ae8;this['loadController']?.[_0x580084(0x190)]();const _0x57e509=new AbortController();this[_0x580084(0x16b)]=_0x57e509;try{const _0x116eb2=await loadNativeVoxelData(this[_0x580084(0x188)],this[_0x580084(0x1b3)],_0x57e509[_0x580084(0x1ac)]);if(this[_0x580084(0x1a5)]||_0x57e509[_0x580084(0x1ac)][_0x580084(0x199)])return;const _0xcfb03c=createNativeVoxelProvider(this[_0x580084(0x17e)],this[_0x580084(0x188)],_0x116eb2,this[_0x580084(0x1a9)]),_0x34f20e=this[_0x580084(0x175)](),_0x29f6be=new this[(_0x580084(0x17e))][(_0x580084(0x18f))]({'provider':_0xcfb03c,'customShader':_0x34f20e,'calculateStatistics':!![]});_0x29f6be[_0x580084(0x16f)]=this[_0x580084(0x1ab)],_0x29f6be[_0x580084(0x197)]=getStepSize(this['quality']),_0x29f6be[_0x580084(0x16a)]=0x8,_0x29f6be[_0x580084(0x1b6)]=!![],_0x29f6be[_0x580084(0x187)]=![];const _0x11e135=this[_0x580084(0x17d)];this['primitive']=this[_0x580084(0x1aa)][_0x580084(0x186)][_0x580084(0x19b)]['add'](_0x29f6be);if(_0x11e135)this['map'][_0x580084(0x186)]['primitives'][_0x580084(0x17c)](_0x11e135);this[_0x580084(0x1aa)][_0x580084(0x186)][_0x580084(0x19a)]();}catch(_0x4b1005){if(_0x57e509[_0x580084(0x1ac)][_0x580084(0x199)])return;const _0x3bbc38=getError(_0x4b1005);this['onError']?.(_0x3bbc38);throw _0x3bbc38;}finally{if(this[_0x580084(0x16b)]===_0x57e509)this['loadController']=null;}}['createCustomShader'](){const _0x171f14=_0x456ae8;return new this[(_0x171f14(0x17e))][(_0x171f14(0x198))]({'uniforms':{'u_opacity':{'type':this[_0x171f14(0x17e)][_0x171f14(0x195)][_0x171f14(0x1b2)],'value':this[_0x171f14(0x184)]},'u_densityScale':{'type':this[_0x171f14(0x17e)]['UniformType'][_0x171f14(0x1b2)],'value':this[_0x171f14(0x16e)]}},'lightingModel':this[_0x171f14(0x17e)][_0x171f14(0x1a7)][_0x171f14(0x17f)],'translucencyMode':this['cesium'][_0x171f14(0x193)][_0x171f14(0x17a)],'fragmentShaderText':createNativeVoxelFragmentShader(this[_0x171f14(0x182)],this['opacityStops'],this[_0x171f14(0x18c)])});}[_0x456ae8(0x1a1)](){const _0x960cda=_0x456ae8;if(!this['primitive'])return;const _0x3600de=this[_0x960cda(0x17d)][_0x960cda(0x17b)];this[_0x960cda(0x17d)][_0x960cda(0x17b)]=this[_0x960cda(0x175)](),_0x3600de['destroy']();}[_0x456ae8(0x1a8)](){const _0x159c17=_0x456ae8;this['primitive']?.['customShader']['setUniform']('u_opacity',this[_0x159c17(0x184)]),this['primitive']?.[_0x159c17(0x17b)]['setUniform'](_0x159c17(0x1a6),this['densityScale']);}[_0x456ae8(0x1a3)](){const _0x5a9aba=_0x456ae8;if(!this[_0x5a9aba(0x17d)])return;const {xAxis:_0x255b2d,yAxis:_0x17381a,zAxis:_0x36836a}=this[_0x5a9aba(0x188)]['metadata'],_0x14739d=Math['min'](_0x17381a[_0x5a9aba(0x1a2)],_0x17381a[_0x5a9aba(0x18e)]);this[_0x5a9aba(0x17d)]['minBounds']=new this['cesium']['Cartesian3'](Math[_0x5a9aba(0x194)](_0x255b2d[_0x5a9aba(0x1a2)],_0x255b2d[_0x5a9aba(0x18e)])*Math['PI']/0xb4,Math[_0x5a9aba(0x194)](_0x36836a['start'],_0x36836a[_0x5a9aba(0x18e)])*Math['PI']/0xb4,_0x14739d),this['primitive'][_0x5a9aba(0x18d)]=new this[(_0x5a9aba(0x17e))][(_0x5a9aba(0x171))](Math[_0x5a9aba(0x19d)](_0x255b2d['start'],_0x255b2d[_0x5a9aba(0x18e)])*Math['PI']/0xb4,Math[_0x5a9aba(0x19d)](_0x36836a[_0x5a9aba(0x1a2)],_0x36836a[_0x5a9aba(0x18e)])*Math['PI']/0xb4,_0x14739d+Math[_0x5a9aba(0x16c)](_0x17381a[_0x5a9aba(0x18e)]-_0x17381a['start'])*this['verticalScale']);}['assertAlive'](){const _0x5f3c21=_0x456ae8;if(this[_0x5f3c21(0x1a5)])throw new Error(_0x5f3c21(0x174));}}
|
|
1
|
+
const _0x215af0=_0x4276;function _0x4276(_0x265447,_0x2712e1){const _0x5b350c=_0x5b35();return _0x4276=function(_0x4276e2,_0x3b47cf){_0x4276e2=_0x4276e2-0xb8;let _0x4bc1fd=_0x5b350c[_0x4276e2];return _0x4bc1fd;},_0x4276(_0x265447,_0x2712e1);}(function(_0x517d9c,_0x12bb01){const _0x3ba09a=_0x4276,_0x5237a7=_0x517d9c();while(!![]){try{const _0xe014aa=parseInt(_0x3ba09a(0xfa))/0x1*(parseInt(_0x3ba09a(0xfe))/0x2)+-parseInt(_0x3ba09a(0xe8))/0x3+-parseInt(_0x3ba09a(0xeb))/0x4*(parseInt(_0x3ba09a(0xca))/0x5)+-parseInt(_0x3ba09a(0xe0))/0x6*(parseInt(_0x3ba09a(0xc2))/0x7)+-parseInt(_0x3ba09a(0xd0))/0x8+parseInt(_0x3ba09a(0xf2))/0x9+parseInt(_0x3ba09a(0xe4))/0xa*(parseInt(_0x3ba09a(0xec))/0xb);if(_0xe014aa===_0x12bb01)break;else _0x5237a7['push'](_0x5237a7['shift']());}catch(_0x41806b){_0x5237a7['push'](_0x5237a7['shift']());}}}(_0x5b35,0x32d42));import{createNativeVoxelFragmentShader}from'./nativeVoxelShader';import{createNativeVoxelProvider}from'./nativeVoxelProvider';import{loadNativeVoxelData}from'./voxelData';function _0x5b35(){const _0x43ce39=['Cartesian3','setTimeIndex','customShader','show','requestRender','end','cesium','1AAMscV','source','colorMode','visited','770018IlbHBY','update','map','LightingModel','aborted','minBounds','opacityStops','\x20必须是正有限数。','UniformType','quality','updateBounds','performance','balanced','TRANSLUCENT','1149631KQABVv','u_densityScale','createCustomShader','auto','readyPromise','smooth','onError','isFinite','110mLzxSQ','updateShaderUniforms','destroy','setUniform','abort','shown','2099752mcSoQB','opacity','primitive','A\x20destroyed\x20native\x20Mars3D\x20volume\x20cannot\x20be\x20used.\x20已销毁的\x20Mars3D\x20原生体积不能继续使用。','numberOfTilesWithContentReady','timeIndex','Native\x20volume\x20opacity\x20must\x20be\x20finite.\x20原生体积透明度必须是有限数。','replaceCustomShader','signal','statistics','UNLIT','assertAlive','max','\x20must\x20be\x20a\x20positive\x20finite\x20number.\x20','destroyed','scene','12xvrAaq','loadController','replacePrimitive','verticalScale','20TTBjBP','nearestSampling','densityScale','colorStops','450072wlkjzo','stepSize','min','74988VkgqPy','5098313bimfda','start','remove','FLOAT','CustomShader','primitives','446508nHdclV'];_0x5b35=function(){return _0x43ce39;};return _0x5b35();}const getError=_0x2c8af2=>_0x2c8af2 instanceof Error?_0x2c8af2:new Error(String(_0x2c8af2)),getStepSize=_0x4ec531=>{const _0x5f5c9e=_0x4276;if(_0x4ec531===_0x5f5c9e(0xbd))return 0.65;if(_0x4ec531===_0x5f5c9e(0xbf))return 1.8;if(_0x4ec531===_0x5f5c9e(0xc5))return 1.15;return 0x1;},validatePositive=(_0xeeb2d4,_0x1d952f)=>{const _0x1bc2ef=_0x4276;if(!(_0xeeb2d4>0x0)||!Number['isFinite'](_0xeeb2d4))throw new Error(_0x1d952f+_0x1bc2ef(0xdd)+_0x1d952f+_0x1bc2ef(0xbb));return _0xeeb2d4;},clampOpacity=_0x5b7300=>{const _0x1ac69d=_0x4276;if(!Number[_0x1ac69d(0xc9)](_0x5b7300))throw new Error(_0x1ac69d(0xd6));return Math[_0x1ac69d(0xdc)](0x0,Math[_0x1ac69d(0xea)](0x1,_0x5b7300));};export class Mars3dNativeVolumeRenderer{[_0x215af0(0xc6)];['map'];['cesium'];['onError'];['primitive']=null;['source'];[_0x215af0(0xd5)];['quality'];[_0x215af0(0xd1)];[_0x215af0(0xe6)];['verticalScale'];[_0x215af0(0xe7)];[_0x215af0(0xba)];[_0x215af0(0xfc)];[_0x215af0(0xcf)];[_0x215af0(0xde)]=![];[_0x215af0(0xe1)]=null;constructor(_0x553f4a,_0x30aa32,_0x3f32d8){const _0xd59512=_0x215af0;this[_0xd59512(0x100)]=_0x553f4a,this['cesium']=_0x30aa32,this[_0xd59512(0xc8)]=_0x3f32d8[_0xd59512(0xc8)],this['source']=_0x3f32d8['source'],this[_0xd59512(0xd5)]=_0x3f32d8[_0xd59512(0xd5)]??0x0,this['quality']=_0x3f32d8['quality']??_0xd59512(0xc0),this[_0xd59512(0xd1)]=clampOpacity(_0x3f32d8[_0xd59512(0xd1)]??0.3),this['densityScale']=validatePositive(_0x3f32d8[_0xd59512(0xe6)]??0x64,_0xd59512(0xe6)),this[_0xd59512(0xe3)]=validatePositive(_0x3f32d8[_0xd59512(0xe3)]??0x1,'verticalScale'),this['colorStops']=[..._0x3f32d8[_0xd59512(0xe7)]],this[_0xd59512(0xba)]=[..._0x3f32d8[_0xd59512(0xba)]],this[_0xd59512(0xfc)]=_0x3f32d8[_0xd59512(0xfc)]??_0xd59512(0xc7),this[_0xd59512(0xcf)]=_0x3f32d8['show']??!![],this[_0xd59512(0xc6)]=this[_0xd59512(0xe2)]();}get['statistics'](){const _0x257b67=_0x215af0,_0x10e427=this['primitive']?.[_0x257b67(0xd9)];if(!_0x10e427)return null;return{'texturesByteLength':_0x10e427['texturesByteLength']??0x0,'visited':_0x10e427[_0x257b67(0xfd)]??0x0,'numberOfTilesWithContentReady':_0x10e427[_0x257b67(0xd4)]??0x0};}['setShow'](_0x474fd8){const _0x2afe2a=_0x215af0;this['assertAlive'](),this['shown']=_0x474fd8;if(this[_0x2afe2a(0xd2)])this['primitive']['show']=_0x474fd8;this[_0x2afe2a(0x100)][_0x2afe2a(0xdf)][_0x2afe2a(0xf7)]();}[_0x215af0(0xff)](_0x245546){const _0x1104d=_0x215af0;this[_0x1104d(0xdb)]();if(_0x245546[_0x1104d(0xbd)]){this[_0x1104d(0xbd)]=_0x245546[_0x1104d(0xbd)];if(this[_0x1104d(0xd2)])this[_0x1104d(0xd2)][_0x1104d(0xe9)]=getStepSize(this[_0x1104d(0xbd)]);}if(_0x245546[_0x1104d(0xd1)]!==undefined)this[_0x1104d(0xd1)]=clampOpacity(_0x245546[_0x1104d(0xd1)]);if(_0x245546[_0x1104d(0xe6)]!==undefined)this[_0x1104d(0xe6)]=validatePositive(_0x245546[_0x1104d(0xe6)],_0x1104d(0xe6));_0x245546['verticalScale']!==undefined&&(this[_0x1104d(0xe3)]=validatePositive(_0x245546['verticalScale'],'verticalScale'),this[_0x1104d(0xbe)]());const _0x4f25d9=_0x245546['colorStops']!==undefined||_0x245546[_0x1104d(0xba)]!==undefined||_0x245546[_0x1104d(0xfc)]!==undefined;if(_0x245546[_0x1104d(0xe7)])this[_0x1104d(0xe7)]=[..._0x245546[_0x1104d(0xe7)]];if(_0x245546[_0x1104d(0xba)])this['opacityStops']=[..._0x245546['opacityStops']];if(_0x245546[_0x1104d(0xfc)])this[_0x1104d(0xfc)]=_0x245546[_0x1104d(0xfc)];if(_0x4f25d9)this[_0x1104d(0xd7)]();this[_0x1104d(0xcb)](),this[_0x1104d(0x100)][_0x1104d(0xdf)][_0x1104d(0xf7)]();}async['setSource'](_0x4a2d1b){const _0x6fd355=_0x215af0;this[_0x6fd355(0xdb)](),this[_0x6fd355(0xfb)]=_0x4a2d1b,this['timeIndex']=Math[_0x6fd355(0xea)](this[_0x6fd355(0xd5)],_0x4a2d1b['metadata']['timeCount']-0x1),await this['replacePrimitive']();}async[_0x215af0(0xf4)](_0x4e76f9){const _0x3e5240=_0x215af0;this['assertAlive']();if(_0x4e76f9===this[_0x3e5240(0xd5)])return;this[_0x3e5240(0xd5)]=_0x4e76f9,await this[_0x3e5240(0xe2)]();}[_0x215af0(0xcc)](){const _0x5d5fbd=_0x215af0;if(this[_0x5d5fbd(0xde)])return;this[_0x5d5fbd(0xde)]=!![],this[_0x5d5fbd(0xe1)]?.[_0x5d5fbd(0xce)](),this[_0x5d5fbd(0xe1)]=null;if(this[_0x5d5fbd(0xd2)])this[_0x5d5fbd(0x100)][_0x5d5fbd(0xdf)][_0x5d5fbd(0xf1)][_0x5d5fbd(0xee)](this[_0x5d5fbd(0xd2)]);this[_0x5d5fbd(0xd2)]=null;}async[_0x215af0(0xe2)](){const _0x2225c2=_0x215af0;this[_0x2225c2(0xe1)]?.['abort']();const _0x17ae46=new AbortController();this['loadController']=_0x17ae46;try{const _0x1cee61=await loadNativeVoxelData(this[_0x2225c2(0xfb)],this[_0x2225c2(0xd5)],_0x17ae46[_0x2225c2(0xd8)]);if(this['destroyed']||_0x17ae46[_0x2225c2(0xd8)][_0x2225c2(0xb8)])return;const _0x264bbf=createNativeVoxelProvider(this[_0x2225c2(0xf9)],this[_0x2225c2(0xfb)],_0x1cee61,this[_0x2225c2(0xe3)]),_0x46933f=this[_0x2225c2(0xc4)](),_0x3f17a8=new this[(_0x2225c2(0xf9))]['VoxelPrimitive']({'provider':_0x264bbf,'customShader':_0x46933f,'calculateStatistics':!![]});_0x3f17a8[_0x2225c2(0xf6)]=this[_0x2225c2(0xcf)],_0x3f17a8['stepSize']=getStepSize(this[_0x2225c2(0xbd)]),_0x3f17a8['screenSpaceError']=0x8,_0x3f17a8['depthTest']=!![],_0x3f17a8[_0x2225c2(0xe5)]=![];const _0x147954=this['primitive'];this[_0x2225c2(0xd2)]=this[_0x2225c2(0x100)][_0x2225c2(0xdf)][_0x2225c2(0xf1)]['add'](_0x3f17a8);if(_0x147954)this[_0x2225c2(0x100)]['scene'][_0x2225c2(0xf1)]['remove'](_0x147954);this['map'][_0x2225c2(0xdf)][_0x2225c2(0xf7)]();}catch(_0x3aeeb6){if(_0x17ae46['signal'][_0x2225c2(0xb8)])return;const _0x452251=getError(_0x3aeeb6);this[_0x2225c2(0xc8)]?.(_0x452251);throw _0x452251;}finally{if(this[_0x2225c2(0xe1)]===_0x17ae46)this[_0x2225c2(0xe1)]=null;}}[_0x215af0(0xc4)](){const _0x5e34d6=_0x215af0;return new this[(_0x5e34d6(0xf9))][(_0x5e34d6(0xf0))]({'uniforms':{'u_opacity':{'type':this[_0x5e34d6(0xf9)][_0x5e34d6(0xbc)][_0x5e34d6(0xef)],'value':this['opacity']},'u_densityScale':{'type':this['cesium'][_0x5e34d6(0xbc)][_0x5e34d6(0xef)],'value':this[_0x5e34d6(0xe6)]}},'lightingModel':this[_0x5e34d6(0xf9)][_0x5e34d6(0x101)][_0x5e34d6(0xda)],'translucencyMode':this[_0x5e34d6(0xf9)]['CustomShaderTranslucencyMode'][_0x5e34d6(0xc1)],'fragmentShaderText':createNativeVoxelFragmentShader(this[_0x5e34d6(0xe7)],this['opacityStops'],this[_0x5e34d6(0xfc)])});}[_0x215af0(0xd7)](){const _0x390ccd=_0x215af0;if(!this[_0x390ccd(0xd2)])return;const _0x4e0acd=this[_0x390ccd(0xd2)][_0x390ccd(0xf5)];this[_0x390ccd(0xd2)][_0x390ccd(0xf5)]=this['createCustomShader'](),_0x4e0acd['destroy']();}[_0x215af0(0xcb)](){const _0x2d9d5b=_0x215af0;this[_0x2d9d5b(0xd2)]?.[_0x2d9d5b(0xf5)][_0x2d9d5b(0xcd)]('u_opacity',this[_0x2d9d5b(0xd1)]),this['primitive']?.[_0x2d9d5b(0xf5)][_0x2d9d5b(0xcd)](_0x2d9d5b(0xc3),this[_0x2d9d5b(0xe6)]);}[_0x215af0(0xbe)](){const _0x4374c5=_0x215af0;if(!this[_0x4374c5(0xd2)])return;const {xAxis:_0x480edf,yAxis:_0x542ee7,zAxis:_0x550184}=this[_0x4374c5(0xfb)]['metadata'],_0x1f25fe=Math[_0x4374c5(0xea)](_0x542ee7[_0x4374c5(0xed)],_0x542ee7['end']);this[_0x4374c5(0xd2)][_0x4374c5(0xb9)]=new this['cesium'][(_0x4374c5(0xf3))](Math[_0x4374c5(0xea)](_0x480edf['start'],_0x480edf[_0x4374c5(0xf8)])*Math['PI']/0xb4,Math['min'](_0x550184['start'],_0x550184[_0x4374c5(0xf8)])*Math['PI']/0xb4,_0x1f25fe),this[_0x4374c5(0xd2)]['maxBounds']=new this[(_0x4374c5(0xf9))]['Cartesian3'](Math['max'](_0x480edf['start'],_0x480edf[_0x4374c5(0xf8)])*Math['PI']/0xb4,Math[_0x4374c5(0xdc)](_0x550184[_0x4374c5(0xed)],_0x550184[_0x4374c5(0xf8)])*Math['PI']/0xb4,_0x1f25fe+Math['abs'](_0x542ee7[_0x4374c5(0xf8)]-_0x542ee7[_0x4374c5(0xed)])*this['verticalScale']);}[_0x215af0(0xdb)](){const _0xb877de=_0x215af0;if(this[_0xb877de(0xde)])throw new Error(_0xb877de(0xd3));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1a0b(_0x43b289,_0x3e1df3){const _0x57151e=_0x5715();return _0x1a0b=function(_0x1a0b4a,_0x28ce65){_0x1a0b4a=_0x1a0b4a-0xa6;let _0x2a290d=_0x57151e[_0x1a0b4a];return _0x2a290d;},_0x1a0b(_0x43b289,_0x3e1df3);}const _0xb5a9bf=_0x1a0b;(function(_0x142298,_0x456d26){const _0x57599a=_0x1a0b,_0x41827d=_0x142298();while(!![]){try{const _0x4dbb4b=parseInt(_0x57599a(0xf6))/0x1+-parseInt(_0x57599a(0xab))/0x2+parseInt(_0x57599a(0xed))/0x3+-parseInt(_0x57599a(0xce))/0x4+parseInt(_0x57599a(0xa7))/0x5*(-parseInt(_0x57599a(0xb3))/0x6)+parseInt(_0x57599a(0xd4))/0x7+-parseInt(_0x57599a(0xa6))/0x8;if(_0x4dbb4b===_0x456d26)break;else _0x41827d['push'](_0x41827d['shift']());}catch(_0x51f781){_0x41827d['push'](_0x41827d['shift']());}}}(_0x5715,0xe4aa3));import{LiveUpdateScheduler}from'./liveUpdateScheduler';function _0x5715(){const _0x3238f1=['destroyed','Math','Material','uniforms','12894476oBhvgq','scene','sync','Cartesian3','MaterialSupport','dirtySliceIds','Rectangle','entries','source','remove','pending','createAltitudeGeometry','map','schedule','removeListener','slices','getContext','destroy','metadata','rebuild','min','get','vertexFormat','postRender','has','5379378GBvJmQ','RectangleGeometry','VERTEX_FORMAT','start','keys','Primitive','verticalScale','shown','visible','1864768cIdyVs','removePending','createColor','delete','cesium','17733064sBCBeN','5nSVCml','EllipsoidSurfaceAppearance','createElement','canvas','782824MevvQM','zAxis','filter','Image','getAxis','replace','end','WallGeometry','11171526eOIUPB','TEXTURED','createRenderState','rebuildScheduler','data','fromRadians','primitives','yAxis','pixels','position','cancel','add','requestRender','setShow','values','primitive','createWallGeometry','MaterialAppearance','max','abs','Color','width','set','show','state','height','axis','373540EOQRxG','toRadians'];_0x5715=function(){return _0x3238f1;};return _0x5715();}import{createNativeAxisSliceImage,nativeAxisPositionToIndex}from'./nativeSliceAtlas';export class NativeAxisSliceRenderer{[_0xb5a9bf(0xe0)];[_0xb5a9bf(0xfa)];[_0xb5a9bf(0xdb)]=new Map();[_0xb5a9bf(0xde)]=new Map();[_0xb5a9bf(0xd9)]=new Set();[_0xb5a9bf(0xb6)];[_0xb5a9bf(0xcb)]=null;[_0xb5a9bf(0xf4)]=!![];[_0xb5a9bf(0xd0)]=![];constructor(_0x9c7aab,_0x502696){const _0x52c37b=_0xb5a9bf;this[_0x52c37b(0xe0)]=_0x9c7aab,this[_0x52c37b(0xfa)]=_0x502696,this[_0x52c37b(0xb6)]=new LiveUpdateScheduler(()=>this[_0x52c37b(0xe7)](),0x3c);}[_0xb5a9bf(0xd6)](_0x256c3b,_0x30b5f4=![]){const _0x172486=_0xb5a9bf;if(this[_0x172486(0xd0)])return;const _0x3c53c2=new Map(this[_0x172486(0xcb)]?.[_0x172486(0xe3)][_0x172486(0xe0)](_0xccd78c=>[_0xccd78c['id'],_0xccd78c])??[]);for(const _0x242e75 of _0x256c3b[_0x172486(0xe3)]){const _0x3a3e1d=_0x3c53c2[_0x172486(0xe9)](_0x242e75['id']);if(!_0x3a3e1d||_0x3a3e1d[_0x172486(0xcd)]!==_0x242e75[_0x172486(0xcd)]||_0x3a3e1d['position']!==_0x242e75['position']||_0x3a3e1d['visible']!==_0x242e75[_0x172486(0xf5)])this[_0x172486(0xd9)][_0x172486(0xbe)](_0x242e75['id']);}this['state']=_0x256c3b;if(_0x30b5f4){for(const _0x309713 of _0x256c3b[_0x172486(0xe3)])this[_0x172486(0xd9)][_0x172486(0xbe)](_0x309713['id']);this[_0x172486(0xb6)]['cancel'](),this[_0x172486(0xe7)]();}else this[_0x172486(0xb6)][_0x172486(0xe1)]();}[_0xb5a9bf(0xc0)](_0x416ff4){const _0x367b23=_0xb5a9bf;this[_0x367b23(0xf4)]=_0x416ff4;for(const _0x33a965 of this[_0x367b23(0xdb)][_0x367b23(0xc1)]())_0x33a965[_0x367b23(0xc2)]['show']=_0x416ff4;this[_0x367b23(0xe0)][_0x367b23(0xd5)]['requestRender']();}[_0xb5a9bf(0xe5)](){const _0x50b3ab=_0xb5a9bf;if(this[_0x50b3ab(0xd0)])return;this[_0x50b3ab(0xd0)]=!![],this[_0x50b3ab(0xb6)][_0x50b3ab(0xbd)]();for(const _0x3ac40c of[...this['entries'][_0x50b3ab(0xf1)](),...this[_0x50b3ab(0xde)][_0x50b3ab(0xf1)]()])this[_0x50b3ab(0xdd)](_0x3ac40c);this[_0x50b3ab(0xcb)]=null;}['rebuild'](){const _0x79f7bd=_0xb5a9bf,_0x3eb69f=this[_0x79f7bd(0xcb)];if(!_0x3eb69f||this['destroyed'])return;const _0x4c4af2=new Set(_0x3eb69f[_0x79f7bd(0xe3)][_0x79f7bd(0xad)](_0x4cec27=>_0x4cec27[_0x79f7bd(0xf5)])['map'](_0x1305c1=>_0x1305c1['id']));for(const _0x17c335 of new Set([...this[_0x79f7bd(0xdb)]['keys'](),...this['pending'][_0x79f7bd(0xf1)](),...this[_0x79f7bd(0xd9)]])){if(_0x4c4af2['has'](_0x17c335))continue;this[_0x79f7bd(0xdd)](_0x17c335),this[_0x79f7bd(0xd9)]['delete'](_0x17c335);}for(const _0x46fbcf of _0x3eb69f[_0x79f7bd(0xe3)]){if(!_0x46fbcf[_0x79f7bd(0xf5)])continue;if(this[_0x79f7bd(0xd9)][_0x79f7bd(0xec)](_0x46fbcf['id'])||!this[_0x79f7bd(0xdb)][_0x79f7bd(0xec)](_0x46fbcf['id'])&&!this[_0x79f7bd(0xde)][_0x79f7bd(0xec)](_0x46fbcf['id']))this['replace'](_0x46fbcf,_0x3eb69f);this[_0x79f7bd(0xd9)][_0x79f7bd(0xf9)](_0x46fbcf['id']);}this['map'][_0x79f7bd(0xd5)]['requestRender']();}[_0xb5a9bf(0xb0)](_0x26d8a0,_0x155d37){const _0x1c1d6c=_0xb5a9bf;this['removePending'](_0x26d8a0['id']);const _0x47e4cf=this[_0x1c1d6c(0xdb)][_0x1c1d6c(0xe9)](_0x26d8a0['id']),_0x2fc652=createNativeAxisSliceImage(_0x155d37[_0x1c1d6c(0xb7)],_0x26d8a0['axis'],nativeAxisPositionToIndex(this[_0x1c1d6c(0xaf)](_0x155d37[_0x1c1d6c(0xdc)],_0x26d8a0[_0x1c1d6c(0xcd)]),_0x26d8a0[_0x1c1d6c(0xbc)]),_0x155d37),_0x4da3b5=document[_0x1c1d6c(0xa9)](_0x1c1d6c(0xaa));_0x4da3b5[_0x1c1d6c(0xc8)]=_0x2fc652['width'],_0x4da3b5[_0x1c1d6c(0xcc)]=_0x2fc652[_0x1c1d6c(0xcc)];const _0x2c757e=_0x4da3b5[_0x1c1d6c(0xe4)]('2d');if(!_0x2c757e)throw new Error('Native\x20axis\x20slice\x20requires\x20a\x202D\x20canvas\x20context.\x20原生轴切片需要\x202D\x20画布上下文。');_0x2c757e['putImageData'](new ImageData(new Uint8ClampedArray(_0x2fc652[_0x1c1d6c(0xbb)]),_0x2fc652[_0x1c1d6c(0xc8)],_0x2fc652['height']),0x0,0x0);const _0x20fe0a=new this[(_0x1c1d6c(0xfa))][(_0x1c1d6c(0xd2))]({'fabric':{'type':_0x1c1d6c(0xae),'uniforms':{'image':_0x4da3b5,'color':this[_0x1c1d6c(0xf8)](_0x47e4cf?0x0:0x1)}}}),_0x2eaac3=_0x26d8a0[_0x1c1d6c(0xcd)]==='y'?this['createAltitudeGeometry'](_0x155d37[_0x1c1d6c(0xdc)],_0x26d8a0['position'],_0x155d37[_0x1c1d6c(0xf3)]):this[_0x1c1d6c(0xc3)](_0x155d37[_0x1c1d6c(0xdc)],_0x26d8a0,_0x155d37[_0x1c1d6c(0xf3)]),_0xc393b5=_0x26d8a0['axis']==='y'?new this['cesium']['EllipsoidSurfaceAppearance']({'material':_0x20fe0a,'aboveGround':!![],'faceForward':!![],'flat':!![],'translucent':!![],'renderState':this['createRenderState']()}):new this[(_0x1c1d6c(0xfa))][(_0x1c1d6c(0xc4))]({'material':_0x20fe0a,'materialSupport':this[_0x1c1d6c(0xfa)]['MaterialAppearance'][_0x1c1d6c(0xd8)]['TEXTURED'],'faceForward':!![],'flat':!![],'translucent':!![],'closed':![],'renderState':this[_0x1c1d6c(0xb5)]()}),_0x26c3d4=new this['cesium'][(_0x1c1d6c(0xf2))]({'geometryInstances':new this[(_0x1c1d6c(0xfa))]['GeometryInstance']({'geometry':_0x2eaac3}),'appearance':_0xc393b5,'asynchronous':![],'allowPicking':![],'releaseGeometryInstances':!![],'compressVertices':!![]});_0x26c3d4[_0x1c1d6c(0xca)]=_0x47e4cf?!![]:this[_0x1c1d6c(0xf4)];const _0x56f48f=this[_0x1c1d6c(0xe0)]['scene'][_0x1c1d6c(0xb9)][_0x1c1d6c(0xbe)](_0x26c3d4);if(!_0x47e4cf){this[_0x1c1d6c(0xdb)][_0x1c1d6c(0xc9)](_0x26d8a0['id'],{'primitive':_0x56f48f,'material':_0x20fe0a});return;}const _0x550d6a={'primitive':_0x56f48f,'material':_0x20fe0a},_0xef3565=this[_0x1c1d6c(0xe0)][_0x1c1d6c(0xd5)][_0x1c1d6c(0xeb)]['addEventListener'](()=>{const _0x3f3cf8=_0x1c1d6c;if(!_0x56f48f['ready']||this[_0x3f3cf8(0xde)][_0x3f3cf8(0xe9)](_0x26d8a0['id'])!==_0x550d6a)return;_0x550d6a['removeListener']?.(),_0x20fe0a[_0x3f3cf8(0xd3)]['color']=this['createColor'](0x1),_0x56f48f[_0x3f3cf8(0xca)]=this[_0x3f3cf8(0xf4)],_0x47e4cf['primitive'][_0x3f3cf8(0xca)]=![],this[_0x3f3cf8(0xe0)][_0x3f3cf8(0xd5)][_0x3f3cf8(0xb9)]['remove'](_0x47e4cf[_0x3f3cf8(0xc2)]),this[_0x3f3cf8(0xdb)][_0x3f3cf8(0xc9)](_0x26d8a0['id'],{'primitive':_0x56f48f,'material':_0x20fe0a}),this[_0x3f3cf8(0xde)]['delete'](_0x26d8a0['id']),this[_0x3f3cf8(0xe0)][_0x3f3cf8(0xd5)][_0x3f3cf8(0xbf)]();});if(_0xef3565)_0x550d6a[_0x1c1d6c(0xe2)]=_0xef3565;this['pending'][_0x1c1d6c(0xc9)](_0x26d8a0['id'],_0x550d6a);}[_0xb5a9bf(0xdf)](_0x54a421,_0x2d8d56,_0xe111ef){const _0x40eacd=_0xb5a9bf,{xAxis:_0x5ba6b7,yAxis:_0x1e9dfe,zAxis:_0x5707dc}=_0x54a421['metadata'],_0x1d7ae6=Math['min'](_0x1e9dfe[_0x40eacd(0xf0)],_0x1e9dfe[_0x40eacd(0xb1)]),_0x2dcfc3=_0x1d7ae6+(_0x2d8d56-_0x1d7ae6)*_0xe111ef;return new this[(_0x40eacd(0xfa))][(_0x40eacd(0xee))]({'rectangle':this[_0x40eacd(0xfa)][_0x40eacd(0xda)]['fromDegrees'](Math[_0x40eacd(0xe8)](_0x5ba6b7['start'],_0x5ba6b7[_0x40eacd(0xb1)]),Math[_0x40eacd(0xe8)](_0x5707dc['start'],_0x5707dc[_0x40eacd(0xb1)]),Math[_0x40eacd(0xc5)](_0x5ba6b7[_0x40eacd(0xf0)],_0x5ba6b7['end']),Math[_0x40eacd(0xc5)](_0x5707dc[_0x40eacd(0xf0)],_0x5707dc[_0x40eacd(0xb1)])),'height':_0x2dcfc3,'granularity':this[_0x40eacd(0xfa)][_0x40eacd(0xd1)][_0x40eacd(0xcf)](0.5),'vertexFormat':this[_0x40eacd(0xfa)][_0x40eacd(0xa8)][_0x40eacd(0xef)]});}['createWallGeometry'](_0x3b714a,_0x5a7400,_0x35d690){const _0xbbc9f9=_0xb5a9bf,{xAxis:_0x38a8f8,yAxis:_0x41c844,zAxis:_0x11b4ad}=_0x3b714a[_0xbbc9f9(0xe6)],_0x65ac67=Math['min'](_0x38a8f8[_0xbbc9f9(0xf0)],_0x38a8f8[_0xbbc9f9(0xb1)]),_0x30ad3c=Math['max'](_0x38a8f8[_0xbbc9f9(0xf0)],_0x38a8f8[_0xbbc9f9(0xb1)]),_0x38a44b=Math['min'](_0x11b4ad[_0xbbc9f9(0xf0)],_0x11b4ad[_0xbbc9f9(0xb1)]),_0x788375=Math[_0xbbc9f9(0xc5)](_0x11b4ad[_0xbbc9f9(0xf0)],_0x11b4ad['end']),_0x4a0c67=_0x5a7400[_0xbbc9f9(0xcd)]==='x'?[this['cesium'][_0xbbc9f9(0xd7)]['fromRadians'](this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xd1)]['toRadians'](_0x5a7400['position']),this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xd1)][_0xbbc9f9(0xcf)](_0x38a44b)),this['cesium'][_0xbbc9f9(0xd7)]['fromRadians'](this[_0xbbc9f9(0xfa)]['Math']['toRadians'](_0x5a7400[_0xbbc9f9(0xbc)]),this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xd1)][_0xbbc9f9(0xcf)](_0x788375))]:[this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xd7)]['fromRadians'](this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xd1)][_0xbbc9f9(0xcf)](_0x65ac67),this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xd1)][_0xbbc9f9(0xcf)](_0x5a7400['position'])),this[_0xbbc9f9(0xfa)]['Cartesian3'][_0xbbc9f9(0xb8)](this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xd1)][_0xbbc9f9(0xcf)](_0x30ad3c),this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xd1)]['toRadians'](_0x5a7400[_0xbbc9f9(0xbc)]))],_0x2cd6bc=Math[_0xbbc9f9(0xe8)](_0x41c844[_0xbbc9f9(0xf0)],_0x41c844[_0xbbc9f9(0xb1)]);return this['cesium'][_0xbbc9f9(0xb2)]['fromConstantHeights']({'positions':_0x4a0c67,'minimumHeight':_0x2cd6bc,'maximumHeight':_0x2cd6bc+Math[_0xbbc9f9(0xc6)](_0x41c844['end']-_0x41c844[_0xbbc9f9(0xf0)])*_0x35d690,'granularity':this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xd1)][_0xbbc9f9(0xcf)](0.25),'vertexFormat':this[_0xbbc9f9(0xfa)][_0xbbc9f9(0xc4)]['MaterialSupport'][_0xbbc9f9(0xb4)][_0xbbc9f9(0xea)]});}['getAxis'](_0x21f838,_0x3cd213){const _0x5c3563=_0xb5a9bf;if(_0x3cd213==='x')return _0x21f838[_0x5c3563(0xe6)]['xAxis'];if(_0x3cd213==='y')return _0x21f838['metadata'][_0x5c3563(0xba)];return _0x21f838['metadata'][_0x5c3563(0xac)];}[_0xb5a9bf(0xf8)](_0x6286a2){const _0x1eeff3=_0xb5a9bf;return new this[(_0x1eeff3(0xfa))][(_0x1eeff3(0xc7))](0x1,0x1,0x1,_0x6286a2);}[_0xb5a9bf(0xb5)](){return{'depthTest':{'enabled':!![]},'depthMask':![],'cull':{'enabled':![]}};}[_0xb5a9bf(0xf7)](_0x225e25){const _0x3e4970=_0xb5a9bf,_0x1d119c=this[_0x3e4970(0xde)][_0x3e4970(0xe9)](_0x225e25);if(!_0x1d119c)return;_0x1d119c['removeListener']?.(),this['map'][_0x3e4970(0xd5)][_0x3e4970(0xb9)][_0x3e4970(0xdd)](_0x1d119c[_0x3e4970(0xc2)]),this[_0x3e4970(0xde)][_0x3e4970(0xf9)](_0x225e25);}[_0xb5a9bf(0xdd)](_0x5d8773){const _0x1e227b=_0xb5a9bf;this[_0x1e227b(0xf7)](_0x5d8773);const _0x8fe044=this['entries'][_0x1e227b(0xe9)](_0x5d8773);if(!_0x8fe044)return;this['map'][_0x1e227b(0xd5)][_0x1e227b(0xb9)][_0x1e227b(0xdd)](_0x8fe044[_0x1e227b(0xc2)]),this['entries'][_0x1e227b(0xf9)](_0x5d8773);}}
|
|
1
|
+
const _0x15620f=_0x5987;(function(_0xb0dc28,_0x30a641){const _0x3aea1e=_0x5987,_0x5b4df8=_0xb0dc28();while(!![]){try{const _0x239e6b=-parseInt(_0x3aea1e(0xa7))/0x1+-parseInt(_0x3aea1e(0x9e))/0x2+-parseInt(_0x3aea1e(0xac))/0x3+-parseInt(_0x3aea1e(0x9d))/0x4*(-parseInt(_0x3aea1e(0xb5))/0x5)+-parseInt(_0x3aea1e(0x8a))/0x6*(parseInt(_0x3aea1e(0x93))/0x7)+-parseInt(_0x3aea1e(0xa4))/0x8+parseInt(_0x3aea1e(0xa6))/0x9;if(_0x239e6b===_0x30a641)break;else _0x5b4df8['push'](_0x5b4df8['shift']());}catch(_0x11d778){_0x5b4df8['push'](_0x5b4df8['shift']());}}}(_0x45f7,0xe476c));function _0x5987(_0x5e84f1,_0x403f1e){const _0x45f714=_0x45f7();return _0x5987=function(_0x5987d5,_0x4d5b6d){_0x5987d5=_0x5987d5-0x81;let _0x2c457d=_0x45f714[_0x5987d5];return _0x2c457d;},_0x5987(_0x5e84f1,_0x403f1e);}import{LiveUpdateScheduler}from'./liveUpdateScheduler';import{createNativeAxisSliceImage,nativeAxisPositionToIndex}from'./nativeSliceAtlas';function _0x45f7(){const _0x4049a6=['keys','removeListener','zAxis','RectangleGeometry','TEXTURED','getContext','state','pending','sync','WallGeometry','postRender','createAltitudeGeometry','visible','replace','rebuild','abs','MaterialSupport','end','getAxis','add','get','cancel','cesium','source','scene','primitives','show','addEventListener','setShow','6ExJlkf','shown','GeometryInstance','dirtySliceIds','VERTEX_FORMAT','pixels','createRenderState','verticalScale','uniforms','8541428scDbmw','has','fromConstantHeights','MaterialAppearance','destroyed','createElement','Color','requestRender','createColor','createWallGeometry','1856XcBCGE','1325680cFgLJd','xAxis','removePending','entries','remove','delete','2355584kRIDSz','slices','40799412AFEEfW','1219666LoltDX','axis','Rectangle','map','vertexFormat','4277238eGbAcA','schedule','toRadians','EllipsoidSurfaceAppearance','fromRadians','min','Math','height','rebuildScheduler','13205HQEqop','width','max','metadata','start','Cartesian3','set','Material','primitive','position','Image','Native\x20axis\x20slice\x20requires\x20a\x202D\x20canvas\x20context.\x20原生轴切片需要\x202D\x20画布上下文。'];_0x45f7=function(){return _0x4049a6;};return _0x45f7();}export class NativeAxisSliceRenderer{['map'];['cesium'];[_0x15620f(0xa1)]=new Map();['pending']=new Map();[_0x15620f(0x8d)]=new Set();[_0x15620f(0xb4)];['state']=null;[_0x15620f(0x8b)]=!![];[_0x15620f(0x97)]=![];constructor(_0x3238ec,_0x54e414){const _0x5e8e0f=_0x15620f;this[_0x5e8e0f(0xaa)]=_0x3238ec,this[_0x5e8e0f(0x83)]=_0x54e414,this[_0x5e8e0f(0xb4)]=new LiveUpdateScheduler(()=>this[_0x5e8e0f(0xcf)](),0x3c);}[_0x15620f(0xc9)](_0x2de8c5,_0x15f920=![]){const _0x1a408d=_0x15620f;if(this['destroyed'])return;const _0x576225=new Map(this[_0x1a408d(0xc7)]?.[_0x1a408d(0xa5)][_0x1a408d(0xaa)](_0x3d0e35=>[_0x3d0e35['id'],_0x3d0e35])??[]);for(const _0x54f568 of _0x2de8c5['slices']){const _0x1626d7=_0x576225[_0x1a408d(0x81)](_0x54f568['id']);if(!_0x1626d7||_0x1626d7[_0x1a408d(0xa8)]!==_0x54f568[_0x1a408d(0xa8)]||_0x1626d7[_0x1a408d(0xbe)]!==_0x54f568['position']||_0x1626d7[_0x1a408d(0xcd)]!==_0x54f568['visible'])this[_0x1a408d(0x8d)]['add'](_0x54f568['id']);}this[_0x1a408d(0xc7)]=_0x2de8c5;if(_0x15f920){for(const _0x391f9d of _0x2de8c5[_0x1a408d(0xa5)])this[_0x1a408d(0x8d)][_0x1a408d(0xd4)](_0x391f9d['id']);this[_0x1a408d(0xb4)][_0x1a408d(0x82)](),this[_0x1a408d(0xcf)]();}else this[_0x1a408d(0xb4)][_0x1a408d(0xad)]();}[_0x15620f(0x89)](_0x512d49){const _0x3d66e1=_0x15620f;this[_0x3d66e1(0x8b)]=_0x512d49;for(const _0x468f64 of this[_0x3d66e1(0xa1)]['values']())_0x468f64[_0x3d66e1(0xbd)]['show']=_0x512d49;this[_0x3d66e1(0xaa)][_0x3d66e1(0x85)][_0x3d66e1(0x9a)]();}['destroy'](){const _0xcce27c=_0x15620f;if(this[_0xcce27c(0x97)])return;this[_0xcce27c(0x97)]=!![],this[_0xcce27c(0xb4)]['cancel']();for(const _0x212f9e of[...this[_0xcce27c(0xa1)][_0xcce27c(0xc1)](),...this['pending'][_0xcce27c(0xc1)]()])this[_0xcce27c(0xa2)](_0x212f9e);this[_0xcce27c(0xc7)]=null;}[_0x15620f(0xcf)](){const _0x136ace=_0x15620f,_0x34e90d=this[_0x136ace(0xc7)];if(!_0x34e90d||this[_0x136ace(0x97)])return;const _0x4a5a98=new Set(_0x34e90d['slices']['filter'](_0x1507d1=>_0x1507d1[_0x136ace(0xcd)])['map'](_0x4215f1=>_0x4215f1['id']));for(const _0x39ff6a of new Set([...this[_0x136ace(0xa1)][_0x136ace(0xc1)](),...this[_0x136ace(0xc8)][_0x136ace(0xc1)](),...this[_0x136ace(0x8d)]])){if(_0x4a5a98[_0x136ace(0x94)](_0x39ff6a))continue;this[_0x136ace(0xa2)](_0x39ff6a),this[_0x136ace(0x8d)]['delete'](_0x39ff6a);}for(const _0xac74d1 of _0x34e90d[_0x136ace(0xa5)]){if(!_0xac74d1[_0x136ace(0xcd)])continue;if(this[_0x136ace(0x8d)][_0x136ace(0x94)](_0xac74d1['id'])||!this[_0x136ace(0xa1)][_0x136ace(0x94)](_0xac74d1['id'])&&!this[_0x136ace(0xc8)][_0x136ace(0x94)](_0xac74d1['id']))this[_0x136ace(0xce)](_0xac74d1,_0x34e90d);this[_0x136ace(0x8d)][_0x136ace(0xa3)](_0xac74d1['id']);}this['map'][_0x136ace(0x85)][_0x136ace(0x9a)]();}[_0x15620f(0xce)](_0xb4a7fd,_0xb44bd8){const _0x6d7271=_0x15620f;this[_0x6d7271(0xa0)](_0xb4a7fd['id']);const _0x2e76ec=this[_0x6d7271(0xa1)][_0x6d7271(0x81)](_0xb4a7fd['id']),_0x37bebe=createNativeAxisSliceImage(_0xb44bd8['data'],_0xb4a7fd[_0x6d7271(0xa8)],nativeAxisPositionToIndex(this[_0x6d7271(0xd3)](_0xb44bd8[_0x6d7271(0x84)],_0xb4a7fd[_0x6d7271(0xa8)]),_0xb4a7fd[_0x6d7271(0xbe)]),_0xb44bd8),_0x587927=document[_0x6d7271(0x98)]('canvas');_0x587927[_0x6d7271(0xb6)]=_0x37bebe[_0x6d7271(0xb6)],_0x587927[_0x6d7271(0xb3)]=_0x37bebe[_0x6d7271(0xb3)];const _0x2ffc20=_0x587927[_0x6d7271(0xc6)]('2d');if(!_0x2ffc20)throw new Error(_0x6d7271(0xc0));_0x2ffc20['putImageData'](new ImageData(new Uint8ClampedArray(_0x37bebe[_0x6d7271(0x8f)]),_0x37bebe[_0x6d7271(0xb6)],_0x37bebe['height']),0x0,0x0);const _0x21455a=new this[(_0x6d7271(0x83))][(_0x6d7271(0xbc))]({'fabric':{'type':_0x6d7271(0xbf),'uniforms':{'image':_0x587927,'color':this['createColor'](_0x2e76ec?0x0:0x1)}}}),_0x2f58a1=_0xb4a7fd['axis']==='y'?this['createAltitudeGeometry'](_0xb44bd8[_0x6d7271(0x84)],_0xb4a7fd[_0x6d7271(0xbe)],_0xb44bd8[_0x6d7271(0x91)]):this['createWallGeometry'](_0xb44bd8[_0x6d7271(0x84)],_0xb4a7fd,_0xb44bd8[_0x6d7271(0x91)]),_0xd089c2=_0xb4a7fd[_0x6d7271(0xa8)]==='y'?new this['cesium'][(_0x6d7271(0xaf))]({'material':_0x21455a,'aboveGround':!![],'faceForward':!![],'flat':!![],'translucent':!![],'renderState':this['createRenderState']()}):new this[(_0x6d7271(0x83))][(_0x6d7271(0x96))]({'material':_0x21455a,'materialSupport':this['cesium'][_0x6d7271(0x96)][_0x6d7271(0xd1)][_0x6d7271(0xc5)],'faceForward':!![],'flat':!![],'translucent':!![],'closed':![],'renderState':this[_0x6d7271(0x90)]()}),_0x3605ff=new this[(_0x6d7271(0x83))]['Primitive']({'geometryInstances':new this['cesium'][(_0x6d7271(0x8c))]({'geometry':_0x2f58a1}),'appearance':_0xd089c2,'asynchronous':![],'allowPicking':![],'releaseGeometryInstances':!![],'compressVertices':!![]});_0x3605ff[_0x6d7271(0x87)]=_0x2e76ec?!![]:this[_0x6d7271(0x8b)];const _0x415d8d=this[_0x6d7271(0xaa)][_0x6d7271(0x85)][_0x6d7271(0x86)][_0x6d7271(0xd4)](_0x3605ff);if(!_0x2e76ec){this['entries'][_0x6d7271(0xbb)](_0xb4a7fd['id'],{'primitive':_0x415d8d,'material':_0x21455a});return;}const _0x4132ad={'primitive':_0x415d8d,'material':_0x21455a},_0x44d04e=this['map'][_0x6d7271(0x85)][_0x6d7271(0xcb)][_0x6d7271(0x88)](()=>{const _0x5d50f5=_0x6d7271;if(!_0x415d8d['ready']||this['pending'][_0x5d50f5(0x81)](_0xb4a7fd['id'])!==_0x4132ad)return;_0x4132ad[_0x5d50f5(0xc2)]?.(),_0x21455a[_0x5d50f5(0x92)]['color']=this[_0x5d50f5(0x9b)](0x1),_0x415d8d['show']=this['shown'],_0x2e76ec[_0x5d50f5(0xbd)][_0x5d50f5(0x87)]=![],this[_0x5d50f5(0xaa)][_0x5d50f5(0x85)]['primitives'][_0x5d50f5(0xa2)](_0x2e76ec['primitive']),this[_0x5d50f5(0xa1)][_0x5d50f5(0xbb)](_0xb4a7fd['id'],{'primitive':_0x415d8d,'material':_0x21455a}),this[_0x5d50f5(0xc8)][_0x5d50f5(0xa3)](_0xb4a7fd['id']),this['map'][_0x5d50f5(0x85)]['requestRender']();});if(_0x44d04e)_0x4132ad['removeListener']=_0x44d04e;this[_0x6d7271(0xc8)][_0x6d7271(0xbb)](_0xb4a7fd['id'],_0x4132ad);}[_0x15620f(0xcc)](_0x11ff5e,_0x43a1f2,_0x5d55af){const _0x474e3c=_0x15620f,{xAxis:_0x1e3ad3,yAxis:_0x405c84,zAxis:_0x49d79b}=_0x11ff5e['metadata'],_0x51bbba=Math[_0x474e3c(0xb1)](_0x405c84[_0x474e3c(0xb9)],_0x405c84[_0x474e3c(0xd2)]),_0x2e2132=_0x51bbba+(_0x43a1f2-_0x51bbba)*_0x5d55af;return new this[(_0x474e3c(0x83))][(_0x474e3c(0xc4))]({'rectangle':this[_0x474e3c(0x83)][_0x474e3c(0xa9)]['fromDegrees'](Math['min'](_0x1e3ad3[_0x474e3c(0xb9)],_0x1e3ad3['end']),Math['min'](_0x49d79b[_0x474e3c(0xb9)],_0x49d79b[_0x474e3c(0xd2)]),Math[_0x474e3c(0xb7)](_0x1e3ad3[_0x474e3c(0xb9)],_0x1e3ad3[_0x474e3c(0xd2)]),Math[_0x474e3c(0xb7)](_0x49d79b[_0x474e3c(0xb9)],_0x49d79b[_0x474e3c(0xd2)])),'height':_0x2e2132,'granularity':this[_0x474e3c(0x83)][_0x474e3c(0xb2)][_0x474e3c(0xae)](0.5),'vertexFormat':this[_0x474e3c(0x83)][_0x474e3c(0xaf)][_0x474e3c(0x8e)]});}[_0x15620f(0x9c)](_0x19b146,_0x2cd40d,_0x1e5a43){const _0x293b4f=_0x15620f,{xAxis:_0x4a92ee,yAxis:_0x2b07d4,zAxis:_0xcaa8f8}=_0x19b146[_0x293b4f(0xb8)],_0x114923=Math[_0x293b4f(0xb1)](_0x4a92ee[_0x293b4f(0xb9)],_0x4a92ee['end']),_0x38584a=Math[_0x293b4f(0xb7)](_0x4a92ee[_0x293b4f(0xb9)],_0x4a92ee[_0x293b4f(0xd2)]),_0x4aecb9=Math[_0x293b4f(0xb1)](_0xcaa8f8['start'],_0xcaa8f8[_0x293b4f(0xd2)]),_0x385eaf=Math[_0x293b4f(0xb7)](_0xcaa8f8['start'],_0xcaa8f8[_0x293b4f(0xd2)]),_0x5b094b=_0x2cd40d[_0x293b4f(0xa8)]==='x'?[this[_0x293b4f(0x83)]['Cartesian3'][_0x293b4f(0xb0)](this[_0x293b4f(0x83)]['Math'][_0x293b4f(0xae)](_0x2cd40d[_0x293b4f(0xbe)]),this[_0x293b4f(0x83)][_0x293b4f(0xb2)]['toRadians'](_0x4aecb9)),this[_0x293b4f(0x83)][_0x293b4f(0xba)]['fromRadians'](this[_0x293b4f(0x83)]['Math']['toRadians'](_0x2cd40d[_0x293b4f(0xbe)]),this[_0x293b4f(0x83)][_0x293b4f(0xb2)][_0x293b4f(0xae)](_0x385eaf))]:[this[_0x293b4f(0x83)][_0x293b4f(0xba)][_0x293b4f(0xb0)](this[_0x293b4f(0x83)][_0x293b4f(0xb2)][_0x293b4f(0xae)](_0x114923),this[_0x293b4f(0x83)]['Math'][_0x293b4f(0xae)](_0x2cd40d[_0x293b4f(0xbe)])),this[_0x293b4f(0x83)]['Cartesian3']['fromRadians'](this[_0x293b4f(0x83)][_0x293b4f(0xb2)][_0x293b4f(0xae)](_0x38584a),this[_0x293b4f(0x83)][_0x293b4f(0xb2)]['toRadians'](_0x2cd40d[_0x293b4f(0xbe)]))],_0x2f19cd=Math[_0x293b4f(0xb1)](_0x2b07d4[_0x293b4f(0xb9)],_0x2b07d4['end']);return this[_0x293b4f(0x83)][_0x293b4f(0xca)][_0x293b4f(0x95)]({'positions':_0x5b094b,'minimumHeight':_0x2f19cd,'maximumHeight':_0x2f19cd+Math[_0x293b4f(0xd0)](_0x2b07d4[_0x293b4f(0xd2)]-_0x2b07d4['start'])*_0x1e5a43,'granularity':this[_0x293b4f(0x83)][_0x293b4f(0xb2)]['toRadians'](0.25),'vertexFormat':this['cesium'][_0x293b4f(0x96)][_0x293b4f(0xd1)][_0x293b4f(0xc5)][_0x293b4f(0xab)]});}['getAxis'](_0x653948,_0x2f3f85){const _0x24e5d5=_0x15620f;if(_0x2f3f85==='x')return _0x653948[_0x24e5d5(0xb8)][_0x24e5d5(0x9f)];if(_0x2f3f85==='y')return _0x653948[_0x24e5d5(0xb8)]['yAxis'];return _0x653948[_0x24e5d5(0xb8)][_0x24e5d5(0xc3)];}['createColor'](_0x3d339d){const _0x1dfb56=_0x15620f;return new this[(_0x1dfb56(0x83))][(_0x1dfb56(0x99))](0x1,0x1,0x1,_0x3d339d);}[_0x15620f(0x90)](){return{'depthTest':{'enabled':!![]},'depthMask':![],'cull':{'enabled':![]}};}[_0x15620f(0xa0)](_0x30bef7){const _0x56d01d=_0x15620f,_0x521cce=this[_0x56d01d(0xc8)]['get'](_0x30bef7);if(!_0x521cce)return;_0x521cce[_0x56d01d(0xc2)]?.(),this[_0x56d01d(0xaa)][_0x56d01d(0x85)]['primitives'][_0x56d01d(0xa2)](_0x521cce[_0x56d01d(0xbd)]),this[_0x56d01d(0xc8)][_0x56d01d(0xa3)](_0x30bef7);}['remove'](_0x36dfd3){const _0xd8c313=_0x15620f;this[_0xd8c313(0xa0)](_0x36dfd3);const _0x569d23=this[_0xd8c313(0xa1)][_0xd8c313(0x81)](_0x36dfd3);if(!_0x569d23)return;this[_0xd8c313(0xaa)][_0xd8c313(0x85)][_0xd8c313(0x86)]['remove'](_0x569d23[_0xd8c313(0xbd)]),this[_0xd8c313(0xa1)][_0xd8c313(0xa3)](_0x36dfd3);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x57fb28,_0x3839dc){const _0x4cbebf=_0x2a36,_0x33899d=_0x57fb28();while(!![]){try{const _0x5e070d=parseInt(_0x4cbebf(0xc8))/0x1+parseInt(_0x4cbebf(0xba))/0x2+parseInt(_0x4cbebf(0xb2))/0x3*(-parseInt(_0x4cbebf(0xbc))/0x4)+parseInt(_0x4cbebf(0xb5))/0x5*(-parseInt(_0x4cbebf(0xbf))/0x6)+-parseInt(_0x4cbebf(0xc0))/0x7+parseInt(_0x4cbebf(0xc7))/0x8*(-parseInt(_0x4cbebf(0xb4))/0x9)+-parseInt(_0x4cbebf(0xaf))/0xa*(-parseInt(_0x4cbebf(0xcf))/0xb);if(_0x5e070d===_0x3839dc)break;else _0x33899d['push'](_0x33899d['shift']());}catch(_0x575af7){_0x33899d['push'](_0x33899d['shift']());}}}(_0x4121,0xb37ab));import{prepareWebgpuVolumeTransfer,sampleVolumeTransferColor,sampleVolumeTransferOpacity}from'../volume-scene/volumeTransfer';function _0x4121(){const _0x509d84=['height','floor','9755119CNXpcY','Native\x20slice\x20position\x20must\x20be\x20finite.\x20原生切片位置必须是有限数。','Native\x20slice\x20padding\x20must\x20be\x20a\x20non-negative\x20integer.\x20原生切片边距必须为非负整数。','opacityStops','max','colorMode','20XucHuN','dimensions','width','27deKUVY','length','9GVBJHV','5NymYrk','from','start','ceil','end','1456424YdITDH','contentBounds','299876jNUppK','Native\x20','round','4566918mTXnDH','3048143TOtctw','min','Native\x20slice\x20dimensions\x20must\x20be\x20positive\x20integers.\x20原生切片尺寸必须为正整数。','\x20slice\x20index\x20is\x20out\x20of\x20range.\x20原生\x20','layerHeight','sqrt','isSafeInteger','4888808MjHClz','715701GGTElI','layerWidth','isFinite','values','colorStops'];_0x4121=function(){return _0x509d84;};return _0x4121();}export const nativeAxisPositionToIndex=(_0x2f1a92,_0x552694)=>{const _0x16af0c=_0x2a36;if(!Number[_0x16af0c(0xca)](_0x552694))throw new Error(_0x16af0c(0xd0));const _0x29a93e=Math[_0x16af0c(0xc1)](_0x2f1a92['start'],_0x2f1a92[_0x16af0c(0xb9)]),_0xca7fc7=Math[_0x16af0c(0xad)](_0x2f1a92[_0x16af0c(0xb7)],_0x2f1a92['end']),_0x3e4e8f=_0x29a93e===_0xca7fc7?0x0:(Math['max'](_0x29a93e,Math[_0x16af0c(0xc1)](_0xca7fc7,_0x552694))-_0x29a93e)/(_0xca7fc7-_0x29a93e);return Math[_0x16af0c(0xbe)](_0x3e4e8f*Math['max'](0x0,_0x2f1a92['count']-0x1));};export const createNativeSliceAtlasLayout=(_0x2f08ae,_0x51bcaa,_0x49fe9e,_0x2a4aad=0x1)=>{const _0x219e7a=_0x2a36;if(!Number[_0x219e7a(0xc6)](_0x2f08ae)||_0x2f08ae<0x1)throw new RangeError('Native\x20slice\x20layer\x20count\x20must\x20be\x20a\x20positive\x20integer.\x20原生切片层数必须为正整数。');if(!Number[_0x219e7a(0xc6)](_0x51bcaa)||_0x51bcaa<0x1||!Number[_0x219e7a(0xc6)](_0x49fe9e)||_0x49fe9e<0x1)throw new RangeError(_0x219e7a(0xc2));if(!Number[_0x219e7a(0xc6)](_0x2a4aad)||_0x2a4aad<0x0)throw new RangeError(_0x219e7a(0xd1));const _0x406d48=Math[_0x219e7a(0xb8)](Math[_0x219e7a(0xc5)](_0x2f08ae*_0x49fe9e/_0x51bcaa)),_0x4413fb=Math['ceil'](_0x2f08ae/_0x406d48),_0x2832ae=_0x51bcaa+_0x2a4aad*0x2,_0xf0c89b=_0x49fe9e+_0x2a4aad*0x2,_0x11a060=_0x406d48*_0x2832ae,_0x49c54f=_0x4413fb*_0xf0c89b,_0x5b4df1=Array[_0x219e7a(0xb6)]({'length':_0x2f08ae},(_0x5ac77a,_0x79b0b)=>{const _0x811e93=_0x219e7a,_0x39ca34=_0x79b0b%_0x406d48*_0x2832ae+_0x2a4aad,_0x176c85=Math[_0x811e93(0xce)](_0x79b0b/_0x406d48)*_0xf0c89b+_0x2a4aad;return{'x':_0x39ca34,'y':_0x176c85,'width':_0x51bcaa,'height':_0x49fe9e,'uMinimum':(_0x39ca34+0.5)/_0x11a060,'uMaximum':(_0x39ca34+_0x51bcaa-0.5)/_0x11a060,'vMinimum':0x1-(_0x176c85+_0x49fe9e-0.5)/_0x49c54f,'vMaximum':0x1-(_0x176c85+0.5)/_0x49c54f};});return{'width':_0x11a060,'height':_0x49c54f,'columns':_0x406d48,'rows':_0x4413fb,'layers':_0x5b4df1};};function _0x2a36(_0x107c29,_0x38b121){const _0x412109=_0x4121();return _0x2a36=function(_0x2a3669,_0x5787bb){_0x2a3669=_0x2a3669-0xad;let _0x58eab7=_0x412109[_0x2a3669];return _0x58eab7;},_0x2a36(_0x107c29,_0x38b121);}const sampleValue=(_0x386c17,_0x4651f5,_0x2ba98e,_0x4b5315,_0x4afaf8,_0x102a46)=>{const _0x56eb8d=_0x2a36,[_0x6ddd60,_0x2dabf6,_0x4d9dd5]=_0x386c17[_0x56eb8d(0xb0)],_0x54d0be=Math['max'](0x0,Math[_0x56eb8d(0xc1)](_0x6ddd60-0x1,(_0x2ba98e+0.5)*_0x6ddd60/_0x4afaf8-0.5)),_0x5a5ac0=Math[_0x56eb8d(0xad)](0x0,Math[_0x56eb8d(0xc1)](_0x4d9dd5-0x1,_0x4d9dd5-(_0x4b5315+0.5)*_0x4d9dd5/_0x102a46-0.5)),_0x4a9d84=Math[_0x56eb8d(0xce)](_0x54d0be),_0x58f3f8=Math[_0x56eb8d(0xc1)](_0x6ddd60-0x1,_0x4a9d84+0x1),_0x105751=Math['floor'](_0x5a5ac0),_0x117cb7=Math['min'](_0x4d9dd5-0x1,_0x105751+0x1),_0x37ea9e=_0x54d0be-_0x4a9d84,_0x3551f3=_0x5a5ac0-_0x105751,_0x2a5d13=(_0x1c0f35,_0x44c35f)=>_0x386c17[_0x56eb8d(0xcb)][(_0x44c35f*_0x2dabf6+_0x4651f5)*_0x6ddd60+_0x1c0f35],_0x5ae75b=_0x2a5d13(_0x4a9d84,_0x105751)*(0x1-_0x37ea9e)+_0x2a5d13(_0x58f3f8,_0x105751)*_0x37ea9e,_0x36ec89=_0x2a5d13(_0x4a9d84,_0x117cb7)*(0x1-_0x37ea9e)+_0x2a5d13(_0x58f3f8,_0x117cb7)*_0x37ea9e;return _0x5ae75b*(0x1-_0x3551f3)+_0x36ec89*_0x3551f3;};export const createNativeSliceAtlas=(_0x40e62b,_0x40828a)=>{const _0x44ad39=_0x2a36,_0x1cda72=createNativeSliceAtlasLayout(_0x40e62b[_0x44ad39(0xb0)][0x1],_0x40828a[_0x44ad39(0xc9)],_0x40828a[_0x44ad39(0xc4)]),_0x94e846=new Uint8ClampedArray(_0x1cda72[_0x44ad39(0xb1)]*_0x1cda72[_0x44ad39(0xcd)]*0x4),_0x313e44=prepareWebgpuVolumeTransfer(_0x40828a[_0x44ad39(0xcc)],_0x40828a[_0x44ad39(0xd2)]),_0x9d898e=(_0x2f2b5a,_0x59d27a,_0x586612)=>{const _0x5d2332=(_0x59d27a*_0x1cda72['width']+_0x2f2b5a)*0x4;_0x94e846[_0x5d2332]=_0x94e846[_0x586612],_0x94e846[_0x5d2332+0x1]=_0x94e846[_0x586612+0x1],_0x94e846[_0x5d2332+0x2]=_0x94e846[_0x586612+0x2],_0x94e846[_0x5d2332+0x3]=_0x94e846[_0x586612+0x3];};for(let _0x3118f0=0x0;_0x3118f0<_0x1cda72['layers'][_0x44ad39(0xb3)];_0x3118f0+=0x1){const _0x398f57=_0x1cda72['layers'][_0x3118f0];let _0x507b52=_0x398f57[_0x44ad39(0xb1)],_0x80b92e=_0x398f57[_0x44ad39(0xcd)],_0x20b976=-0x1,_0x43e4a5=-0x1;for(let _0x5acd90=0x0;_0x5acd90<_0x398f57['height'];_0x5acd90+=0x1){for(let _0x209fd8=0x0;_0x209fd8<_0x398f57[_0x44ad39(0xb1)];_0x209fd8+=0x1){const _0x40d134=sampleValue(_0x40e62b,_0x3118f0,_0x209fd8,_0x5acd90,_0x398f57[_0x44ad39(0xb1)],_0x398f57['height']),_0x5f4da5=sampleVolumeTransferColor(_0x40d134,_0x313e44[_0x44ad39(0xcc)],0x1,_0x40828a[_0x44ad39(0xae)]),_0x52e8b3=_0x40d134<=0x0?0x0:sampleVolumeTransferOpacity(_0x40d134,_0x313e44[_0x44ad39(0xd2)],_0x40828a[_0x44ad39(0xae)]),_0x3926a4=((_0x398f57['y']+_0x5acd90)*_0x1cda72[_0x44ad39(0xb1)]+_0x398f57['x']+_0x209fd8)*0x4;_0x94e846[_0x3926a4]=Math[_0x44ad39(0xbe)](_0x5f4da5[0x0]*0xff),_0x94e846[_0x3926a4+0x1]=Math['round'](_0x5f4da5[0x1]*0xff),_0x94e846[_0x3926a4+0x2]=Math[_0x44ad39(0xbe)](_0x5f4da5[0x2]*0xff),_0x94e846[_0x3926a4+0x3]=Math[_0x44ad39(0xbe)](_0x5f4da5[0x3]*_0x52e8b3*0xff),_0x94e846[_0x3926a4+0x3]>0x0&&(_0x507b52=Math['min'](_0x507b52,_0x209fd8),_0x80b92e=Math['min'](_0x80b92e,_0x5acd90),_0x20b976=Math[_0x44ad39(0xad)](_0x20b976,_0x209fd8),_0x43e4a5=Math[_0x44ad39(0xad)](_0x43e4a5,_0x5acd90));}}_0x398f57[_0x44ad39(0xbb)]=_0x20b976<0x0?null:{'west':_0x507b52/_0x398f57[_0x44ad39(0xb1)],'south':0x1-(_0x43e4a5+0x1)/_0x398f57[_0x44ad39(0xcd)],'east':(_0x20b976+0x1)/_0x398f57[_0x44ad39(0xb1)],'north':0x1-_0x80b92e/_0x398f57[_0x44ad39(0xcd)]};for(let _0x24cf34=0x0;_0x24cf34<_0x398f57[_0x44ad39(0xb1)];_0x24cf34+=0x1){_0x9d898e(_0x398f57['x']+_0x24cf34,_0x398f57['y']-0x1,(_0x398f57['y']*_0x1cda72[_0x44ad39(0xb1)]+_0x398f57['x']+_0x24cf34)*0x4),_0x9d898e(_0x398f57['x']+_0x24cf34,_0x398f57['y']+_0x398f57['height'],((_0x398f57['y']+_0x398f57[_0x44ad39(0xcd)]-0x1)*_0x1cda72[_0x44ad39(0xb1)]+_0x398f57['x']+_0x24cf34)*0x4);}for(let _0x57d12c=-0x1;_0x57d12c<=_0x398f57[_0x44ad39(0xcd)];_0x57d12c+=0x1){_0x9d898e(_0x398f57['x']-0x1,_0x398f57['y']+_0x57d12c,((_0x398f57['y']+Math[_0x44ad39(0xad)](0x0,Math[_0x44ad39(0xc1)](_0x398f57['height']-0x1,_0x57d12c)))*_0x1cda72[_0x44ad39(0xb1)]+_0x398f57['x'])*0x4),_0x9d898e(_0x398f57['x']+_0x398f57[_0x44ad39(0xb1)],_0x398f57['y']+_0x57d12c,((_0x398f57['y']+Math[_0x44ad39(0xad)](0x0,Math[_0x44ad39(0xc1)](_0x398f57[_0x44ad39(0xcd)]-0x1,_0x57d12c)))*_0x1cda72[_0x44ad39(0xb1)]+_0x398f57['x']+_0x398f57[_0x44ad39(0xb1)]-0x1)*0x4);}}return{'layout':_0x1cda72,'pixels':_0x94e846};};export const createNativeAxisSliceImage=(_0x262ed9,_0x870e7b,_0x2c4c64,_0x5ffcda)=>{const _0xad571d=_0x2a36,[_0x10712d,_0x4327de,_0x5e2902]=_0x262ed9[_0xad571d(0xb0)],_0x552d8c=_0x870e7b==='x'?_0x10712d:_0x870e7b==='y'?_0x4327de:_0x5e2902;if(!Number[_0xad571d(0xc6)](_0x2c4c64)||_0x2c4c64<0x0||_0x2c4c64>=_0x552d8c)throw new RangeError(_0xad571d(0xbd)+_0x870e7b['toUpperCase']()+_0xad571d(0xc3)+_0x870e7b['toUpperCase']()+'\x20切片索引越界。');const _0x192715=_0x870e7b==='x'?_0x5e2902:_0x10712d,_0x5ccca9=_0x870e7b==='y'?_0x5e2902:_0x4327de,_0x34edf0=new Uint8ClampedArray(_0x192715*_0x5ccca9*0x4),_0x2488ab=prepareWebgpuVolumeTransfer(_0x5ffcda[_0xad571d(0xcc)],_0x5ffcda[_0xad571d(0xd2)]),_0x34eb7b=(_0x1a18ca,_0x5b40f7,_0x179a67)=>_0x262ed9[_0xad571d(0xcb)][(_0x179a67*_0x4327de+_0x5b40f7)*_0x10712d+_0x1a18ca];for(let _0x25bc6a=0x0;_0x25bc6a<_0x5ccca9;_0x25bc6a+=0x1){for(let _0x5204d3=0x0;_0x5204d3<_0x192715;_0x5204d3+=0x1){const _0x4020e1=_0x870e7b==='x'?_0x34eb7b(_0x2c4c64,_0x4327de-_0x25bc6a-0x1,_0x5204d3):_0x870e7b==='y'?_0x34eb7b(_0x5204d3,_0x2c4c64,_0x5e2902-_0x25bc6a-0x1):_0x34eb7b(_0x5204d3,_0x4327de-_0x25bc6a-0x1,_0x2c4c64),_0x1cc06b=sampleVolumeTransferColor(_0x4020e1,_0x2488ab[_0xad571d(0xcc)],0x1,_0x5ffcda[_0xad571d(0xae)]),_0x43827d=_0x4020e1<=0x0?0x0:sampleVolumeTransferOpacity(_0x4020e1,_0x2488ab[_0xad571d(0xd2)],_0x5ffcda[_0xad571d(0xae)]),_0x52db05=(_0x25bc6a*_0x192715+_0x5204d3)*0x4;_0x34edf0[_0x52db05]=Math['round'](_0x1cc06b[0x0]*0xff),_0x34edf0[_0x52db05+0x1]=Math[_0xad571d(0xbe)](_0x1cc06b[0x1]*0xff),_0x34edf0[_0x52db05+0x2]=Math['round'](_0x1cc06b[0x2]*0xff),_0x34edf0[_0x52db05+0x3]=Math[_0xad571d(0xbe)](_0x1cc06b[0x3]*_0x43827d*0xff);}}return{'width':_0x192715,'height':_0x5ccca9,'pixels':_0x34edf0};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xac11(_0x4c542f,_0x5b5c6d){const _0x30f163=_0x30f1();return _0xac11=function(_0xac11be,_0x50799e){_0xac11be=_0xac11be-0xc7;let _0x335f2c=_0x30f163[_0xac11be];return _0x335f2c;},_0xac11(_0x4c542f,_0x5b5c6d);}function _0x30f1(){const _0x382122=['WGS84','MetadataComponentType','min','473484eNltmO','resolve','max','VoxelContent','UINT8','MetadataType','IDENTITY','40537BvXKrl','713998tsNMVH','233898SzYiUz','end','dimensions','log2','86985iJLaMJ','radii','start','SCALAR','Matrix4','minimumValue','ELLIPSOID','6500710ZXkMvc','some','2835288NMYRod','1IdKtSe','Cartesian3','fromScale','VoxelShapeType','maximumValue','126eXfBzR','round','abs','value','520OzDBix'];_0x30f1=function(){return _0x382122;};return _0x30f1();}(function(_0x3cd13d,_0x36e821){const _0x13250d=_0xac11,_0x3c8ae0=_0x3cd13d();while(!![]){try{const _0x1b7348=-parseInt(_0x13250d(0xd2))/0x1*(-parseInt(_0x13250d(0xe7))/0x2)+parseInt(_0x13250d(0xe8))/0x3+parseInt(_0x13250d(0xdf))/0x4+-parseInt(_0x13250d(0xc8))/0x5*(-parseInt(_0x13250d(0xd7))/0x6)+-parseInt(_0x13250d(0xe6))/0x7*(parseInt(_0x13250d(0xdb))/0x8)+parseInt(_0x13250d(0xd1))/0x9+-parseInt(_0x13250d(0xcf))/0xa;if(_0x1b7348===_0x36e821)break;else _0x3c8ae0['push'](_0x3c8ae0['shift']());}catch(_0x2a8991){_0x3c8ae0['push'](_0x3c8ae0['shift']());}}}(_0x30f1,0x32973));const degreesToRadians=_0x5f13f6=>_0x5f13f6*Math['PI']/0xb4,TILE_DIMENSIONS=[0x40,0x40,0x20],MAXIMUM_AVAILABLE_LEVELS=0x3,getAvailableLevels=_0x25ca94=>{const _0x3e7ae8=_0xac11,_0x19fd64=[_0x25ca94[_0x3e7ae8(0xea)][0x0],_0x25ca94['dimensions'][0x2],_0x25ca94['dimensions'][0x1]],_0x522b99=_0x19fd64['map']((_0x6ef564,_0x4cfdcb)=>_0x6ef564/TILE_DIMENSIONS[_0x4cfdcb]);return Math[_0x3e7ae8(0xde)](MAXIMUM_AVAILABLE_LEVELS,Math[_0x3e7ae8(0xe1)](0x1,Math['ceil'](Math[_0x3e7ae8(0xc7)](Math[_0x3e7ae8(0xe1)](..._0x522b99)))+0x1));},getMaximumTileCount=_0x467bfa=>{let _0x36f990=0x0;for(let _0x463235=0x0;_0x463235<_0x467bfa;_0x463235+=0x1)_0x36f990+=0x8**_0x463235;return _0x36f990;};export const createNativeVoxelTile=(_0x251057,_0x3ad76e,_0x4e697c,_0x12a832,_0x1a55ca)=>{const _0x3569cd=_0xac11,_0xc05a40=0x2**_0x3ad76e;if([_0x4e697c,_0x12a832,_0x1a55ca][_0x3569cd(0xd0)](_0x17e369=>_0x17e369<0x0||_0x17e369>=_0xc05a40))throw new RangeError('Native\x20voxel\x20tile\x20coordinate\x20is\x20out\x20of\x20range.\x20原生体素瓦片坐标越界。');const [_0x78ba71,_0x108010,_0xf1c97f]=TILE_DIMENSIONS,[_0x58de84,_0x50b019,_0x558a2b]=_0x251057['dimensions'],_0x1fde78=new Uint8Array(_0x78ba71*_0x108010*_0xf1c97f);for(let _0x568c48=0x0;_0x568c48<_0xf1c97f;_0x568c48+=0x1){const _0x2f7d8f=(_0x1a55ca+(_0x568c48+0.5)/_0xf1c97f)/_0xc05a40,_0x102c77=Math['max'](0x0,Math[_0x3569cd(0xde)](_0x50b019-0x1,Math['round'](_0x2f7d8f*_0x50b019-0.5)));for(let _0x468086=0x0;_0x468086<_0x108010;_0x468086+=0x1){const _0x36d148=(_0x12a832+(_0x468086+0.5)/_0x108010)/_0xc05a40,_0x7e41ed=Math['max'](0x0,Math['min'](_0x558a2b-0x1,Math[_0x3569cd(0xd8)](_0x36d148*_0x558a2b-0.5)));for(let _0xb3654a=0x0;_0xb3654a<_0x78ba71;_0xb3654a+=0x1){const _0xbc7f1a=(_0x4e697c+(_0xb3654a+0.5)/_0x78ba71)/_0xc05a40,_0x45a880=Math[_0x3569cd(0xe1)](0x0,Math[_0x3569cd(0xde)](_0x58de84-0x1,Math[_0x3569cd(0xd8)](_0xbc7f1a*_0x58de84-0.5)));_0x1fde78[(_0x568c48*_0x108010+_0x468086)*_0x78ba71+_0xb3654a]=_0x251057['values'][(_0x7e41ed*_0x50b019+_0x102c77)*_0x58de84+_0x45a880];}}}return _0x1fde78;};export const createNativeVoxelProvider=(_0x394178,_0x683015,_0x59d740,_0xc07844)=>{const _0x5f2317=_0xac11,{xAxis:_0x21e20a,yAxis:_0x3f24d8,zAxis:_0x551a66}=_0x683015['metadata'],_0x46b681=Math[_0x5f2317(0xde)](_0x3f24d8['start'],_0x3f24d8[_0x5f2317(0xe9)]),_0x453d03=_0x46b681+Math[_0x5f2317(0xd9)](_0x3f24d8[_0x5f2317(0xe9)]-_0x3f24d8[_0x5f2317(0xca)])*_0xc07844,_0x531e2e=new _0x394178[(_0x5f2317(0xd3))](degreesToRadians(Math['min'](_0x21e20a[_0x5f2317(0xca)],_0x21e20a[_0x5f2317(0xe9)])),degreesToRadians(Math['min'](_0x551a66['start'],_0x551a66[_0x5f2317(0xe9)])),_0x46b681),_0x3612e1=new _0x394178[(_0x5f2317(0xd3))](degreesToRadians(Math['max'](_0x21e20a[_0x5f2317(0xca)],_0x21e20a[_0x5f2317(0xe9)])),degreesToRadians(Math[_0x5f2317(0xe1)](_0x551a66[_0x5f2317(0xca)],_0x551a66['end'])),_0x453d03),_0x1e5cbb=new _0x394178[(_0x5f2317(0xd3))](TILE_DIMENSIONS[0x0],TILE_DIMENSIONS[0x1],TILE_DIMENSIONS[0x2]),_0xf5547c=new _0x394178['Cartesian3'](0x0,0x0,0x0),_0x32d899=getAvailableLevels(_0x59d740);return{'globalTransform':_0x394178[_0x5f2317(0xcc)][_0x5f2317(0xd4)](_0x394178['Ellipsoid'][_0x5f2317(0xdc)][_0x5f2317(0xc9)]),'shapeTransform':_0x394178['Matrix4'][_0x5f2317(0xe5)],'shape':_0x394178[_0x5f2317(0xd5)][_0x5f2317(0xce)],'minBounds':_0x531e2e,'maxBounds':_0x3612e1,'dimensions':_0x1e5cbb,'paddingBefore':_0xf5547c,'paddingAfter':_0xf5547c,'names':[_0x5f2317(0xda)],'types':[_0x394178[_0x5f2317(0xe4)][_0x5f2317(0xcb)]],'componentTypes':[_0x394178[_0x5f2317(0xdd)][_0x5f2317(0xe3)]],'minimumValues':[[_0x59d740[_0x5f2317(0xcd)]]],'maximumValues':[[_0x59d740[_0x5f2317(0xd6)]]],'maximumTileCount':getMaximumTileCount(_0x32d899),'availableLevels':_0x32d899,'requestData':(_0x416299={})=>{const _0x2b414c=_0x5f2317,{tileLevel:tileLevel=0x0,tileX:tileX=0x0,tileY:tileY=0x0,tileZ:tileZ=0x0}=_0x416299;if(tileLevel<0x0||tileLevel>=_0x32d899)return undefined;const _0x4ccb97=createNativeVoxelTile(_0x59d740,tileLevel,tileX,tileY,tileZ);return Promise[_0x2b414c(0xe0)](_0x394178[_0x2b414c(0xe2)]['fromMetadataArray']([_0x4ccb97]));}};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x388c(){const _0x10397a=['opacity','color','3.402823466e38','373308oyWYzM',',\x200.000001),\x200.0,\x201.0))','isFinite','push','\x0a\x0avoid\x20fragmentMain(FragmentInput\x20fsInput,\x20inout\x20czm_modelMaterial\x20material)\x20{\x0a\x20\x20\x20\x20float\x20value\x20=\x20float(fsInput.metadata.value)\x20*\x20255.0;\x0a\x20\x20\x20\x20float\x20opacity\x20=\x20sampleTransferOpacity(value);\x0a\x20\x20\x20\x20material.diffuse\x20=\x20sampleTransferColor(value);\x0a\x20\x20\x20\x20material.alpha\x20=\x201.0\x20-\x20exp(-opacity\x20*\x20u_opacity\x20*\x20u_densityScale\x20*\x200.0008);\x0a}','1568uZqgXs','305xJhXpa','1281506BJsmCn','join','POSITIVE_INFINITY','\x20\x20\x20\x20return\x20','Shader\x20value\x20must\x20be\x20finite\x20or\x20infinity:\x20','value',',\x20clamp((value\x20-\x20','NEGATIVE_INFINITY','10610WQTCTG','22190663NQmmen','46186mJPwbZ',')\x20return\x20','length','colorStops','isInteger','1413QiMrfA','step','1689MiFXDs',')\x20/\x20max(','4292oeXBmA','vec3(','12xLfAJw','\x20\x20\x20\x20if\x20(value\x20<=\x20','.\x20Shader\x20数值必须有限或为无穷。','float\x20sampleTransferOpacity(float\x20value)\x20{','mix(','96268DpYiNM'];_0x388c=function(){return _0x10397a;};return _0x388c();}const _0x13fc85=_0x2ab2;function _0x2ab2(_0x1fc027,_0x3e13ea){const _0x388ceb=_0x388c();return _0x2ab2=function(_0x2ab219,_0x3f57fd){_0x2ab219=_0x2ab219-0x113;let _0x450469=_0x388ceb[_0x2ab219];return _0x450469;},_0x2ab2(_0x1fc027,_0x3e13ea);}(function(_0x12856c,_0x47a5a3){const _0x47e647=_0x2ab2,_0x572cd7=_0x12856c();while(!![]){try{const _0x2f9224=-parseInt(_0x47e647(0x133))/0x1+-parseInt(_0x47e647(0x121))/0x2*(-parseInt(_0x47e647(0x11f))/0x3)+-parseInt(_0x47e647(0x128))/0x4*(-parseInt(_0x47e647(0x132))/0x5)+-parseInt(_0x47e647(0x12c))/0x6+-parseInt(_0x47e647(0x118))/0x7*(-parseInt(_0x47e647(0x131))/0x8)+-parseInt(_0x47e647(0x11d))/0x9*(-parseInt(_0x47e647(0x116))/0xa)+parseInt(_0x47e647(0x117))/0xb*(-parseInt(_0x47e647(0x123))/0xc);if(_0x2f9224===_0x47a5a3)break;else _0x572cd7['push'](_0x572cd7['shift']());}catch(_0x3071ac){_0x572cd7['push'](_0x572cd7['shift']());}}}(_0x388c,0xbd365));import{prepareWebgpuVolumeTransfer}from'../volume-scene/volumeTransfer';const toShaderFloat=_0x26b373=>{const _0x129262=_0x2ab2;if(_0x26b373===Number[_0x129262(0x135)])return _0x129262(0x12b);if(_0x26b373===Number[_0x129262(0x115)])return'-3.402823466e38';if(!Number[_0x129262(0x12e)](_0x26b373))throw new Error(_0x129262(0x137)+_0x26b373+_0x129262(0x125));return Number[_0x129262(0x11c)](_0x26b373)?_0x26b373+'.0':String(_0x26b373);},colorExpression=_0x371f4d=>_0x13fc85(0x122)+toShaderFloat(_0x371f4d[0x0])+',\x20'+toShaderFloat(_0x371f4d[0x1])+',\x20'+toShaderFloat(_0x371f4d[0x2])+')',createColorFunction=(_0x3385b5,_0x4a268a,_0x2d597e)=>{const _0x59c901=_0x13fc85,_0x51fd45=prepareWebgpuVolumeTransfer(_0x3385b5,_0x2d597e)[_0x59c901(0x11b)],_0x17e072=['vec3\x20sampleTransferColor(float\x20value)\x20{',_0x59c901(0x124)+toShaderFloat(_0x51fd45[0x0][_0x59c901(0x113)])+')\x20return\x20'+colorExpression(_0x51fd45[0x0][_0x59c901(0x12a)])+';'];for(let _0x29f48e=0x1;_0x29f48e<_0x51fd45[_0x59c901(0x11a)];_0x29f48e+=0x1){const _0x38729d=_0x51fd45[_0x29f48e-0x1],_0x549ca0=_0x51fd45[_0x29f48e],_0x159d0c=_0x4a268a===_0x59c901(0x11e)?colorExpression(_0x38729d[_0x59c901(0x12a)]):'mix('+colorExpression(_0x38729d['color'])+',\x20'+colorExpression(_0x549ca0['color'])+',\x20clamp((value\x20-\x20'+toShaderFloat(_0x38729d[_0x59c901(0x113)])+')\x20/\x20max('+toShaderFloat(_0x549ca0[_0x59c901(0x113)]-_0x38729d['value'])+_0x59c901(0x12d);_0x17e072[_0x59c901(0x12f)]('\x20\x20\x20\x20if\x20(value\x20<=\x20'+toShaderFloat(_0x549ca0[_0x59c901(0x113)])+_0x59c901(0x119)+_0x159d0c+';');}return _0x17e072[_0x59c901(0x12f)]('\x20\x20\x20\x20return\x20'+colorExpression(_0x51fd45[_0x51fd45[_0x59c901(0x11a)]-0x1][_0x59c901(0x12a)])+';','}'),_0x17e072[_0x59c901(0x134)]('\x0a');},createOpacityFunction=(_0x392df,_0x5ad951)=>{const _0x1aad6e=_0x13fc85;if(_0x392df[_0x1aad6e(0x11a)]===0x0)throw new Error('Native\x20volume\x20opacity\x20stops\x20cannot\x20be\x20empty.\x20原生体积透明度节点不能为空。');const _0x40db7d=[_0x1aad6e(0x126),_0x1aad6e(0x124)+toShaderFloat(_0x392df[0x0][_0x1aad6e(0x113)])+')\x20return\x20'+toShaderFloat(_0x392df[0x0]['opacity'])+';'];for(let _0x4a9652=0x1;_0x4a9652<_0x392df[_0x1aad6e(0x11a)];_0x4a9652+=0x1){const _0x15c415=_0x392df[_0x4a9652-0x1],_0x29d760=_0x392df[_0x4a9652],_0xf895de=_0x5ad951===_0x1aad6e(0x11e)?toShaderFloat(_0x15c415['opacity']):_0x1aad6e(0x127)+toShaderFloat(_0x15c415[_0x1aad6e(0x129)])+',\x20'+toShaderFloat(_0x29d760['opacity'])+_0x1aad6e(0x114)+toShaderFloat(_0x15c415['value'])+_0x1aad6e(0x120)+toShaderFloat(_0x29d760['value']-_0x15c415[_0x1aad6e(0x113)])+_0x1aad6e(0x12d);_0x40db7d[_0x1aad6e(0x12f)]('\x20\x20\x20\x20if\x20(value\x20<=\x20'+toShaderFloat(_0x29d760[_0x1aad6e(0x113)])+')\x20return\x20'+_0xf895de+';');}return _0x40db7d[_0x1aad6e(0x12f)](_0x1aad6e(0x136)+toShaderFloat(_0x392df[_0x392df[_0x1aad6e(0x11a)]-0x1][_0x1aad6e(0x129)])+';','}'),_0x40db7d[_0x1aad6e(0x134)]('\x0a');};export const createNativeVoxelFragmentShader=(_0xfdbbd5,_0x3ee3d9,_0x4de036)=>createColorFunction(_0xfdbbd5,_0x4de036,_0x3ee3d9)+'\x0a\x0a'+createOpacityFunction(_0x3ee3d9,_0x4de036)+_0x13fc85(0x130);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x1e8097=_0x58a1;(function(_0x375e8b,_0x4ba787){const _0x269863=_0x58a1,_0x456d0c=_0x375e8b();while(!![]){try{const _0x3c3ad9=-parseInt(_0x269863(0xd4))/0x1*(-parseInt(_0x269863(0xc7))/0x2)+-parseInt(_0x269863(0xcc))/0x3*(-parseInt(_0x269863(0xd5))/0x4)+-parseInt(_0x269863(0xca))/0x5+parseInt(_0x269863(0xd0))/0x6*(-parseInt(_0x269863(0xce))/0x7)+-parseInt(_0x269863(0xc1))/0x8+-parseInt(_0x269863(0xc6))/0x9+parseInt(_0x269863(0xbc))/0xa;if(_0x3c3ad9===_0x4ba787)break;else _0x456d0c['push'](_0x456d0c['shift']());}catch(_0x50b783){_0x456d0c['push'](_0x456d0c['shift']());}}}(_0x152f,0x42c4b));function _0x58a1(_0x2e641c,_0x32a5a5){const _0x152fb7=_0x152f();return _0x58a1=function(_0x58a183,_0x347c76){_0x58a183=_0x58a183-0xbc;let _0x383f84=_0x152fb7[_0x58a183];return _0x383f84;},_0x58a1(_0x2e641c,_0x32a5a5);}const getSourceIndex=(_0x2e4354,_0x5df1c4,_0xe64f4)=>_0xe64f4['start']<=_0xe64f4[_0x1e8097(0xcf)]?_0x2e4354:_0x5df1c4-_0x2e4354-0x1;export const normalizeNativeVoxelValues=(_0x5d32bd,_0x10ed01)=>{const _0x3a792a=_0x1e8097,{width:_0x4dc72f,height:_0x5b2ada,depth:_0x5ad1f0}=_0x5d32bd,_0x5dccb4=_0x4dc72f*_0x5b2ada*_0x5ad1f0;if(_0x5d32bd[_0x3a792a(0xbe)][_0x3a792a(0xcb)]!==_0x5dccb4)throw new Error('Native\x20voxel\x20chunk\x20requires\x20'+_0x5dccb4+'\x20values\x20but\x20received\x20'+_0x5d32bd[_0x3a792a(0xbe)][_0x3a792a(0xcb)]+'.\x20原生体素块数据数量不匹配。');const _0xaca08d=new Uint8Array(_0x5dccb4),_0xdb3e77=_0x10ed01['metadata'][_0x3a792a(0xc8)]??0x1,_0x104090=_0x10ed01[_0x3a792a(0xc2)]['noData'];let _0xc1fbdd=Number['POSITIVE_INFINITY'],_0x3c5ec4=Number[_0x3a792a(0xd2)];for(let _0x21ad19=0x0;_0x21ad19<_0x5ad1f0;_0x21ad19+=0x1){const _0x27a149=getSourceIndex(_0x21ad19,_0x5ad1f0,_0x10ed01['metadata'][_0x3a792a(0xc5)]);for(let _0x799542=0x0;_0x799542<_0x5b2ada;_0x799542+=0x1){const _0x543804=getSourceIndex(_0x799542,_0x5b2ada,_0x10ed01[_0x3a792a(0xc2)][_0x3a792a(0xc0)]);for(let _0x51c8ee=0x0;_0x51c8ee<_0x4dc72f;_0x51c8ee+=0x1){const _0x56e2be=getSourceIndex(_0x51c8ee,_0x4dc72f,_0x10ed01[_0x3a792a(0xc2)][_0x3a792a(0xbd)]),_0x3fcb9c=(_0x27a149*_0x5b2ada+_0x543804)*_0x4dc72f+_0x56e2be,_0x374faf=(_0x21ad19*_0x5b2ada+_0x799542)*_0x4dc72f+_0x51c8ee,_0x1fc6dc=_0x5d32bd['values'][_0x3fcb9c],_0x5cabb2=Number[_0x3a792a(0xc3)](_0x1fc6dc)&&_0x1fc6dc!==_0x104090?_0x1fc6dc*_0xdb3e77:0x0,_0x2a4b3d=Math['max'](0x0,Math['min'](0xff,Math[_0x3a792a(0xbf)](_0x5cabb2)));_0xaca08d[_0x374faf]=_0x2a4b3d,_0x2a4b3d>0x0&&(_0xc1fbdd=Math['min'](_0xc1fbdd,_0x2a4b3d),_0x3c5ec4=Math[_0x3a792a(0xc4)](_0x3c5ec4,_0x2a4b3d));}}}if(!Number[_0x3a792a(0xc3)](_0xc1fbdd))_0xc1fbdd=0x0;if(!Number['isFinite'](_0x3c5ec4))_0x3c5ec4=0x0;return{'values':_0xaca08d,'dimensions':[_0x4dc72f,_0x5b2ada,_0x5ad1f0],'minimumValue':_0xc1fbdd,'maximumValue':_0x3c5ec4};};function _0x152f(){const _0x5b5871=['.\x20原生体素时间索引越界。','68ArRfUu','4zDFvRt','7818770WiQEyi','xAxis','values','round','yAxis','3950136PqfXCd','metadata','isFinite','max','zAxis','797175hRYsAz','6596JHlgJb','valueScale','count','2375650GAqkUi','length','1119669YjYziV','throwIfAborted','7wRDYrR','end','290454jieSgt','isSafeInteger','NEGATIVE_INFINITY'];_0x152f=function(){return _0x5b5871;};return _0x152f();}export const loadNativeVoxelData=async(_0x29bef1,_0x38d9d8,_0x48b77b)=>{const _0x307b7e=_0x1e8097,{xAxis:_0x41d96c,yAxis:_0x201b7d,zAxis:_0x5b70d0,timeCount:_0x116b86}=_0x29bef1['metadata'];if(!Number[_0x307b7e(0xd1)](_0x38d9d8)||_0x38d9d8<0x0||_0x38d9d8>=_0x116b86)throw new RangeError('Native\x20voxel\x20time\x20index\x20is\x20out\x20of\x20range:\x20'+_0x38d9d8+_0x307b7e(0xd3));const _0x3ec5fe=await _0x29bef1['readChunk'](_0x38d9d8,{'xStart':0x0,'xCount':_0x41d96c[_0x307b7e(0xc9)],'levelStart':0x0,'levelCount':_0x201b7d[_0x307b7e(0xc9)],'sourceYStart':0x0,'sourceYCount':_0x5b70d0[_0x307b7e(0xc9)]},_0x48b77b);return _0x48b77b?.[_0x307b7e(0xcd)](),normalizeNativeVoxelValues(_0x3ec5fe,_0x29bef1);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x8c165b=_0x20bd;(function(_0x31a77d,_0x2e2496){const _0x3f392c=_0x20bd,_0x1a84b8=_0x31a77d();while(!![]){try{const _0x4761d3=-parseInt(_0x3f392c(0x12f))/0x1*(parseInt(_0x3f392c(0x114))/0x2)+parseInt(_0x3f392c(0x12d))/0x3+-parseInt(_0x3f392c(0x116))/0x4*(-parseInt(_0x3f392c(0x119))/0x5)+-parseInt(_0x3f392c(0x122))/0x6+parseInt(_0x3f392c(0x11d))/0x7+parseInt(_0x3f392c(0x11b))/0x8+parseInt(_0x3f392c(0x110))/0x9;if(_0x4761d3===_0x2e2496)break;else _0x1a84b8['push'](_0x1a84b8['shift']());}catch(_0x1d9a04){_0x1a84b8['push'](_0x1a84b8['shift']());}}}(_0x2f6d,0x4e3a2));function _0x2f6d(){const _0x1b2cca=['brickCount','Volume\x20memory\x20budget\x20is\x20invalid.\x20体积内存预算无效。','274iiAdSP','BYTES_PER_ELEMENT','1084EkNKkE','\x20必须是正整数。','countX','8150yfUPOf','shape','2243576VunyvX','Volume\x20brick\x20halo\x20must\x20be\x20a\x20positive\x20integer.\x20体积分块\x20halo\x20必须是正整数。','607418YkArqZ','reservedBytes','maxTextureDimension3D','isInteger','xAxis','1983678fTmxSH','zAxis','width','memoryLimitBytes','ceil','Volume\x20brick\x20coordinate\x20is\x20out\x20of\x20range.\x20体积分块坐标越界。','height','count','floor','countZ','Volume\x20brick\x20','226542MELetK','depth','3931pHIiqg','yAxis','countY','isSafeInteger','halo','min','push','2746017lfuvxC','brickShape'];_0x2f6d=function(){return _0x1b2cca;};return _0x2f6d();}import{validateVolumeMetadata}from'./volumeValidation';export const defaultVolumeBrickWidth=0x100;export const defaultVolumeBrickHeight=0x8;export const defaultVolumeBrickDepth=0x100;export const defaultVolumeBrickHalo=0x1;export const defaultVolumeMemoryLimitBytes=0x200*0x400*0x400;const validateBrickShape=_0x4bc81b=>{const _0x239144=_0x20bd;for(const [_0x2347c1,_0x954a6]of[[_0x4bc81b[_0x239144(0x124)],_0x239144(0x124)],[_0x4bc81b[_0x239144(0x128)],_0x239144(0x128)],[_0x4bc81b[_0x239144(0x12e)],_0x239144(0x12e)]]){if(!Number[_0x239144(0x120)](_0x2347c1)||_0x2347c1<=0x0)throw new Error(_0x239144(0x12c)+_0x954a6+'\x20must\x20be\x20a\x20positive\x20integer.\x20体积分块\x20'+_0x954a6+_0x239144(0x117));}if(!Number[_0x239144(0x120)](_0x4bc81b[_0x239144(0x133)])||_0x4bc81b[_0x239144(0x133)]<0x1)throw new Error(_0x239144(0x11c));},alignBytes=(_0x19acff,_0xcdbee0)=>Math[_0x8c165b(0x126)](_0x19acff/_0xcdbee0)*_0xcdbee0;export const resolveVolumeBrickShape=(_0x71a051={})=>{const _0x3cd8ab=_0x8c165b,_0x657f74={'width':_0x71a051[_0x3cd8ab(0x124)]??defaultVolumeBrickWidth,'height':_0x71a051[_0x3cd8ab(0x128)]??defaultVolumeBrickHeight,'depth':_0x71a051[_0x3cd8ab(0x12e)]??defaultVolumeBrickDepth,'halo':_0x71a051[_0x3cd8ab(0x133)]??defaultVolumeBrickHalo};return validateBrickShape(_0x657f74),_0x657f74;};export const createVolumeBrickLayout=(_0x1351b2,_0x48c3f2={})=>{const _0x27a6bc=_0x8c165b;validateVolumeMetadata(_0x1351b2);const _0x7c1eeb=resolveVolumeBrickShape(_0x48c3f2),_0x4f3b40=Math[_0x27a6bc(0x126)](_0x1351b2[_0x27a6bc(0x121)][_0x27a6bc(0x129)]/_0x7c1eeb[_0x27a6bc(0x124)]),_0x520db5=Math[_0x27a6bc(0x126)](_0x1351b2[_0x27a6bc(0x130)][_0x27a6bc(0x129)]/_0x7c1eeb[_0x27a6bc(0x128)]),_0x280250=Math['ceil'](_0x1351b2[_0x27a6bc(0x123)][_0x27a6bc(0x129)]/_0x7c1eeb[_0x27a6bc(0x12e)]);return{'shape':_0x7c1eeb,'countX':_0x4f3b40,'countY':_0x520db5,'countZ':_0x280250,'brickCount':_0x4f3b40*_0x520db5*_0x280250};};export const createVolumeBrickKey=_0x463f4c=>_0x463f4c['x']+':'+_0x463f4c['y']+':'+_0x463f4c['z'];export const createVolumeBrickDescriptor=(_0x2dae97,_0xeb4c0f,_0x947655)=>{const _0x811ac4=_0x8c165b;if(!Number[_0x811ac4(0x120)](_0x947655['x'])||!Number[_0x811ac4(0x120)](_0x947655['y'])||!Number['isInteger'](_0x947655['z'])||_0x947655['x']<0x0||_0x947655['x']>=_0xeb4c0f['countX']||_0x947655['y']<0x0||_0x947655['y']>=_0xeb4c0f[_0x811ac4(0x131)]||_0x947655['z']<0x0||_0x947655['z']>=_0xeb4c0f[_0x811ac4(0x12b)])throw new Error(_0x811ac4(0x127));const _0x5cb67c=_0x947655['x']*_0xeb4c0f['shape']['width'],_0x1840d2=_0x947655['y']*_0xeb4c0f[_0x811ac4(0x11a)][_0x811ac4(0x128)],_0x265df1=_0x947655['z']*_0xeb4c0f[_0x811ac4(0x11a)][_0x811ac4(0x12e)],_0xde65ce=Math[_0x811ac4(0x134)](_0xeb4c0f['shape'][_0x811ac4(0x124)],_0x2dae97['xAxis'][_0x811ac4(0x129)]-_0x5cb67c),_0x26d552=Math[_0x811ac4(0x134)](_0xeb4c0f[_0x811ac4(0x11a)][_0x811ac4(0x128)],_0x2dae97[_0x811ac4(0x130)][_0x811ac4(0x129)]-_0x1840d2),_0x1c20cd=Math[_0x811ac4(0x134)](_0xeb4c0f[_0x811ac4(0x11a)][_0x811ac4(0x12e)],_0x2dae97[_0x811ac4(0x123)][_0x811ac4(0x129)]-_0x265df1),_0x5f18ea=_0xeb4c0f[_0x811ac4(0x11a)][_0x811ac4(0x133)],_0x3692c7=Math['max'](0x0,_0x5cb67c-_0x5f18ea),_0x187aa4=Math['max'](0x0,_0x1840d2-_0x5f18ea),_0x164d3d=Math['max'](0x0,_0x265df1-_0x5f18ea),_0x37bc0c=Math[_0x811ac4(0x134)](_0x2dae97[_0x811ac4(0x121)][_0x811ac4(0x129)],_0x5cb67c+_0xde65ce+_0x5f18ea),_0x6fd6fb=Math[_0x811ac4(0x134)](_0x2dae97[_0x811ac4(0x130)][_0x811ac4(0x129)],_0x1840d2+_0x26d552+_0x5f18ea),_0x54f077=Math[_0x811ac4(0x134)](_0x2dae97[_0x811ac4(0x123)][_0x811ac4(0x129)],_0x265df1+_0x1c20cd+_0x5f18ea),_0x3966d9=_0xeb4c0f[_0x811ac4(0x11a)][_0x811ac4(0x124)]+_0x5f18ea*0x2,_0x4d09f4=_0xeb4c0f['shape']['height']+_0x5f18ea*0x2,_0x283b4a=_0xeb4c0f[_0x811ac4(0x11a)][_0x811ac4(0x12e)]+_0x5f18ea*0x2;return{'key':createVolumeBrickKey(_0x947655),'coordinate':_0x947655,'coreRange':{'xStart':_0x5cb67c,'xCount':_0xde65ce,'levelStart':_0x1840d2,'levelCount':_0x26d552,'sourceYStart':_0x265df1,'sourceYCount':_0x1c20cd},'readRange':{'xStart':_0x3692c7,'xCount':_0x37bc0c-_0x3692c7,'levelStart':_0x187aa4,'levelCount':_0x6fd6fb-_0x187aa4,'sourceYStart':_0x164d3d,'sourceYCount':_0x54f077-_0x164d3d},'physicalWidth':_0x3966d9,'physicalHeight':_0x4d09f4,'physicalDepth':_0x283b4a,'byteLength':_0x3966d9*_0x4d09f4*_0x283b4a*Float32Array[_0x811ac4(0x115)]};};export const createVolumeBrickDescriptors=(_0x5d467e,_0x3bcc5d)=>{const _0x23ee00=_0x8c165b,_0x244342=[];for(let _0x34a34d=0x0;_0x34a34d<_0x3bcc5d[_0x23ee00(0x12b)];_0x34a34d+=0x1)for(let _0xd6f1dd=0x0;_0xd6f1dd<_0x3bcc5d[_0x23ee00(0x131)];_0xd6f1dd+=0x1)for(let _0x8f83d1=0x0;_0x8f83d1<_0x3bcc5d[_0x23ee00(0x118)];_0x8f83d1+=0x1)_0x244342[_0x23ee00(0x135)](createVolumeBrickDescriptor(_0x5d467e,_0x3bcc5d,{'x':_0x8f83d1,'y':_0xd6f1dd,'z':_0x34a34d}));return _0x244342;};function _0x20bd(_0x489af9,_0x14a991){const _0x2f6da3=_0x2f6d();return _0x20bd=function(_0x20bd58,_0x51d64d){_0x20bd58=_0x20bd58-0x110;let _0xffc3e3=_0x2f6da3[_0x20bd58];return _0xffc3e3;},_0x20bd(_0x489af9,_0x14a991);}export const calculateVolumeAtlasLayout=_0x2639c6=>{const _0x5ee519=_0x8c165b,_0x32bc16=createVolumeBrickLayout(_0x2639c6['metadata'],_0x2639c6[_0x5ee519(0x111)]),_0x179efb=_0x32bc16[_0x5ee519(0x11a)],_0x662ac4=_0x179efb[_0x5ee519(0x124)]+_0x179efb[_0x5ee519(0x133)]*0x2,_0x400ec4=_0x179efb[_0x5ee519(0x128)]+_0x179efb[_0x5ee519(0x133)]*0x2,_0x186bf3=_0x179efb[_0x5ee519(0x12e)]+_0x179efb[_0x5ee519(0x133)]*0x2,_0x2da128=_0x2639c6[_0x5ee519(0x11f)],_0xeecc72=_0x2639c6[_0x5ee519(0x125)]??defaultVolumeMemoryLimitBytes,_0x1f68ed=_0x2639c6[_0x5ee519(0x11e)]??0x0;if(!Number['isInteger'](_0x2da128)||_0x2da128<=0x0)throw new Error('maxTextureDimension3D\x20must\x20be\x20a\x20positive\x20integer.\x20maxTextureDimension3D\x20必须是正整数。');if(!Number['isSafeInteger'](_0xeecc72)||_0xeecc72<=0x0||!Number[_0x5ee519(0x132)](_0x1f68ed)||_0x1f68ed<0x0||_0x1f68ed>=_0xeecc72)throw new Error(_0x5ee519(0x113));const _0x2b10f3=Math[_0x5ee519(0x134)](_0x32bc16[_0x5ee519(0x118)],Math[_0x5ee519(0x12a)](_0x2da128/_0x662ac4)),_0xb358db=Math[_0x5ee519(0x134)](_0x32bc16[_0x5ee519(0x131)],Math[_0x5ee519(0x12a)](_0x2da128/_0x400ec4)),_0x235dd4=Math['min'](_0x32bc16[_0x5ee519(0x12b)],Math['floor'](_0x2da128/_0x186bf3));if(_0x2b10f3<0x1||_0xb358db<0x1||_0x235dd4<0x1)throw new Error('Device\x20maxTextureDimension3D\x20cannot\x20fit\x20one\x20physical\x20volume\x20brick.\x20设备\x20maxTextureDimension3D\x20无法容纳一个物理体积分块。');const _0x401d66=_0x662ac4*_0x400ec4*_0x186bf3*Float32Array[_0x5ee519(0x115)],_0x3609e4=alignBytes(_0x32bc16[_0x5ee519(0x112)]*Uint32Array[_0x5ee519(0x115)],0x100),_0x104d35=_0xeecc72-_0x1f68ed-_0x3609e4,_0x25e272=Math[_0x5ee519(0x12a)](_0x104d35/_0x401d66);if(_0x25e272<0x1)throw new Error('Volume\x20memory\x20limit\x20cannot\x20fit\x20one\x20physical\x20brick\x20and\x20page\x20table.\x20体积内存上限无法容纳一个物理分块和页表。');const _0x6a7e62=Math[_0x5ee519(0x134)](_0x32bc16[_0x5ee519(0x112)],_0x25e272,_0x2b10f3*_0xb358db*_0x235dd4);let _0x48e388=0x1,_0x711a1a=0x1,_0x24b26d=0x1,_0x2bedc6=0x1;for(let _0x4d74c8=0x1;_0x4d74c8<=_0x2b10f3;_0x4d74c8+=0x1){for(let _0x3f28a9=0x1;_0x3f28a9<=_0x235dd4;_0x3f28a9+=0x1){const _0x2366c5=Math[_0x5ee519(0x134)](_0xb358db,Math[_0x5ee519(0x12a)](_0x6a7e62/(_0x4d74c8*_0x3f28a9))),_0x21adc4=_0x4d74c8*_0x2366c5*_0x3f28a9;_0x21adc4>_0x2bedc6&&(_0x48e388=_0x4d74c8,_0x711a1a=_0x2366c5,_0x24b26d=_0x3f28a9,_0x2bedc6=_0x21adc4);}}const _0xe2bf8c=_0x2bedc6*_0x401d66;return{'brickLayout':_0x32bc16,'slotCountX':_0x48e388,'slotCountY':_0x711a1a,'slotCountZ':_0x24b26d,'capacity':_0x2bedc6,'atlasWidth':_0x48e388*_0x662ac4,'atlasHeight':_0x711a1a*_0x400ec4,'atlasDepth':_0x24b26d*_0x186bf3,'bytesPerBrick':_0x401d66,'atlasBytes':_0xe2bf8c,'pageTableBytes':_0x3609e4,'reservedBytes':_0x1f68ed,'estimatedBytes':_0xe2bf8c+_0x3609e4+_0x1f68ed,'memoryLimitBytes':_0xeecc72};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3d53aa=_0x4eac;(function(_0x505b8a,_0x5e2437){const _0x3b8ff0=_0x4eac,_0x20b228=_0x505b8a();while(!![]){try{const _0x236fc5=-parseInt(_0x3b8ff0(0x85))/0x1+parseInt(_0x3b8ff0(0x96))/0x2*(-parseInt(_0x3b8ff0(0x80))/0x3)+parseInt(_0x3b8ff0(0x8e))/0x4+-parseInt(_0x3b8ff0(0x8f))/0x5+-parseInt(_0x3b8ff0(0x6f))/0x6+-parseInt(_0x3b8ff0(0x7a))/0x7*(-parseInt(_0x3b8ff0(0x73))/0x8)+parseInt(_0x3b8ff0(0x82))/0x9;if(_0x236fc5===_0x5e2437)break;else _0x20b228['push'](_0x20b228['shift']());}catch(_0x35423f){_0x20b228['push'](_0x20b228['shift']());}}}(_0x1fd0,0xec489));function _0x4eac(_0x365b65,_0x57e068){const _0x1fd04d=_0x1fd0();return _0x4eac=function(_0x4eac9b,_0x4b1716){_0x4eac9b=_0x4eac9b-0x6d;let _0x2ddb60=_0x1fd04d[_0x4eac9b];return _0x2ddb60;},_0x4eac(_0x365b65,_0x57e068);}const demandPriority=_0x56d55d=>{const _0x4487f7=_0x4eac;if(_0x56d55d===_0x4487f7(0x8a))return 0x0;if(_0x56d55d===_0x4487f7(0x84))return 0x1;if(_0x56d55d===_0x4487f7(0x91))return 0x2;return 0x3;},preferDemand=(_0x3c1552,_0x19a811)=>{const _0x6536b1=_0x4eac,_0x994a36=demandPriority(_0x3c1552[_0x6536b1(0x74)])-demandPriority(_0x19a811[_0x6536b1(0x74)]);if(_0x994a36!==0x0)return _0x994a36<0x0?_0x3c1552:_0x19a811;return _0x3c1552[_0x6536b1(0x87)]<=_0x19a811[_0x6536b1(0x87)]?_0x3c1552:_0x19a811;};export class VolumeBrickResidency{[_0x3d53aa(0x6e)];['entries']=new Map();[_0x3d53aa(0x99)];[_0x3d53aa(0x90)]=-0x1;[_0x3d53aa(0x88)]=0x1;constructor(_0x1a5783){const _0x3ed10b=_0x3d53aa;this[_0x3ed10b(0x6e)]=_0x1a5783;if(!Number[_0x3ed10b(0x8d)](_0x1a5783)||_0x1a5783<=0x0)throw new Error('Volume\x20brick\x20residency\x20capacity\x20must\x20be\x20a\x20positive\x20integer.\x20体积分块驻留容量必须是正整数。');this[_0x3ed10b(0x99)]=Array[_0x3ed10b(0x93)]({'length':_0x1a5783},(_0xe2fac8,_0x28d6f6)=>_0x1a5783-_0x28d6f6-0x1);}[_0x3d53aa(0x9d)](){const _0x2d9116=_0x3d53aa;return Array['from'](this[_0x2d9116(0x7b)][_0x2d9116(0x8c)](),_0x19f23e=>({..._0x19f23e}));}['reset'](_0x2887ba=-0x1){const _0x193d04=_0x3d53aa,_0x59463a=this[_0x193d04(0x9d)]();this[_0x193d04(0x7b)]['clear'](),this[_0x193d04(0x99)][_0x193d04(0x9c)]=0x0;for(let _0x1d7f8b=this[_0x193d04(0x6e)]-0x1;_0x1d7f8b>=0x0;_0x1d7f8b-=0x1)this[_0x193d04(0x99)][_0x193d04(0x79)](_0x1d7f8b);return this[_0x193d04(0x90)]=_0x2887ba,_0x59463a;}[_0x3d53aa(0x7f)](_0x52b000,_0x5e967a,_0x29d201,_0x374693){const _0x18f9cb=_0x3d53aa;if(!Number[_0x18f9cb(0x8d)](_0x5e967a)||_0x5e967a<0x0)throw new Error(_0x18f9cb(0x7c));if(!Number[_0x18f9cb(0x8d)](_0x29d201)||_0x29d201<0x0)throw new Error('Volume\x20frame\x20index\x20must\x20be\x20a\x20non-negative\x20integer.\x20体积帧索引必须是非负整数。');if(!Number[_0x18f9cb(0x8d)](_0x374693)||_0x374693<0x0)throw new Error(_0x18f9cb(0x78));const _0x90d036=[];if(_0x5e967a!==this[_0x18f9cb(0x90)])_0x90d036['push'](...this[_0x18f9cb(0x7d)](_0x5e967a));const _0x7f506d=new Map();for(const _0x288832 of _0x52b000){if(_0x288832[_0x18f9cb(0x81)][_0x18f9cb(0x9c)]===0x0||!Number[_0x18f9cb(0x75)](_0x288832[_0x18f9cb(0x87)])||_0x288832['distance']<0x0)throw new Error(_0x18f9cb(0x95));const _0xd28e6d=_0x7f506d[_0x18f9cb(0x94)](_0x288832[_0x18f9cb(0x81)]);_0x7f506d[_0x18f9cb(0x86)](_0x288832['key'],_0xd28e6d?preferDemand(_0xd28e6d,_0x288832):_0x288832);}const _0x3ec2ce=Array[_0x18f9cb(0x93)](_0x7f506d['values']())['sort']((_0x4349db,_0x14d624)=>{const _0x30e428=_0x18f9cb,_0x26433a=demandPriority(_0x4349db[_0x30e428(0x74)])-demandPriority(_0x14d624[_0x30e428(0x74)]);if(_0x26433a!==0x0)return _0x26433a;if(_0x4349db[_0x30e428(0x87)]!==_0x14d624['distance'])return _0x4349db[_0x30e428(0x87)]-_0x14d624['distance'];const _0x457bf4=this[_0x30e428(0x7b)]['get'](_0x4349db[_0x30e428(0x81)])?.[_0x30e428(0x83)]??-0x1,_0x3447a3=this['entries']['get'](_0x14d624['key'])?.[_0x30e428(0x83)]??-0x1;if(_0x457bf4!==_0x3447a3)return _0x3447a3-_0x457bf4;return _0x4349db[_0x30e428(0x81)][_0x30e428(0x98)](_0x14d624[_0x30e428(0x81)]);}),_0x14b2c0=_0x3ec2ce[_0x18f9cb(0x6d)](0x0,this[_0x18f9cb(0x6e)]),_0x9584f=new Set(_0x14b2c0[_0x18f9cb(0x72)](_0x505392=>_0x505392['key']));for(const _0x151ac8 of _0x14b2c0){const _0x302891=this[_0x18f9cb(0x7b)][_0x18f9cb(0x94)](_0x151ac8[_0x18f9cb(0x81)]);if(_0x302891)_0x302891[_0x18f9cb(0x83)]=_0x29d201;}const _0x379460=[];for(const _0x1b3707 of _0x14b2c0){if(_0x379460[_0x18f9cb(0x9c)]>=_0x374693||this[_0x18f9cb(0x7b)][_0x18f9cb(0x76)](_0x1b3707[_0x18f9cb(0x81)]))continue;let _0x98ceb3=this[_0x18f9cb(0x99)][_0x18f9cb(0x77)]();if(_0x98ceb3===undefined){const _0x159470=Array[_0x18f9cb(0x93)](this[_0x18f9cb(0x7b)][_0x18f9cb(0x8c)]())['filter'](_0x32e0a2=>!_0x9584f['has'](_0x32e0a2[_0x18f9cb(0x81)]))['sort']((_0x408307,_0x4cd2c4)=>_0x408307[_0x18f9cb(0x83)]-_0x4cd2c4[_0x18f9cb(0x83)]||_0x408307[_0x18f9cb(0x81)][_0x18f9cb(0x98)](_0x4cd2c4[_0x18f9cb(0x81)]))[0x0];if(!_0x159470)break;this[_0x18f9cb(0x7b)][_0x18f9cb(0x7e)](_0x159470[_0x18f9cb(0x81)]),_0x90d036['push']({..._0x159470}),_0x98ceb3=_0x159470[_0x18f9cb(0x71)];}const _0xe6f3f={'key':_0x1b3707[_0x18f9cb(0x81)],'slotIndex':_0x98ceb3,'state':_0x18f9cb(0x97),'sourceRevision':_0x5e967a,'requestGeneration':this[_0x18f9cb(0x88)],'lastUsedFrame':_0x29d201};this[_0x18f9cb(0x88)]+=0x1,this[_0x18f9cb(0x7b)][_0x18f9cb(0x86)](_0xe6f3f[_0x18f9cb(0x81)],_0xe6f3f),_0x379460['push']({'key':_0xe6f3f[_0x18f9cb(0x81)],'slotIndex':_0xe6f3f[_0x18f9cb(0x71)],'sourceRevision':_0xe6f3f[_0x18f9cb(0x70)],'requestGeneration':_0xe6f3f[_0x18f9cb(0x9b)]});}let _0xff4d8e=0x0,_0x2a2516=0x0;for(const _0x488dc6 of this['entries']['values']())_0x488dc6[_0x18f9cb(0x9a)]===_0x18f9cb(0x92)?_0xff4d8e+=0x1:_0x2a2516+=0x1;return{'selectedKeys':_0x14b2c0[_0x18f9cb(0x72)](_0x1da41e=>_0x1da41e[_0x18f9cb(0x81)]),'loads':_0x379460,'evicted':_0x90d036,'residentCount':_0xff4d8e,'pendingCount':_0x2a2516,'budgetLimited':_0x3ec2ce[_0x18f9cb(0x9c)]>this[_0x18f9cb(0x6e)]};}[_0x3d53aa(0x89)](_0x41b7a2){const _0x53944b=_0x3d53aa,_0x1d4a41=this['entries'][_0x53944b(0x94)](_0x41b7a2[_0x53944b(0x81)]);if(!_0x1d4a41||_0x1d4a41[_0x53944b(0x71)]!==_0x41b7a2['slotIndex']||_0x1d4a41['sourceRevision']!==_0x41b7a2['sourceRevision']||_0x1d4a41[_0x53944b(0x9b)]!==_0x41b7a2[_0x53944b(0x9b)]||_0x41b7a2[_0x53944b(0x70)]!==this[_0x53944b(0x90)])return![];return _0x1d4a41[_0x53944b(0x9a)]=_0x53944b(0x92),!![];}[_0x3d53aa(0x8b)](_0x570d28){const _0x1d7709=_0x3d53aa,_0x14b76d=this[_0x1d7709(0x7b)][_0x1d7709(0x94)](_0x570d28[_0x1d7709(0x81)]);if(!_0x14b76d||_0x14b76d[_0x1d7709(0x9a)]!==_0x1d7709(0x97)||_0x14b76d['requestGeneration']!==_0x570d28[_0x1d7709(0x9b)]||_0x14b76d[_0x1d7709(0x70)]!==_0x570d28[_0x1d7709(0x70)])return![];return this[_0x1d7709(0x7b)][_0x1d7709(0x7e)](_0x14b76d['key']),this['freeSlots'][_0x1d7709(0x79)](_0x14b76d['slotIndex']),!![];}}function _0x1fd0(){const _0x2dfd65=['loading','localeCompare','freeSlots','state','requestGeneration','length','getEntries','slice','capacity','11109966KHluGv','sourceRevision','slotIndex','map','3890808BeKrSm','kind','isFinite','has','pop','Maximum\x20volume\x20uploads\x20must\x20be\x20a\x20non-negative\x20integer.\x20最大体积上传数必须是非负整数。','push','7hERSeb','entries','Volume\x20source\x20revision\x20must\x20be\x20a\x20non-negative\x20integer.\x20体积数据源\x20revision\x20必须是非负整数。','reset','delete','plan','1362IYcoJH','key','18974241WKysVE','lastUsedFrame','locked-slice','1171287MQozJv','set','distance','nextRequestGeneration','commit','preview-slice','cancel','values','isInteger','7739584MRUere','2155665ybgVwh','currentSourceRevision','route-profile','resident','from','get','Volume\x20brick\x20demand\x20is\x20invalid.\x20体积分块需求无效。','474ryJlPS'];_0x1fd0=function(){return _0x2dfd65;};return _0x1fd0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5ab5aa=_0x57d4;function _0x5d9d(){const _0xdc5e88=['2ObeQtj','minimumPitchDegrees','atan2','sin','matrices','1435580wyNlQU','asin','42jNxfAn','POSITIVE_INFINITY','setState','tan','相机裁剪距离必须满足\x200\x20<=\x20near\x20<\x20far。','84110DYgzPY','4hvkOXV','fovYDegrees','aspect','exp','orbit','near','position','far','rotateSpeed','projection','53454oUhhhv','275JrYKvC','cos','226555GWnYYF','maximumPitch','cameraState','orthographic','dolly','9CqARhs','minimumDistance','maximumPitchDegrees','maximumDistance','hypot','2436568UvTRWB','zoomSpeed','min','255279JawmdH','perspective','createProjectionMatrix','state','type','panSpeed','4358784RQypnd','height','max','透视相机参数无效。','target'];_0x5d9d=function(){return _0xdc5e88;};return _0x5d9d();}function _0x57d4(_0x83908d,_0x59e3dc){const _0x5d9dd9=_0x5d9d();return _0x57d4=function(_0x57d470,_0x330572){_0x57d470=_0x57d470-0x1f0;let _0x33be42=_0x5d9dd9[_0x57d470];return _0x33be42;},_0x57d4(_0x83908d,_0x59e3dc);}(function(_0x2059d8,_0x2c55b7){const _0x393a55=_0x57d4,_0x483717=_0x2059d8();while(!![]){try{const _0x3be4f4=-parseInt(_0x393a55(0x211))/0x1*(parseInt(_0x393a55(0x21c))/0x2)+parseInt(_0x393a55(0x201))/0x3*(parseInt(_0x393a55(0x1f7))/0x4)+-parseInt(_0x393a55(0x221))/0x5+-parseInt(_0x393a55(0x1f1))/0x6*(-parseInt(_0x393a55(0x204))/0x7)+-parseInt(_0x393a55(0x20e))/0x8*(-parseInt(_0x393a55(0x209))/0x9)+-parseInt(_0x393a55(0x1f6))/0xa*(parseInt(_0x393a55(0x202))/0xb)+parseInt(_0x393a55(0x217))/0xc;if(_0x3be4f4===_0x2c55b7)break;else _0x483717['push'](_0x483717['shift']());}catch(_0x2bbe43){_0x483717['push'](_0x483717['shift']());}}}(_0x5d9d,0x26f12));import{createLookAtMatrix,createOrthographicMatrix,createPerspectiveMatrix,invertMatrix,multiplyMatrices}from'./matrix';const DEFAULT_POSITION=[0x0,0x1,0x2],DEFAULT_TARGET=[0x0,0x0,0x0],DEFAULT_UP=[0x0,0x1,0x0],DEFAULT_PROJECTION={'type':'perspective','fovYDegrees':0x2d,'near':0.01,'far':0x2710},DEGREE_TO_RADIAN=Math['PI']/0xb4,cloneVector=_0x22ca94=>[_0x22ca94[0x0],_0x22ca94[0x1],_0x22ca94[0x2]],cloneProjection=_0x48b325=>_0x48b325[_0x5ab5aa(0x215)]==='perspective'?{..._0x48b325}:{..._0x48b325},cloneState=_0xf7a409=>({'position':cloneVector(_0xf7a409[_0x5ab5aa(0x1fd)]),'target':cloneVector(_0xf7a409[_0x5ab5aa(0x21b)]),'up':cloneVector(_0xf7a409['up']),'projection':cloneProjection(_0xf7a409[_0x5ab5aa(0x200)])}),subtractVector=(_0x23488b,_0x6578c6)=>[_0x23488b[0x0]-_0x6578c6[0x0],_0x23488b[0x1]-_0x6578c6[0x1],_0x23488b[0x2]-_0x6578c6[0x2]],addVector=(_0x111871,_0x952d56)=>[_0x111871[0x0]+_0x952d56[0x0],_0x111871[0x1]+_0x952d56[0x1],_0x111871[0x2]+_0x952d56[0x2]],scaleVector=(_0x231d18,_0x1e337b)=>[_0x231d18[0x0]*_0x1e337b,_0x231d18[0x1]*_0x1e337b,_0x231d18[0x2]*_0x1e337b],crossVector=(_0x1215d6,_0x74d474)=>[_0x1215d6[0x1]*_0x74d474[0x2]-_0x1215d6[0x2]*_0x74d474[0x1],_0x1215d6[0x2]*_0x74d474[0x0]-_0x1215d6[0x0]*_0x74d474[0x2],_0x1215d6[0x0]*_0x74d474[0x1]-_0x1215d6[0x1]*_0x74d474[0x0]],normalizeVector=_0x143385=>{const _0x3b2864=Math['hypot'](_0x143385[0x0],_0x143385[0x1],_0x143385[0x2]);if(_0x3b2864===0x0)return[0x0,0x0,0x0];return scaleVector(_0x143385,0x1/_0x3b2864);},clamp=(_0x27b2d5,_0x53f97b,_0x39effd)=>Math[_0x5ab5aa(0x210)](_0x39effd,Math[_0x5ab5aa(0x219)](_0x53f97b,_0x27b2d5)),validateProjection=_0x168842=>{const _0x413c43=_0x5ab5aa;if(!(_0x168842[_0x413c43(0x1fc)]>=0x0&&_0x168842[_0x413c43(0x1fe)]>_0x168842[_0x413c43(0x1fc)]))throw new Error(_0x413c43(0x1f5));if(_0x168842[_0x413c43(0x215)]==='perspective'&&!(_0x168842['near']>0x0&&_0x168842[_0x413c43(0x1f8)]>0x0&&_0x168842[_0x413c43(0x1f8)]<0xb4))throw new Error(_0x413c43(0x21a));if(_0x168842[_0x413c43(0x215)]==='orthographic'&&!(_0x168842[_0x413c43(0x218)]>0x0))throw new Error('正交相机高度必须大于\x200。');},resolveInitialState=_0x29ea5e=>{const _0x26ce65=_0x5ab5aa,_0x1488a1={'position':_0x29ea5e['state']?.['position']?cloneVector(_0x29ea5e[_0x26ce65(0x214)][_0x26ce65(0x1fd)]):cloneVector(DEFAULT_POSITION),'target':_0x29ea5e['state']?.['target']?cloneVector(_0x29ea5e['state'][_0x26ce65(0x21b)]):cloneVector(DEFAULT_TARGET),'up':_0x29ea5e['state']?.['up']?cloneVector(_0x29ea5e[_0x26ce65(0x214)]['up']):cloneVector(DEFAULT_UP),'projection':_0x29ea5e[_0x26ce65(0x214)]?.[_0x26ce65(0x200)]?cloneProjection(_0x29ea5e[_0x26ce65(0x214)][_0x26ce65(0x200)]):cloneProjection(DEFAULT_PROJECTION)};return validateProjection(_0x1488a1[_0x26ce65(0x200)]),_0x1488a1;};export class VolumeCamera{['cameraState'];[_0x5ab5aa(0x1f9)];[_0x5ab5aa(0x1ff)];[_0x5ab5aa(0x216)];[_0x5ab5aa(0x20f)];[_0x5ab5aa(0x20a)];[_0x5ab5aa(0x20c)];['minimumPitch'];[_0x5ab5aa(0x205)];constructor(_0x4cafd9={}){const _0x370b31=_0x5ab5aa;this[_0x370b31(0x206)]=resolveInitialState(_0x4cafd9),this['aspect']=_0x4cafd9[_0x370b31(0x1f9)]??0x1,this[_0x370b31(0x1ff)]=_0x4cafd9[_0x370b31(0x1ff)]??0.005,this[_0x370b31(0x216)]=_0x4cafd9['panSpeed']??0x1,this['zoomSpeed']=_0x4cafd9['zoomSpeed']??0.0015,this[_0x370b31(0x20a)]=_0x4cafd9['minimumDistance']??0.001,this['maximumDistance']=_0x4cafd9[_0x370b31(0x20c)]??Number[_0x370b31(0x1f2)],this['minimumPitch']=(_0x4cafd9[_0x370b31(0x21d)]??-0x59)*DEGREE_TO_RADIAN,this['maximumPitch']=(_0x4cafd9[_0x370b31(0x20b)]??0x59)*DEGREE_TO_RADIAN;if(!(this['aspect']>0x0))throw new Error('相机宽高比必须大于\x200。');}get[_0x5ab5aa(0x214)](){const _0x4c341c=_0x5ab5aa;return cloneState(this[_0x4c341c(0x206)]);}get[_0x5ab5aa(0x220)](){const _0x48e8b0=_0x5ab5aa,_0x300b13=createLookAtMatrix(this[_0x48e8b0(0x206)][_0x48e8b0(0x1fd)],this[_0x48e8b0(0x206)]['target'],this[_0x48e8b0(0x206)]['up']),_0x1187ea=this[_0x48e8b0(0x213)](),_0x1ffc5e=multiplyMatrices(_0x1187ea,_0x300b13);return{'view':_0x300b13,'projection':_0x1187ea,'viewProjection':_0x1ffc5e,'inverseViewProjection':invertMatrix(_0x1ffc5e)};}[_0x5ab5aa(0x1f3)](_0x4fbf95){const _0xb49b22=_0x5ab5aa;validateProjection(_0x4fbf95[_0xb49b22(0x200)]),this['cameraState']=cloneState(_0x4fbf95);}['setAspect'](_0x41c58e){const _0x3939ae=_0x5ab5aa;if(!(_0x41c58e>0x0)||!Number['isFinite'](_0x41c58e))throw new Error('相机宽高比必须是大于\x200\x20的有限数。');this[_0x3939ae(0x1f9)]=_0x41c58e;}['setProjectionType'](_0x359508){const _0x135b27=_0x5ab5aa;if(_0x359508===this[_0x135b27(0x206)][_0x135b27(0x200)][_0x135b27(0x215)])return;const _0x1922da=Math['hypot'](...subtractVector(this['cameraState']['position'],this[_0x135b27(0x206)][_0x135b27(0x21b)]));if(_0x359508==='orthographic'){const _0x4a7eef=this[_0x135b27(0x206)][_0x135b27(0x200)],_0x480aa0=_0x4a7eef[_0x135b27(0x215)]==='perspective'?_0x4a7eef['fovYDegrees']*DEGREE_TO_RADIAN:0x2d*DEGREE_TO_RADIAN;this[_0x135b27(0x206)][_0x135b27(0x200)]={'type':_0x359508,'height':0x2*_0x1922da*Math['tan'](_0x480aa0/0x2),'near':_0x4a7eef['near'],'far':_0x4a7eef[_0x135b27(0x1fe)]};return;}const _0x4c4237=this[_0x135b27(0x206)][_0x135b27(0x200)],_0x4995b8=0x2d,_0x4042d8=_0x4c4237[_0x135b27(0x215)]===_0x135b27(0x207)?_0x4c4237[_0x135b27(0x218)]/(0x2*Math[_0x135b27(0x1f4)](_0x4995b8*DEGREE_TO_RADIAN/0x2)):_0x1922da,_0x4d457c=normalizeVector(subtractVector(this[_0x135b27(0x206)][_0x135b27(0x1fd)],this['cameraState']['target']));this[_0x135b27(0x206)]['position']=addVector(this[_0x135b27(0x206)][_0x135b27(0x21b)],scaleVector(_0x4d457c,_0x4042d8)),this[_0x135b27(0x206)]['projection']={'type':_0x359508,'fovYDegrees':_0x4995b8,'near':_0x4c4237[_0x135b27(0x1fc)],'far':_0x4c4237[_0x135b27(0x1fe)]};}[_0x5ab5aa(0x1fb)](_0x23e25d,_0x12a8be){const _0x502d98=_0x5ab5aa,_0x2c77a1=subtractVector(this[_0x502d98(0x206)]['position'],this[_0x502d98(0x206)][_0x502d98(0x21b)]),_0x56dbb5=Math[_0x502d98(0x20d)](..._0x2c77a1);if(_0x56dbb5===0x0)return;const _0x3dd47a=Math[_0x502d98(0x21e)](_0x2c77a1[0x0],_0x2c77a1[0x2])-_0x23e25d*this[_0x502d98(0x1ff)],_0x119e1a=clamp(Math[_0x502d98(0x1f0)](_0x2c77a1[0x1]/_0x56dbb5)+_0x12a8be*this[_0x502d98(0x1ff)],this['minimumPitch'],this[_0x502d98(0x205)]),_0x306c4b=Math[_0x502d98(0x203)](_0x119e1a)*_0x56dbb5;this[_0x502d98(0x206)][_0x502d98(0x1fd)]=addVector(this[_0x502d98(0x206)]['target'],[Math[_0x502d98(0x21f)](_0x3dd47a)*_0x306c4b,Math[_0x502d98(0x21f)](_0x119e1a)*_0x56dbb5,Math[_0x502d98(0x203)](_0x3dd47a)*_0x306c4b]);}['pan'](_0x25ff6f,_0x29373e,_0x20e767){const _0xa131e5=_0x5ab5aa;if(!(_0x20e767>0x0))return;const _0x5b1ca7=normalizeVector(subtractVector(this['cameraState'][_0xa131e5(0x21b)],this[_0xa131e5(0x206)][_0xa131e5(0x1fd)])),_0x5e37f0=normalizeVector(crossVector(_0x5b1ca7,this[_0xa131e5(0x206)]['up'])),_0x167ad2=normalizeVector(crossVector(_0x5e37f0,_0x5b1ca7)),_0x1a530d=Math[_0xa131e5(0x20d)](...subtractVector(this[_0xa131e5(0x206)][_0xa131e5(0x1fd)],this[_0xa131e5(0x206)][_0xa131e5(0x21b)])),_0xa035f2=this[_0xa131e5(0x206)][_0xa131e5(0x200)]['type']===_0xa131e5(0x207)?this[_0xa131e5(0x206)]['projection'][_0xa131e5(0x218)]:0x2*_0x1a530d*Math['tan'](this[_0xa131e5(0x206)]['projection']['fovYDegrees']*DEGREE_TO_RADIAN/0x2),_0x48de72=_0xa035f2/_0x20e767*this[_0xa131e5(0x216)],_0x438715=addVector(scaleVector(_0x5e37f0,-_0x25ff6f*_0x48de72),scaleVector(_0x167ad2,_0x29373e*_0x48de72));this[_0xa131e5(0x206)][_0xa131e5(0x1fd)]=addVector(this[_0xa131e5(0x206)][_0xa131e5(0x1fd)],_0x438715),this[_0xa131e5(0x206)][_0xa131e5(0x21b)]=addVector(this['cameraState'][_0xa131e5(0x21b)],_0x438715);}[_0x5ab5aa(0x208)](_0x43751c){const _0x141ad5=_0x5ab5aa,_0x32f5da=Math[_0x141ad5(0x1fa)](_0x43751c*this['zoomSpeed']);if(this['cameraState'][_0x141ad5(0x200)][_0x141ad5(0x215)]===_0x141ad5(0x207)){this[_0x141ad5(0x206)][_0x141ad5(0x200)]={...this['cameraState'][_0x141ad5(0x200)],'height':Math[_0x141ad5(0x219)](this[_0x141ad5(0x20a)],this[_0x141ad5(0x206)][_0x141ad5(0x200)][_0x141ad5(0x218)]*_0x32f5da)};return;}const _0x9659c7=subtractVector(this[_0x141ad5(0x206)]['position'],this[_0x141ad5(0x206)][_0x141ad5(0x21b)]),_0x437288=clamp(Math[_0x141ad5(0x20d)](..._0x9659c7)*_0x32f5da,this['minimumDistance'],this[_0x141ad5(0x20c)]);this[_0x141ad5(0x206)][_0x141ad5(0x1fd)]=addVector(this[_0x141ad5(0x206)][_0x141ad5(0x21b)],scaleVector(normalizeVector(_0x9659c7),_0x437288));}[_0x5ab5aa(0x213)](){const _0x1c8f45=_0x5ab5aa,_0x4fb677=this[_0x1c8f45(0x206)][_0x1c8f45(0x200)];return _0x4fb677[_0x1c8f45(0x215)]===_0x1c8f45(0x212)?createPerspectiveMatrix(_0x4fb677[_0x1c8f45(0x1f8)]*DEGREE_TO_RADIAN,this['aspect'],_0x4fb677['near'],_0x4fb677[_0x1c8f45(0x1fe)]):createOrthographicMatrix(_0x4fb677[_0x1c8f45(0x218)],this[_0x1c8f45(0x1f9)],_0x4fb677[_0x1c8f45(0x1fc)],_0x4fb677[_0x1c8f45(0x1fe)]);}}
|
|
1
|
+
const _0xaea395=_0x42f1;(function(_0xd22287,_0x3b72f3){const _0x2e2d09=_0x42f1,_0x1b5553=_0xd22287();while(!![]){try{const _0x3d385f=-parseInt(_0x2e2d09(0x1d7))/0x1+parseInt(_0x2e2d09(0x1b1))/0x2+-parseInt(_0x2e2d09(0x1a9))/0x3*(parseInt(_0x2e2d09(0x1aa))/0x4)+parseInt(_0x2e2d09(0x1a8))/0x5*(parseInt(_0x2e2d09(0x1d9))/0x6)+-parseInt(_0x2e2d09(0x1b8))/0x7*(-parseInt(_0x2e2d09(0x1ca))/0x8)+-parseInt(_0x2e2d09(0x1ae))/0x9*(-parseInt(_0x2e2d09(0x1ad))/0xa)+-parseInt(_0x2e2d09(0x1bf))/0xb*(parseInt(_0x2e2d09(0x1d2))/0xc);if(_0x3d385f===_0x3b72f3)break;else _0x1b5553['push'](_0x1b5553['shift']());}catch(_0x2e2a13){_0x1b5553['push'](_0x1b5553['shift']());}}}(_0x378a,0x1aea7));import{createLookAtMatrix,createOrthographicMatrix,createPerspectiveMatrix,invertMatrix,multiplyMatrices}from'./matrix';function _0x378a(){const _0x436f86=['isFinite','projection','215636qMxqkA','hypot','18156JUrqRo','dolly','235LHwkEr','204990zqmQrd','8aiOyrb','maximumPitch','aspect','753310XnBPQf','18JmFOKz','maximumDistance','asin','165566xtvsyo','sin','相机宽高比必须大于\x200。','orbit','cos','minimumDistance','cameraState','150269QWszNX','exp','透视相机参数无效。','panSpeed','target','setState','type','5489sdhKsR','max','far','state','atan2','matrices','createProjectionMatrix','position','zoomSpeed','perspective','setAspect','40eHQqcB','相机宽高比必须是大于\x200\x20的有限数。','fovYDegrees','orthographic','minimumPitch','setProjectionType','near','maximumPitchDegrees','492qHPXtE','rotateSpeed','height'];_0x378a=function(){return _0x436f86;};return _0x378a();}function _0x42f1(_0x10d658,_0x165029){const _0x378a35=_0x378a();return _0x42f1=function(_0x42f114,_0x49d420){_0x42f114=_0x42f114-0x1a7;let _0x3f02f4=_0x378a35[_0x42f114];return _0x3f02f4;},_0x42f1(_0x10d658,_0x165029);}const DEFAULT_POSITION=[0x0,0x1,0x2],DEFAULT_TARGET=[0x0,0x0,0x0],DEFAULT_UP=[0x0,0x1,0x0],DEFAULT_PROJECTION={'type':_0xaea395(0x1c8),'fovYDegrees':0x2d,'near':0.01,'far':0x2710},DEGREE_TO_RADIAN=Math['PI']/0xb4,cloneVector=_0xc96e3d=>[_0xc96e3d[0x0],_0xc96e3d[0x1],_0xc96e3d[0x2]],cloneProjection=_0x2ed29c=>_0x2ed29c['type']==='perspective'?{..._0x2ed29c}:{..._0x2ed29c},cloneState=_0x32e735=>({'position':cloneVector(_0x32e735[_0xaea395(0x1c6)]),'target':cloneVector(_0x32e735[_0xaea395(0x1bc)]),'up':cloneVector(_0x32e735['up']),'projection':cloneProjection(_0x32e735[_0xaea395(0x1d6)])}),subtractVector=(_0x2e22d3,_0x5d55ba)=>[_0x2e22d3[0x0]-_0x5d55ba[0x0],_0x2e22d3[0x1]-_0x5d55ba[0x1],_0x2e22d3[0x2]-_0x5d55ba[0x2]],addVector=(_0x2aa386,_0xdf65ac)=>[_0x2aa386[0x0]+_0xdf65ac[0x0],_0x2aa386[0x1]+_0xdf65ac[0x1],_0x2aa386[0x2]+_0xdf65ac[0x2]],scaleVector=(_0x3d66b4,_0x19b1f5)=>[_0x3d66b4[0x0]*_0x19b1f5,_0x3d66b4[0x1]*_0x19b1f5,_0x3d66b4[0x2]*_0x19b1f5],crossVector=(_0x15d670,_0x29280c)=>[_0x15d670[0x1]*_0x29280c[0x2]-_0x15d670[0x2]*_0x29280c[0x1],_0x15d670[0x2]*_0x29280c[0x0]-_0x15d670[0x0]*_0x29280c[0x2],_0x15d670[0x0]*_0x29280c[0x1]-_0x15d670[0x1]*_0x29280c[0x0]],normalizeVector=_0x16d760=>{const _0x1f123b=Math['hypot'](_0x16d760[0x0],_0x16d760[0x1],_0x16d760[0x2]);if(_0x1f123b===0x0)return[0x0,0x0,0x0];return scaleVector(_0x16d760,0x1/_0x1f123b);},clamp=(_0x32bc58,_0xf3df76,_0x211d40)=>Math['min'](_0x211d40,Math[_0xaea395(0x1c0)](_0xf3df76,_0x32bc58)),validateProjection=_0x567043=>{const _0x3173e1=_0xaea395;if(!(_0x567043[_0x3173e1(0x1d0)]>=0x0&&_0x567043[_0x3173e1(0x1c1)]>_0x567043[_0x3173e1(0x1d0)]))throw new Error('相机裁剪距离必须满足\x200\x20<=\x20near\x20<\x20far。');if(_0x567043[_0x3173e1(0x1be)]===_0x3173e1(0x1c8)&&!(_0x567043[_0x3173e1(0x1d0)]>0x0&&_0x567043['fovYDegrees']>0x0&&_0x567043[_0x3173e1(0x1cc)]<0xb4))throw new Error(_0x3173e1(0x1ba));if(_0x567043[_0x3173e1(0x1be)]===_0x3173e1(0x1cd)&&!(_0x567043['height']>0x0))throw new Error('正交相机高度必须大于\x200。');},resolveInitialState=_0x2f4e5f=>{const _0x345c94=_0xaea395,_0x1f0347={'position':_0x2f4e5f[_0x345c94(0x1c2)]?.[_0x345c94(0x1c6)]?cloneVector(_0x2f4e5f[_0x345c94(0x1c2)][_0x345c94(0x1c6)]):cloneVector(DEFAULT_POSITION),'target':_0x2f4e5f[_0x345c94(0x1c2)]?.[_0x345c94(0x1bc)]?cloneVector(_0x2f4e5f[_0x345c94(0x1c2)][_0x345c94(0x1bc)]):cloneVector(DEFAULT_TARGET),'up':_0x2f4e5f[_0x345c94(0x1c2)]?.['up']?cloneVector(_0x2f4e5f[_0x345c94(0x1c2)]['up']):cloneVector(DEFAULT_UP),'projection':_0x2f4e5f[_0x345c94(0x1c2)]?.[_0x345c94(0x1d6)]?cloneProjection(_0x2f4e5f['state']['projection']):cloneProjection(DEFAULT_PROJECTION)};return validateProjection(_0x1f0347['projection']),_0x1f0347;};export class VolumeCamera{[_0xaea395(0x1b7)];[_0xaea395(0x1ac)];['rotateSpeed'];['panSpeed'];[_0xaea395(0x1c7)];[_0xaea395(0x1b6)];['maximumDistance'];[_0xaea395(0x1ce)];[_0xaea395(0x1ab)];constructor(_0x440acf={}){const _0x48ea6b=_0xaea395;this[_0x48ea6b(0x1b7)]=resolveInitialState(_0x440acf),this['aspect']=_0x440acf[_0x48ea6b(0x1ac)]??0x1,this[_0x48ea6b(0x1d3)]=_0x440acf[_0x48ea6b(0x1d3)]??0.005,this['panSpeed']=_0x440acf[_0x48ea6b(0x1bb)]??0x1,this[_0x48ea6b(0x1c7)]=_0x440acf['zoomSpeed']??0.0015,this['minimumDistance']=_0x440acf[_0x48ea6b(0x1b6)]??0.001,this[_0x48ea6b(0x1af)]=_0x440acf[_0x48ea6b(0x1af)]??Number['POSITIVE_INFINITY'],this['minimumPitch']=(_0x440acf['minimumPitchDegrees']??-0x59)*DEGREE_TO_RADIAN,this[_0x48ea6b(0x1ab)]=(_0x440acf[_0x48ea6b(0x1d1)]??0x59)*DEGREE_TO_RADIAN;if(!(this[_0x48ea6b(0x1ac)]>0x0))throw new Error(_0x48ea6b(0x1b3));}get[_0xaea395(0x1c2)](){const _0xc45c62=_0xaea395;return cloneState(this[_0xc45c62(0x1b7)]);}get[_0xaea395(0x1c4)](){const _0x58d962=_0xaea395,_0x208cd1=createLookAtMatrix(this['cameraState'][_0x58d962(0x1c6)],this[_0x58d962(0x1b7)]['target'],this[_0x58d962(0x1b7)]['up']),_0x5aa55b=this[_0x58d962(0x1c5)](),_0x11dc58=multiplyMatrices(_0x5aa55b,_0x208cd1);return{'view':_0x208cd1,'projection':_0x5aa55b,'viewProjection':_0x11dc58,'inverseViewProjection':invertMatrix(_0x11dc58)};}[_0xaea395(0x1bd)](_0x475b5c){const _0x3dbfcb=_0xaea395;validateProjection(_0x475b5c['projection']),this[_0x3dbfcb(0x1b7)]=cloneState(_0x475b5c);}[_0xaea395(0x1c9)](_0x4530c1){const _0x16f784=_0xaea395;if(!(_0x4530c1>0x0)||!Number[_0x16f784(0x1d5)](_0x4530c1))throw new Error(_0x16f784(0x1cb));this[_0x16f784(0x1ac)]=_0x4530c1;}[_0xaea395(0x1cf)](_0xcc4edb){const _0x3e1499=_0xaea395;if(_0xcc4edb===this[_0x3e1499(0x1b7)][_0x3e1499(0x1d6)][_0x3e1499(0x1be)])return;const _0x125786=Math[_0x3e1499(0x1d8)](...subtractVector(this[_0x3e1499(0x1b7)][_0x3e1499(0x1c6)],this[_0x3e1499(0x1b7)][_0x3e1499(0x1bc)]));if(_0xcc4edb===_0x3e1499(0x1cd)){const _0xaec08a=this['cameraState'][_0x3e1499(0x1d6)],_0x147155=_0xaec08a[_0x3e1499(0x1be)]===_0x3e1499(0x1c8)?_0xaec08a[_0x3e1499(0x1cc)]*DEGREE_TO_RADIAN:0x2d*DEGREE_TO_RADIAN;this['cameraState']['projection']={'type':_0xcc4edb,'height':0x2*_0x125786*Math['tan'](_0x147155/0x2),'near':_0xaec08a[_0x3e1499(0x1d0)],'far':_0xaec08a[_0x3e1499(0x1c1)]};return;}const _0x2e40e5=this['cameraState']['projection'],_0x1d1aca=0x2d,_0x3760f0=_0x2e40e5[_0x3e1499(0x1be)]===_0x3e1499(0x1cd)?_0x2e40e5[_0x3e1499(0x1d4)]/(0x2*Math['tan'](_0x1d1aca*DEGREE_TO_RADIAN/0x2)):_0x125786,_0x1746de=normalizeVector(subtractVector(this[_0x3e1499(0x1b7)]['position'],this[_0x3e1499(0x1b7)]['target']));this[_0x3e1499(0x1b7)][_0x3e1499(0x1c6)]=addVector(this[_0x3e1499(0x1b7)][_0x3e1499(0x1bc)],scaleVector(_0x1746de,_0x3760f0)),this[_0x3e1499(0x1b7)][_0x3e1499(0x1d6)]={'type':_0xcc4edb,'fovYDegrees':_0x1d1aca,'near':_0x2e40e5['near'],'far':_0x2e40e5[_0x3e1499(0x1c1)]};}[_0xaea395(0x1b4)](_0x1d5a23,_0x2e3325){const _0x38fc59=_0xaea395,_0x55c224=subtractVector(this[_0x38fc59(0x1b7)][_0x38fc59(0x1c6)],this[_0x38fc59(0x1b7)][_0x38fc59(0x1bc)]),_0x4c5db4=Math[_0x38fc59(0x1d8)](..._0x55c224);if(_0x4c5db4===0x0)return;const _0x103bb7=Math[_0x38fc59(0x1c3)](_0x55c224[0x0],_0x55c224[0x2])-_0x1d5a23*this[_0x38fc59(0x1d3)],_0x5b69c7=clamp(Math[_0x38fc59(0x1b0)](_0x55c224[0x1]/_0x4c5db4)+_0x2e3325*this['rotateSpeed'],this[_0x38fc59(0x1ce)],this[_0x38fc59(0x1ab)]),_0x37e39c=Math[_0x38fc59(0x1b5)](_0x5b69c7)*_0x4c5db4;this['cameraState'][_0x38fc59(0x1c6)]=addVector(this[_0x38fc59(0x1b7)]['target'],[Math[_0x38fc59(0x1b2)](_0x103bb7)*_0x37e39c,Math['sin'](_0x5b69c7)*_0x4c5db4,Math['cos'](_0x103bb7)*_0x37e39c]);}['pan'](_0x29d9e0,_0x57bd94,_0x57e593){const _0x52a7bc=_0xaea395;if(!(_0x57e593>0x0))return;const _0x56796a=normalizeVector(subtractVector(this[_0x52a7bc(0x1b7)][_0x52a7bc(0x1bc)],this[_0x52a7bc(0x1b7)][_0x52a7bc(0x1c6)])),_0x25709a=normalizeVector(crossVector(_0x56796a,this['cameraState']['up'])),_0x2bd1b8=normalizeVector(crossVector(_0x25709a,_0x56796a)),_0x32a93b=Math['hypot'](...subtractVector(this[_0x52a7bc(0x1b7)][_0x52a7bc(0x1c6)],this['cameraState'][_0x52a7bc(0x1bc)])),_0x4f7b01=this[_0x52a7bc(0x1b7)][_0x52a7bc(0x1d6)][_0x52a7bc(0x1be)]==='orthographic'?this[_0x52a7bc(0x1b7)][_0x52a7bc(0x1d6)][_0x52a7bc(0x1d4)]:0x2*_0x32a93b*Math['tan'](this[_0x52a7bc(0x1b7)][_0x52a7bc(0x1d6)][_0x52a7bc(0x1cc)]*DEGREE_TO_RADIAN/0x2),_0x2d33f5=_0x4f7b01/_0x57e593*this[_0x52a7bc(0x1bb)],_0x5d8e60=addVector(scaleVector(_0x25709a,-_0x29d9e0*_0x2d33f5),scaleVector(_0x2bd1b8,_0x57bd94*_0x2d33f5));this[_0x52a7bc(0x1b7)]['position']=addVector(this[_0x52a7bc(0x1b7)][_0x52a7bc(0x1c6)],_0x5d8e60),this['cameraState'][_0x52a7bc(0x1bc)]=addVector(this[_0x52a7bc(0x1b7)][_0x52a7bc(0x1bc)],_0x5d8e60);}[_0xaea395(0x1a7)](_0x1fe70b){const _0x318681=_0xaea395,_0x4a9665=Math[_0x318681(0x1b9)](_0x1fe70b*this['zoomSpeed']);if(this[_0x318681(0x1b7)][_0x318681(0x1d6)]['type']===_0x318681(0x1cd)){this['cameraState'][_0x318681(0x1d6)]={...this[_0x318681(0x1b7)][_0x318681(0x1d6)],'height':Math[_0x318681(0x1c0)](this[_0x318681(0x1b6)],this[_0x318681(0x1b7)]['projection'][_0x318681(0x1d4)]*_0x4a9665)};return;}const _0x1ee249=subtractVector(this['cameraState'][_0x318681(0x1c6)],this[_0x318681(0x1b7)][_0x318681(0x1bc)]),_0x472efa=clamp(Math[_0x318681(0x1d8)](..._0x1ee249)*_0x4a9665,this[_0x318681(0x1b6)],this[_0x318681(0x1af)]);this['cameraState']['position']=addVector(this[_0x318681(0x1b7)][_0x318681(0x1bc)],scaleVector(normalizeVector(_0x1ee249),_0x472efa));}[_0xaea395(0x1c5)](){const _0x3f36b3=_0xaea395,_0x49a600=this[_0x3f36b3(0x1b7)]['projection'];return _0x49a600[_0x3f36b3(0x1be)]===_0x3f36b3(0x1c8)?createPerspectiveMatrix(_0x49a600['fovYDegrees']*DEGREE_TO_RADIAN,this[_0x3f36b3(0x1ac)],_0x49a600[_0x3f36b3(0x1d0)],_0x49a600[_0x3f36b3(0x1c1)]):createOrthographicMatrix(_0x49a600['height'],this[_0x3f36b3(0x1ac)],_0x49a600[_0x3f36b3(0x1d0)],_0x49a600['far']);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x3defb8=_0x29d5;(function(_0x5e4c7c,_0x47ed30){const _0x61ff4f=_0x29d5,_0x30905e=_0x5e4c7c();while(!![]){try{const _0x2235de=-parseInt(_0x61ff4f(0x138))/0x1*(-parseInt(_0x61ff4f(0x133))/0x2)+parseInt(_0x61ff4f(0x13c))/0x3*(parseInt(_0x61ff4f(0x136))/0x4)+parseInt(_0x61ff4f(0x13d))/0x5*(parseInt(_0x61ff4f(0x137))/0x6)+-parseInt(_0x61ff4f(0x134))/0x7*(-parseInt(_0x61ff4f(0x135))/0x8)+-parseInt(_0x61ff4f(0x131))/0x9*(parseInt(_0x61ff4f(0x139))/0xa)+-parseInt(_0x61ff4f(0x13b))/0xb*(parseInt(_0x61ff4f(0x130))/0xc)+-parseInt(_0x61ff4f(0x132))/0xd*(-parseInt(_0x61ff4f(0x12f))/0xe);if(_0x2235de===_0x47ed30)break;else _0x30905e['push'](_0x30905e['shift']());}catch(_0x456c8f){_0x30905e['push'](_0x30905e['shift']());}}}(_0x3671,0x7eb38));import{VolumeScene}from'./volumeScene';function _0x29d5(_0x4da919,_0x437e26){const _0x3671b8=_0x3671();return _0x29d5=function(_0x29d551,_0x585199){_0x29d551=_0x29d551-0x12f;let _0x58af66=_0x3671b8[_0x29d551];return _0x58af66;},_0x29d5(_0x4da919,_0x437e26);}export const createVolumeScene=_0x14a9f2=>VolumeScene[_0x3defb8(0x13a)](_0x14a9f2);function _0x3671(){const _0x1a2f5b=['2433544fsPnCm','16GRwMut','243462cGVDQC','672073xUGBhR','10KGGZBb','create','99zGYuCn','44271lUKuLw','35aNKmWl','14VPQHkV','242532BjsayP','8833743SgKhpm','4719793jAmpKJ','2GQkZzX','7ibURqK'];_0x3671=function(){return _0x1a2f5b;};return _0x3671();}
|