@map-colonies/react-components 4.14.0 → 4.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@map-colonies/react-components.es.js +4870 -4809
- package/dist/@map-colonies/react-components.umd.js +28 -27
- package/dist/Cesium/Assets/approximateTerrainHeights.json +1 -1
- package/dist/Cesium/Cesium.js +12626 -9082
- package/dist/Cesium/ThirdParty/Workers/zip-web-worker.js +1 -0
- package/dist/Cesium/ThirdParty/draco_decoder.wasm +0 -0
- package/dist/Cesium/ThirdParty/google-earth-dbroot-parser.js +1 -1
- package/dist/Cesium/ThirdParty/wasm_splats_bg.wasm +0 -0
- package/dist/Cesium/ThirdParty/zip-module.wasm +0 -0
- package/dist/Cesium/Widgets/CesiumWidget/CesiumWidget.css +0 -5
- package/dist/Cesium/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/azureAerial.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/azureRoads.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/googleContour.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/googleRoadmap.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/googleSatellite.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/googleSatelliteLabels.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/dist/Cesium/Widgets/Timeline/Timeline.css +8 -1
- package/dist/Cesium/Widgets/Timeline/lighter.css +6 -1
- package/dist/Cesium/Widgets/lighter.css +6 -1
- package/dist/Cesium/Widgets/widgets.css +36 -5
- package/dist/Cesium/Workers/chunk-35LM35A5.js +26 -0
- package/dist/Cesium/Workers/chunk-3R3BCVRR.js +26 -0
- package/dist/Cesium/Workers/chunk-44VKZ44M.js +26 -0
- package/dist/Cesium/Workers/chunk-4LOVZYQ2.js +26 -0
- package/dist/Cesium/Workers/chunk-55KTRCCC.js +29 -0
- package/dist/Cesium/Workers/chunk-5AJUPXGZ.js +26 -0
- package/dist/Cesium/Workers/chunk-5EEMCPIO.js +26 -0
- package/dist/Cesium/Workers/chunk-5HZ2G332.js +26 -0
- package/dist/Cesium/Workers/chunk-6K4BWAPV.js +26 -0
- package/dist/Cesium/Workers/chunk-6LZUEMFX.js +26 -0
- package/dist/Cesium/Workers/chunk-6NPJZ3PS.js +26 -0
- package/dist/Cesium/Workers/chunk-A3K5FM7E.js +26 -0
- package/dist/Cesium/Workers/chunk-AP7AMWJA.js +26 -0
- package/dist/Cesium/Workers/chunk-AZCCS55A.js +63 -0
- package/dist/Cesium/Workers/chunk-BXPFAIYZ.js +26 -0
- package/dist/Cesium/Workers/chunk-C4NHPSO2.js +26 -0
- package/dist/Cesium/Workers/chunk-CJGWLCOV.js +26 -0
- package/dist/Cesium/Workers/chunk-E4MSZ45D.js +26 -0
- package/dist/Cesium/Workers/chunk-FCRW2AGG.js +28 -0
- package/dist/Cesium/Workers/chunk-FMWRN5G2.js +26 -0
- package/dist/Cesium/Workers/chunk-FXWI4VL7.js +26 -0
- package/dist/Cesium/Workers/chunk-FYQCPFNB.js +26 -0
- package/dist/Cesium/Workers/chunk-G46AR6KP.js +26 -0
- package/dist/Cesium/Workers/chunk-GS4ZGDWD.js +26 -0
- package/dist/Cesium/Workers/chunk-GZABERXA.js +26 -0
- package/dist/Cesium/Workers/chunk-H6AHPUMX.js +26 -0
- package/dist/Cesium/Workers/chunk-IPQQ2USK.js +26 -0
- package/dist/Cesium/Workers/chunk-ITSDUOWL.js +26 -0
- package/dist/Cesium/Workers/chunk-J6WO2HA5.js +26 -0
- package/dist/Cesium/Workers/chunk-K3YIAZU7.js +26 -0
- package/dist/Cesium/Workers/chunk-K72DPWBT.js +26 -0
- package/dist/Cesium/Workers/chunk-LKQXJXNV.js +26 -0
- package/dist/Cesium/Workers/chunk-LTHJTGXC.js +26 -0
- package/dist/Cesium/Workers/chunk-LUECBOIT.js +26 -0
- package/dist/Cesium/Workers/chunk-MUI5QV7K.js +26 -0
- package/dist/Cesium/Workers/chunk-OS2CBN2U.js +26 -0
- package/dist/Cesium/Workers/chunk-R5DFAOJG.js +26 -0
- package/dist/Cesium/Workers/chunk-R7QNYLFY.js +26 -0
- package/dist/Cesium/Workers/chunk-RH3WVPDR.js +26 -0
- package/dist/Cesium/Workers/chunk-RI3TXBVT.js +26 -0
- package/dist/Cesium/Workers/chunk-RU2T2U4O.js +26 -0
- package/dist/Cesium/Workers/chunk-SSYRCXAV.js +26 -0
- package/dist/Cesium/Workers/chunk-U4VWQPTS.js +28 -0
- package/dist/Cesium/Workers/chunk-UHTXIDKA.js +26 -0
- package/dist/Cesium/Workers/chunk-V74K6IQF.js +29 -0
- package/dist/Cesium/Workers/chunk-VELRZYUL.js +26 -0
- package/dist/Cesium/Workers/chunk-VXS2FTO4.js +27 -0
- package/dist/Cesium/Workers/chunk-VZ4ER5HI.js +26 -0
- package/dist/Cesium/Workers/chunk-WC7WZIXH.js +26 -0
- package/dist/Cesium/Workers/chunk-WM6AKY6B.js +27 -0
- package/dist/Cesium/Workers/chunk-WTIPXHS3.js +26 -0
- package/dist/Cesium/Workers/chunk-WZYIA4NB.js +26 -0
- package/dist/Cesium/Workers/chunk-XEBZTQHW.js +26 -0
- package/dist/Cesium/Workers/chunk-XFWEZBPW.js +26 -0
- package/dist/Cesium/Workers/chunk-YLWWFMFQ.js +26 -0
- package/dist/Cesium/Workers/chunk-YNBY2HFD.js +26 -0
- package/dist/Cesium/Workers/chunk-ZQTDDQLY.js +26 -0
- package/dist/Cesium/Workers/combineGeometry.js +26 -1
- package/dist/Cesium/Workers/createBoxGeometry.js +26 -1
- package/dist/Cesium/Workers/createBoxOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createCircleGeometry.js +26 -1
- package/dist/Cesium/Workers/createCircleOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createCoplanarPolygonGeometry.js +26 -1
- package/dist/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createCorridorGeometry.js +26 -1
- package/dist/Cesium/Workers/createCorridorOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createCylinderGeometry.js +26 -1
- package/dist/Cesium/Workers/createCylinderOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createEllipseGeometry.js +26 -1
- package/dist/Cesium/Workers/createEllipseOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createEllipsoidGeometry.js +26 -1
- package/dist/Cesium/Workers/createEllipsoidOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createFrustumGeometry.js +26 -1
- package/dist/Cesium/Workers/createFrustumOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createGeometry.js +26 -1
- package/dist/Cesium/Workers/createGroundPolylineGeometry.js +26 -1
- package/dist/Cesium/Workers/createPlaneGeometry.js +26 -1
- package/dist/Cesium/Workers/createPlaneOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createPolygonGeometry.js +26 -1
- package/dist/Cesium/Workers/createPolygonOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createPolylineGeometry.js +26 -1
- package/dist/Cesium/Workers/createPolylineVolumeGeometry.js +26 -1
- package/dist/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createRectangleGeometry.js +26 -1
- package/dist/Cesium/Workers/createRectangleOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createSimplePolylineGeometry.js +26 -1
- package/dist/Cesium/Workers/createSphereGeometry.js +26 -1
- package/dist/Cesium/Workers/createSphereOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createTaskProcessorWorker.js +26 -1
- package/dist/Cesium/Workers/createVectorTileClampedPolylines.js +26 -1
- package/dist/Cesium/Workers/createVectorTileGeometries.js +26 -1
- package/dist/Cesium/Workers/createVectorTilePoints.js +26 -1
- package/dist/Cesium/Workers/createVectorTilePolygons.js +26 -1
- package/dist/Cesium/Workers/createVectorTilePolylines.js +26 -1
- package/dist/Cesium/Workers/createVerticesFromCesium3DTilesTerrain.js +26 -0
- package/dist/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +26 -1
- package/dist/Cesium/Workers/createVerticesFromHeightmap.js +26 -3
- package/dist/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +26 -1
- package/dist/Cesium/Workers/createWallGeometry.js +26 -1
- package/dist/Cesium/Workers/createWallOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/decodeDraco.js +26 -1
- package/dist/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +26 -1
- package/dist/Cesium/Workers/decodeI3S.js +26 -1
- package/dist/Cesium/Workers/gaussianSplatSorter.js +26 -0
- package/dist/Cesium/Workers/gaussianSplatTextureGenerator.js +26 -0
- package/dist/Cesium/Workers/incrementallyBuildTerrainPicker.js +26 -0
- package/dist/Cesium/Workers/transcodeKTX2.js +56 -1
- package/dist/Cesium/Workers/transferTypedArrayTest.js +2 -2
- package/dist/Cesium/Workers/upsampleQuantizedTerrainMesh.js +26 -1
- package/dist/Cesium/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +26 -0
- package/dist/Cesium/index.cjs +12654 -9110
- package/dist/Cesium/index.js +12647 -9103
- package/dist/cesium-map/active-layers/active-layers-panel.css +16 -1
- package/dist/cesium-map/debug/debugger-widget.css +151 -0
- package/dist/cesium-map/debug/wfs.css +6 -0
- package/dist/cesium-map/map.css +4 -0
- package/dist/{animated → components/animated}/animated-values-provider.d.ts +1 -1
- package/dist/{autocomplete → components/autocomplete}/autocomplete.d.ts +1 -1
- package/dist/{box → components/box}/box.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/active-layers/active-layers-panel.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/active-layers/active-layers-widget.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/base-map/base-map-widget.d.ts +1 -2
- package/dist/{cesium-map → components/cesium-map}/base-map/base-maps-panel.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/base-map/cesium-item.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/base-map/terrains-panel.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/data-sources/custom.data-source.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/data-sources/drawings.data-source.d.ts +1 -1
- package/dist/components/cesium-map/debug/debugger-widget.d.ts +7 -0
- package/dist/components/cesium-map/debug/wfs.d.ts +10 -0
- package/dist/{cesium-map → components/cesium-map}/entities/entity.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/entities/entity.description.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/entities/graphics/polygon.graphics.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/entities/graphics/polyline.graphics.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/entities/graphics/rectangle.graphics.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/geocoder/geocoder-panel.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/geocoder/geocoder-widget.d.ts +1 -2
- package/dist/components/cesium-map/geocoder/index.d.ts +2 -0
- package/dist/{cesium-map → components/cesium-map}/helpers/customImageryProviders.d.ts +11 -0
- package/dist/{cesium-map → components/cesium-map}/helpers/geojson/point.geojson.d.ts +1 -1
- package/dist/components/cesium-map/helpers/index.d.ts +3 -0
- package/dist/{cesium-map → components/cesium-map}/helpers/utils.d.ts +1 -0
- package/dist/{cesium-map → components/cesium-map}/index.d.ts +2 -0
- package/dist/components/cesium-map/layers/3d.tileset.d.ts +9 -0
- package/dist/components/cesium-map/layers/3d.tileset.with.update.d.ts +8 -0
- package/dist/{cesium-map → components/cesium-map}/layers/geojson.layer.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/layers/imagery.layer.d.ts +6 -2
- package/dist/{cesium-map → components/cesium-map}/layers/osm.layer.d.ts +2 -2
- package/dist/{cesium-map → components/cesium-map}/layers/wfs.layer.d.ts +35 -2
- package/dist/{cesium-map → components/cesium-map}/layers/wms.layer.d.ts +2 -2
- package/dist/{cesium-map → components/cesium-map}/layers/wmts.layer.d.ts +2 -2
- package/dist/{cesium-map → components/cesium-map}/layers/xyz.layer.d.ts +2 -2
- package/dist/components/cesium-map/layers-manager.d.ts +141 -0
- package/dist/{cesium-map → components/cesium-map}/legend/legend-item.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/legend/legend-list.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/legend/legend-sidebar.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/legend/legend-widget.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/map.d.ts +3 -3
- package/dist/{cesium-map → components/cesium-map}/proxied.types.d.ts +3 -1
- package/dist/components/cesium-map/terrain-providers/custom/dummy-quantized-mesh-tile.d.ts +3 -0
- package/dist/components/cesium-map/terrain-providers/custom/quantized-mesh-decoder.d.ts +9 -0
- package/dist/components/cesium-map/terrain-providers/custom/quantized-mesh-terrain-provider.d.ts +50 -0
- package/dist/{cesium-map → components/cesium-map}/tools/cesium-compass.tool.d.ts +0 -1
- package/dist/{cesium-map → components/cesium-map}/tools/coordinates-tracker.tool.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/tools/inspector.tool.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/tools/scale-tracker.tool.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/tools/terranian-height.tool.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/tools/zoom-buttons.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/tools/zoom-level-tracker.tool.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/widget/cesium-button.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/widget/cesium-icon.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/widget/cesium-inspector.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/widget/cesium-title.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/widget/cesium-tool.d.ts +1 -1
- package/dist/{cesium-map → components/cesium-map}/widget/widget-wrapper.d.ts +2 -2
- package/dist/{circular-progress-bar → components/circular-progress-bar}/circular-progress-bar.d.ts +1 -1
- package/dist/{cssbaseline → components/cssbaseline}/cssbaseline.d.ts +1 -1
- package/dist/{date-picker → components/date-picker}/date-picker.d.ts +1 -1
- package/dist/{date-range-picker → components/date-range-picker}/date-range-picker.d.ts +1 -1
- package/dist/{date-range-picker → components/date-range-picker}/date-range-picker.form-control.d.ts +1 -1
- package/dist/{date-range-picker-with-presets → components/date-range-picker-with-presets}/index.d.ts +2 -2
- package/dist/components/date-range-picker-with-presets/styles.d.ts +1 -0
- package/dist/{file-picker → components/file-picker}/file-picker.d.ts +42 -42
- package/dist/components/index.d.ts +17 -0
- package/dist/{multi-selection → components/multi-selection}/multi-selection.d.ts +1 -2
- package/dist/{ol-map → components/ol-map}/feature.d.ts +1 -1
- package/dist/{map-filter-container → components/ol-map/filter}/container-map.d.ts +2 -2
- package/dist/{map-filter-container → components/ol-map/filter}/map-filter-container.d.ts +1 -1
- package/dist/{map-filter-container → components/ol-map/filter}/polygon-selection-ui.d.ts +2 -2
- package/dist/{ol-map → components/ol-map}/index.d.ts +1 -0
- package/dist/{ol-map → components/ol-map}/interactions/draw.d.ts +1 -1
- package/dist/{ol-map → components/ol-map}/layers/tile-layer.d.ts +1 -1
- package/dist/{ol-map → components/ol-map}/layers/vector-layer.d.ts +1 -1
- package/dist/{ol-map → components/ol-map}/layers/vector-tile-layer.d.ts +2 -2
- package/dist/{ol-map → components/ol-map}/legend/legend.d.ts +1 -1
- package/dist/{ol-map → components/ol-map}/map.d.ts +1 -1
- package/dist/{ol-map → components/ol-map}/source/mvt.d.ts +2 -2
- package/dist/components/ol-map/source/osm.d.ts +2 -0
- package/dist/{ol-map → components/ol-map}/source/vector-source.d.ts +1 -1
- package/dist/{ol-map → components/ol-map}/source/wms.d.ts +1 -1
- package/dist/{ol-map → components/ol-map}/source/wmts.d.ts +2 -2
- package/dist/{ol-map → components/ol-map}/source/xyz.d.ts +1 -1
- package/dist/{popover → components/popover}/popover.d.ts +1 -1
- package/dist/components/smart-table/__mock-data__/smartTableMocks.d.ts +7 -0
- package/dist/components/smart-table/icons/utils/createSvgIcon.d.ts +1 -0
- package/dist/{smart-table → components/smart-table}/smart-table-head.d.ts +2 -2
- package/dist/{smart-table → components/smart-table}/smart-table-row.d.ts +1 -2
- package/dist/{smart-table → components/smart-table}/smart-table.d.ts +2 -2
- package/dist/{theme → components/theme}/theme.d.ts +1 -1
- package/dist/{typeHelpers.d.ts → components/typeHelpers.d.ts} +0 -1
- package/dist/components/utils/story.d.ts +12 -0
- package/dist/index.d.ts +1 -17
- package/package.json +8 -16
- package/dist/cesium-map/debug/debugger-widget.d.ts +0 -20
- package/dist/cesium-map/debug/wfs.d.ts +0 -10
- package/dist/cesium-map/layers/3d.tileset.d.ts +0 -7
- package/dist/cesium-map/layers-manager.d.ts +0 -76
- package/dist/ol-map/source/osm.d.ts +0 -2
- package/dist/smart-table/icons/utils/createSvgIcon.d.ts +0 -1
- /package/dist/{animated → components/animated}/index.d.ts +0 -0
- /package/dist/{autocomplete → components/autocomplete}/index.d.ts +0 -0
- /package/dist/{box → components/box}/index.d.ts +0 -0
- /package/dist/{cesium-map → components/cesium-map}/data-sources/index.d.ts +0 -0
- /package/dist/{cesium-map → components/cesium-map}/entities/index.d.ts +0 -0
- /package/dist/{cesium-map → components/cesium-map}/helpers/constants.d.ts +0 -0
- /package/dist/{cesium-map → components/cesium-map}/helpers/draw/drawHelper.d.ts +0 -0
- /package/dist/{cesium-map → components/cesium-map}/helpers/geojson/geojsonToPrimitive.d.ts +0 -0
- /package/dist/{cesium-map → components/cesium-map}/helpers/geojson/index.d.ts +0 -0
- /package/dist/{cesium-map → components/cesium-map}/helpers/geojson/polygon.geojson.d.ts +0 -0
- /package/dist/{cesium-map → components/cesium-map}/helpers/geojson/rectangle.geojson.d.ts +0 -0
- /package/dist/{cesium-map → components/cesium-map}/helpers/primitivesConversionsCesium.d.ts +0 -0
- /package/dist/{cesium-map → components/cesium-map}/layers/index.d.ts +0 -0
- /package/dist/{cesium-map → components/cesium-map}/legend/index.d.ts +0 -0
- /package/dist/{cesium-map → components/cesium-map}/tools/index.d.ts +0 -0
- /package/dist/{circular-progress-bar → components/circular-progress-bar}/index.d.ts +0 -0
- /package/dist/{cssbaseline → components/cssbaseline}/index.d.ts +0 -0
- /package/dist/{date-picker → components/date-picker}/index.d.ts +0 -0
- /package/dist/{date-range-picker → components/date-range-picker}/index.d.ts +0 -0
- /package/dist/{file-picker → components/file-picker}/index.d.ts +0 -0
- /package/dist/{file-picker → components/file-picker}/localization.d.ts +0 -0
- /package/dist/{models → components/models}/defaults.d.ts +0 -0
- /package/dist/{models → components/models}/enums.d.ts +0 -0
- /package/dist/{models → components/models}/index.d.ts +0 -0
- /package/dist/{multi-selection → components/multi-selection}/index.d.ts +0 -0
- /package/dist/{map-filter-container → components/ol-map/filter}/index.d.ts +0 -0
- /package/dist/{ol-map → components/ol-map}/interactions/index.d.ts +0 -0
- /package/dist/{ol-map → components/ol-map}/layers/index.d.ts +0 -0
- /package/dist/{ol-map → components/ol-map}/legend/index.d.ts +0 -0
- /package/dist/{ol-map → components/ol-map}/source/index.d.ts +0 -0
- /package/dist/{ol-map → components/ol-map}/style.d.ts +0 -0
- /package/dist/{popover → components/popover}/index.d.ts +0 -0
- /package/dist/{smart-table → components/smart-table}/icons/KeyboardArrowDown.d.ts +0 -0
- /package/dist/{smart-table → components/smart-table}/icons/KeyboardArrowUp.d.ts +0 -0
- /package/dist/{smart-table → components/smart-table}/index.d.ts +0 -0
- /package/dist/{smart-table → components/smart-table}/smart-table-types.d.ts +0 -0
- /package/dist/{theme → components/theme}/index.d.ts +0 -0
- /package/dist/{utils → components/utils}/config.d.ts +0 -0
- /package/dist/{utils → components/utils}/map.d.ts +0 -0
- /package/dist/{utils → components/utils}/projections.d.ts +0 -0
- /package/dist/{map-filter-container → ol-map/filter}/container-map.css +0 -0
|
@@ -1 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.142.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import{a as k}from"./chunk-4LOVZYQ2.js";import{a as w}from"./chunk-FCRW2AGG.js";import"./chunk-RI3TXBVT.js";import"./chunk-VELRZYUL.js";import"./chunk-FYQCPFNB.js";import"./chunk-3R3BCVRR.js";import"./chunk-H6AHPUMX.js";import"./chunk-FMWRN5G2.js";import"./chunk-RU2T2U4O.js";import"./chunk-VZ4ER5HI.js";import"./chunk-LTHJTGXC.js";import"./chunk-XEBZTQHW.js";import"./chunk-6LZUEMFX.js";import"./chunk-AZCCS55A.js";import"./chunk-V74K6IQF.js";import"./chunk-5HZ2G332.js";import"./chunk-LKQXJXNV.js";import"./chunk-VXS2FTO4.js";import"./chunk-ZQTDDQLY.js";import"./chunk-U4VWQPTS.js";import"./chunk-GZABERXA.js";import{a as y}from"./chunk-WM6AKY6B.js";import{a,b as p,f as r}from"./chunk-6K4BWAPV.js";var g=p({"./combineGeometry.js":()=>import("./combineGeometry.js"),"./createBoxGeometry.js":()=>import("./createBoxGeometry.js"),"./createBoxOutlineGeometry.js":()=>import("./createBoxOutlineGeometry.js"),"./createCircleGeometry.js":()=>import("./createCircleGeometry.js"),"./createCircleOutlineGeometry.js":()=>import("./createCircleOutlineGeometry.js"),"./createCoplanarPolygonGeometry.js":()=>import("./createCoplanarPolygonGeometry.js"),"./createCoplanarPolygonOutlineGeometry.js":()=>import("./createCoplanarPolygonOutlineGeometry.js"),"./createCorridorGeometry.js":()=>import("./createCorridorGeometry.js"),"./createCorridorOutlineGeometry.js":()=>import("./createCorridorOutlineGeometry.js"),"./createCylinderGeometry.js":()=>import("./createCylinderGeometry.js"),"./createCylinderOutlineGeometry.js":()=>import("./createCylinderOutlineGeometry.js"),"./createEllipseGeometry.js":()=>import("./createEllipseGeometry.js"),"./createEllipseOutlineGeometry.js":()=>import("./createEllipseOutlineGeometry.js"),"./createEllipsoidGeometry.js":()=>import("./createEllipsoidGeometry.js"),"./createEllipsoidOutlineGeometry.js":()=>import("./createEllipsoidOutlineGeometry.js"),"./createFrustumGeometry.js":()=>import("./createFrustumGeometry.js"),"./createFrustumOutlineGeometry.js":()=>import("./createFrustumOutlineGeometry.js"),"./createGeometry.js":()=>import("./createGeometry.js"),"./createGroundPolylineGeometry.js":()=>import("./createGroundPolylineGeometry.js"),"./createPlaneGeometry.js":()=>import("./createPlaneGeometry.js"),"./createPlaneOutlineGeometry.js":()=>import("./createPlaneOutlineGeometry.js"),"./createPolygonGeometry.js":()=>import("./createPolygonGeometry.js"),"./createPolygonOutlineGeometry.js":()=>import("./createPolygonOutlineGeometry.js"),"./createPolylineGeometry.js":()=>import("./createPolylineGeometry.js"),"./createPolylineVolumeGeometry.js":()=>import("./createPolylineVolumeGeometry.js"),"./createPolylineVolumeOutlineGeometry.js":()=>import("./createPolylineVolumeOutlineGeometry.js"),"./createRectangleGeometry.js":()=>import("./createRectangleGeometry.js"),"./createRectangleOutlineGeometry.js":()=>import("./createRectangleOutlineGeometry.js"),"./createSimplePolylineGeometry.js":()=>import("./createSimplePolylineGeometry.js"),"./createSphereGeometry.js":()=>import("./createSphereGeometry.js"),"./createSphereOutlineGeometry.js":()=>import("./createSphereOutlineGeometry.js"),"./createTaskProcessorWorker.js":()=>import("./createTaskProcessorWorker.js"),"./createVectorTileClampedPolylines.js":()=>import("./createVectorTileClampedPolylines.js"),"./createVectorTileGeometries.js":()=>import("./createVectorTileGeometries.js"),"./createVectorTilePoints.js":()=>import("./createVectorTilePoints.js"),"./createVectorTilePolygons.js":()=>import("./createVectorTilePolygons.js"),"./createVectorTilePolylines.js":()=>import("./createVectorTilePolylines.js"),"./createVerticesFromCesium3DTilesTerrain.js":()=>import("./createVerticesFromCesium3DTilesTerrain.js"),"./createVerticesFromGoogleEarthEnterpriseBuffer.js":()=>import("./createVerticesFromGoogleEarthEnterpriseBuffer.js"),"./createVerticesFromHeightmap.js":()=>import("./createVerticesFromHeightmap.js"),"./createVerticesFromQuantizedTerrainMesh.js":()=>import("./createVerticesFromQuantizedTerrainMesh.js"),"./createWallGeometry.js":()=>import("./createWallGeometry.js"),"./createWallOutlineGeometry.js":()=>import("./createWallOutlineGeometry.js"),"./decodeDraco.js":()=>import("./decodeDraco.js"),"./decodeGoogleEarthEnterprisePacket.js":()=>import("./decodeGoogleEarthEnterprisePacket.js"),"./decodeI3S.js":()=>import("./decodeI3S.js"),"./gaussianSplatSorter.js":()=>import("./gaussianSplatSorter.js"),"./gaussianSplatTextureGenerator.js":()=>import("./gaussianSplatTextureGenerator.js"),"./incrementallyBuildTerrainPicker.js":()=>import("./incrementallyBuildTerrainPicker.js"),"./transcodeKTX2.js":()=>import("./transcodeKTX2.js"),"./transferTypedArrayTest.js":()=>import("./transferTypedArrayTest.js"),"./upsampleQuantizedTerrainMesh.js":()=>import("./upsampleQuantizedTerrainMesh.js"),"./upsampleVerticesFromCesium3DTilesTerrain.js":()=>import("./upsampleVerticesFromCesium3DTilesTerrain.js")});var c={};async function b(s,t){let e=c[t]??c[s];return r(e)?e:r(t)?(typeof exports=="object"?e=a(t):e=(await import(t)).default,c[t]=e,e):(typeof exports=="object"?e=a(`Workers/${s}`):e=(r(t)?await import(t):await g(`./${s}.js`)).default,c[s]=e,e)}async function h(s,t){let e=s.subTasks,n=e.length,f=new Array(n);for(let o=0;o<n;o++){let i=e[o],m=i.geometry,u=i.moduleName,l=i.modulePath;if(r(u)&&r(l))throw new y("Must only set moduleName or modulePath");r(u)||r(l)?f[o]=b(u,l).then(d=>d(m,i.offset)):f[o]=m}return Promise.all(f).then(function(o){return k.packCreateGeometryResults(o,t)})}var G=w(h);export{G as default};
|
|
@@ -1 +1,26 @@
|
|
|
1
|
-
define(["./Transforms-fce95115","./Matrix2-413c4048","./Matrix3-81054f0f","./defaultValue-f6d5e6da","./Math-2ce22ee9","./ArcType-26a3f38d","./arrayRemoveDuplicates-9b636830","./ComponentDatatype-ab629b88","./EllipsoidGeodesic-2723ab86","./EllipsoidRhumbLine-77eff028","./EncodedCartesian3-5e2017ab","./GeometryAttribute-81ff775c","./IntersectionTests-357c3d7f","./Plane-6add0ae1","./WebMercatorProjection-943e2226","./combine-0c102d93","./RuntimeError-9b4ce3fb","./WebGLConstants-7f557f93"],(function(e,t,a,n,i,r,s,o,l,c,u,C,p,h,d,g,f,m){"use strict";function w(i){i=n.defaultValue(i,n.defaultValue.EMPTY_OBJECT),this._ellipsoid=n.defaultValue(i.ellipsoid,a.Ellipsoid.WGS84),this._rectangle=n.defaultValue(i.rectangle,t.Rectangle.MAX_VALUE),this._projection=new e.GeographicProjection(this._ellipsoid),this._numberOfLevelZeroTilesX=n.defaultValue(i.numberOfLevelZeroTilesX,2),this._numberOfLevelZeroTilesY=n.defaultValue(i.numberOfLevelZeroTilesY,1)}Object.defineProperties(w.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},rectangle:{get:function(){return this._rectangle}},projection:{get:function(){return this._projection}}}),w.prototype.getNumberOfXTilesAtLevel=function(e){return this._numberOfLevelZeroTilesX<<e},w.prototype.getNumberOfYTilesAtLevel=function(e){return this._numberOfLevelZeroTilesY<<e},w.prototype.rectangleToNativeRectangle=function(e,a){const r=i.CesiumMath.toDegrees(e.west),s=i.CesiumMath.toDegrees(e.south),o=i.CesiumMath.toDegrees(e.east),l=i.CesiumMath.toDegrees(e.north);return n.defined(a)?(a.west=r,a.south=s,a.east=o,a.north=l,a):new t.Rectangle(r,s,o,l)},w.prototype.tileXYToNativeRectangle=function(e,t,a,n){const r=this.tileXYToRectangle(e,t,a,n);return r.west=i.CesiumMath.toDegrees(r.west),r.south=i.CesiumMath.toDegrees(r.south),r.east=i.CesiumMath.toDegrees(r.east),r.north=i.CesiumMath.toDegrees(r.north),r},w.prototype.tileXYToRectangle=function(e,a,i,r){const s=this._rectangle,o=this.getNumberOfXTilesAtLevel(i),l=this.getNumberOfYTilesAtLevel(i),c=s.width/o,u=e*c+s.west,C=(e+1)*c+s.west,p=s.height/l,h=s.north-a*p,d=s.north-(a+1)*p;return n.defined(r)||(r=new t.Rectangle(u,d,C,h)),r.west=u,r.south=d,r.east=C,r.north=h,r},w.prototype.positionToTileXY=function(e,a,r){const s=this._rectangle;if(!t.Rectangle.contains(s,e))return;const o=this.getNumberOfXTilesAtLevel(a),l=this.getNumberOfYTilesAtLevel(a),c=s.width/o,u=s.height/l;let C=e.longitude;s.east<s.west&&(C+=i.CesiumMath.TWO_PI);let p=(C-s.west)/c|0;p>=o&&(p=o-1);let h=(s.north-e.latitude)/u|0;return h>=l&&(h=l-1),n.defined(r)?(r.x=p,r.y=h,r):new t.Cartesian2(p,h)};const y=new a.Cartesian3,M=new a.Cartesian3,T=new a.Cartographic,E=new a.Cartesian3,_=new a.Cartesian3,O=new e.BoundingSphere,P=new w,A=[new a.Cartographic,new a.Cartographic,new a.Cartographic,new a.Cartographic],b=new t.Cartesian2,k={};function L(e){a.Cartographic.fromRadians(e.east,e.north,0,A[0]),a.Cartographic.fromRadians(e.west,e.north,0,A[1]),a.Cartographic.fromRadians(e.east,e.south,0,A[2]),a.Cartographic.fromRadians(e.west,e.south,0,A[3]);let t=0,n=0,i=0,r=0;const s=k._terrainHeightsMaxLevel;let o;for(o=0;o<=s;++o){let e=!1;for(let t=0;t<4;++t){const a=A[t];if(P.positionToTileXY(a,o,b),0===t)i=b.x,r=b.y;else if(i!==b.x||r!==b.y){e=!0;break}}if(e)break;t=i,n=r}if(0!==o)return{x:t,y:n,level:o>s?s:o-1}}k.initialize=function(){let t=k._initPromise;return n.defined(t)||(t=e.Resource.fetchJson(e.buildModuleUrl("Assets/approximateTerrainHeights.json")).then((function(e){k._terrainHeights=e})),k._initPromise=t),t},k.getMinimumMaximumHeights=function(e,i){i=n.defaultValue(i,a.Ellipsoid.WGS84);const r=L(e);let s=k._defaultMinTerrainHeight,o=k._defaultMaxTerrainHeight;if(n.defined(r)){const l=`${r.level}-${r.x}-${r.y}`,c=k._terrainHeights[l];n.defined(c)&&(s=c[0],o=c[1]),i.cartographicToCartesian(t.Rectangle.northeast(e,T),y),i.cartographicToCartesian(t.Rectangle.southwest(e,T),M),a.Cartesian3.midpoint(M,y,E);const u=i.scaleToGeodeticSurface(E,_);if(n.defined(u)){const e=a.Cartesian3.distance(E,u);s=Math.min(s,-e)}else s=k._defaultMinTerrainHeight}return s=Math.max(k._defaultMinTerrainHeight,s),{minimumTerrainHeight:s,maximumTerrainHeight:o}},k.getBoundingSphere=function(t,i){i=n.defaultValue(i,a.Ellipsoid.WGS84);const r=L(t);let s=k._defaultMaxTerrainHeight;if(n.defined(r)){const e=`${r.level}-${r.x}-${r.y}`,t=k._terrainHeights[e];n.defined(t)&&(s=t[1])}const o=e.BoundingSphere.fromRectangle3D(t,i,0);return e.BoundingSphere.fromRectangle3D(t,i,s,O),e.BoundingSphere.union(o,O,o)},k._terrainHeightsMaxLevel=6,k._defaultMaxTerrainHeight=9e3,k._defaultMinTerrainHeight=-1e5,k._terrainHeights=void 0,k._initPromise=void 0,Object.defineProperties(k,{initialized:{get:function(){return n.defined(k._terrainHeights)}}});var S=k;const x=[e.GeographicProjection,d.WebMercatorProjection],I=x.length,N=Math.cos(i.CesiumMath.toRadians(30)),R=Math.cos(i.CesiumMath.toRadians(150)),D=0,v=1e3;function z(e){const t=(e=n.defaultValue(e,n.defaultValue.EMPTY_OBJECT)).positions;this.width=n.defaultValue(e.width,1),this._positions=t,this.granularity=n.defaultValue(e.granularity,9999),this.loop=n.defaultValue(e.loop,!1),this.arcType=n.defaultValue(e.arcType,r.ArcType.GEODESIC),this._ellipsoid=a.Ellipsoid.WGS84,this._projectionIndex=0,this._workerName="createGroundPolylineGeometry",this._scene3DOnly=!1}Object.defineProperties(z.prototype,{packedLength:{get:function(){return 1+3*this._positions.length+1+1+1+a.Ellipsoid.packedLength+1+1}}}),z.setProjectionAndEllipsoid=function(e,t){let a=0;for(let e=0;e<I;e++)if(t instanceof x[e]){a=e;break}e._projectionIndex=a,e._ellipsoid=t.ellipsoid};const H=new a.Cartesian3,j=new a.Cartesian3,B=new a.Cartesian3;function V(e,t,n,i,r){const s=U(i,e,0,H),o=U(i,e,n,j),l=U(i,t,0,B),c=Z(o,s,j),u=Z(l,s,B);return a.Cartesian3.cross(u,c,r),a.Cartesian3.normalize(r,r)}const G=new a.Cartographic,Y=new a.Cartesian3,F=new a.Cartesian3,q=new a.Cartesian3;function X(e,t,n,i,s,o,u,C,p,h,d){if(0===s)return;let g;o===r.ArcType.GEODESIC?g=new l.EllipsoidGeodesic(e,t,u):o===r.ArcType.RHUMB&&(g=new c.EllipsoidRhumbLine(e,t,u));const f=g.surfaceDistance;if(f<s)return;const m=V(e,t,i,u,q),w=Math.ceil(f/s),y=f/w;let M=y;const T=w-1;let E=C.length;for(let e=0;e<T;e++){const e=g.interpolateUsingSurfaceDistance(M,G),t=U(u,e,n,Y),r=U(u,e,i,F);a.Cartesian3.pack(m,C,E),a.Cartesian3.pack(t,p,E),a.Cartesian3.pack(r,h,E),d.push(e.latitude),d.push(e.longitude),E+=3,M+=y}}const W=new a.Cartographic;function U(e,t,n,i){return a.Cartographic.clone(t,W),W.height=n,a.Cartographic.toCartesian(W,e,i)}function Z(e,t,n){return a.Cartesian3.subtract(e,t,n),a.Cartesian3.normalize(n,n),n}function $(e,t,n,i){return i=Z(e,t,i),i=a.Cartesian3.cross(i,n,i),i=a.Cartesian3.normalize(i,i),i=a.Cartesian3.cross(n,i,i)}z.pack=function(e,t,i){let r=n.defaultValue(i,0);const s=e._positions,o=s.length;t[r++]=o;for(let e=0;e<o;++e){const n=s[e];a.Cartesian3.pack(n,t,r),r+=3}return t[r++]=e.granularity,t[r++]=e.loop?1:0,t[r++]=e.arcType,a.Ellipsoid.pack(e._ellipsoid,t,r),r+=a.Ellipsoid.packedLength,t[r++]=e._projectionIndex,t[r++]=e._scene3DOnly?1:0,t},z.unpack=function(e,t,i){let r=n.defaultValue(t,0);const s=e[r++],o=new Array(s);for(let t=0;t<s;t++)o[t]=a.Cartesian3.unpack(e,r),r+=3;const l=e[r++],c=1===e[r++],u=e[r++],C=a.Ellipsoid.unpack(e,r);r+=a.Ellipsoid.packedLength;const p=e[r++],h=1===e[r++];return n.defined(i)||(i=new z({positions:o})),i._positions=o,i.granularity=l,i.loop=c,i.arcType=u,i._ellipsoid=C,i._projectionIndex=p,i._scene3DOnly=h,i};const J=new a.Cartesian3,Q=new a.Cartesian3,K=new a.Cartesian3,ee=new a.Cartesian3,te=0,ae=-1;function ne(e,t,n,r,s){const o=Z(n,t,ee),l=$(e,t,o,J),c=$(r,t,o,Q);if(i.CesiumMath.equalsEpsilon(a.Cartesian3.dot(l,c),ae,i.CesiumMath.EPSILON5))return s=a.Cartesian3.cross(o,l,s),s=a.Cartesian3.normalize(s,s);s=a.Cartesian3.add(c,l,s),s=a.Cartesian3.normalize(s,s);const u=a.Cartesian3.cross(o,s,K);return a.Cartesian3.dot(c,u)<te&&(s=a.Cartesian3.negate(s,s)),s}const ie=h.Plane.fromPointNormal(a.Cartesian3.ZERO,a.Cartesian3.UNIT_Y),re=new a.Cartesian3,se=new a.Cartesian3,oe=new a.Cartesian3,le=new a.Cartesian3,ce=new a.Cartesian3,ue=new a.Cartesian3,Ce=new a.Cartographic,pe=new a.Cartographic,he=new a.Cartographic;z.createGeometry=function(l){const h=!l._scene3DOnly;let d=l.loop;const g=l._ellipsoid,f=l.granularity,m=l.arcType,w=new x[l._projectionIndex](g),y=D,M=v;let T,E;const _=l._positions,O=_.length;let P,A,b,k;2===O&&(d=!1);const L=new c.EllipsoidRhumbLine(void 0,void 0,g);let I,R,z;const H=[_[0]];for(E=0;E<O-1;E++)P=_[E],A=_[E+1],I=p.IntersectionTests.lineSegmentPlane(P,A,ie,ue),!n.defined(I)||a.Cartesian3.equalsEpsilon(I,P,i.CesiumMath.EPSILON7)||a.Cartesian3.equalsEpsilon(I,A,i.CesiumMath.EPSILON7)||(l.arcType===r.ArcType.GEODESIC?H.push(a.Cartesian3.clone(I)):l.arcType===r.ArcType.RHUMB&&(z=g.cartesianToCartographic(I,Ce).longitude,b=g.cartesianToCartographic(P,Ce),k=g.cartesianToCartographic(A,pe),L.setEndPoints(b,k),R=L.findIntersectionWithLongitude(z,he),I=g.cartographicToCartesian(R,ue),!n.defined(I)||a.Cartesian3.equalsEpsilon(I,P,i.CesiumMath.EPSILON7)||a.Cartesian3.equalsEpsilon(I,A,i.CesiumMath.EPSILON7)||H.push(a.Cartesian3.clone(I)))),H.push(A);d&&(P=_[O-1],A=_[0],I=p.IntersectionTests.lineSegmentPlane(P,A,ie,ue),!n.defined(I)||a.Cartesian3.equalsEpsilon(I,P,i.CesiumMath.EPSILON7)||a.Cartesian3.equalsEpsilon(I,A,i.CesiumMath.EPSILON7)||(l.arcType===r.ArcType.GEODESIC?H.push(a.Cartesian3.clone(I)):l.arcType===r.ArcType.RHUMB&&(z=g.cartesianToCartographic(I,Ce).longitude,b=g.cartesianToCartographic(P,Ce),k=g.cartesianToCartographic(A,pe),L.setEndPoints(b,k),R=L.findIntersectionWithLongitude(z,he),I=g.cartographicToCartesian(R,ue),!n.defined(I)||a.Cartesian3.equalsEpsilon(I,P,i.CesiumMath.EPSILON7)||a.Cartesian3.equalsEpsilon(I,A,i.CesiumMath.EPSILON7)||H.push(a.Cartesian3.clone(I)))));let j=H.length,B=new Array(j);for(E=0;E<j;E++){const e=a.Cartographic.fromCartesian(H[E],g);e.height=0,B[E]=e}if(B=s.arrayRemoveDuplicates(B,a.Cartographic.equalsEpsilon),j=B.length,j<2)return;const G=[],Y=[],F=[],q=[];let W=re,$=se,J=oe,Q=le,K=ce;const ee=B[0],te=B[1];for(W=U(g,B[j-1],y,W),Q=U(g,te,y,Q),$=U(g,ee,y,$),J=U(g,ee,M,J),K=d?ne(W,$,J,Q,K):V(ee,te,M,g,K),a.Cartesian3.pack(K,Y,0),a.Cartesian3.pack($,F,0),a.Cartesian3.pack(J,q,0),G.push(ee.latitude),G.push(ee.longitude),X(ee,te,y,M,f,m,g,Y,F,q,G),E=1;E<j-1;++E){W=a.Cartesian3.clone($,W),$=a.Cartesian3.clone(Q,$);const e=B[E];U(g,e,M,J),U(g,B[E+1],y,Q),ne(W,$,J,Q,K),T=Y.length,a.Cartesian3.pack(K,Y,T),a.Cartesian3.pack($,F,T),a.Cartesian3.pack(J,q,T),G.push(e.latitude),G.push(e.longitude),X(B[E],B[E+1],y,M,f,m,g,Y,F,q,G)}const ae=B[j-1],de=B[j-2];if($=U(g,ae,y,$),J=U(g,ae,M,J),d){const e=B[0];W=U(g,de,y,W),Q=U(g,e,y,Q),K=ne(W,$,J,Q,K)}else K=V(de,ae,M,g,K);if(T=Y.length,a.Cartesian3.pack(K,Y,T),a.Cartesian3.pack($,F,T),a.Cartesian3.pack(J,q,T),G.push(ae.latitude),G.push(ae.longitude),d){for(X(ae,ee,y,M,f,m,g,Y,F,q,G),T=Y.length,E=0;E<3;++E)Y[T+E]=Y[E],F[T+E]=F[E],q[T+E]=q[E];G.push(ee.latitude),G.push(ee.longitude)}return function(n,r,s,l,c,p,h){let d,g;const f=r._ellipsoid,m=s.length/3-1,w=8*m,y=4*w,M=36*m,T=w>65535?new Uint32Array(M):new Uint16Array(M),E=new Float64Array(3*w),_=new Float32Array(y),O=new Float32Array(y),P=new Float32Array(y),A=new Float32Array(y),b=new Float32Array(y);let k,L,x,I;h&&(k=new Float32Array(y),L=new Float32Array(y),x=new Float32Array(y),I=new Float32Array(2*w));const R=p.length/2;let D=0;const v=ke;v.height=0;const z=Le;z.height=0;let H=Se,j=xe;if(h)for(g=0,d=1;d<R;d++)v.latitude=p[g],v.longitude=p[g+1],z.latitude=p[g+2],z.longitude=p[g+3],H=r.project(v,H),j=r.project(z,j),D+=a.Cartesian3.distance(H,j),g+=2;const B=l.length/3;j=a.Cartesian3.unpack(l,0,j);let V,G=0;for(g=3,d=1;d<B;d++)H=a.Cartesian3.clone(j,H),j=a.Cartesian3.unpack(l,g,j),G+=a.Cartesian3.distance(H,j),g+=3;g=3;let Y=0,F=0,q=0,X=0,W=!1,U=a.Cartesian3.unpack(s,0,Ne),$=a.Cartesian3.unpack(l,0,xe),J=a.Cartesian3.unpack(c,0,De);if(n){me(J,a.Cartesian3.unpack(s,s.length-6,Ie),U,$)&&(J=a.Cartesian3.negate(J,J))}let Q=0,K=0,ee=0;for(d=0;d<m;d++){const e=a.Cartesian3.clone(U,Ie),n=a.Cartesian3.clone($,Se);let o,C,d,m,w=a.Cartesian3.clone(J,Re);if(W&&(w=a.Cartesian3.negate(w,w)),U=a.Cartesian3.unpack(s,g,Ne),$=a.Cartesian3.unpack(l,g,xe),J=a.Cartesian3.unpack(c,g,De),W=me(J,e,U,$),v.latitude=p[Y],v.longitude=p[Y+1],z.latitude=p[Y+2],z.longitude=p[Y+3],h){const e=be(v,z);o=r.project(v,Ge),C=r.project(z,Ye);const t=Z(C,o,et);t.y=Math.abs(t.y),d=Fe,m=qe,0===e||a.Cartesian3.dot(t,a.Cartesian3.UNIT_Y)>N?(d=Te(r,v,w,o,Fe),m=Te(r,z,J,C,qe)):1===e?(m=Te(r,z,J,C,qe),d.x=0,d.y=i.CesiumMath.sign(v.longitude-Math.abs(z.longitude)),d.z=0):(d=Te(r,v,w,o,Fe),m.x=0,m.y=i.CesiumMath.sign(v.longitude-z.longitude),m.z=0)}const y=a.Cartesian3.distance(n,$),M=u.EncodedCartesian3.fromCartesian(e,Qe),T=a.Cartesian3.subtract(U,e,Xe),R=a.Cartesian3.normalize(T,Ze);let H=a.Cartesian3.subtract(n,e,We);H=a.Cartesian3.normalize(H,H);let j=a.Cartesian3.cross(R,H,Ze);j=a.Cartesian3.normalize(j,j);let B=a.Cartesian3.cross(H,w,$e);B=a.Cartesian3.normalize(B,B);let te=a.Cartesian3.subtract($,U,Ue);te=a.Cartesian3.normalize(te,te);let ae=a.Cartesian3.cross(J,te,Je);ae=a.Cartesian3.normalize(ae,ae);const ne=y/G,ie=Q/G;let re,se,oe,le=0,ce=0,ue=0;if(h){le=a.Cartesian3.distance(o,C),re=u.EncodedCartesian3.fromCartesian(o,Ke),se=a.Cartesian3.subtract(C,o,et),oe=a.Cartesian3.normalize(se,tt);const e=oe.x;oe.x=oe.y,oe.y=-e,ce=le/D,ue=K/D}for(V=0;V<8;V++){const e=X+4*V,t=F+2*V,n=e+3,i=V<4?1:-1,r=2===V||3===V||6===V||7===V?1:-1;a.Cartesian3.pack(M.high,_,e),_[n]=T.x,a.Cartesian3.pack(M.low,O,e),O[n]=T.y,a.Cartesian3.pack(B,P,e),P[n]=T.z,a.Cartesian3.pack(ae,A,e),A[n]=ne*i,a.Cartesian3.pack(j,b,e);let s=ie*r;0===s&&r<0&&(s=9),b[n]=s,h&&(k[e]=re.high.x,k[e+1]=re.high.y,k[e+2]=re.low.x,k[e+3]=re.low.y,x[e]=-d.y,x[e+1]=d.x,x[e+2]=m.y,x[e+3]=-m.x,L[e]=se.x,L[e+1]=se.y,L[e+2]=oe.x,L[e+3]=oe.y,I[t]=ce*i,s=ue*r,0===s&&r<0&&(s=9),I[t+1]=s)}const Ce=Be,pe=Ve,he=He,de=je,ge=t.Rectangle.fromCartographicArray(ve,ze),fe=S.getMinimumMaximumHeights(ge,f),we=fe.minimumTerrainHeight,ye=fe.maximumTerrainHeight;ee+=we,ee+=ye,Oe(e,n,we,ye,Ce,he),Oe(U,$,we,ye,pe,de);let Me=a.Cartesian3.multiplyByScalar(j,i.CesiumMath.EPSILON5,at);a.Cartesian3.add(Ce,Me,Ce),a.Cartesian3.add(pe,Me,pe),a.Cartesian3.add(he,Me,he),a.Cartesian3.add(de,Me,de),Ae(Ce,pe),Ae(he,de),a.Cartesian3.pack(Ce,E,q),a.Cartesian3.pack(pe,E,q+3),a.Cartesian3.pack(de,E,q+6),a.Cartesian3.pack(he,E,q+9),Me=a.Cartesian3.multiplyByScalar(j,-2*i.CesiumMath.EPSILON5,at),a.Cartesian3.add(Ce,Me,Ce),a.Cartesian3.add(pe,Me,pe),a.Cartesian3.add(he,Me,he),a.Cartesian3.add(de,Me,de),Ae(Ce,pe),Ae(he,de),a.Cartesian3.pack(Ce,E,q+12),a.Cartesian3.pack(pe,E,q+15),a.Cartesian3.pack(de,E,q+18),a.Cartesian3.pack(he,E,q+21),Y+=2,g+=3,F+=16,q+=24,X+=32,Q+=y,K+=le}g=0;let te=0;for(d=0;d<m;d++){for(V=0;V<rt;V++)T[g+V]=it[V]+te;te+=8,g+=rt}const ae=nt;e.BoundingSphere.fromVertices(s,a.Cartesian3.ZERO,3,ae[0]),e.BoundingSphere.fromVertices(l,a.Cartesian3.ZERO,3,ae[1]);const ne=e.BoundingSphere.fromBoundingSpheres(ae);ne.radius+=ee/(2*m);const ie={position:new C.GeometryAttribute({componentDatatype:o.ComponentDatatype.DOUBLE,componentsPerAttribute:3,normalize:!1,values:E}),startHiAndForwardOffsetX:st(_),startLoAndForwardOffsetY:st(O),startNormalAndForwardOffsetZ:st(P),endNormalAndTextureCoordinateNormalizationX:st(A),rightNormalAndTextureCoordinateNormalizationY:st(b)};h&&(ie.startHiLo2D=st(k),ie.offsetAndRight2D=st(L),ie.startEndNormals2D=st(x),ie.texcoordNormalization2D=new C.GeometryAttribute({componentDatatype:o.ComponentDatatype.FLOAT,componentsPerAttribute:2,normalize:!1,values:I}));return new C.Geometry({attributes:ie,indices:T,boundingSphere:ne})}(d,w,F,q,Y,G,h)};const de=new a.Cartesian3,ge=new a.Matrix3,fe=new e.Quaternion;function me(t,n,r,s){const o=Z(r,n,de),l=a.Cartesian3.dot(o,t);if(l>N||l<R){const n=Z(s,r,ee),o=l<R?i.CesiumMath.PI_OVER_TWO:-i.CesiumMath.PI_OVER_TWO,c=e.Quaternion.fromAxisAngle(n,o,fe),u=a.Matrix3.fromQuaternion(c,ge);return a.Matrix3.multiplyByVector(u,t,t),!0}return!1}const we=new a.Cartographic,ye=new a.Cartesian3,Me=new a.Cartesian3;function Te(e,t,n,r,s){const o=a.Cartographic.toCartesian(t,e._ellipsoid,ye);let l=a.Cartesian3.add(o,n,Me),c=!1;const u=e._ellipsoid;let C=u.cartesianToCartographic(l,we);Math.abs(t.longitude-C.longitude)>i.CesiumMath.PI_OVER_TWO&&(c=!0,l=a.Cartesian3.subtract(o,n,Me),C=u.cartesianToCartographic(l,we)),C.height=0;const p=e.project(C,s);return(s=a.Cartesian3.subtract(p,r,s)).z=0,s=a.Cartesian3.normalize(s,s),c&&a.Cartesian3.negate(s,s),s}const Ee=new a.Cartesian3,_e=new a.Cartesian3;function Oe(e,t,n,i,r,s){const o=a.Cartesian3.subtract(t,e,Ee);a.Cartesian3.normalize(o,o);const l=n-D;let c=a.Cartesian3.multiplyByScalar(o,l,_e);a.Cartesian3.add(e,c,r);const u=i-v;c=a.Cartesian3.multiplyByScalar(o,u,_e),a.Cartesian3.add(t,c,s)}const Pe=new a.Cartesian3;function Ae(e,t){const n=h.Plane.getPointDistance(ie,e),r=h.Plane.getPointDistance(ie,t);let s=Pe;i.CesiumMath.equalsEpsilon(n,0,i.CesiumMath.EPSILON2)?(s=Z(t,e,s),a.Cartesian3.multiplyByScalar(s,i.CesiumMath.EPSILON2,s),a.Cartesian3.add(e,s,e)):i.CesiumMath.equalsEpsilon(r,0,i.CesiumMath.EPSILON2)&&(s=Z(e,t,s),a.Cartesian3.multiplyByScalar(s,i.CesiumMath.EPSILON2,s),a.Cartesian3.add(t,s,t))}function be(e,t){const a=Math.abs(e.longitude),n=Math.abs(t.longitude);if(i.CesiumMath.equalsEpsilon(a,i.CesiumMath.PI,i.CesiumMath.EPSILON11)){const n=i.CesiumMath.sign(t.longitude);return e.longitude=n*(a-i.CesiumMath.EPSILON11),1}if(i.CesiumMath.equalsEpsilon(n,i.CesiumMath.PI,i.CesiumMath.EPSILON11)){const a=i.CesiumMath.sign(e.longitude);return t.longitude=a*(n-i.CesiumMath.EPSILON11),2}return 0}const ke=new a.Cartographic,Le=new a.Cartographic,Se=new a.Cartesian3,xe=new a.Cartesian3,Ie=new a.Cartesian3,Ne=new a.Cartesian3,Re=new a.Cartesian3,De=new a.Cartesian3,ve=[ke,Le],ze=new t.Rectangle,He=new a.Cartesian3,je=new a.Cartesian3,Be=new a.Cartesian3,Ve=new a.Cartesian3,Ge=new a.Cartesian3,Ye=new a.Cartesian3,Fe=new a.Cartesian3,qe=new a.Cartesian3,Xe=new a.Cartesian3,We=new a.Cartesian3,Ue=new a.Cartesian3,Ze=new a.Cartesian3,$e=new a.Cartesian3,Je=new a.Cartesian3,Qe=new u.EncodedCartesian3,Ke=new u.EncodedCartesian3,et=new a.Cartesian3,tt=new a.Cartesian3,at=new a.Cartesian3,nt=[new e.BoundingSphere,new e.BoundingSphere],it=[0,2,1,0,3,2,0,7,3,0,4,7,0,5,4,0,1,5,5,7,4,5,6,7,5,2,6,5,1,2,3,6,2,3,7,6],rt=it.length;function st(e){return new C.GeometryAttribute({componentDatatype:o.ComponentDatatype.FLOAT,componentsPerAttribute:4,normalize:!1,values:e})}return z._projectNormal=Te,function(e,t){return S.initialize().then((function(){return n.defined(t)&&(e=z.unpack(e,t)),z.createGeometry(e)}))}}));
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.142.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import{a as _e}from"./chunk-RI3TXBVT.js";import{a as W}from"./chunk-ITSDUOWL.js";import{a as Nt}from"./chunk-3R3BCVRR.js";import{a as De}from"./chunk-K3YIAZU7.js";import{a as Le}from"./chunk-RH3WVPDR.js";import{a as Qt}from"./chunk-MUI5QV7K.js";import{b as Kt}from"./chunk-H6AHPUMX.js";import{a as zt}from"./chunk-FMWRN5G2.js";import{c as Ce,d as Bt}from"./chunk-LTHJTGXC.js";import{a as Rt,c as U}from"./chunk-XEBZTQHW.js";import"./chunk-6LZUEMFX.js";import{f as xe,g as Ne,h as Jt,j as Y}from"./chunk-AZCCS55A.js";import"./chunk-V74K6IQF.js";import{a as vt}from"./chunk-5HZ2G332.js";import"./chunk-LKQXJXNV.js";import"./chunk-VXS2FTO4.js";import{a as w,b as Mt,c as B}from"./chunk-ZQTDDQLY.js";import{a as t,b as Pt,c as bt}from"./chunk-U4VWQPTS.js";import{a as p}from"./chunk-GZABERXA.js";import{a as ut,b as tt}from"./chunk-WM6AKY6B.js";import{f as u}from"./chunk-6K4BWAPV.js";var te=class{constructor(o){o=o??bt.EMPTY_OBJECT,this._ellipsoid=o.ellipsoid??B.default,this._rectangle=o.rectangle??Y.MAX_VALUE,this._projection=new Rt(this._ellipsoid),this._numberOfLevelZeroTilesX=o.numberOfLevelZeroTilesX??2,this._numberOfLevelZeroTilesY=o.numberOfLevelZeroTilesY??1}get ellipsoid(){return this._ellipsoid}get rectangle(){return this._rectangle}get projection(){return this._projection}getNumberOfXTilesAtLevel(o){return this._numberOfLevelZeroTilesX<<o}getNumberOfYTilesAtLevel(o){return this._numberOfLevelZeroTilesY<<o}rectangleToNativeRectangle(o,r){tt.defined("rectangle",o);let e=p.toDegrees(o.west),i=p.toDegrees(o.south),a=p.toDegrees(o.east),c=p.toDegrees(o.north);return u(r)?(r.west=e,r.south=i,r.east=a,r.north=c,r):new Y(e,i,a,c)}tileXYToNativeRectangle(o,r,e,i){let a=this.tileXYToRectangle(o,r,e,i);return a.west=p.toDegrees(a.west),a.south=p.toDegrees(a.south),a.east=p.toDegrees(a.east),a.north=p.toDegrees(a.north),a}tileXYToRectangle(o,r,e,i){let a=this._rectangle,c=this.getNumberOfXTilesAtLevel(e),l=this.getNumberOfYTilesAtLevel(e),s=a.width/c,d=o*s+a.west,h=(o+1)*s+a.west,f=a.height/l,T=a.north-r*f,D=a.north-(r+1)*f;return u(i)||(i=new Y(d,D,h,T)),i.west=d,i.south=D,i.east=h,i.north=T,i}positionToTileXY(o,r,e){let i=this._rectangle;if(!Y.contains(i,o))return;let a=this.getNumberOfXTilesAtLevel(r),c=this.getNumberOfYTilesAtLevel(r),l=i.width/a,s=i.height/c,d=o.longitude;i.east<i.west&&(d+=p.TWO_PI);let h=(d-i.west)/l|0;h>=a&&(h=a-1);let f=(i.north-o.latitude)/s|0;return f>=c&&(f=c-1),u(e)?(e.x=h,e.y=f,e):new Mt(h,f)}},Oe=te;var Ie=new t,He=new t,ke=new w,ee=new t,hn=new t,ye=new U,pn=new Oe,Ct=[new w,new w,new w,new w],_t=new Mt,S={};S.initialize=function(){let n=S._initPromise;return u(n)||(n=xe.fetchJson(Ne("Assets/approximateTerrainHeights.json")).then(function(o){S._terrainHeights=o}),S._initPromise=n),n};S.getMinimumMaximumHeights=function(n,o){if(tt.defined("rectangle",n),!u(S._terrainHeights))throw new ut("You must call ApproximateTerrainHeights.initialize and wait for the promise to resolve before using this function");o=o??B.default;let r=Ae(n),e=S._defaultMinTerrainHeight,i=S._defaultMaxTerrainHeight;if(u(r)){let a=`${r.level}-${r.x}-${r.y}`,c=S._terrainHeights[a];u(c)&&(e=c[0],i=c[1]),o.cartographicToCartesian(Y.northeast(n,ke),Ie),o.cartographicToCartesian(Y.southwest(n,ke),He),t.midpoint(He,Ie,ee);let l=o.scaleToGeodeticSurface(ee,hn);if(u(l)){let s=t.distance(ee,l);e=Math.min(e,-s)}else e=S._defaultMinTerrainHeight}return e=Math.max(S._defaultMinTerrainHeight,e),{minimumTerrainHeight:e,maximumTerrainHeight:i}};S.getBoundingSphere=function(n,o){if(tt.defined("rectangle",n),!u(S._terrainHeights))throw new ut("You must call ApproximateTerrainHeights.initialize and wait for the promise to resolve before using this function");o=o??B.default;let r=Ae(n),e=S._defaultMaxTerrainHeight;if(u(r)){let a=`${r.level}-${r.x}-${r.y}`,c=S._terrainHeights[a];u(c)&&(e=c[1])}let i=U.fromRectangle3D(n,o,0);return U.fromRectangle3D(n,o,e,ye),U.union(i,ye,i)};function Ae(n){w.fromRadians(n.east,n.north,0,Ct[0]),w.fromRadians(n.west,n.north,0,Ct[1]),w.fromRadians(n.east,n.south,0,Ct[2]),w.fromRadians(n.west,n.south,0,Ct[3]);let o=0,r=0,e=0,i=0,a=S._terrainHeightsMaxLevel,c;for(c=0;c<=a;++c){let l=!1;for(let s=0;s<4;++s){let d=Ct[s];if(pn.positionToTileXY(d,c,_t),s===0)e=_t.x,i=_t.y;else if(e!==_t.x||i!==_t.y){l=!0;break}}if(l)break;o=e,r=i}if(c!==0)return{x:o,y:r,level:c>a?a:c-1}}S._terrainHeightsMaxLevel=6;S._defaultMaxTerrainHeight=9e3;S._defaultMinTerrainHeight=-1e5;S._terrainHeights=void 0;S._initPromise=void 0;Object.defineProperties(S,{initialized:{get:function(){return u(S._terrainHeights)}}});var jt=S;var le=[Rt,_e],dn=le.length,Ke=Math.cos(p.toRadians(30)),Me=Math.cos(p.toRadians(150)),Qe=0,tn=1e3;function rt(n){n=n??bt.EMPTY_OBJECT;let o=n.positions;if(!u(o)||o.length<2)throw new ut("At least two positions are required.");if(u(n.arcType)&&n.arcType!==W.GEODESIC&&n.arcType!==W.RHUMB)throw new ut("Valid options for arcType are ArcType.GEODESIC and ArcType.RHUMB.");this.width=n.width??1,this._positions=o,this.granularity=n.granularity??9999,this.loop=n.loop??!1,this.arcType=n.arcType??W.GEODESIC,this._ellipsoid=B.default,this._projectionIndex=0,this._workerName="createGroundPolylineGeometry",this._scene3DOnly=!1}Object.defineProperties(rt.prototype,{packedLength:{get:function(){return 1+this._positions.length*3+1+1+1+B.packedLength+1+1}}});rt.setProjectionAndEllipsoid=function(n,o){let r=0;for(let e=0;e<dn;e++)if(o instanceof le[e]){r=e;break}n._projectionIndex=r,n._ellipsoid=o.ellipsoid};var mn=new t,Re=new t,Pe=new t;function se(n,o,r,e,i){let a=R(e,n,0,mn),c=R(e,n,r,Re),l=R(e,o,0,Pe),s=et(c,a,Re),d=et(l,a,Pe);return t.cross(d,s,i),t.normalize(i,i)}var fn=new w,gn=new t,un=new t,wn=new t;function ne(n,o,r,e,i,a,c,l,s,d,h){if(i===0)return;let f;a===W.GEODESIC?f=new De(n,o,c):a===W.RHUMB&&(f=new Qt(n,o,c));let T=f.surfaceDistance;if(T<i)return;let D=se(n,o,e,c,wn),O=Math.ceil(T/i),I=T/O,z=I,q=O-1,m=l.length;for(let j=0;j<q;j++){let b=f.interpolateUsingSurfaceDistance(z,fn),y=R(c,b,r,gn),H=R(c,b,e,un);t.pack(D,l,m),t.pack(y,s,m),t.pack(H,d,m),h.push(b.latitude),h.push(b.longitude),m+=3,z+=I}}var oe=new w;function R(n,o,r,e){return w.clone(o,oe),oe.height=r,w.toCartesian(oe,n,e)}rt.pack=function(n,o,r){tt.typeOf.object("value",n),tt.defined("array",o);let e=r??0,i=n._positions,a=i.length;o[e++]=a;for(let c=0;c<a;++c){let l=i[c];t.pack(l,o,e),e+=3}return o[e++]=n.granularity,o[e++]=n.loop?1:0,o[e++]=n.arcType,B.pack(n._ellipsoid,o,e),e+=B.packedLength,o[e++]=n._projectionIndex,o[e++]=n._scene3DOnly?1:0,o};rt.unpack=function(n,o,r){tt.defined("array",n);let e=o??0,i=n[e++],a=new Array(i);for(let T=0;T<i;T++)a[T]=t.unpack(n,e),e+=3;let c=n[e++],l=n[e++]===1,s=n[e++],d=B.unpack(n,e);e+=B.packedLength;let h=n[e++],f=n[e++]===1;return u(r)||(r=new rt({positions:a})),r._positions=a,r.granularity=c,r.loop=l,r.arcType=s,r._ellipsoid=d,r._projectionIndex=h,r._scene3DOnly=f,r};function et(n,o,r){return t.subtract(n,o,r),t.normalize(r,r),r}function be(n,o,r,e){return e=et(n,o,e),e=t.cross(e,r,e),e=t.normalize(e,e),e=t.cross(r,e,e),e}var Sn=new t,Tn=new t,En=new t,en=new t,xn=0,Nn=-1;function ie(n,o,r,e,i){let a=et(r,o,en),c=be(n,o,a,Sn),l=be(e,o,a,Tn);if(p.equalsEpsilon(t.dot(c,l),Nn,p.EPSILON5))return i=t.cross(a,c,i),i=t.normalize(i,i),i;i=t.add(l,c,i),i=t.normalize(i,i);let s=t.cross(a,i,En);return t.dot(l,s)<xn&&(i=t.negate(i,i)),i}var Ut=zt.fromPointNormal(t.ZERO,t.UNIT_Y),Cn=new t,_n=new t,Ln=new t,Dn=new t,On=new t,Ft=new t,Xt=new w,ve=new w,Be=new w;rt.createGeometry=function(n){let o=!n._scene3DOnly,r=n.loop,e=n._ellipsoid,i=n.granularity,a=n.arcType,c=new le[n._projectionIndex](e),l=Qe,s=tn,d,h,f=n._positions,T=f.length;T===2&&(r=!1);let D,O,I,z,q=new Qt(void 0,void 0,e),m,j,b,y=[f[0]];for(h=0;h<T-1;h++)D=f[h],O=f[h+1],m=Kt.lineSegmentPlane(D,O,Ut,Ft),u(m)&&!t.equalsEpsilon(m,D,p.EPSILON7)&&!t.equalsEpsilon(m,O,p.EPSILON7)&&(n.arcType===W.GEODESIC?y.push(t.clone(m)):n.arcType===W.RHUMB&&(b=e.cartesianToCartographic(m,Xt).longitude,I=e.cartesianToCartographic(D,Xt),z=e.cartesianToCartographic(O,ve),q.setEndPoints(I,z),j=q.findIntersectionWithLongitude(b,Be),m=e.cartographicToCartesian(j,Ft),u(m)&&!t.equalsEpsilon(m,D,p.EPSILON7)&&!t.equalsEpsilon(m,O,p.EPSILON7)&&y.push(t.clone(m)))),y.push(O);r&&(D=f[T-1],O=f[0],m=Kt.lineSegmentPlane(D,O,Ut,Ft),u(m)&&!t.equalsEpsilon(m,D,p.EPSILON7)&&!t.equalsEpsilon(m,O,p.EPSILON7)&&(n.arcType===W.GEODESIC?y.push(t.clone(m)):n.arcType===W.RHUMB&&(b=e.cartesianToCartographic(m,Xt).longitude,I=e.cartesianToCartographic(D,Xt),z=e.cartesianToCartographic(O,ve),q.setEndPoints(I,z),j=q.findIntersectionWithLongitude(b,Be),m=e.cartographicToCartesian(j,Ft),u(m)&&!t.equalsEpsilon(m,D,p.EPSILON7)&&!t.equalsEpsilon(m,O,p.EPSILON7)&&y.push(t.clone(m)))));let H=y.length,C=new Array(H);for(h=0;h<H;h++){let X=w.fromCartesian(y[h],e);X.height=0,C[h]=X}if(C=Le(C,w.equalsEpsilon),H=C.length,H<2)return;let k=[],P=[],v=[],x=[],N=Cn,L=_n,_=Ln,F=Dn,A=On,g=C[0],Z=C[1],Dt=C[H-1];for(N=R(e,Dt,l,N),F=R(e,Z,l,F),L=R(e,g,l,L),_=R(e,g,s,_),r?A=ie(N,L,_,F,A):A=se(g,Z,s,e,A),t.pack(A,P,0),t.pack(L,v,0),t.pack(_,x,0),k.push(g.latitude),k.push(g.longitude),ne(g,Z,l,s,i,a,e,P,v,x,k),h=1;h<H-1;++h){N=t.clone(L,N),L=t.clone(F,L);let X=C[h];R(e,X,s,_),R(e,C[h+1],l,F),ie(N,L,_,F,A),d=P.length,t.pack(A,P,d),t.pack(L,v,d),t.pack(_,x,d),k.push(X.latitude),k.push(X.longitude),ne(C[h],C[h+1],l,s,i,a,e,P,v,x,k)}let M=C[H-1],wt=C[H-2];if(L=R(e,M,l,L),_=R(e,M,s,_),r){let X=C[0];N=R(e,wt,l,N),F=R(e,X,l,F),A=ie(N,L,_,F,A)}else A=se(wt,M,s,e,A);if(d=P.length,t.pack(A,P,d),t.pack(L,v,d),t.pack(_,x,d),k.push(M.latitude),k.push(M.longitude),r){for(ne(M,g,l,s,i,a,e,P,v,x,k),d=P.length,h=0;h<3;++h)P[d+h]=P[h],v[d+h]=v[h],x[d+h]=x[h];k.push(g.latitude),k.push(g.longitude)}return Qn(r,c,v,x,P,k,o)};var In=new t,Hn=new Pt,kn=new Jt;function ze(n,o,r,e){let i=et(r,o,In),a=t.dot(i,n);if(a>Ke||a<Me){let c=et(e,r,en),l=a<Me?p.PI_OVER_TWO:-p.PI_OVER_TWO,s=Jt.fromAxisAngle(c,l,kn),d=Pt.fromQuaternion(s,Hn);return Pt.multiplyByVector(d,n,n),!0}return!1}var je=new w,yn=new t,Fe=new t;function Lt(n,o,r,e,i){let a=w.toCartesian(o,n._ellipsoid,yn),c=t.add(a,r,Fe),l=!1,s=n._ellipsoid,d=s.cartesianToCartographic(c,je);Math.abs(o.longitude-d.longitude)>p.PI_OVER_TWO&&(l=!0,c=t.subtract(a,r,Fe),d=s.cartesianToCartographic(c,je)),d.height=0;let h=n.project(d,i);return i=t.subtract(h,e,i),i.z=0,i=t.normalize(i,i),l&&t.negate(i,i),i}var An=new t,Xe=new t;function Ye(n,o,r,e,i,a){let c=t.subtract(o,n,An);t.normalize(c,c);let l=r-Qe,s=t.multiplyByScalar(c,l,Xe);t.add(n,s,i);let d=e-tn;s=t.multiplyByScalar(c,d,Xe),t.add(o,s,a)}var Mn=new t;function Yt(n,o){let r=zt.getPointDistance(Ut,n),e=zt.getPointDistance(Ut,o),i=Mn;p.equalsEpsilon(r,0,p.EPSILON2)?(i=et(o,n,i),t.multiplyByScalar(i,p.EPSILON2,i),t.add(n,i,n)):p.equalsEpsilon(e,0,p.EPSILON2)&&(i=et(n,o,i),t.multiplyByScalar(i,p.EPSILON2,i),t.add(o,i,o))}function Rn(n,o){let r=Math.abs(n.longitude),e=Math.abs(o.longitude);if(p.equalsEpsilon(r,p.PI,p.EPSILON11)){let i=p.sign(o.longitude);return n.longitude=i*(r-p.EPSILON11),1}else if(p.equalsEpsilon(e,p.PI,p.EPSILON11)){let i=p.sign(n.longitude);return o.longitude=i*(e-p.EPSILON11),2}return 0}var nn=new w,on=new w,Ue=new t,re=new t,qe=new t,Ge=new t,Pn=new t,We=new t,bn=[nn,on],vn=new Y,Bn=new t,zn=new t,jn=new t,Fn=new t,Xn=new t,Yn=new t,ae=new t,ce=new t,Un=new t,qn=new t,Gn=new t,Ze=new t,Wn=new t,Zn=new t,Vn=new Nt,$n=new Nt,Ve=new t,Jn=new t,$e=new t,Kn=[new U,new U],rn=[0,2,1,0,3,2,0,7,3,0,4,7,0,5,4,0,1,5,5,7,4,5,6,7,5,2,6,5,1,2,3,6,2,3,7,6],Je=rn.length;function Qn(n,o,r,e,i,a,c){let l,s,d=o._ellipsoid,h=r.length/3-1,f=h*8,T=f*4,D=h*36,O=f>65535?new Uint32Array(D):new Uint16Array(D),I=new Float64Array(f*3),z=new Float32Array(T),q=new Float32Array(T),m=new Float32Array(T),j=new Float32Array(T),b=new Float32Array(T),y,H,C,k;c&&(y=new Float32Array(T),H=new Float32Array(T),C=new Float32Array(T),k=new Float32Array(f*2));let P=a.length/2,v=0,x=nn;x.height=0;let N=on;N.height=0;let L=Ue,_=re;if(c)for(s=0,l=1;l<P;l++)x.latitude=a[s],x.longitude=a[s+1],N.latitude=a[s+2],N.longitude=a[s+3],L=o.project(x,L),_=o.project(N,_),v+=t.distance(L,_),s+=2;let F=e.length/3;_=t.unpack(e,0,_);let A=0;for(s=3,l=1;l<F;l++)L=t.clone(_,L),_=t.unpack(e,s,_),A+=t.distance(L,_),s+=3;let g;s=3;let Z=0,Dt=0,M=0,wt=0,X=!1,at=t.unpack(r,0,Ge),ct=t.unpack(e,0,re),G=t.unpack(i,0,We);if(n){let st=t.unpack(r,r.length-6,qe);ze(G,st,at,ct)&&(G=t.negate(G,G))}let pe=0,de=0,qt=0;for(l=0;l<h;l++){let st=t.clone(at,qe),Wt=t.clone(ct,Ue),dt=t.clone(G,Pn);X&&(dt=t.negate(dt,dt)),at=t.unpack(r,s,Ge),ct=t.unpack(e,s,re),G=t.unpack(i,s,We),X=ze(G,st,at,ct),x.latitude=a[Z],x.longitude=a[Z+1],N.latitude=a[Z+2],N.longitude=a[Z+3];let lt,mt,nt,ot;if(c){let E=Rn(x,N);lt=o.project(x,Xn),mt=o.project(N,Yn);let gt=et(mt,lt,Ve);gt.y=Math.abs(gt.y),nt=ae,ot=ce,E===0||t.dot(gt,t.UNIT_Y)>Ke?(nt=Lt(o,x,dt,lt,ae),ot=Lt(o,N,G,mt,ce)):E===1?(ot=Lt(o,N,G,mt,ce),nt.x=0,nt.y=p.sign(x.longitude-Math.abs(N.longitude)),nt.z=0):(nt=Lt(o,x,dt,lt,ae),ot.x=0,ot.y=p.sign(x.longitude-N.longitude),ot.z=0)}let ge=t.distance(Wt,ct),ue=Nt.fromCartesian(st,Vn),Ot=t.subtract(at,st,Un),an=t.normalize(Ot,Ze),Tt=t.subtract(Wt,st,qn);Tt=t.normalize(Tt,Tt);let ft=t.cross(an,Tt,Ze);ft=t.normalize(ft,ft);let It=t.cross(Tt,dt,Wn);It=t.normalize(It,It);let Ht=t.subtract(ct,at,Gn);Ht=t.normalize(Ht,Ht);let kt=t.cross(G,Ht,Zn);kt=t.normalize(kt,kt);let cn=ge/A,sn=pe/A,Zt=0,Et,yt,ht,we=0,Se=0;if(c){Zt=t.distance(lt,mt),Et=Nt.fromCartesian(lt,$n),yt=t.subtract(mt,lt,Ve),ht=t.normalize(yt,Jn);let E=ht.x;ht.x=ht.y,ht.y=-E,we=Zt/v,Se=de/v}for(g=0;g<8;g++){let E=wt+g*4,gt=Dt+g*2,xt=E+3,Ee=g<4?1:-1,At=g===2||g===3||g===6||g===7?1:-1;t.pack(ue.high,z,E),z[xt]=Ot.x,t.pack(ue.low,q,E),q[xt]=Ot.y,t.pack(It,m,E),m[xt]=Ot.z,t.pack(kt,j,E),j[xt]=cn*Ee,t.pack(ft,b,E);let pt=sn*At;pt===0&&At<0&&(pt=9),b[xt]=pt,c&&(y[E]=Et.high.x,y[E+1]=Et.high.y,y[E+2]=Et.low.x,y[E+3]=Et.low.y,C[E]=-nt.y,C[E+1]=nt.x,C[E+2]=ot.y,C[E+3]=-ot.x,H[E]=yt.x,H[E+1]=yt.y,H[E+2]=ht.x,H[E+3]=ht.y,k[gt]=we*Ee,pt=Se*At,pt===0&&At<0&&(pt=9),k[gt+1]=pt)}let V=jn,$=Fn,J=Bn,K=zn,ln=Y.fromCartographicArray(bn,vn),Te=jt.getMinimumMaximumHeights(ln,d),Vt=Te.minimumTerrainHeight,$t=Te.maximumTerrainHeight;qt+=Math.abs(Vt),qt+=Math.abs($t),Ye(st,Wt,Vt,$t,V,J),Ye(at,ct,Vt,$t,$,K);let Q=t.multiplyByScalar(ft,p.EPSILON5,$e);t.add(V,Q,V),t.add($,Q,$),t.add(J,Q,J),t.add(K,Q,K),Yt(V,$),Yt(J,K),t.pack(V,I,M),t.pack($,I,M+3),t.pack(K,I,M+6),t.pack(J,I,M+9),Q=t.multiplyByScalar(ft,-2*p.EPSILON5,$e),t.add(V,Q,V),t.add($,Q,$),t.add(J,Q,J),t.add(K,Q,K),Yt(V,$),Yt(J,K),t.pack(V,I,M+12),t.pack($,I,M+15),t.pack(K,I,M+18),t.pack(J,I,M+21),Z+=2,s+=3,Dt+=16,M+=24,wt+=32,pe+=ge,de+=Zt}s=0;let me=0;for(l=0;l<h;l++){for(g=0;g<Je;g++)O[s+g]=rn[g]+me;me+=8,s+=Je}let Gt=Kn;U.fromVertices(r,t.ZERO,3,Gt[0]),U.fromVertices(e,t.ZERO,3,Gt[1]);let fe=U.fromBoundingSpheres(Gt);fe.radius+=qt/(h*2);let St={position:new Bt({componentDatatype:vt.DOUBLE,componentsPerAttribute:3,normalize:!1,values:I}),startHiAndForwardOffsetX:it(z),startLoAndForwardOffsetY:it(q),startNormalAndForwardOffsetZ:it(m),endNormalAndTextureCoordinateNormalizationX:it(j),rightNormalAndTextureCoordinateNormalizationY:it(b)};return c&&(St.startHiLo2D=it(y),St.offsetAndRight2D=it(H),St.startEndNormals2D=it(C),St.texcoordNormalization2D=new Bt({componentDatatype:vt.FLOAT,componentsPerAttribute:2,normalize:!1,values:k})),new Ce({attributes:St,indices:O,boundingSphere:fe})}function it(n){return new Bt({componentDatatype:vt.FLOAT,componentsPerAttribute:4,normalize:!1,values:n})}rt._projectNormal=Lt;var he=rt;function to(n,o){return jt.initialize().then(function(){return u(o)&&(n=he.unpack(n,o)),he.createGeometry(n)})}var Qo=to;export{Qo as default};
|
|
@@ -1 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.142.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import{a as m}from"./chunk-K72DPWBT.js";import{a as b}from"./chunk-VZ4ER5HI.js";import{b as v,c as x,d as c}from"./chunk-LTHJTGXC.js";import{c as l}from"./chunk-XEBZTQHW.js";import"./chunk-6LZUEMFX.js";import"./chunk-AZCCS55A.js";import"./chunk-V74K6IQF.js";import{a as i}from"./chunk-5HZ2G332.js";import"./chunk-LKQXJXNV.js";import"./chunk-VXS2FTO4.js";import"./chunk-ZQTDDQLY.js";import{a as u,c as A}from"./chunk-U4VWQPTS.js";import"./chunk-GZABERXA.js";import{b as f}from"./chunk-WM6AKY6B.js";import{f as s}from"./chunk-6K4BWAPV.js";function p(r){r=r??A.EMPTY_OBJECT;let e=r.vertexFormat??m.DEFAULT;this._vertexFormat=e,this._workerName="createPlaneGeometry"}p.packedLength=m.packedLength;p.pack=function(r,e,o){return f.typeOf.object("value",r),f.defined("array",e),o=o??0,m.pack(r._vertexFormat,e,o),e};var d=new m,P={vertexFormat:d};p.unpack=function(r,e,o){f.defined("array",r),e=e??0;let a=m.unpack(r,e,d);return s(o)?(o._vertexFormat=m.clone(a,o._vertexFormat),o):new p(P)};var y=new u(-.5,-.5,0),F=new u(.5,.5,0);p.createGeometry=function(r){let e=r._vertexFormat,o=new b,a,n;if(e.position){if(n=new Float64Array(12),n[0]=y.x,n[1]=y.y,n[2]=0,n[3]=F.x,n[4]=y.y,n[5]=0,n[6]=F.x,n[7]=F.y,n[8]=0,n[9]=y.x,n[10]=F.y,n[11]=0,o.position=new c({componentDatatype:i.DOUBLE,componentsPerAttribute:3,values:n}),e.normal){let t=new Float32Array(12);t[0]=0,t[1]=0,t[2]=1,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=1,t[9]=0,t[10]=0,t[11]=1,o.normal=new c({componentDatatype:i.FLOAT,componentsPerAttribute:3,values:t})}if(e.st){let t=new Float32Array(8);t[0]=0,t[1]=0,t[2]=1,t[3]=0,t[4]=1,t[5]=1,t[6]=0,t[7]=1,o.st=new c({componentDatatype:i.FLOAT,componentsPerAttribute:2,values:t})}if(e.tangent){let t=new Float32Array(12);t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=1,t[7]=0,t[8]=0,t[9]=1,t[10]=0,t[11]=0,o.tangent=new c({componentDatatype:i.FLOAT,componentsPerAttribute:3,values:t})}if(e.bitangent){let t=new Float32Array(12);t[0]=0,t[1]=1,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=1,t[8]=0,t[9]=0,t[10]=1,t[11]=0,o.bitangent=new c({componentDatatype:i.FLOAT,componentsPerAttribute:3,values:t})}a=new Uint16Array(6),a[0]=0,a[1]=1,a[2]=2,a[3]=0,a[4]=2,a[5]=3}return new x({attributes:o,indices:a,primitiveType:v.TRIANGLES,boundingSphere:new l(u.ZERO,Math.sqrt(2))})};var w=p;function h(r,e){return s(e)&&(r=w.unpack(r,e)),w.createGeometry(r)}var N=h;export{N as default};
|
|
@@ -1 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.142.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import{a as l}from"./chunk-VZ4ER5HI.js";import{b as d,c as y,d as s}from"./chunk-LTHJTGXC.js";import{c}from"./chunk-XEBZTQHW.js";import"./chunk-6LZUEMFX.js";import"./chunk-AZCCS55A.js";import"./chunk-V74K6IQF.js";import{a as f}from"./chunk-5HZ2G332.js";import"./chunk-LKQXJXNV.js";import"./chunk-VXS2FTO4.js";import"./chunk-ZQTDDQLY.js";import{a}from"./chunk-U4VWQPTS.js";import"./chunk-GZABERXA.js";import{b as m}from"./chunk-WM6AKY6B.js";import{f as i}from"./chunk-6K4BWAPV.js";function o(){this._workerName="createPlaneOutlineGeometry"}o.packedLength=0;o.pack=function(r,e){return m.defined("value",r),m.defined("array",e),e};o.unpack=function(r,e,t){return m.defined("array",r),i(t)?t:new o};var n=new a(-.5,-.5,0),p=new a(.5,.5,0);o.createGeometry=function(){let r=new l,e=new Uint16Array(8),t=new Float64Array(12);return t[0]=n.x,t[1]=n.y,t[2]=n.z,t[3]=p.x,t[4]=n.y,t[5]=n.z,t[6]=p.x,t[7]=p.y,t[8]=n.z,t[9]=n.x,t[10]=p.y,t[11]=n.z,r.position=new s({componentDatatype:f.DOUBLE,componentsPerAttribute:3,values:t}),e[0]=0,e[1]=1,e[2]=1,e[3]=2,e[4]=2,e[5]=3,e[6]=3,e[7]=0,new y({attributes:r,indices:e,primitiveType:d.LINES,boundingSphere:new c(a.ZERO,Math.sqrt(2))})};var u=o;function w(r,e){return i(e)&&(r=u.unpack(r,e)),u.createGeometry(r)}var D=w;export{D as default};
|
|
@@ -1 +1,26 @@
|
|
|
1
|
-
define(["./defaultValue-f6d5e6da","./Matrix3-81054f0f","./ArcType-26a3f38d","./BoundingRectangle-2379df5a","./Transforms-fce95115","./Matrix2-413c4048","./ComponentDatatype-ab629b88","./EllipsoidGeodesic-2723ab86","./EllipsoidTangentPlane-82f2a887","./GeometryAttribute-81ff775c","./GeometryInstance-0318e0cd","./GeometryOffsetAttribute-2579b8d2","./GeometryPipeline-e049e700","./IndexDatatype-d3db4e7d","./Math-2ce22ee9","./PolygonGeometryLibrary-003d1689","./PolygonPipeline-61ca1579","./VertexFormat-fbdec922","./combine-0c102d93","./RuntimeError-9b4ce3fb","./WebGLConstants-7f557f93","./AxisAlignedBoundingBox-39ab50d0","./IntersectionTests-357c3d7f","./Plane-6add0ae1","./AttributeCompression-48e336db","./EncodedCartesian3-5e2017ab","./arrayRemoveDuplicates-9b636830","./EllipsoidRhumbLine-77eff028","./GeometryAttributes-1e4ddcd2"],(function(t,e,o,i,r,n,a,s,l,u,c,p,y,d,m,g,h,f,b,_,P,x,C,w,T,I,A,v,E){"use strict";const G=new e.Cartographic,O=new e.Cartographic;function L(t,e,o,i){const r=i.cartesianToCartographic(t,G).height,n=i.cartesianToCartographic(e,O);n.height=r,i.cartographicToCartesian(n,e);const a=i.cartesianToCartographic(o,O);a.height=r-100,i.cartographicToCartesian(a,o)}const V=new i.BoundingRectangle,H=new e.Cartesian3,D=new e.Cartesian3,N=new e.Cartesian3,F=new e.Cartesian3,R=new e.Cartesian3,M=new e.Cartesian3;let S=new e.Cartesian3,B=new e.Cartesian3,k=new e.Cartesian3;const z=new n.Cartesian2,W=new n.Cartesian2,Y=new e.Cartesian3,U=new r.Quaternion,j=new e.Matrix3,Q=new e.Matrix3;function q(o){const i=o.vertexFormat,s=o.geometry,l=o.shadowVolume,c=s.attributes.position.values,y=t.defined(s.attributes.st)?s.attributes.st.values:void 0;let d=c.length;const g=o.wall,h=o.top||g,f=o.bottom||g;if(i.st||i.normal||i.tangent||i.bitangent||l){const p=o.boundingRectangle,b=o.tangentPlane,_=o.ellipsoid,P=o.stRotation,x=o.perPositionHeight,C=z;C.x=p.x,C.y=p.y;const w=i.st?new Float32Array(d/3*2):void 0;let T;i.normal&&(T=x&&h&&!g?s.attributes.normal.values:new Float32Array(d));const I=i.tangent?new Float32Array(d):void 0,A=i.bitangent?new Float32Array(d):void 0,v=l?new Float32Array(d):void 0;let E=0,G=0,O=D,V=N,q=F,K=!0,Z=j,J=Q;if(0!==P){let t=r.Quaternion.fromAxisAngle(b._plane.normal,P,U);Z=e.Matrix3.fromQuaternion(t,Z),t=r.Quaternion.fromAxisAngle(b._plane.normal,-P,U),J=e.Matrix3.fromQuaternion(t,J)}else Z=e.Matrix3.clone(e.Matrix3.IDENTITY,Z),J=e.Matrix3.clone(e.Matrix3.IDENTITY,J);let X=0,$=0;h&&f&&(X=d/2,$=d/3,d/=2);for(let r=0;r<d;r+=3){const a=e.Cartesian3.fromArray(c,r,Y);if(i.st&&!t.defined(y)){let t=e.Matrix3.multiplyByVector(Z,a,H);t=_.scaleToGeodeticSurface(t,t);const o=b.projectPointOntoPlane(t,W);n.Cartesian2.subtract(o,C,o);const i=m.CesiumMath.clamp(o.x/p.width,0,1),r=m.CesiumMath.clamp(o.y/p.height,0,1);f&&(w[E+$]=i,w[E+1+$]=r),h&&(w[E]=i,w[E+1]=r),E+=2}if(i.normal||i.tangent||i.bitangent||l){const t=G+1,n=G+2;if(g){if(r+3<d){const t=e.Cartesian3.fromArray(c,r+3,R);if(K){const o=e.Cartesian3.fromArray(c,r+d,M);x&&L(a,t,o,_),e.Cartesian3.subtract(t,a,t),e.Cartesian3.subtract(o,a,o),O=e.Cartesian3.normalize(e.Cartesian3.cross(o,t,O),O),K=!1}e.Cartesian3.equalsEpsilon(t,a,m.CesiumMath.EPSILON10)&&(K=!0)}(i.tangent||i.bitangent)&&(q=_.geodeticSurfaceNormal(a,q),i.tangent&&(V=e.Cartesian3.normalize(e.Cartesian3.cross(q,O,V),V)))}else O=_.geodeticSurfaceNormal(a,O),(i.tangent||i.bitangent)&&(x&&(S=e.Cartesian3.fromArray(T,G,S),B=e.Cartesian3.cross(e.Cartesian3.UNIT_Z,S,B),B=e.Cartesian3.normalize(e.Matrix3.multiplyByVector(J,B,B),B),i.bitangent&&(k=e.Cartesian3.normalize(e.Cartesian3.cross(S,B,k),k))),V=e.Cartesian3.cross(e.Cartesian3.UNIT_Z,O,V),V=e.Cartesian3.normalize(e.Matrix3.multiplyByVector(J,V,V),V),i.bitangent&&(q=e.Cartesian3.normalize(e.Cartesian3.cross(O,V,q),q)));i.normal&&(o.wall?(T[G+X]=O.x,T[t+X]=O.y,T[n+X]=O.z):f&&(T[G+X]=-O.x,T[t+X]=-O.y,T[n+X]=-O.z),(h&&!x||g)&&(T[G]=O.x,T[t]=O.y,T[n]=O.z)),l&&(g&&(O=_.geodeticSurfaceNormal(a,O)),v[G+X]=-O.x,v[t+X]=-O.y,v[n+X]=-O.z),i.tangent&&(o.wall?(I[G+X]=V.x,I[t+X]=V.y,I[n+X]=V.z):f&&(I[G+X]=-V.x,I[t+X]=-V.y,I[n+X]=-V.z),h&&(x?(I[G]=B.x,I[t]=B.y,I[n]=B.z):(I[G]=V.x,I[t]=V.y,I[n]=V.z))),i.bitangent&&(f&&(A[G+X]=q.x,A[t+X]=q.y,A[n+X]=q.z),h&&(x?(A[G]=k.x,A[t]=k.y,A[n]=k.z):(A[G]=q.x,A[t]=q.y,A[n]=q.z))),G+=3}}i.st&&!t.defined(y)&&(s.attributes.st=new u.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:w})),i.normal&&(s.attributes.normal=new u.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:T})),i.tangent&&(s.attributes.tangent=new u.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:I})),i.bitangent&&(s.attributes.bitangent=new u.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:A})),l&&(s.attributes.extrudeDirection=new u.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:v}))}if(o.extrude&&t.defined(o.offsetAttribute)){const t=c.length/3;let e=new Uint8Array(t);if(o.offsetAttribute===p.GeometryOffsetAttribute.TOP)h&&f||g?e=e.fill(1,0,t/2):h&&(e=e.fill(1));else{const t=o.offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1;e=e.fill(t)}s.attributes.applyOffset=new u.GeometryAttribute({componentDatatype:a.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:e})}return s}const K=new e.Cartographic,Z=new e.Cartographic,J={westOverIDL:0,eastOverIDL:0};let X=new s.EllipsoidGeodesic;function $(e,i,r,a,l){if(l=t.defaultValue(l,new n.Rectangle),!t.defined(e)||e.length<3)return l.west=0,l.north=0,l.south=0,l.east=0,l;if(r===o.ArcType.RHUMB)return n.Rectangle.fromCartesianArray(e,i,l);X.ellipsoid.equals(i)||(X=new s.EllipsoidGeodesic(void 0,void 0,i)),l.west=Number.POSITIVE_INFINITY,l.east=Number.NEGATIVE_INFINITY,l.south=Number.POSITIVE_INFINITY,l.north=Number.NEGATIVE_INFINITY,J.westOverIDL=Number.POSITIVE_INFINITY,J.eastOverIDL=Number.NEGATIVE_INFINITY;const u=1/m.CesiumMath.chordLength(a,i.maximumRadius),c=e.length;let p,y=i.cartesianToCartographic(e[0],Z),d=K;for(let t=1;t<c;t++)p=d,d=y,y=i.cartesianToCartographic(e[t],p),X.setEndPoints(d,y),et(X,u,l,J);return p=d,d=y,y=i.cartesianToCartographic(e[0],p),X.setEndPoints(d,y),et(X,u,l,J),l.east-l.west>J.eastOverIDL-J.westOverIDL&&(l.west=J.westOverIDL,l.east=J.eastOverIDL,l.east>m.CesiumMath.PI&&(l.east=l.east-m.CesiumMath.TWO_PI),l.west>m.CesiumMath.PI&&(l.west=l.west-m.CesiumMath.TWO_PI)),l}const tt=new e.Cartographic;function et(t,e,o,i){const r=t.surfaceDistance,n=Math.ceil(r*e),a=n>0?r/(n-1):Number.POSITIVE_INFINITY;let s=0;for(let e=0;e<n;e++){const e=t.interpolateUsingSurfaceDistance(s,tt);s+=a;const r=e.longitude,n=e.latitude;o.west=Math.min(o.west,r),o.east=Math.max(o.east,r),o.south=Math.min(o.south,n),o.north=Math.max(o.north,n);const l=r>=0?r:r+m.CesiumMath.TWO_PI;i.westOverIDL=Math.min(i.westOverIDL,l),i.eastOverIDL=Math.max(i.eastOverIDL,l)}}const ot=[];function it(e,o,i,r,n,a,s,u,p,y){const m={walls:[]};let f;if(s||u){const n=g.PolygonGeometryLibrary.createGeometryFromPositions(e,o,i,r,a,p,y),l=n.attributes.position.values,h=n.indices;let b,_;if(s&&u){const e=l.concat(l);b=e.length/3,_=d.IndexDatatype.createTypedArray(b,2*h.length),_.set(h);const o=h.length,r=b/2;for(f=0;f<o;f+=3){const t=_[f]+r,e=_[f+1]+r,i=_[f+2]+r;_[f+o]=i,_[f+1+o]=e,_[f+2+o]=t}if(n.attributes.position.values=e,a&&p.normal){const t=n.attributes.normal.values;n.attributes.normal.values=new Float32Array(e.length),n.attributes.normal.values.set(t)}if(p.st&&t.defined(i)){const t=n.attributes.st.values;n.attributes.st.values=new Float32Array(2*b),n.attributes.st.values=t.concat(t)}n.indices=_}else if(u){for(b=l.length/3,_=d.IndexDatatype.createTypedArray(b,h.length),f=0;f<h.length;f+=3)_[f]=h[f+2],_[f+1]=h[f+1],_[f+2]=h[f];n.indices=_}m.topAndBottom=new c.GeometryInstance({geometry:n})}let b=n.outerRing,_=l.EllipsoidTangentPlane.fromPoints(b,e),P=_.projectPointsOntoPlane(b,ot),x=h.PolygonPipeline.computeWindingOrder2D(P);x===h.WindingOrder.CLOCKWISE&&(b=b.slice().reverse());let C=g.PolygonGeometryLibrary.computeWallGeometry(b,i,e,r,a,y);m.walls.push(new c.GeometryInstance({geometry:C}));const w=n.holes;for(f=0;f<w.length;f++){let t=w[f];_=l.EllipsoidTangentPlane.fromPoints(t,e),P=_.projectPointsOntoPlane(t,ot),x=h.PolygonPipeline.computeWindingOrder2D(P),x===h.WindingOrder.COUNTER_CLOCKWISE&&(t=t.slice().reverse()),C=g.PolygonGeometryLibrary.computeWallGeometry(t,i,e,r,a,y),m.walls.push(new c.GeometryInstance({geometry:C}))}return m}function rt(i){const r=i.polygonHierarchy,a=t.defaultValue(i.vertexFormat,f.VertexFormat.DEFAULT),s=t.defaultValue(i.ellipsoid,e.Ellipsoid.WGS84),l=t.defaultValue(i.granularity,m.CesiumMath.RADIANS_PER_DEGREE),u=t.defaultValue(i.stRotation,0),c=i.textureCoordinates,p=t.defaultValue(i.perPositionHeight,!1),y=p&&t.defined(i.extrudedHeight);let d=t.defaultValue(i.height,0),h=t.defaultValue(i.extrudedHeight,d);if(!y){const t=Math.max(d,h);h=Math.min(d,h),d=t}this._vertexFormat=f.VertexFormat.clone(a),this._ellipsoid=e.Ellipsoid.clone(s),this._granularity=l,this._stRotation=u,this._height=d,this._extrudedHeight=h,this._closeTop=t.defaultValue(i.closeTop,!0),this._closeBottom=t.defaultValue(i.closeBottom,!0),this._polygonHierarchy=r,this._perPositionHeight=p,this._perPositionHeightExtrude=y,this._shadowVolume=t.defaultValue(i.shadowVolume,!1),this._workerName="createPolygonGeometry",this._offsetAttribute=i.offsetAttribute,this._arcType=t.defaultValue(i.arcType,o.ArcType.GEODESIC),this._rectangle=void 0,this._textureCoordinateRotationPoints=void 0,this._textureCoordinates=c,this.packedLength=g.PolygonGeometryLibrary.computeHierarchyPackedLength(r,e.Cartesian3)+e.Ellipsoid.packedLength+f.VertexFormat.packedLength+(c?g.PolygonGeometryLibrary.computeHierarchyPackedLength(c,n.Cartesian2):1)+12}rt.fromPositions=function(e){return new rt({polygonHierarchy:{positions:(e=t.defaultValue(e,t.defaultValue.EMPTY_OBJECT)).positions},height:e.height,extrudedHeight:e.extrudedHeight,vertexFormat:e.vertexFormat,stRotation:e.stRotation,ellipsoid:e.ellipsoid,granularity:e.granularity,perPositionHeight:e.perPositionHeight,closeTop:e.closeTop,closeBottom:e.closeBottom,offsetAttribute:e.offsetAttribute,arcType:e.arcType,textureCoordinates:e.textureCoordinates})},rt.pack=function(o,i,r){return r=t.defaultValue(r,0),r=g.PolygonGeometryLibrary.packPolygonHierarchy(o._polygonHierarchy,i,r,e.Cartesian3),e.Ellipsoid.pack(o._ellipsoid,i,r),r+=e.Ellipsoid.packedLength,f.VertexFormat.pack(o._vertexFormat,i,r),r+=f.VertexFormat.packedLength,i[r++]=o._height,i[r++]=o._extrudedHeight,i[r++]=o._granularity,i[r++]=o._stRotation,i[r++]=o._perPositionHeightExtrude?1:0,i[r++]=o._perPositionHeight?1:0,i[r++]=o._closeTop?1:0,i[r++]=o._closeBottom?1:0,i[r++]=o._shadowVolume?1:0,i[r++]=t.defaultValue(o._offsetAttribute,-1),i[r++]=o._arcType,t.defined(o._textureCoordinates)?r=g.PolygonGeometryLibrary.packPolygonHierarchy(o._textureCoordinates,i,r,n.Cartesian2):i[r++]=-1,i[r++]=o.packedLength,i};const nt=e.Ellipsoid.clone(e.Ellipsoid.UNIT_SPHERE),at=new f.VertexFormat,st={polygonHierarchy:{}};return rt.unpack=function(o,i,r){i=t.defaultValue(i,0);const a=g.PolygonGeometryLibrary.unpackPolygonHierarchy(o,i,e.Cartesian3);i=a.startingIndex,delete a.startingIndex;const s=e.Ellipsoid.unpack(o,i,nt);i+=e.Ellipsoid.packedLength;const l=f.VertexFormat.unpack(o,i,at);i+=f.VertexFormat.packedLength;const u=o[i++],c=o[i++],p=o[i++],y=o[i++],d=1===o[i++],m=1===o[i++],h=1===o[i++],b=1===o[i++],_=1===o[i++],P=o[i++],x=o[i++],C=-1===o[i]?void 0:g.PolygonGeometryLibrary.unpackPolygonHierarchy(o,i,n.Cartesian2);t.defined(C)?(i=C.startingIndex,delete C.startingIndex):i++;const w=o[i++];return t.defined(r)||(r=new rt(st)),r._polygonHierarchy=a,r._ellipsoid=e.Ellipsoid.clone(s,r._ellipsoid),r._vertexFormat=f.VertexFormat.clone(l,r._vertexFormat),r._height=u,r._extrudedHeight=c,r._granularity=p,r._stRotation=y,r._perPositionHeightExtrude=d,r._perPositionHeight=m,r._closeTop=h,r._closeBottom=b,r._shadowVolume=_,r._offsetAttribute=-1===P?void 0:P,r._arcType=x,r._textureCoordinates=C,r.packedLength=w,r},rt.computeRectangle=function(i,r){const n=t.defaultValue(i.granularity,m.CesiumMath.RADIANS_PER_DEGREE),a=t.defaultValue(i.arcType,o.ArcType.GEODESIC),s=i.polygonHierarchy,l=t.defaultValue(i.ellipsoid,e.Ellipsoid.WGS84);return $(s.positions,l,a,n,r)},rt.createGeometry=function(e){const o=e._vertexFormat,i=e._ellipsoid,n=e._granularity,s=e._stRotation,f=e._polygonHierarchy,b=e._perPositionHeight,_=e._closeTop,P=e._closeBottom,x=e._arcType,C=e._textureCoordinates,w=t.defined(C);let T=f.positions;if(T.length<3)return;const I=l.EllipsoidTangentPlane.fromPoints(T,i),A=g.PolygonGeometryLibrary.polygonsFromHierarchy(f,w,I.projectPointsOntoPlane.bind(I),!b,i),v=A.hierarchy,E=A.polygons,G=w?g.PolygonGeometryLibrary.polygonsFromHierarchy(C,!0,(function(t){return t}),!1).polygons:void 0;if(0===v.length)return;T=v[0].outerRing;const O=g.PolygonGeometryLibrary.computeBoundingRectangle(I.plane.normal,I.projectPointOntoPlane.bind(I),T,s,V),L=[],H=e._height,D=e._extrudedHeight,N={perPositionHeight:b,vertexFormat:o,geometry:void 0,tangentPlane:I,boundingRectangle:O,ellipsoid:i,stRotation:s,textureCoordinates:void 0,bottom:!1,top:!0,wall:!1,extrude:!1,arcType:x};let F;if(e._perPositionHeightExtrude||!m.CesiumMath.equalsEpsilon(H,D,0,m.CesiumMath.EPSILON2))for(N.extrude=!0,N.top=_,N.bottom=P,N.shadowVolume=e._shadowVolume,N.offsetAttribute=e._offsetAttribute,F=0;F<E.length;F++){const t=it(i,E[F],w?G[F]:void 0,n,v[F],b,_,P,o,x);let e;_&&P?(e=t.topAndBottom,N.geometry=g.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(e.geometry,H,D,i,b)):_?(e=t.topAndBottom,e.geometry.attributes.position.values=h.PolygonPipeline.scaleToGeodeticHeight(e.geometry.attributes.position.values,H,i,!b),N.geometry=e.geometry):P&&(e=t.topAndBottom,e.geometry.attributes.position.values=h.PolygonPipeline.scaleToGeodeticHeight(e.geometry.attributes.position.values,D,i,!0),N.geometry=e.geometry),(_||P)&&(N.wall=!1,e.geometry=q(N),L.push(e));const r=t.walls;N.wall=!0;for(let t=0;t<r.length;t++){const e=r[t];N.geometry=g.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(e.geometry,H,D,i,b),e.geometry=q(N),L.push(e)}}else for(F=0;F<E.length;F++){const r=new c.GeometryInstance({geometry:g.PolygonGeometryLibrary.createGeometryFromPositions(i,E[F],w?G[F]:void 0,n,b,o,x)});if(r.geometry.attributes.position.values=h.PolygonPipeline.scaleToGeodeticHeight(r.geometry.attributes.position.values,H,i,!b),N.geometry=r.geometry,r.geometry=q(N),t.defined(e._offsetAttribute)){const t=r.geometry.attributes.position.values.length,o=e._offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1,i=new Uint8Array(t/3).fill(o);r.geometry.attributes.applyOffset=new u.GeometryAttribute({componentDatatype:a.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:i})}L.push(r)}const R=y.GeometryPipeline.combineInstances(L)[0];R.attributes.position.values=new Float64Array(R.attributes.position.values),R.indices=d.IndexDatatype.createTypedArray(R.attributes.position.values.length/3,R.indices);const M=R.attributes,S=r.BoundingSphere.fromVertices(M.position.values);return o.position||delete M.position,new u.Geometry({attributes:M,indices:R.indices,primitiveType:R.primitiveType,boundingSphere:S,offsetAttribute:e._offsetAttribute})},rt.createShadowVolume=function(t,e,o){const i=t._granularity,r=t._ellipsoid,n=e(i,r),a=o(i,r);return new rt({polygonHierarchy:t._polygonHierarchy,ellipsoid:r,stRotation:t._stRotation,granularity:i,perPositionHeight:!1,extrudedHeight:n,height:a,vertexFormat:f.VertexFormat.POSITION_ONLY,shadowVolume:!0,arcType:t._arcType})},Object.defineProperties(rt.prototype,{rectangle:{get:function(){if(!t.defined(this._rectangle)){const t=this._polygonHierarchy.positions;this._rectangle=$(t,this._ellipsoid,this._arcType,this._granularity)}return this._rectangle}},textureCoordinateRotationPoints:{get:function(){return t.defined(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=function(t){const e=-t._stRotation;if(0===e)return[0,0,0,1,1,0];const o=t._ellipsoid,i=t._polygonHierarchy.positions,r=t.rectangle;return u.Geometry._textureCoordinateRotationPoints(i,e,o,r)}(this)),this._textureCoordinateRotationPoints}}}),function(o,i){return t.defined(i)&&(o=rt.unpack(o,i)),o._ellipsoid=e.Ellipsoid.clone(o._ellipsoid),rt.createGeometry(o)}}));
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.142.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import{a as mt}from"./chunk-UHTXIDKA.js";import{a as L}from"./chunk-BXPFAIYZ.js";import{a as st}from"./chunk-ITSDUOWL.js";import{a as rt}from"./chunk-LUECBOIT.js";import{a as bt}from"./chunk-VELRZYUL.js";import"./chunk-FYQCPFNB.js";import"./chunk-3R3BCVRR.js";import{a as lt}from"./chunk-YNBY2HFD.js";import{a as q}from"./chunk-K72DPWBT.js";import{a as Z}from"./chunk-C4NHPSO2.js";import"./chunk-WTIPXHS3.js";import{a as dt,b as ot}from"./chunk-IPQQ2USK.js";import"./chunk-RH3WVPDR.js";import"./chunk-MUI5QV7K.js";import{a as wt,b as yt}from"./chunk-H6AHPUMX.js";import"./chunk-FMWRN5G2.js";import{a as ct}from"./chunk-RU2T2U4O.js";import"./chunk-VZ4ER5HI.js";import{c as ut,d as $}from"./chunk-LTHJTGXC.js";import{c as Tt}from"./chunk-XEBZTQHW.js";import"./chunk-6LZUEMFX.js";import{h as at,j as _t}from"./chunk-AZCCS55A.js";import"./chunk-V74K6IQF.js";import{a as X}from"./chunk-5HZ2G332.js";import"./chunk-LKQXJXNV.js";import"./chunk-VXS2FTO4.js";import{a as et,b as O,c as S}from"./chunk-ZQTDDQLY.js";import{a as c,b as D,c as Pt}from"./chunk-U4VWQPTS.js";import{a as l}from"./chunk-GZABERXA.js";import{a as ft,b as Y}from"./chunk-WM6AKY6B.js";import{f as P}from"./chunk-6K4BWAPV.js";function b(t,e){this.position=t,P(this.position)||(this.position=new O),this.tangentPlane=e,P(this.tangentPlane)||(this.tangentPlane=b.NORTH_POLE_TANGENT_PLANE)}Object.defineProperties(b.prototype,{ellipsoid:{get:function(){return this.tangentPlane.ellipsoid}},x:{get:function(){return this.position.x}},y:{get:function(){return this.position.y}},conformalLatitude:{get:function(){let t=O.magnitude(this.position),e=2*this.ellipsoid.maximumRadius;return this.tangentPlane.plane.normal.z*(l.PI_OVER_TWO-2*Math.atan2(t,e))}},longitude:{get:function(){let t=l.PI_OVER_TWO+Math.atan2(this.y,this.x);return t>Math.PI&&(t-=l.TWO_PI),t}}});var nt=new et,Rt=new c;b.prototype.getLatitude=function(t){P(t)||(t=S.default),nt.latitude=this.conformalLatitude,nt.longitude=this.longitude,nt.height=0;let e=this.ellipsoid.cartographicToCartesian(nt,Rt);return t.cartesianToCartographic(e,nt),nt.latitude};var It=new wt,Lt=new c,Ft=new c;b.fromCartesian=function(t,e){Y.defined("cartesian",t);let o=l.signNotZero(t.z),n=b.NORTH_POLE_TANGENT_PLANE,s=b.SOUTH_POLE;o<0&&(n=b.SOUTH_POLE_TANGENT_PLANE,s=b.NORTH_POLE);let i=It;i.origin=n.ellipsoid.scaleToGeocentricSurface(t,i.origin),i.direction=c.subtract(i.origin,s,Lt),c.normalize(i.direction,i.direction);let r=yt.rayPlane(i,n.plane,Ft),f=c.subtract(r,s,r),d=c.dot(n.xAxis,f),p=o*c.dot(n.yAxis,f);return P(e)?(e.position=new O(d,p),e.tangentPlane=n,e):new b(new O(d,p),n)};b.fromCartesianArray=function(t,e){Y.defined("cartesians",t);let o=t.length;P(e)?e.length=o:e=new Array(o);for(let n=0;n<o;n++)e[n]=b.fromCartesian(t[n],e[n]);return e};b.clone=function(t,e){if(P(t))return P(e)?(e.position=t.position,e.tangentPlane=t.tangentPlane,e):new b(t.position,t.tangentPlane)};b.HALF_UNIT_SPHERE=Object.freeze(new S(.5,.5,.5));b.NORTH_POLE=Object.freeze(new c(0,0,.5));b.SOUTH_POLE=Object.freeze(new c(0,0,-.5));b.NORTH_POLE_TANGENT_PLANE=Object.freeze(new Z(b.NORTH_POLE,b.HALF_UNIT_SPHERE));b.SOUTH_POLE_TANGENT_PLANE=Object.freeze(new Z(b.SOUTH_POLE,b.HALF_UNIT_SPHERE));var z=b;var vt=new et,Ot=new et;function St(t,e,o,n){let i=n.cartesianToCartographic(t,vt).height,r=n.cartesianToCartographic(e,Ot);r.height=i,n.cartographicToCartesian(r,e);let f=n.cartesianToCartographic(o,Ot);f.height=i-100,n.cartographicToCartesian(f,o)}var Et=new mt,Vt=new c,Bt=new c,Mt=new c,jt=new c,kt=new c,zt=new c,ht=new c,Q=new c,it=new c,Dt=new O,Ut=new O,Wt=new c,At=new at,Gt=new D,Yt=new D;function gt(t){let e=t.vertexFormat,o=t.geometry,n=t.shadowVolume,s=o.attributes.position.values,i=P(o.attributes.st)?o.attributes.st.values:void 0,r=s.length,f=t.wall,d=t.top||f,p=t.bottom||f;if(e.st||e.normal||e.tangent||e.bitangent||n){let w=t.boundingRectangle,a=t.rotationAxis,H=t.projectTo2d,x=t.ellipsoid,M=t.stRotation,C=t.perPositionHeight,R=Dt;R.x=w.x,R.y=w.y;let V=e.st?new Float32Array(2*(r/3)):void 0,u;e.normal&&(C&&d&&!f?u=o.attributes.normal.values:u=new Float32Array(r));let E=e.tangent?new Float32Array(r):void 0,A=e.bitangent?new Float32Array(r):void 0,F=n?new Float32Array(r):void 0,T=0,y=0,_=Bt,h=Mt,g=jt,j=!0,G=Gt,K=Yt;if(M!==0){let B=at.fromAxisAngle(a,M,At);G=D.fromQuaternion(B,G),B=at.fromAxisAngle(a,-M,At),K=D.fromQuaternion(B,K)}else G=D.clone(D.IDENTITY,G),K=D.clone(D.IDENTITY,K);let m=0,I=0;d&&p&&(m=r/2,I=r/3,r/=2);for(let B=0;B<r;B+=3){let k=c.fromArray(s,B,Wt);if(e.st&&!P(i)){let N=D.multiplyByVector(G,k,Vt);N=x.scaleToGeodeticSurface(N,N);let v=H([N],Ut)[0];O.subtract(v,R,v);let J=l.clamp(v.x/w.width,0,1),tt=l.clamp(v.y/w.height,0,1);p&&(V[T+I]=J,V[T+1+I]=tt),d&&(V[T]=J,V[T+1]=tt),T+=2}if(e.normal||e.tangent||e.bitangent||n){let N=y+1,v=y+2;if(f){if(B+3<r){let J=c.fromArray(s,B+3,kt);if(j){let tt=c.fromArray(s,B+r,zt);C&&St(k,J,tt,x),c.subtract(J,k,J),c.subtract(tt,k,tt),_=c.normalize(c.cross(tt,J,_),_),j=!1}c.equalsEpsilon(J,k,l.EPSILON10)&&(j=!0)}(e.tangent||e.bitangent)&&(g=x.geodeticSurfaceNormal(k,g),e.tangent&&(h=c.normalize(c.cross(g,_,h),h)))}else _=x.geodeticSurfaceNormal(k,_),(e.tangent||e.bitangent)&&(C&&(ht=c.fromArray(u,y,ht),Q=c.cross(c.UNIT_Z,ht,Q),Q=c.normalize(D.multiplyByVector(K,Q,Q),Q),e.bitangent&&(it=c.normalize(c.cross(ht,Q,it),it))),h=c.cross(c.UNIT_Z,_,h),h=c.normalize(D.multiplyByVector(K,h,h),h),e.bitangent&&(g=c.normalize(c.cross(_,h,g),g)));e.normal&&(t.wall?(u[y+m]=_.x,u[N+m]=_.y,u[v+m]=_.z):p&&(u[y+m]=-_.x,u[N+m]=-_.y,u[v+m]=-_.z),(d&&!C||f)&&(u[y]=_.x,u[N]=_.y,u[v]=_.z)),n&&(f&&(_=x.geodeticSurfaceNormal(k,_)),F[y+m]=-_.x,F[N+m]=-_.y,F[v+m]=-_.z),e.tangent&&(t.wall?(E[y+m]=h.x,E[N+m]=h.y,E[v+m]=h.z):p&&(E[y+m]=-h.x,E[N+m]=-h.y,E[v+m]=-h.z),d&&(C?(E[y]=Q.x,E[N]=Q.y,E[v]=Q.z):(E[y]=h.x,E[N]=h.y,E[v]=h.z))),e.bitangent&&(p&&(A[y+m]=g.x,A[N+m]=g.y,A[v+m]=g.z),d&&(C?(A[y]=it.x,A[N]=it.y,A[v]=it.z):(A[y]=g.x,A[N]=g.y,A[v]=g.z))),y+=3}}e.st&&!P(i)&&(o.attributes.st=new $({componentDatatype:X.FLOAT,componentsPerAttribute:2,values:V})),e.normal&&(o.attributes.normal=new $({componentDatatype:X.FLOAT,componentsPerAttribute:3,values:u})),e.tangent&&(o.attributes.tangent=new $({componentDatatype:X.FLOAT,componentsPerAttribute:3,values:E})),e.bitangent&&(o.attributes.bitangent=new $({componentDatatype:X.FLOAT,componentsPerAttribute:3,values:A})),n&&(o.attributes.extrudeDirection=new $({componentDatatype:X.FLOAT,componentsPerAttribute:3,values:F}))}if(t.extrude&&P(t.offsetAttribute)){let w=s.length/3,a=new Uint8Array(w);if(t.offsetAttribute===lt.TOP)d&&p||f?a=a.fill(1,0,w/2):d&&(a=a.fill(1));else{let H=t.offsetAttribute===lt.NONE?0:1;a=a.fill(H)}o.attributes.applyOffset=new $({componentDatatype:X.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})}return o}var Ht=[];function qt(t,e,o,n,s,i,r,f,d,p){let w={walls:[]},a;if(r||f){let u=L.createGeometryFromPositions(t,e,o,n,i,d,p),E=u.attributes.position.values,A=u.indices,F,T;if(r&&f){let y=E.concat(E);F=y.length/3,T=ct.createTypedArray(F,A.length*2),T.set(A);let _=A.length,h=F/2;for(a=0;a<_;a+=3){let g=T[a]+h,j=T[a+1]+h,G=T[a+2]+h;T[a+_]=G,T[a+1+_]=j,T[a+2+_]=g}if(u.attributes.position.values=y,i&&d.normal){let g=u.attributes.normal.values;u.attributes.normal.values=new Float32Array(y.length),u.attributes.normal.values.set(g)}if(d.st&&P(o)){let g=u.attributes.st.values;u.attributes.st.values=new Float32Array(F*2),u.attributes.st.values=g.concat(g)}u.indices=T}else if(f){for(F=E.length/3,T=ct.createTypedArray(F,A.length),a=0;a<A.length;a+=3)T[a]=A[a+2],T[a+1]=A[a+1],T[a+2]=A[a];u.indices=T}w.topAndBottom=new rt({geometry:u})}let H=s.outerRing,x=Z.fromPoints(H,t),M=x.projectPointsOntoPlane(H,Ht),C=ot.computeWindingOrder2D(M);C===dt.CLOCKWISE&&(H=H.slice().reverse());let R=L.computeWallGeometry(H,o,t,n,i,p);w.walls.push(new rt({geometry:R}));let V=s.holes;for(a=0;a<V.length;a++){let u=V[a];M=x.projectPointsOntoPlane(u,Ht),C=ot.computeWindingOrder2D(M),C===dt.COUNTER_CLOCKWISE&&(u=u.slice().reverse()),R=L.computeWallGeometry(u,o,t,n,i,p),w.walls.push(new rt({geometry:R}))}return w}function W(t){if(Y.typeOf.object("options",t),Y.typeOf.object("options.polygonHierarchy",t.polygonHierarchy),P(t.perPositionHeight)&&t.perPositionHeight&&P(t.height))throw new ft("Cannot use both options.perPositionHeight and options.height");if(P(t.arcType)&&t.arcType!==st.GEODESIC&&t.arcType!==st.RHUMB)throw new ft("Invalid arcType. Valid options are ArcType.GEODESIC and ArcType.RHUMB.");let e=t.polygonHierarchy,o=t.vertexFormat??q.DEFAULT,n=t.ellipsoid??S.default,s=t.granularity??l.RADIANS_PER_DEGREE,i=t.stRotation??0,r=t.textureCoordinates,f=t.perPositionHeight??!1,d=f&&P(t.extrudedHeight),p=t.height??0,w=t.extrudedHeight??p;if(!d){let a=Math.max(p,w);w=Math.min(p,w),p=a}this._vertexFormat=q.clone(o),this._ellipsoid=S.clone(n),this._granularity=s,this._stRotation=i,this._height=p,this._extrudedHeight=w,this._closeTop=t.closeTop??!0,this._closeBottom=t.closeBottom??!0,this._polygonHierarchy=e,this._perPositionHeight=f,this._perPositionHeightExtrude=d,this._shadowVolume=t.shadowVolume??!1,this._workerName="createPolygonGeometry",this._offsetAttribute=t.offsetAttribute,this._arcType=t.arcType??st.GEODESIC,this._rectangle=void 0,this._textureCoordinateRotationPoints=void 0,this._textureCoordinates=r,this.packedLength=L.computeHierarchyPackedLength(e,c)+S.packedLength+q.packedLength+(r?L.computeHierarchyPackedLength(r,O):1)+12}W.fromPositions=function(t){t=t??Pt.EMPTY_OBJECT,Y.defined("options.positions",t.positions);let e={polygonHierarchy:{positions:t.positions},height:t.height,extrudedHeight:t.extrudedHeight,vertexFormat:t.vertexFormat,stRotation:t.stRotation,ellipsoid:t.ellipsoid,granularity:t.granularity,perPositionHeight:t.perPositionHeight,closeTop:t.closeTop,closeBottom:t.closeBottom,offsetAttribute:t.offsetAttribute,arcType:t.arcType,textureCoordinates:t.textureCoordinates};return new W(e)};W.pack=function(t,e,o){return Y.typeOf.object("value",t),Y.defined("array",e),o=o??0,o=L.packPolygonHierarchy(t._polygonHierarchy,e,o,c),S.pack(t._ellipsoid,e,o),o+=S.packedLength,q.pack(t._vertexFormat,e,o),o+=q.packedLength,e[o++]=t._height,e[o++]=t._extrudedHeight,e[o++]=t._granularity,e[o++]=t._stRotation,e[o++]=t._perPositionHeightExtrude?1:0,e[o++]=t._perPositionHeight?1:0,e[o++]=t._closeTop?1:0,e[o++]=t._closeBottom?1:0,e[o++]=t._shadowVolume?1:0,e[o++]=t._offsetAttribute??-1,e[o++]=t._arcType,P(t._textureCoordinates)?o=L.packPolygonHierarchy(t._textureCoordinates,e,o,O):e[o++]=-1,e[o++]=t.packedLength,e};var Qt=S.clone(S.UNIT_SPHERE),Zt=new q,Kt={polygonHierarchy:{}};W.unpack=function(t,e,o){Y.defined("array",t),e=e??0;let n=L.unpackPolygonHierarchy(t,e,c);e=n.startingIndex,delete n.startingIndex;let s=S.unpack(t,e,Qt);e+=S.packedLength;let i=q.unpack(t,e,Zt);e+=q.packedLength;let r=t[e++],f=t[e++],d=t[e++],p=t[e++],w=t[e++]===1,a=t[e++]===1,H=t[e++]===1,x=t[e++]===1,M=t[e++]===1,C=t[e++],R=t[e++],V=t[e]===-1?void 0:L.unpackPolygonHierarchy(t,e,O);P(V)?(e=V.startingIndex,delete V.startingIndex):e++;let u=t[e++];return P(o)||(o=new W(Kt)),o._polygonHierarchy=n,o._ellipsoid=S.clone(s,o._ellipsoid),o._vertexFormat=q.clone(i,o._vertexFormat),o._height=r,o._extrudedHeight=f,o._granularity=d,o._stRotation=p,o._perPositionHeightExtrude=w,o._perPositionHeight=a,o._closeTop=H,o._closeBottom=x,o._shadowVolume=M,o._offsetAttribute=C===-1?void 0:C,o._arcType=R,o._textureCoordinates=V,o.packedLength=u,o};var Jt=new O,Xt=new O,$t=new z;function xt(t,e,o,n,s,i){let r=t.longitude,f=r>=0?r:r+l.TWO_PI;s.westOverIdl=Math.min(s.westOverIdl,f),s.eastOverIdl=Math.max(s.eastOverIdl,f),i.west=Math.min(i.west,r),i.east=Math.max(i.east,r);let d=t.getLatitude(o),p=d;if(i.south=Math.min(i.south,d),i.north=Math.max(i.north,d),n!==st.RHUMB){let H=O.subtract(e.position,t.position,Jt),x=O.dot(e.position,H)/O.dot(H,H);if(x>0&&x<1){let M=O.add(e.position,O.multiplyByScalar(H,-x,H),Xt),C=z.clone(e,$t);C.position=M;let R=C.getLatitude(o);i.south=Math.min(i.south,R),i.north=Math.max(i.north,R),Math.abs(d)>Math.abs(R)&&(p=R)}}let w=e.x*t.y-t.x*e.y,a=Math.sign(w);a!==0&&(a*=O.angleBetween(e.position,t.position)),p>=0&&(s.northAngle+=a),p<=0&&(s.southAngle+=a)}var Ct=new z,te=new z,U={northAngle:0,southAngle:0,westOverIdl:0,eastOverIdl:0};W.computeRectangleFromPositions=function(t,e,o,n){if(Y.defined("positions",t),P(n)||(n=new _t),t.length<3)return n;n.west=Number.POSITIVE_INFINITY,n.east=Number.NEGATIVE_INFINITY,n.south=Number.POSITIVE_INFINITY,n.north=Number.NEGATIVE_INFINITY,U.northAngle=0,U.southAngle=0,U.westOverIdl=Number.POSITIVE_INFINITY,U.eastOverIdl=Number.NEGATIVE_INFINITY;let s=t.length,i=z.fromCartesian(t[0],te);for(let r=1;r<s;r++){let f=z.fromCartesian(t[r],Ct);xt(f,i,e,o,U,n),i=z.clone(f,i)}return xt(z.fromCartesian(t[0],Ct),i,e,o,U,n),n.east-n.west>U.eastOverIdl-U.westOverIdl&&(n.west=U.westOverIdl,n.east=U.eastOverIdl,n.east>l.PI&&(n.east=n.east-l.TWO_PI),n.west>l.PI&&(n.west=n.west-l.TWO_PI)),l.equalsEpsilon(Math.abs(U.northAngle),l.TWO_PI,l.EPSILON10)&&(n.north=l.PI_OVER_TWO,n.east=l.PI,n.west=-l.PI),l.equalsEpsilon(Math.abs(U.southAngle),l.TWO_PI,l.EPSILON10)&&(n.south=-l.PI_OVER_TWO,n.east=l.PI,n.west=-l.PI),n};var ee=new z;function oe(t,e,o){return t.height>=l.PI||t.width>=l.PI?z.fromCartesian(e[0],ee).tangentPlane:Z.fromPoints(e,o)}var Nt=new et;function ne(t,e,o){return(n,s)=>{if(t.height>=l.PI||t.width>=l.PI){if(t.south<0&&t.north>0){P(s)||(s=[]);for(let r=0;r<n.length;++r){let f=o.cartesianToCartographic(n[r],Nt);s[r]=new O(f.longitude/l.PI,f.latitude/l.PI_OVER_TWO)}return s.length=n.length,s}return z.fromCartesianArray(n,s)}return Z.fromPoints(e,o).projectPointsOntoPlane(n,s)}}function ie(t,e,o){if(t.height>=l.PI||t.width>=l.PI)return(s,i)=>{if(t.south<0&&t.north>0){let r=o.cartesianToCartographic(s,Nt);return P(i)||(i=new O),i.x=r.longitude/l.PI,i.y=r.latitude/l.PI_OVER_TWO,i}return z.fromCartesian(s,i)};let n=Z.fromPoints(e,o);return(s,i)=>n.projectPointsOntoPlane(s,i)}function re(t,e,o,n){return(s,i)=>!n&&(t.height>=l.PI_OVER_TWO||t.width>=2*l.PI_OVER_THREE)?L.splitPolygonsOnEquator(s,e,o,i):s}function se(t,e,o,n){if(e.height>=l.PI||e.width>=l.PI)return mt.fromRectangle(e,void 0,Et);let s=t,i=Z.fromPoints(s,o);return L.computeBoundingRectangle(i.plane.normal,i.projectPointOntoPlane.bind(i),s,n,Et)}W.createGeometry=function(t){let e=t._vertexFormat,o=t._ellipsoid,n=t._granularity,s=t._stRotation,i=t._polygonHierarchy,r=t._perPositionHeight,f=t._closeTop,d=t._closeBottom,p=t._arcType,w=t._textureCoordinates,a=P(w),H=i.positions;if(H.length<3)return;let x=t.rectangle,M=L.polygonsFromHierarchy(i,a,ne(x,H,o),!r,o,re(x,o,p,r)),C=M.hierarchy,R=M.polygons,V=function(m){return m},u=a?L.polygonsFromHierarchy(w,!0,V,!1,o).polygons:void 0;if(C.length===0)return;let E=C[0].outerRing,A=se(E,x,o,s),F=[],T=t._height,y=t._extrudedHeight,_=t._perPositionHeightExtrude||!l.equalsEpsilon(T,y,0,l.EPSILON2),h={perPositionHeight:r,vertexFormat:e,geometry:void 0,rotationAxis:oe(x,E,o).plane.normal,projectTo2d:ie(x,E,o),boundingRectangle:A,ellipsoid:o,stRotation:s,textureCoordinates:void 0,bottom:!1,top:!0,wall:!1,extrude:!1,arcType:p},g;if(_)for(h.extrude=!0,h.top=f,h.bottom=d,h.shadowVolume=t._shadowVolume,h.offsetAttribute=t._offsetAttribute,g=0;g<R.length;g++){let m=qt(o,R[g],a?u[g]:void 0,n,C[g],r,f,d,e,p),I;f&&d?(I=m.topAndBottom,h.geometry=L.scaleToGeodeticHeightExtruded(I.geometry,T,y,o,r)):f?(I=m.topAndBottom,I.geometry.attributes.position.values=ot.scaleToGeodeticHeight(I.geometry.attributes.position.values,T,o,!r),h.geometry=I.geometry):d&&(I=m.topAndBottom,I.geometry.attributes.position.values=ot.scaleToGeodeticHeight(I.geometry.attributes.position.values,y,o,!0),h.geometry=I.geometry),(f||d)&&(h.wall=!1,I.geometry=gt(h),F.push(I));let B=m.walls;h.wall=!0;for(let k=0;k<B.length;k++){let N=B[k];h.geometry=L.scaleToGeodeticHeightExtruded(N.geometry,T,y,o,r),N.geometry=gt(h),F.push(N)}}else for(g=0;g<R.length;g++){let m=new rt({geometry:L.createGeometryFromPositions(o,R[g],a?u[g]:void 0,n,r,e,p)});if(m.geometry.attributes.position.values=ot.scaleToGeodeticHeight(m.geometry.attributes.position.values,T,o,!r),h.geometry=m.geometry,m.geometry=gt(h),P(t._offsetAttribute)){let I=m.geometry.attributes.position.values.length,B=t._offsetAttribute===lt.NONE?0:1,k=new Uint8Array(I/3).fill(B);m.geometry.attributes.applyOffset=new $({componentDatatype:X.UNSIGNED_BYTE,componentsPerAttribute:1,values:k})}F.push(m)}let j=bt.combineInstances(F)[0];j.attributes.position.values=new Float64Array(j.attributes.position.values),j.indices=ct.createTypedArray(j.attributes.position.values.length/3,j.indices);let G=j.attributes,K=Tt.fromVertices(G.position.values);return e.position||delete G.position,new ut({attributes:G,indices:j.indices,primitiveType:j.primitiveType,boundingSphere:K,offsetAttribute:t._offsetAttribute})};W.createShadowVolume=function(t,e,o){let n=t._granularity,s=t._ellipsoid,i=e(n,s),r=o(n,s);return new W({polygonHierarchy:t._polygonHierarchy,ellipsoid:s,stRotation:t._stRotation,granularity:n,perPositionHeight:!1,extrudedHeight:i,height:r,vertexFormat:q.POSITION_ONLY,shadowVolume:!0,arcType:t._arcType})};function ae(t){let e=-t._stRotation;if(e===0)return[0,0,0,1,1,0];let o=t._ellipsoid,n=t._polygonHierarchy.positions,s=t.rectangle;return ut._textureCoordinateRotationPoints(n,e,o,s)}Object.defineProperties(W.prototype,{rectangle:{get:function(){if(!P(this._rectangle)){let t=this._polygonHierarchy.positions;this._rectangle=W.computeRectangleFromPositions(t,this._ellipsoid,this._arcType)}return this._rectangle}},textureCoordinateRotationPoints:{get:function(){return P(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=ae(this)),this._textureCoordinateRotationPoints}}});var pt=W;function ce(t,e){return P(e)&&(t=pt.unpack(t,e)),t._ellipsoid=S.clone(t._ellipsoid),pt.createGeometry(t)}var Xe=ce;export{Xe as default};
|
|
@@ -1 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.142.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import{a}from"./chunk-BXPFAIYZ.js";import{a as P}from"./chunk-ITSDUOWL.js";import{a as F}from"./chunk-LUECBOIT.js";import{a as V}from"./chunk-VELRZYUL.js";import"./chunk-FYQCPFNB.js";import"./chunk-3R3BCVRR.js";import{a as C}from"./chunk-YNBY2HFD.js";import{a as M}from"./chunk-C4NHPSO2.js";import"./chunk-WTIPXHS3.js";import{a as W,b as D}from"./chunk-IPQQ2USK.js";import"./chunk-RH3WVPDR.js";import"./chunk-MUI5QV7K.js";import"./chunk-H6AHPUMX.js";import"./chunk-FMWRN5G2.js";import{a as G}from"./chunk-RU2T2U4O.js";import{a as B}from"./chunk-VZ4ER5HI.js";import{b as U,c as S,d as w}from"./chunk-LTHJTGXC.js";import{c as x}from"./chunk-XEBZTQHW.js";import"./chunk-6LZUEMFX.js";import"./chunk-AZCCS55A.js";import"./chunk-V74K6IQF.js";import{a as T}from"./chunk-5HZ2G332.js";import"./chunk-LKQXJXNV.js";import"./chunk-VXS2FTO4.js";import{c as y}from"./chunk-ZQTDDQLY.js";import{a as v,c as j}from"./chunk-U4VWQPTS.js";import{a as L}from"./chunk-GZABERXA.js";import{a as N,b as O}from"./chunk-WM6AKY6B.js";import{f as E}from"./chunk-6K4BWAPV.js";var Y=[],k=[];function K(e,t,r,b,l){let p=M.fromPoints(t,e).projectPointsOntoPlane(t,Y);D.computeWindingOrder2D(p)===W.CLOCKWISE&&(p.reverse(),t=t.slice().reverse());let n,i,o=t.length,c=0;if(b)for(n=new Float64Array(o*2*3),i=0;i<o;i++){let u=t[i],h=t[(i+1)%o];n[c++]=u.x,n[c++]=u.y,n[c++]=u.z,n[c++]=h.x,n[c++]=h.y,n[c++]=h.z}else{let u=0;if(l===P.GEODESIC)for(i=0;i<o;i++)u+=a.subdivideLineCount(t[i],t[(i+1)%o],r);else if(l===P.RHUMB)for(i=0;i<o;i++)u+=a.subdivideRhumbLineCount(e,t[i],t[(i+1)%o],r);for(n=new Float64Array(u*3),i=0;i<o;i++){let h;l===P.GEODESIC?h=a.subdivideLine(t[i],t[(i+1)%o],r,k):l===P.RHUMB&&(h=a.subdivideRhumbLine(e,t[i],t[(i+1)%o],r,k));let g=h.length;for(let d=0;d<g;++d)n[c++]=h[d]}}o=n.length/3;let f=o*2,m=G.createTypedArray(o,f);for(c=0,i=0;i<o-1;i++)m[c++]=i,m[c++]=i+1;return m[c++]=o-1,m[c++]=0,new F({geometry:new S({attributes:new B({position:new w({componentDatatype:T.DOUBLE,componentsPerAttribute:3,values:n})}),indices:m,primitiveType:U.LINES})})}function q(e,t,r,b,l){let p=M.fromPoints(t,e).projectPointsOntoPlane(t,Y);D.computeWindingOrder2D(p)===W.CLOCKWISE&&(p.reverse(),t=t.slice().reverse());let n,i,o=t.length,c=new Array(o),f=0;if(b)for(n=new Float64Array(o*2*3*2),i=0;i<o;++i){c[i]=f/3;let g=t[i],d=t[(i+1)%o];n[f++]=g.x,n[f++]=g.y,n[f++]=g.z,n[f++]=d.x,n[f++]=d.y,n[f++]=d.z}else{let g=0;if(l===P.GEODESIC)for(i=0;i<o;i++)g+=a.subdivideLineCount(t[i],t[(i+1)%o],r);else if(l===P.RHUMB)for(i=0;i<o;i++)g+=a.subdivideRhumbLineCount(e,t[i],t[(i+1)%o],r);for(n=new Float64Array(g*3*2),i=0;i<o;++i){c[i]=f/3;let d;l===P.GEODESIC?d=a.subdivideLine(t[i],t[(i+1)%o],r,k):l===P.RHUMB&&(d=a.subdivideRhumbLine(e,t[i],t[(i+1)%o],r,k));let _=d.length;for(let R=0;R<_;++R)n[f++]=d[R]}}o=n.length/6;let m=c.length,u=(o*2+m)*2,h=G.createTypedArray(o+m,u);for(f=0,i=0;i<o;++i)h[f++]=i,h[f++]=(i+1)%o,h[f++]=i+o,h[f++]=(i+1)%o+o;for(i=0;i<m;i++){let g=c[i];h[f++]=g,h[f++]=g+o}return new F({geometry:new S({attributes:new B({position:new w({componentDatatype:T.DOUBLE,componentsPerAttribute:3,values:n})}),indices:h,primitiveType:U.LINES})})}function A(e){if(O.typeOf.object("options",e),O.typeOf.object("options.polygonHierarchy",e.polygonHierarchy),e.perPositionHeight&&E(e.height))throw new N("Cannot use both options.perPositionHeight and options.height");if(E(e.arcType)&&e.arcType!==P.GEODESIC&&e.arcType!==P.RHUMB)throw new N("Invalid arcType. Valid options are ArcType.GEODESIC and ArcType.RHUMB.");let t=e.polygonHierarchy,r=e.ellipsoid??y.default,b=e.granularity??L.RADIANS_PER_DEGREE,l=e.perPositionHeight??!1,H=l&&E(e.extrudedHeight),p=e.arcType??P.GEODESIC,s=e.height??0,n=e.extrudedHeight??s;if(!H){let i=Math.max(s,n);n=Math.min(s,n),s=i}this._ellipsoid=y.clone(r),this._granularity=b,this._height=s,this._extrudedHeight=n,this._arcType=p,this._polygonHierarchy=t,this._perPositionHeight=l,this._perPositionHeightExtrude=H,this._offsetAttribute=e.offsetAttribute,this._workerName="createPolygonOutlineGeometry",this.packedLength=a.computeHierarchyPackedLength(t,v)+y.packedLength+8}A.pack=function(e,t,r){return O.typeOf.object("value",e),O.defined("array",t),r=r??0,r=a.packPolygonHierarchy(e._polygonHierarchy,t,r,v),y.pack(e._ellipsoid,t,r),r+=y.packedLength,t[r++]=e._height,t[r++]=e._extrudedHeight,t[r++]=e._granularity,t[r++]=e._perPositionHeightExtrude?1:0,t[r++]=e._perPositionHeight?1:0,t[r++]=e._arcType,t[r++]=e._offsetAttribute??-1,t[r]=e.packedLength,t};var J=y.clone(y.UNIT_SPHERE),Q={polygonHierarchy:{}};A.unpack=function(e,t,r){O.defined("array",e),t=t??0;let b=a.unpackPolygonHierarchy(e,t,v);t=b.startingIndex,delete b.startingIndex;let l=y.unpack(e,t,J);t+=y.packedLength;let H=e[t++],p=e[t++],s=e[t++],n=e[t++]===1,i=e[t++]===1,o=e[t++],c=e[t++],f=e[t];return E(r)||(r=new A(Q)),r._polygonHierarchy=b,r._ellipsoid=y.clone(l,r._ellipsoid),r._height=H,r._extrudedHeight=p,r._granularity=s,r._perPositionHeight=i,r._perPositionHeightExtrude=n,r._arcType=o,r._offsetAttribute=c===-1?void 0:c,r.packedLength=f,r};A.fromPositions=function(e){e=e??j.EMPTY_OBJECT,O.defined("options.positions",e.positions);let t={polygonHierarchy:{positions:e.positions},height:e.height,extrudedHeight:e.extrudedHeight,ellipsoid:e.ellipsoid,granularity:e.granularity,perPositionHeight:e.perPositionHeight,arcType:e.arcType,offsetAttribute:e.offsetAttribute};return new A(t)};A.createGeometry=function(e){let t=e._ellipsoid,r=e._granularity,b=e._polygonHierarchy,l=e._perPositionHeight,H=e._arcType,p=a.polygonOutlinesFromHierarchy(b,!l,t);if(p.length===0)return;let s,n=[],i=L.chordLength(r,t.maximumRadius),o=e._height,c=e._extrudedHeight,f=e._perPositionHeightExtrude||!L.equalsEpsilon(o,c,0,L.EPSILON2),m,u;if(f)for(u=0;u<p.length;u++){if(s=q(t,p[u],i,l,H),s.geometry=a.scaleToGeodeticHeightExtruded(s.geometry,o,c,t,l),E(e._offsetAttribute)){let d=s.geometry.attributes.position.values.length/3,_=new Uint8Array(d);e._offsetAttribute===C.TOP?_=_.fill(1,0,d/2):(m=e._offsetAttribute===C.NONE?0:1,_=_.fill(m)),s.geometry.attributes.applyOffset=new w({componentDatatype:T.UNSIGNED_BYTE,componentsPerAttribute:1,values:_})}n.push(s)}else for(u=0;u<p.length;u++){if(s=K(t,p[u],i,l,H),s.geometry.attributes.position.values=D.scaleToGeodeticHeight(s.geometry.attributes.position.values,o,t,!l),E(e._offsetAttribute)){let d=s.geometry.attributes.position.values.length;m=e._offsetAttribute===C.NONE?0:1;let _=new Uint8Array(d/3).fill(m);s.geometry.attributes.applyOffset=new w({componentDatatype:T.UNSIGNED_BYTE,componentsPerAttribute:1,values:_})}n.push(s)}let h=V.combineInstances(n)[0],g=x.fromVertices(h.attributes.position.values);return new S({attributes:h.attributes,indices:h.indices,primitiveType:h.primitiveType,boundingSphere:g,offsetAttribute:e._offsetAttribute})};var z=A;function X(e,t){return E(t)&&(e=z.unpack(e,t)),e._ellipsoid=y.clone(e._ellipsoid),z.createGeometry(e)}var Oe=X;export{Oe as default};
|
|
@@ -1 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.142.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import{a as m}from"./chunk-44VKZ44M.js";import{a as R}from"./chunk-ITSDUOWL.js";import{a as N}from"./chunk-AP7AMWJA.js";import"./chunk-K3YIAZU7.js";import{a as g}from"./chunk-K72DPWBT.js";import{a as le}from"./chunk-RH3WVPDR.js";import"./chunk-MUI5QV7K.js";import"./chunk-H6AHPUMX.js";import"./chunk-FMWRN5G2.js";import{a as se}from"./chunk-RU2T2U4O.js";import{a as ce}from"./chunk-VZ4ER5HI.js";import{a as ne,b as re,c as ie,d as x}from"./chunk-LTHJTGXC.js";import{c as oe}from"./chunk-XEBZTQHW.js";import"./chunk-6LZUEMFX.js";import"./chunk-AZCCS55A.js";import"./chunk-V74K6IQF.js";import{a as V}from"./chunk-5HZ2G332.js";import"./chunk-LKQXJXNV.js";import"./chunk-VXS2FTO4.js";import{c as u}from"./chunk-ZQTDDQLY.js";import{a as p,c as te}from"./chunk-U4VWQPTS.js";import{a as j}from"./chunk-GZABERXA.js";import{a as F}from"./chunk-WM6AKY6B.js";import{f as h}from"./chunk-6K4BWAPV.js";var me=[];function Ae(e,o,t,n,c){let s=me;s.length=c;let l,k=t.red,a=t.green,r=t.blue,w=t.alpha,E=n.red,i=n.green,f=n.blue,b=n.alpha;if(m.equals(t,n)){for(l=0;l<c;l++)s[l]=m.clone(t);return s}let G=(E-k)/c,z=(i-a)/c,M=(f-r)/c,S=(b-w)/c;for(l=0;l<c;l++)s[l]=new m(k+l*G,a+l*z,r+l*M,w+l*S);return s}function q(e){e=e??te.EMPTY_OBJECT;let o=e.positions,t=e.colors,n=e.width??1,c=e.colorsPerVertex??!1;if(!h(o)||o.length<2)throw new F("At least two positions are required.");if(typeof n!="number")throw new F("width must be a number");if(h(t)&&(c&&t.length<o.length||!c&&t.length<o.length-1))throw new F("colors has an invalid length.");this._positions=o,this._colors=t,this._width=n,this._colorsPerVertex=c,this._vertexFormat=g.clone(e.vertexFormat??g.DEFAULT),this._arcType=e.arcType??R.GEODESIC,this._granularity=e.granularity??j.RADIANS_PER_DEGREE,this._ellipsoid=u.clone(e.ellipsoid??u.default),this._workerName="createPolylineGeometry";let s=1+o.length*p.packedLength;s+=h(t)?1+t.length*m.packedLength:1,this.packedLength=s+u.packedLength+g.packedLength+4}q.pack=function(e,o,t){if(!h(e))throw new F("value is required");if(!h(o))throw new F("array is required");t=t??0;let n,c=e._positions,s=c.length;for(o[t++]=s,n=0;n<s;++n,t+=p.packedLength)p.pack(c[n],o,t);let l=e._colors;for(s=h(l)?l.length:0,o[t++]=s,n=0;n<s;++n,t+=m.packedLength)m.pack(l[n],o,t);return u.pack(e._ellipsoid,o,t),t+=u.packedLength,g.pack(e._vertexFormat,o,t),t+=g.packedLength,o[t++]=e._width,o[t++]=e._colorsPerVertex?1:0,o[t++]=e._arcType,o[t]=e._granularity,o};var de=u.clone(u.UNIT_SPHERE),ue=new g,O={positions:void 0,colors:void 0,ellipsoid:de,vertexFormat:ue,width:void 0,colorsPerVertex:void 0,arcType:void 0,granularity:void 0};q.unpack=function(e,o,t){if(!h(e))throw new F("array is required");o=o??0;let n,c=e[o++],s=new Array(c);for(n=0;n<c;++n,o+=p.packedLength)s[n]=p.unpack(e,o);c=e[o++];let l=c>0?new Array(c):void 0;for(n=0;n<c;++n,o+=m.packedLength)l[n]=m.unpack(e,o);let k=u.unpack(e,o,de);o+=u.packedLength;let a=g.unpack(e,o,ue);o+=g.packedLength;let r=e[o++],w=e[o++]===1,E=e[o++],i=e[o];return h(t)?(t._positions=s,t._colors=l,t._ellipsoid=u.clone(k,t._ellipsoid),t._vertexFormat=g.clone(a,t._vertexFormat),t._width=r,t._colorsPerVertex=w,t._arcType=E,t._granularity=i,t):(O.positions=s,O.colors=l,O.width=r,O.colorsPerVertex=w,O.arcType=E,O.granularity=i,new q(O))};var pe=new p,ae=new p,fe=new p,he=new p;q.createGeometry=function(e){let o=e._width,t=e._vertexFormat,n=e._colors,c=e._colorsPerVertex,s=e._arcType,l=e._granularity,k=e._ellipsoid,a,r,w,E=[],i=le(e._positions,p.equalsEpsilon,!1,E);if(h(n)&&E.length>0){let d=0,P=E[0];n=n.filter(function(U,L){let A=!1;return c?A=L===P||L===0&&P===1:A=L+1===P,A?(d++,P=E[d],!1):!0})}let f=i.length;if(f<2||o<=0)return;if(s===R.GEODESIC||s===R.RHUMB){let d,P;s===R.GEODESIC?(d=j.chordLength(l,k.maximumRadius),P=N.numberOfPoints):(d=l,P=N.numberOfPointsRhumbLine);let U=N.extractHeights(i,k);if(h(n)){let L=1;for(a=0;a<f-1;++a)L+=P(i[a],i[a+1],d);let A=new Array(L),y=0;for(a=0;a<f-1;++a){let X=i[a],Z=i[a+1],$=n[a],I=P(X,Z,d);if(c&&a<L){let _e=n[a+1],ee=Ae(X,Z,$,_e,I),Pe=ee.length;for(r=0;r<Pe;++r)A[y++]=ee[r]}else for(r=0;r<I;++r)A[y++]=m.clone($)}A[y]=m.clone(n[n.length-1]),n=A,me.length=0}s===R.GEODESIC?i=N.generateCartesianArc({positions:i,minDistance:d,ellipsoid:k,height:U}):i=N.generateCartesianRhumbArc({positions:i,granularity:d,ellipsoid:k,height:U})}f=i.length;let b=f*4-4,G=new Float64Array(b*3),z=new Float64Array(b*3),M=new Float64Array(b*3),S=new Float32Array(b*2),Y=t.st?new Float32Array(b*2):void 0,T=h(n)?new Uint8Array(b*4):void 0,H=0,K=0,Q=0,W=0,_;for(r=0;r<f;++r){r===0?(_=pe,p.subtract(i[0],i[1],_),p.add(i[0],_,_)):_=i[r-1],p.clone(_,fe),p.clone(i[r],ae),r===f-1?(_=pe,p.subtract(i[f-1],i[f-2],_),p.add(i[f-1],_,_)):_=i[r+1],p.clone(_,he);let d,P;h(T)&&(r!==0&&!c?d=n[r-1]:d=n[r],r!==f-1&&(P=n[r]));let U=r===0?2:0,L=r===f-1?2:4;for(w=U;w<L;++w){p.pack(ae,G,H),p.pack(fe,z,H),p.pack(he,M,H),H+=3;let A=w-2<0?-1:1;if(S[K++]=2*(w%2)-1,S[K++]=A*o,t.st&&(Y[Q++]=r/(f-1),Y[Q++]=Math.max(S[K-2],0)),h(T)){let y=w<2?d:P;T[W++]=m.floatToByte(y.red),T[W++]=m.floatToByte(y.green),T[W++]=m.floatToByte(y.blue),T[W++]=m.floatToByte(y.alpha)}}}let D=new ce;D.position=new x({componentDatatype:V.DOUBLE,componentsPerAttribute:3,values:G}),D.prevPosition=new x({componentDatatype:V.DOUBLE,componentsPerAttribute:3,values:z}),D.nextPosition=new x({componentDatatype:V.DOUBLE,componentsPerAttribute:3,values:M}),D.expandAndWidth=new x({componentDatatype:V.FLOAT,componentsPerAttribute:2,values:S}),t.st&&(D.st=new x({componentDatatype:V.FLOAT,componentsPerAttribute:2,values:Y})),h(T)&&(D.color=new x({componentDatatype:V.UNSIGNED_BYTE,componentsPerAttribute:4,values:T,normalize:!0}));let v=se.createTypedArray(b,f*6-6),C=0,B=0,we=f-1;for(r=0;r<we;++r)v[B++]=C,v[B++]=C+2,v[B++]=C+1,v[B++]=C+1,v[B++]=C+2,v[B++]=C+3,C+=4;return new ie({attributes:D,indices:v,primitiveType:re.TRIANGLES,boundingSphere:oe.fromPoints(i),geometryType:ne.POLYLINES})};var J=q;function ge(e,o){return h(o)&&(e=J.unpack(e,o)),e._ellipsoid=u.clone(e._ellipsoid),J.createGeometry(e)}var We=ge;export{We as default};
|
|
@@ -1 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.142.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import{a as W}from"./chunk-UHTXIDKA.js";import{a as U}from"./chunk-VELRZYUL.js";import"./chunk-FYQCPFNB.js";import"./chunk-3R3BCVRR.js";import{a as x,b as I,c as j}from"./chunk-OS2CBN2U.js";import"./chunk-AP7AMWJA.js";import"./chunk-K3YIAZU7.js";import{a as g}from"./chunk-K72DPWBT.js";import"./chunk-C4NHPSO2.js";import"./chunk-WTIPXHS3.js";import{a as $,b as M}from"./chunk-IPQQ2USK.js";import{a as Z}from"./chunk-RH3WVPDR.js";import"./chunk-MUI5QV7K.js";import"./chunk-H6AHPUMX.js";import"./chunk-FMWRN5G2.js";import{a as X}from"./chunk-RU2T2U4O.js";import{a as Q}from"./chunk-VZ4ER5HI.js";import{b as V,c as Y,d as B}from"./chunk-LTHJTGXC.js";import{c as K}from"./chunk-XEBZTQHW.js";import"./chunk-6LZUEMFX.js";import"./chunk-AZCCS55A.js";import"./chunk-V74K6IQF.js";import{a as N}from"./chunk-5HZ2G332.js";import"./chunk-LKQXJXNV.js";import"./chunk-VXS2FTO4.js";import{b as D,c as f}from"./chunk-ZQTDDQLY.js";import{a as E,c as J}from"./chunk-U4VWQPTS.js";import{a as H}from"./chunk-GZABERXA.js";import{a as A}from"./chunk-WM6AKY6B.js";import{f as _}from"./chunk-6K4BWAPV.js";function oe(t,e,n,o){let m=new Q;o.position&&(m.position=new B({componentDatatype:N.DOUBLE,componentsPerAttribute:3,values:t}));let i=e.length,u=t.length/3,w=(u-i*2)/(i*2),L=M.triangulate(e),R=(w-1)*i*6+L.length*2,r=X.createTypedArray(u,R),l,s,d,T,b,F,q=i*2,p=0;for(l=0;l<w-1;l++){for(s=0;s<i-1;s++)d=s*2+l*i*2,F=d+q,T=d+1,b=T+q,r[p++]=T,r[p++]=d,r[p++]=b,r[p++]=b,r[p++]=d,r[p++]=F;d=i*2-2+l*i*2,T=d+1,b=T+q,F=d+q,r[p++]=T,r[p++]=d,r[p++]=b,r[p++]=b,r[p++]=d,r[p++]=F}if(o.st||o.tangent||o.bitangent){let c=new Float32Array(u*2),C=1/(w-1),P=1/n.height,O=n.height/2,y,a,h=0;for(l=0;l<w;l++){for(y=l*C,a=P*(e[0].y+O),c[h++]=y,c[h++]=a,s=1;s<i;s++)a=P*(e[s].y+O),c[h++]=y,c[h++]=a,c[h++]=y,c[h++]=a;a=P*(e[0].y+O),c[h++]=y,c[h++]=a}for(s=0;s<i;s++)y=0,a=P*(e[s].y+O),c[h++]=y,c[h++]=a;for(s=0;s<i;s++)y=(w-1)*C,a=P*(e[s].y+O),c[h++]=y,c[h++]=a;m.st=new B({componentDatatype:N.FLOAT,componentsPerAttribute:2,values:new Float32Array(c)})}let G=u-i*2;for(l=0;l<L.length;l+=3){let c=L[l]+G,C=L[l+1]+G,P=L[l+2]+G;r[p++]=c,r[p++]=C,r[p++]=P,r[p++]=P+i,r[p++]=C+i,r[p++]=c+i}let k=new Y({attributes:m,indices:r,boundingSphere:K.fromVertices(t),primitiveType:V.TRIANGLES});if(o.normal&&(k=U.computeNormal(k)),o.tangent||o.bitangent){try{k=U.computeTangentAndBitangent(k)}catch{I("polyline-volume-tangent-bitangent","Unable to compute tangents and bitangents for polyline volume geometry")}o.tangent||(k.attributes.tangent=void 0),o.bitangent||(k.attributes.bitangent=void 0),o.st||(k.attributes.st=void 0)}return k}function v(t){t=t??J.EMPTY_OBJECT;let e=t.polylinePositions,n=t.shapePositions;if(!_(e))throw new A("options.polylinePositions is required.");if(!_(n))throw new A("options.shapePositions is required.");this._positions=e,this._shape=n,this._ellipsoid=f.clone(t.ellipsoid??f.default),this._cornerType=t.cornerType??x.ROUNDED,this._vertexFormat=g.clone(t.vertexFormat??g.DEFAULT),this._granularity=t.granularity??H.RADIANS_PER_DEGREE,this._workerName="createPolylineVolumeGeometry";let o=1+e.length*E.packedLength;o+=1+n.length*D.packedLength,this.packedLength=o+f.packedLength+g.packedLength+2}v.pack=function(t,e,n){if(!_(t))throw new A("value is required");if(!_(e))throw new A("array is required");n=n??0;let o,m=t._positions,i=m.length;for(e[n++]=i,o=0;o<i;++o,n+=E.packedLength)E.pack(m[o],e,n);let u=t._shape;for(i=u.length,e[n++]=i,o=0;o<i;++o,n+=D.packedLength)D.pack(u[o],e,n);return f.pack(t._ellipsoid,e,n),n+=f.packedLength,g.pack(t._vertexFormat,e,n),n+=g.packedLength,e[n++]=t._cornerType,e[n]=t._granularity,e};var ee=f.clone(f.UNIT_SPHERE),te=new g,S={polylinePositions:void 0,shapePositions:void 0,ellipsoid:ee,vertexFormat:te,cornerType:void 0,granularity:void 0};v.unpack=function(t,e,n){if(!_(t))throw new A("array is required");e=e??0;let o,m=t[e++],i=new Array(m);for(o=0;o<m;++o,e+=E.packedLength)i[o]=E.unpack(t,e);m=t[e++];let u=new Array(m);for(o=0;o<m;++o,e+=D.packedLength)u[o]=D.unpack(t,e);let w=f.unpack(t,e,ee);e+=f.packedLength;let L=g.unpack(t,e,te);e+=g.packedLength;let R=t[e++],r=t[e];return _(n)?(n._positions=i,n._shape=u,n._ellipsoid=f.clone(w,n._ellipsoid),n._vertexFormat=g.clone(L,n._vertexFormat),n._cornerType=R,n._granularity=r,n):(S.polylinePositions=i,S.shapePositions=u,S.cornerType=R,S.granularity=r,new v(S))};var ne=new W;v.createGeometry=function(t){let e=t._positions,n=Z(e,E.equalsEpsilon),o=t._shape;if(o=j.removeDuplicatesFromShape(o),n.length<2||o.length<3)return;M.computeWindingOrder2D(o)===$.CLOCKWISE&&o.reverse();let m=W.fromPoints(o,ne),i=j.computePositions(n,o,m,t,!0);return oe(i,o,m,t._vertexFormat)};var z=v;function ie(t,e){return _(e)&&(t=z.unpack(t,e)),t._ellipsoid=f.clone(t._ellipsoid),z.createGeometry(t)}var Re=ie;export{Re as default};
|
|
@@ -1 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.142.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import{a as k}from"./chunk-UHTXIDKA.js";import{a as N,c as w}from"./chunk-OS2CBN2U.js";import"./chunk-AP7AMWJA.js";import"./chunk-K3YIAZU7.js";import"./chunk-C4NHPSO2.js";import"./chunk-WTIPXHS3.js";import{a as v,b as G}from"./chunk-IPQQ2USK.js";import{a as q}from"./chunk-RH3WVPDR.js";import"./chunk-MUI5QV7K.js";import"./chunk-H6AHPUMX.js";import"./chunk-FMWRN5G2.js";import{a as g}from"./chunk-RU2T2U4O.js";import{a as O}from"./chunk-VZ4ER5HI.js";import{b as A,c as R,d as S}from"./chunk-LTHJTGXC.js";import{c as C}from"./chunk-XEBZTQHW.js";import"./chunk-6LZUEMFX.js";import"./chunk-AZCCS55A.js";import"./chunk-V74K6IQF.js";import{a as b}from"./chunk-5HZ2G332.js";import"./chunk-LKQXJXNV.js";import"./chunk-VXS2FTO4.js";import{b as y,c as s}from"./chunk-ZQTDDQLY.js";import{a as d,c as D}from"./chunk-U4VWQPTS.js";import{a as T}from"./chunk-GZABERXA.js";import{a}from"./chunk-WM6AKY6B.js";import{f as u}from"./chunk-6K4BWAPV.js";function W(o,i){let t=new O;t.position=new S({componentDatatype:b.DOUBLE,componentsPerAttribute:3,values:o});let e=i.length,r=t.position.values.length/3,f=o.length/3/e,p=g.createTypedArray(r,2*e*(f+1)),m,n,l=0;m=0;let h=m*e;for(n=0;n<e-1;n++)p[l++]=n+h,p[l++]=n+h+1;for(p[l++]=e-1+h,p[l++]=h,m=f-1,h=m*e,n=0;n<e-1;n++)p[l++]=n+h,p[l++]=n+h+1;for(p[l++]=e-1+h,p[l++]=h,m=0;m<f-1;m++){let L=e*m,U=L+e;for(n=0;n<e;n++)p[l++]=n+L,p[l++]=n+U}return new R({attributes:t,indices:g.createTypedArray(r,p),boundingSphere:C.fromVertices(o),primitiveType:A.LINES})}function P(o){o=o??D.EMPTY_OBJECT;let i=o.polylinePositions,t=o.shapePositions;if(!u(i))throw new a("options.polylinePositions is required.");if(!u(t))throw new a("options.shapePositions is required.");this._positions=i,this._shape=t,this._ellipsoid=s.clone(o.ellipsoid??s.default),this._cornerType=o.cornerType??N.ROUNDED,this._granularity=o.granularity??T.RADIANS_PER_DEGREE,this._workerName="createPolylineVolumeOutlineGeometry";let e=1+i.length*d.packedLength;e+=1+t.length*y.packedLength,this.packedLength=e+s.packedLength+2}P.pack=function(o,i,t){if(!u(o))throw new a("value is required");if(!u(i))throw new a("array is required");t=t??0;let e,r=o._positions,c=r.length;for(i[t++]=c,e=0;e<c;++e,t+=d.packedLength)d.pack(r[e],i,t);let f=o._shape;for(c=f.length,i[t++]=c,e=0;e<c;++e,t+=y.packedLength)y.pack(f[e],i,t);return s.pack(o._ellipsoid,i,t),t+=s.packedLength,i[t++]=o._cornerType,i[t]=o._granularity,i};var B=s.clone(s.UNIT_SPHERE),_={polylinePositions:void 0,shapePositions:void 0,ellipsoid:B,height:void 0,cornerType:void 0,granularity:void 0};P.unpack=function(o,i,t){if(!u(o))throw new a("array is required");i=i??0;let e,r=o[i++],c=new Array(r);for(e=0;e<r;++e,i+=d.packedLength)c[e]=d.unpack(o,i);r=o[i++];let f=new Array(r);for(e=0;e<r;++e,i+=y.packedLength)f[e]=y.unpack(o,i);let p=s.unpack(o,i,B);i+=s.packedLength;let m=o[i++],n=o[i];return u(t)?(t._positions=c,t._shape=f,t._ellipsoid=s.clone(p,t._ellipsoid),t._cornerType=m,t._granularity=n,t):(_.polylinePositions=c,_.shapePositions=f,_.cornerType=m,_.granularity=n,new P(_))};var F=new k;P.createGeometry=function(o){let i=o._positions,t=q(i,d.equalsEpsilon),e=o._shape;if(e=w.removeDuplicatesFromShape(e),t.length<2||e.length<3)return;G.computeWindingOrder2D(e)===v.CLOCKWISE&&e.reverse();let r=k.fromPoints(e,F),c=w.computePositions(t,e,r,o,!1);return W(c,e)};var E=P;function M(o,i){return u(i)&&(o=E.unpack(o,i)),o._ellipsoid=s.clone(o._ellipsoid),E.createGeometry(o)}var he=M;export{he as default};
|