@vcmap/ui 5.0.0-rc.29 → 5.0.0-rc.31
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/build/buildHelpers.js +4 -3
- package/config/base.config.json +5 -4
- package/config/dev.config.json +8 -0
- package/config/graphFeatureInfo.config.json +1 -1
- package/config/projects.config.json +2 -2
- package/dist/assets/cesium/ThirdParty/Workers/basis_transcoder.js +1 -1
- package/dist/assets/cesium/Workers/chunk-227AJNOA.js +59 -0
- package/dist/assets/cesium/Workers/chunk-2R5O53JW.js +157 -0
- package/dist/assets/cesium/Workers/chunk-34YUDLRP.js +781 -0
- package/dist/assets/cesium/Workers/chunk-3W63OHNJ.js +100 -0
- package/dist/assets/cesium/Workers/chunk-4MFFIWUA.js +163 -0
- package/dist/assets/cesium/Workers/chunk-66QLLS45.js +218 -0
- package/dist/assets/cesium/Workers/chunk-6BTKZDRG.js +77 -0
- package/dist/assets/cesium/Workers/chunk-A4JVFBQ3.js +101 -0
- package/dist/assets/cesium/Workers/chunk-ABADGKYE.js +58 -0
- package/dist/assets/cesium/Workers/chunk-AFFLIKOH.js +353 -0
- package/dist/assets/cesium/Workers/chunk-AHKEZ2OE.js +629 -0
- package/dist/assets/cesium/Workers/chunk-C3SXRKRW.js +476 -0
- package/dist/assets/cesium/Workers/chunk-CCFQRR6D.js +55 -0
- package/dist/assets/cesium/Workers/chunk-CHHNOC2C.js +1860 -0
- package/dist/assets/cesium/Workers/chunk-CTELOFLA.js +196 -0
- package/dist/assets/cesium/Workers/chunk-DUHWWBQQ.js +3273 -0
- package/dist/assets/cesium/Workers/chunk-EW2GWJYB.js +44 -0
- package/dist/assets/cesium/Workers/chunk-GLZBE3ML.js +421 -0
- package/dist/assets/cesium/Workers/chunk-HARLBUOL.js +236 -0
- package/dist/assets/cesium/Workers/chunk-HQF437NJ.js +117 -0
- package/dist/assets/cesium/Workers/chunk-IPA4EACJ.js +368 -0
- package/dist/assets/cesium/Workers/chunk-J3JY6I2C.js +1009 -0
- package/dist/assets/cesium/Workers/chunk-JB2LWGH4.js +390 -0
- package/dist/assets/cesium/Workers/chunk-JS3AW5BK.js +634 -0
- package/dist/assets/cesium/Workers/chunk-K36FEYS7.js +452 -0
- package/dist/assets/cesium/Workers/chunk-KD4Y7CZL.js +400 -0
- package/dist/assets/cesium/Workers/chunk-KTJSNCK4.js +842 -0
- package/dist/assets/cesium/Workers/chunk-LLUNNUJV.js +258 -0
- package/dist/assets/cesium/Workers/{package.js → chunk-MPAZH4BF.js} +13 -2
- package/dist/assets/cesium/Workers/chunk-MYZB7C4T.js +1258 -0
- package/dist/assets/cesium/Workers/chunk-N3JIFFX2.js +501 -0
- package/dist/assets/cesium/Workers/chunk-O5AMBQ36.js +430 -0
- package/dist/assets/cesium/Workers/chunk-OAVNIRB4.js +124 -0
- package/dist/assets/cesium/Workers/chunk-OYFCF4PL.js +171 -0
- package/dist/assets/cesium/Workers/chunk-OZJDGN5F.js +1477 -0
- package/dist/assets/cesium/Workers/chunk-PCJWUS4M.js +2041 -0
- package/dist/assets/cesium/Workers/chunk-PFQBCKBM.js +8644 -0
- package/dist/assets/cesium/Workers/chunk-QIKODV5G.js +305 -0
- package/dist/assets/cesium/Workers/chunk-QJ3DFBH3.js +73 -0
- package/dist/assets/cesium/Workers/chunk-QMEMZIJI.js +138 -0
- package/dist/assets/cesium/Workers/chunk-QT3MPEMI.js +102 -0
- package/dist/assets/cesium/Workers/chunk-RP2A7BR5.js +289 -0
- package/dist/assets/cesium/Workers/chunk-RW6LU2CJ.js +138 -0
- package/dist/assets/cesium/Workers/chunk-TFC6TZ3S.js +757 -0
- package/dist/assets/cesium/Workers/chunk-V3NGATMV.js +693 -0
- package/dist/assets/cesium/Workers/chunk-VLGOATD6.js +1075 -0
- package/dist/assets/cesium/Workers/chunk-WXTV4ATB.js +39 -0
- package/dist/assets/cesium/Workers/chunk-X4SU25DT.js +302 -0
- package/dist/assets/cesium/Workers/chunk-XTY7B2N6.js +2716 -0
- package/dist/assets/cesium/Workers/chunk-XY7MGBKC.js +513 -0
- package/dist/assets/cesium/Workers/chunk-Z24VKNDO.js +834 -0
- package/dist/assets/cesium/Workers/chunk-ZA25DG4Y.js +684 -0
- package/dist/assets/cesium/Workers/chunk-ZFOBYDGF.js +73 -0
- package/dist/assets/cesium/Workers/combineGeometry.js +65 -15
- package/dist/assets/cesium/Workers/createBoxGeometry.js +55 -10
- package/dist/assets/cesium/Workers/createBoxOutlineGeometry.js +231 -310
- package/dist/assets/cesium/Workers/createCircleGeometry.js +185 -202
- package/dist/assets/cesium/Workers/createCircleOutlineGeometry.js +141 -155
- package/dist/assets/cesium/Workers/createCoplanarPolygonGeometry.js +477 -557
- package/dist/assets/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +218 -230
- package/dist/assets/cesium/Workers/createCorridorGeometry.js +1162 -1307
- package/dist/assets/cesium/Workers/createCorridorOutlineGeometry.js +533 -569
- package/dist/assets/cesium/Workers/createCylinderGeometry.js +57 -10
- package/dist/assets/cesium/Workers/createCylinderOutlineGeometry.js +224 -258
- package/dist/assets/cesium/Workers/createEllipseGeometry.js +68 -12
- package/dist/assets/cesium/Workers/createEllipseOutlineGeometry.js +61 -12
- package/dist/assets/cesium/Workers/createEllipsoidGeometry.js +56 -10
- package/dist/assets/cesium/Workers/createEllipsoidOutlineGeometry.js +58 -13
- package/dist/assets/cesium/Workers/createFrustumGeometry.js +55 -10
- package/dist/assets/cesium/Workers/createFrustumOutlineGeometry.js +226 -243
- package/dist/assets/cesium/Workers/createGeometry.js +143 -48
- package/dist/assets/cesium/Workers/createGroundPolylineGeometry.js +1484 -2011
- package/dist/assets/cesium/Workers/createPlaneGeometry.js +216 -243
- package/dist/assets/cesium/Workers/createPlaneOutlineGeometry.js +121 -113
- package/dist/assets/cesium/Workers/createPolygonGeometry.js +1041 -1327
- package/dist/assets/cesium/Workers/createPolygonOutlineGeometry.js +516 -657
- package/dist/assets/cesium/Workers/createPolylineGeometry.js +471 -547
- package/dist/assets/cesium/Workers/createPolylineVolumeGeometry.js +352 -384
- package/dist/assets/cesium/Workers/createPolylineVolumeOutlineGeometry.js +271 -295
- package/dist/assets/cesium/Workers/createRectangleGeometry.js +1128 -1331
- package/dist/assets/cesium/Workers/createRectangleOutlineGeometry.js +445 -500
- package/dist/assets/cesium/Workers/createSimplePolylineGeometry.js +381 -440
- package/dist/assets/cesium/Workers/createSphereGeometry.js +112 -118
- package/dist/assets/cesium/Workers/createSphereOutlineGeometry.js +112 -121
- package/dist/assets/cesium/Workers/createTaskProcessorWorker.js +32 -127
- package/dist/assets/cesium/Workers/createVectorTileClampedPolylines.js +462 -505
- package/dist/assets/cesium/Workers/createVectorTileGeometries.js +377 -436
- package/dist/assets/cesium/Workers/createVectorTilePoints.js +110 -77
- package/dist/assets/cesium/Workers/createVectorTilePolygons.js +369 -391
- package/dist/assets/cesium/Workers/createVectorTilePolylines.js +252 -244
- package/dist/assets/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +543 -615
- package/dist/assets/cesium/Workers/createVerticesFromHeightmap.js +2244 -2677
- package/dist/assets/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +682 -926
- package/dist/assets/cesium/Workers/createWallGeometry.js +459 -593
- package/dist/assets/cesium/Workers/createWallOutlineGeometry.js +324 -419
- package/dist/assets/cesium/Workers/decodeDraco.js +327 -347
- package/dist/assets/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +2530 -3567
- package/dist/assets/cesium/Workers/decodeI3S.js +765 -970
- package/dist/assets/cesium/Workers/transcodeKTX2.js +3353 -1464
- package/dist/assets/cesium/Workers/transferTypedArrayTest.js +3 -4
- package/dist/assets/cesium/Workers/upsampleQuantizedTerrainMesh.js +748 -953
- package/dist/assets/{cesium.16590b.js → cesium.77d0f7.js} +8915 -13165
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.74da2a.js → core.720589.js} +3421 -3365
- package/dist/assets/core.js +1 -1
- package/dist/assets/index-dd539204.js +1 -0
- package/dist/assets/{ol.50a512.js → ol.e48649.js} +4 -4
- package/dist/assets/ol.js +1 -1
- package/dist/assets/{ui.d3054c.css → ui.50452a.css} +2 -2
- package/dist/assets/{ui.d3054c.js → ui.50452a.js} +5312 -4776
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +2 -2
- package/dist/assets/{vuetify.946bd8.js → vuetify.f0a769.js} +1 -1
- package/dist/assets/vuetify.js +2 -2
- package/dist/index.html +27 -23
- package/index.html +23 -22
- package/index.js +6 -0
- package/package.json +5 -5
- package/plugins/@vcmap-show-case/form-inputs-example/FormInputsExample.vue +37 -1
- package/plugins/@vcmap-show-case/form-inputs-example/index.js +3 -0
- package/plugins/@vcmap-show-case/form-inputs-example/validation.js +11 -0
- package/plugins/@vcmap-show-case/plugin-editors/PluginEditors.vue +119 -0
- package/plugins/@vcmap-show-case/plugin-editors/index.js +41 -0
- package/plugins/@vcmap-show-case/plugin-editors/package.json +5 -0
- package/plugins/{@vcmap → @vcmap-show-case}/project-selector/ProjectSelectorComponent.vue +1 -1
- package/plugins/{@vcmap → @vcmap-show-case}/project-selector/config.json +2 -2
- package/plugins/{@vcmap → @vcmap-show-case}/project-selector/package.json +1 -1
- package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/package.json +1 -1
- package/plugins/@vcmap-show-case/style-input-example/styleExample.vue +0 -1
- package/plugins/@vcmap-show-case/table-example/DataTableExample.vue +1 -1
- package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/ThemeChangerComponent.vue +1 -1
- package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/config.json +2 -2
- package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/package.json +1 -1
- package/plugins/@vcmap-show-case/vector-properties-example/index.js +40 -0
- package/plugins/@vcmap-show-case/vector-properties-example/package.json +5 -0
- package/plugins/@vcmap-show-case/vector-properties-example/vectorPropertiesExample.vue +128 -0
- package/plugins/package.json +6 -2
- package/src/application/VcsAttributions.vue +27 -20
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue +290 -0
- package/src/components/form-inputs-controls/VcsSlider.vue +1 -0
- package/src/components/form-inputs-controls/VcsTextField.vue +9 -3
- package/src/components/icons/2DAreaIcon.vue +2 -17
- package/src/components/icons/2DDistanceIcon.vue +0 -3
- package/src/components/icons/3DAreaIcon.vue +2 -17
- package/src/components/icons/3DDistanceIcon.vue +0 -3
- package/src/components/icons/3DHeightIcon.vue +0 -3
- package/src/components/icons/AngleIcon.vue +0 -1
- package/src/components/icons/AssociationsIcon.vue +1 -3
- package/src/components/icons/AxisIcon.vue +0 -4
- package/src/components/icons/BoundingBoxIcon.vue +1 -4
- package/src/components/icons/CheckboxIcon.vue +0 -2
- package/src/components/icons/CheckboxIndeterminateIcon.vue +1 -5
- package/src/components/icons/CircleIcon.vue +1 -6
- package/src/components/icons/ClippingHorizontalIcon.vue +0 -1
- package/src/components/icons/ClippingIcon.vue +0 -1
- package/src/components/icons/ClippingVerticalIcon.vue +0 -1
- package/src/components/icons/ColorPickerIcon.vue +0 -1
- package/src/components/icons/ColorSwatchIcon.vue +0 -2
- package/src/components/icons/CommentIcon.vue +0 -1
- package/src/components/icons/CompassIcon.vue +0 -2
- package/src/components/icons/ComponentsIcon.vue +0 -1
- package/src/components/icons/ConeIcon.vue +1 -4
- package/src/components/icons/DimensionsHouseIcon.vue +0 -2
- package/src/components/icons/EditIcon.vue +0 -1
- package/src/components/icons/EditVerticesIcon.vue +0 -4
- package/src/components/icons/ElevationProfileIcon.vue +1 -13
- package/src/components/icons/ExportAreaIcon.vue +0 -1
- package/src/components/icons/ExportFlightIcon.vue +0 -1
- package/src/components/icons/ExportIcon.vue +12 -8
- package/src/components/icons/ExternalLinkIcon.vue +0 -2
- package/src/components/icons/FastForwardIcon.vue +0 -1
- package/src/components/icons/FilterIcon.vue +0 -1
- package/src/components/icons/GlobeNatureIcon.vue +0 -3
- package/src/components/icons/GroundIcon.vue +0 -1
- package/src/components/icons/HealthCareIndustriesIcon.vue +1 -11
- package/src/components/icons/HideIcon.vue +0 -1
- package/src/components/icons/HomePointIcon.vue +0 -1
- package/src/components/icons/HospitalsIcon.vue +1 -20
- package/src/components/icons/HouseIcon.vue +3 -13
- package/src/components/icons/ImportIcon.vue +6 -14
- package/src/components/icons/InfoIcon.vue +0 -2
- package/src/components/icons/KebabIcon.vue +1 -9
- package/src/components/icons/LabelIcon.vue +0 -2
- package/src/components/icons/LayersIcon.vue +1 -9
- package/src/components/icons/LegendIcon.vue +0 -1
- package/src/components/icons/LineIcon.vue +0 -2
- package/src/components/icons/LinkIcon.vue +0 -1
- package/src/components/icons/LogoutIcon.vue +0 -1
- package/src/components/icons/MapIcon.vue +0 -2
- package/src/components/icons/MenuIcon.vue +1 -5
- package/src/components/icons/MinusIcon.vue +0 -2
- package/src/components/icons/ObjectSelectIcon.vue +0 -2
- package/src/components/icons/ObliqueViewIcon.vue +0 -1
- package/src/components/icons/PdfIcon.vue +0 -1
- package/src/components/icons/PedestrianIcon.vue +0 -1
- package/src/components/icons/PenIcon.vue +0 -1
- package/src/components/icons/PlayCircleIcon.vue +1 -8
- package/src/components/icons/PlusIcon.vue +0 -2
- package/src/components/icons/PoiIcon.vue +0 -1
- package/src/components/icons/PointIcon.vue +2 -6
- package/src/components/icons/PointSelectIcon.vue +0 -1
- package/src/components/icons/PresentationModeIcon.vue +0 -1
- package/src/components/icons/ProgressIcon.vue +1 -1
- package/src/components/icons/QueryIcon.vue +0 -1
- package/src/components/icons/RectangleIcon.vue +1 -6
- package/src/components/icons/ReturnIcon.vue +0 -1
- package/src/components/icons/RewindIcon.vue +0 -1
- package/src/components/icons/RotateLeftIcon.vue +0 -1
- package/src/components/icons/RotateRightIcon.vue +0 -1
- package/src/components/icons/ScreenshotIcon.vue +1 -6
- package/src/components/icons/SearchIcon.vue +0 -1
- package/src/components/icons/ShadowIcon.vue +0 -2
- package/src/components/icons/ShapesIcon.vue +1 -4
- package/src/components/icons/ShareIcon.vue +0 -1
- package/src/components/icons/SimpleCircleFilledIcon.vue +0 -1
- package/src/components/icons/SimpleCircleHalfFilledIcon.vue +0 -1
- package/src/components/icons/SimpleCircleOutlinedIcon.vue +1 -7
- package/src/components/icons/SkipPreviousIcon.vue +1 -6
- package/src/components/icons/SplitViewIcon.vue +0 -1
- package/src/components/icons/TextStyleIcon.vue +0 -3
- package/src/components/icons/ThreeDimensionsIcon.vue +0 -1
- package/src/components/icons/ToolsIcon.vue +0 -1
- package/src/components/icons/TouchIcon.vue +0 -1
- package/src/components/icons/TriangleIcon.vue +0 -3
- package/src/components/icons/TwoDimensionsIcon.vue +0 -2
- package/src/components/icons/UploadIcon.vue +0 -1
- package/src/components/icons/UserProfileIcon.vue +0 -1
- package/src/components/icons/UserShareIcon.vue +0 -1
- package/src/components/icons/ViewpointFlightIcon.vue +0 -1
- package/src/components/icons/ViewpointIcon.vue +0 -1
- package/src/components/icons/Viewshed360Icon.vue +0 -1
- package/src/components/icons/ViewshedConeIcon.vue +0 -1
- package/src/components/icons/ViewshedIcon.vue +0 -1
- package/src/components/icons/WalkingIcon.vue +0 -1
- package/src/components/icons/WallIcon.vue +1 -4
- package/src/components/icons/WandIcon.vue +22 -70
- package/src/components/lists/VcsList.vue +18 -12
- package/src/components/plugins/AbstractConfigEditor.vue +84 -0
- package/src/components/style/VcsImageSelector.vue +6 -5
- package/src/components/style/VcsTextSelector.vue +1 -1
- package/src/components/tables/VcsDataTable.vue +1 -1
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +780 -0
- package/src/components/vector-properties/composables.js +93 -0
- package/src/contentTree/contentTreeCollection.js +30 -9
- package/src/i18n/de.js +41 -7
- package/src/i18n/en.js +39 -5
- package/src/i18n/i18nCollection.js +19 -65
- package/src/manager/buttonManager.js +4 -0
- package/src/manager/collectionManager/collectionComponent.js +1 -1
- package/src/manager/contextMenu/contextMenuManager.js +2 -0
- package/src/pluginHelper.js +57 -17
- package/src/vcsUiApp.js +25 -30
- package/src/vuePlugins/i18n.js +0 -8
- package/dist/assets/cesium/ThirdParty/Workers/draco_decoder_nodejs.js +0 -117
- package/dist/assets/cesium/Workers/ArcType-2d9abbbc.js +0 -37
- package/dist/assets/cesium/Workers/AttributeCompression-f9f6c717.js +0 -716
- package/dist/assets/cesium/Workers/AxisAlignedBoundingBox-4140c51f.js +0 -258
- package/dist/assets/cesium/Workers/BoundingRectangle-c714b156.js +0 -369
- package/dist/assets/cesium/Workers/BoxGeometry-6f3da43d.js +0 -884
- package/dist/assets/cesium/Workers/Check-6ede7e26.js +0 -290
- package/dist/assets/cesium/Workers/Color-8a565ff2.js +0 -2262
- package/dist/assets/cesium/Workers/ComponentDatatype-cf1fa08e.js +0 -341
- package/dist/assets/cesium/Workers/CoplanarPolygonGeometryLibrary-4b4d4096.js +0 -132
- package/dist/assets/cesium/Workers/CorridorGeometryLibrary-7b94502b.js +0 -498
- package/dist/assets/cesium/Workers/CylinderGeometry-ca070b87.js +0 -467
- package/dist/assets/cesium/Workers/CylinderGeometryLibrary-7bf291b4.js +0 -63
- package/dist/assets/cesium/Workers/EllipseGeometry-122e51fa.js +0 -1304
- package/dist/assets/cesium/Workers/EllipseGeometryLibrary-4d326efc.js +0 -366
- package/dist/assets/cesium/Workers/EllipseOutlineGeometry-16cc2bd7.js +0 -443
- package/dist/assets/cesium/Workers/EllipsoidGeodesic-5b3623dc.js +0 -520
- package/dist/assets/cesium/Workers/EllipsoidGeometry-cb148ca2.js +0 -637
- package/dist/assets/cesium/Workers/EllipsoidOutlineGeometry-0fa10c79.js +0 -454
- package/dist/assets/cesium/Workers/EllipsoidRhumbLine-ef872433.js +0 -741
- package/dist/assets/cesium/Workers/EllipsoidTangentPlane-6dd1b7af.js +0 -373
- package/dist/assets/cesium/Workers/EncodedCartesian3-57415c8a.js +0 -171
- package/dist/assets/cesium/Workers/FrustumGeometry-ee73037c.js +0 -2540
- package/dist/assets/cesium/Workers/GeometryAttribute-ff5b4fb1.js +0 -619
- package/dist/assets/cesium/Workers/GeometryAttributes-ad136444.js +0 -91
- package/dist/assets/cesium/Workers/GeometryInstance-34d9e21e.js +0 -121
- package/dist/assets/cesium/Workers/GeometryOffsetAttribute-9ad0019c.js +0 -16
- package/dist/assets/cesium/Workers/GeometryPipeline-1f8fbf05.js +0 -3690
- package/dist/assets/cesium/Workers/IndexDatatype-2643aa47.js +0 -200
- package/dist/assets/cesium/Workers/IntersectionTests-70d39ba9.js +0 -1836
- package/dist/assets/cesium/Workers/Math-0a2ac845.js +0 -1340
- package/dist/assets/cesium/Workers/Matrix2-e1298525.js +0 -7086
- package/dist/assets/cesium/Workers/Matrix3-41c58dde.js +0 -4283
- package/dist/assets/cesium/Workers/OrientedBoundingBox-159cf1d6.js +0 -1259
- package/dist/assets/cesium/Workers/Plane-4c3d403b.js +0 -309
- package/dist/assets/cesium/Workers/PolygonGeometryLibrary-076a5d25.js +0 -1074
- package/dist/assets/cesium/Workers/PolygonPipeline-b9f2810a.js +0 -1344
- package/dist/assets/cesium/Workers/PolylinePipeline-639192e0.js +0 -573
- package/dist/assets/cesium/Workers/PolylineVolumeGeometryLibrary-b73549fb.js +0 -781
- package/dist/assets/cesium/Workers/PrimitivePipeline-10ede1b6.js +0 -966
- package/dist/assets/cesium/Workers/RectangleGeometryLibrary-c35a7356.js +0 -280
- package/dist/assets/cesium/Workers/RuntimeError-ef395448.js +0 -68
- package/dist/assets/cesium/Workers/TerrainEncoding-668d242f.js +0 -1227
- package/dist/assets/cesium/Workers/Transforms-a2a85221.js +0 -14712
- package/dist/assets/cesium/Workers/VertexFormat-030f11ff.js +0 -312
- package/dist/assets/cesium/Workers/WallGeometryLibrary-1938bf0d.js +0 -211
- package/dist/assets/cesium/Workers/WebGLConstants-0b1ce7ba.js +0 -620
- package/dist/assets/cesium/Workers/WebMercatorProjection-13ed1a6e.js +0 -151
- package/dist/assets/cesium/Workers/arrayRemoveDuplicates-d2061e85.js +0 -129
- package/dist/assets/cesium/Workers/cesiumWorkerBootstrapper.js +0 -1363
- package/dist/assets/cesium/Workers/combine-d9581036.js +0 -82
- package/dist/assets/cesium/Workers/defaultValue-fe22d8c0.js +0 -51
- package/dist/assets/index-cb070eff.js +0 -1
- package/plugins/@vcmap/create-link/fallbackCreateLink.vue +0 -76
- package/plugins/@vcmap/create-link/index.js +0 -95
- package/plugins/@vcmap/create-link/package.json +0 -6
- package/plugins/@vcmap/search-nominatim/LICENSE.md +0 -13
- package/plugins/@vcmap/search-nominatim/README.md +0 -3
- package/plugins/@vcmap/search-nominatim/config.json +0 -3
- package/plugins/@vcmap/search-nominatim/index.js +0 -29
- package/plugins/@vcmap/search-nominatim/nominatim.js +0 -175
- package/plugins/@vcmap/search-nominatim/package.json +0 -9
- /package/dist/assets/{vue.30740e.js → vue.5d696e.js} +0 -0
- /package/dist/assets/{vuetify.946bd8.css → vuetify.f0a769.css} +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/ModulesListComponent.vue +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/README.md +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/de.json +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/en.json +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/project-selector/index.js +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/README.md +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/SimpleGraphComponent.vue +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/index.js +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/simple-graph/simpleGraphView.js +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/README.md +0 -0
- /package/plugins/{@vcmap → @vcmap-show-case}/theme-changer/index.js +0 -0
@@ -1,535 +1,492 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.109.3
|
5
|
+
*
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*
|
20
|
+
* Columbus View (Pat. Pend.)
|
21
|
+
*
|
22
|
+
* Portions licensed separately.
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
24
|
+
*/
|
25
|
+
|
26
|
+
import {
|
27
|
+
createTaskProcessorWorker_default
|
28
|
+
} from "./chunk-A4JVFBQ3.js";
|
29
|
+
import {
|
30
|
+
AttributeCompression_default
|
31
|
+
} from "./chunk-O5AMBQ36.js";
|
32
|
+
import {
|
33
|
+
IndexDatatype_default
|
34
|
+
} from "./chunk-RW6LU2CJ.js";
|
35
|
+
import {
|
36
|
+
combine_default
|
37
|
+
} from "./chunk-QJ3DFBH3.js";
|
38
|
+
import {
|
39
|
+
Rectangle_default
|
40
|
+
} from "./chunk-DUHWWBQQ.js";
|
41
|
+
import "./chunk-LLUNNUJV.js";
|
42
|
+
import {
|
43
|
+
Cartesian3_default,
|
44
|
+
Cartographic_default,
|
45
|
+
Ellipsoid_default
|
46
|
+
} from "./chunk-PCJWUS4M.js";
|
47
|
+
import {
|
48
|
+
Math_default
|
49
|
+
} from "./chunk-N3JIFFX2.js";
|
50
|
+
import "./chunk-AHKEZ2OE.js";
|
51
|
+
import "./chunk-ABADGKYE.js";
|
52
|
+
import "./chunk-WXTV4ATB.js";
|
53
|
+
import "./chunk-4MFFIWUA.js";
|
54
|
+
import "./chunk-6BTKZDRG.js";
|
55
|
+
|
56
|
+
// packages/engine/Source/Workers/createVectorTileClampedPolylines.js
|
57
|
+
var MAX_SHORT = 32767;
|
58
|
+
var MITER_BREAK = Math.cos(Math_default.toRadians(150));
|
59
|
+
var scratchBVCartographic = new Cartographic_default();
|
60
|
+
var scratchEncodedPosition = new Cartesian3_default();
|
61
|
+
function decodePositions(uBuffer, vBuffer, heightBuffer, rectangle, minimumHeight, maximumHeight, ellipsoid) {
|
62
|
+
const positionsLength = uBuffer.length;
|
63
|
+
const decodedPositions = new Float64Array(positionsLength * 3);
|
64
|
+
for (let i = 0; i < positionsLength; ++i) {
|
65
|
+
const u = uBuffer[i];
|
66
|
+
const v = vBuffer[i];
|
67
|
+
const h = heightBuffer[i];
|
68
|
+
const lon = Math_default.lerp(rectangle.west, rectangle.east, u / MAX_SHORT);
|
69
|
+
const lat = Math_default.lerp(
|
70
|
+
rectangle.south,
|
71
|
+
rectangle.north,
|
72
|
+
v / MAX_SHORT
|
73
|
+
);
|
74
|
+
const alt = Math_default.lerp(minimumHeight, maximumHeight, h / MAX_SHORT);
|
75
|
+
const cartographic = Cartographic_default.fromRadians(
|
76
|
+
lon,
|
77
|
+
lat,
|
78
|
+
alt,
|
79
|
+
scratchBVCartographic
|
80
|
+
);
|
81
|
+
const decodedPosition = ellipsoid.cartographicToCartesian(
|
82
|
+
cartographic,
|
83
|
+
scratchEncodedPosition
|
84
|
+
);
|
85
|
+
Cartesian3_default.pack(decodedPosition, decodedPositions, i * 3);
|
46
86
|
}
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
positionOffsets[countsLength] = offset;
|
57
|
-
return positionOffsets;
|
87
|
+
return decodedPositions;
|
88
|
+
}
|
89
|
+
function getPositionOffsets(counts) {
|
90
|
+
const countsLength = counts.length;
|
91
|
+
const positionOffsets = new Uint32Array(countsLength + 1);
|
92
|
+
let offset = 0;
|
93
|
+
for (let i = 0; i < countsLength; ++i) {
|
94
|
+
positionOffsets[i] = offset;
|
95
|
+
offset += counts[i];
|
58
96
|
}
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
}
|
85
|
-
counts[i] = updatedCount;
|
86
|
-
offset += count;
|
87
|
-
}
|
88
|
-
|
89
|
-
let nextAvailableIndex = 0;
|
90
|
-
for (let k = 0; k < positionsLength; k++) {
|
91
|
-
if (markRemoval[k] !== 1) {
|
92
|
-
uBuffer[nextAvailableIndex] = uBuffer[k];
|
93
|
-
vBuffer[nextAvailableIndex] = vBuffer[k];
|
94
|
-
heightBuffer[nextAvailableIndex] = heightBuffer[k];
|
95
|
-
nextAvailableIndex++;
|
97
|
+
positionOffsets[countsLength] = offset;
|
98
|
+
return positionOffsets;
|
99
|
+
}
|
100
|
+
var previousCompressedCartographicScratch = new Cartographic_default();
|
101
|
+
var currentCompressedCartographicScratch = new Cartographic_default();
|
102
|
+
function removeDuplicates(uBuffer, vBuffer, heightBuffer, counts) {
|
103
|
+
const countsLength = counts.length;
|
104
|
+
const positionsLength = uBuffer.length;
|
105
|
+
const markRemoval = new Uint8Array(positionsLength);
|
106
|
+
const previous = previousCompressedCartographicScratch;
|
107
|
+
const current = currentCompressedCartographicScratch;
|
108
|
+
let offset = 0;
|
109
|
+
for (let i = 0; i < countsLength; i++) {
|
110
|
+
const count = counts[i];
|
111
|
+
let updatedCount = count;
|
112
|
+
for (let j = 1; j < count; j++) {
|
113
|
+
const index = offset + j;
|
114
|
+
const previousIndex = index - 1;
|
115
|
+
current.longitude = uBuffer[index];
|
116
|
+
current.latitude = vBuffer[index];
|
117
|
+
previous.longitude = uBuffer[previousIndex];
|
118
|
+
previous.latitude = vBuffer[previousIndex];
|
119
|
+
if (Cartographic_default.equals(current, previous)) {
|
120
|
+
updatedCount--;
|
121
|
+
markRemoval[previousIndex] = 1;
|
96
122
|
}
|
97
123
|
}
|
124
|
+
counts[i] = updatedCount;
|
125
|
+
offset += count;
|
98
126
|
}
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
this.startFaceNormalAndVertexCornerIds = new Float32Array(vec4Floats);
|
108
|
-
this.endPositionAndHeights = new Float32Array(vec4Floats);
|
109
|
-
this.endFaceNormalAndHalfWidths = new Float32Array(vec4Floats);
|
110
|
-
this.vertexBatchIds = new Uint16Array(vertexCount);
|
111
|
-
|
112
|
-
this.indices = IndexDatatype.IndexDatatype.createTypedArray(vertexCount, 36 * volumesCount);
|
113
|
-
|
114
|
-
this.vec3Offset = 0;
|
115
|
-
this.vec4Offset = 0;
|
116
|
-
this.batchIdOffset = 0;
|
117
|
-
this.indexOffset = 0;
|
118
|
-
|
119
|
-
this.volumeStartIndex = 0;
|
127
|
+
let nextAvailableIndex = 0;
|
128
|
+
for (let k = 0; k < positionsLength; k++) {
|
129
|
+
if (markRemoval[k] !== 1) {
|
130
|
+
uBuffer[nextAvailableIndex] = uBuffer[k];
|
131
|
+
vBuffer[nextAvailableIndex] = vBuffer[k];
|
132
|
+
heightBuffer[nextAvailableIndex] = heightBuffer[k];
|
133
|
+
nextAvailableIndex++;
|
134
|
+
}
|
120
135
|
}
|
121
|
-
|
122
|
-
|
123
|
-
const
|
124
|
-
|
125
|
-
|
126
|
-
|
136
|
+
}
|
137
|
+
function VertexAttributesAndIndices(volumesCount) {
|
138
|
+
const vertexCount = volumesCount * 8;
|
139
|
+
const vec3Floats = vertexCount * 3;
|
140
|
+
const vec4Floats = vertexCount * 4;
|
141
|
+
this.startEllipsoidNormals = new Float32Array(vec3Floats);
|
142
|
+
this.endEllipsoidNormals = new Float32Array(vec3Floats);
|
143
|
+
this.startPositionAndHeights = new Float32Array(vec4Floats);
|
144
|
+
this.startFaceNormalAndVertexCornerIds = new Float32Array(vec4Floats);
|
145
|
+
this.endPositionAndHeights = new Float32Array(vec4Floats);
|
146
|
+
this.endFaceNormalAndHalfWidths = new Float32Array(vec4Floats);
|
147
|
+
this.vertexBatchIds = new Uint16Array(vertexCount);
|
148
|
+
this.indices = IndexDatatype_default.createTypedArray(vertexCount, 36 * volumesCount);
|
149
|
+
this.vec3Offset = 0;
|
150
|
+
this.vec4Offset = 0;
|
151
|
+
this.batchIdOffset = 0;
|
152
|
+
this.indexOffset = 0;
|
153
|
+
this.volumeStartIndex = 0;
|
154
|
+
}
|
155
|
+
var towardCurrScratch = new Cartesian3_default();
|
156
|
+
var towardNextScratch = new Cartesian3_default();
|
157
|
+
function computeMiteredNormal(previousPosition, position, nextPosition, ellipsoidSurfaceNormal, result) {
|
158
|
+
const towardNext = Cartesian3_default.subtract(
|
127
159
|
nextPosition,
|
128
|
-
|
129
|
-
|
130
|
-
)
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
160
|
+
position,
|
161
|
+
towardNextScratch
|
162
|
+
);
|
163
|
+
let towardCurr = Cartesian3_default.subtract(
|
164
|
+
position,
|
165
|
+
previousPosition,
|
166
|
+
towardCurrScratch
|
167
|
+
);
|
168
|
+
Cartesian3_default.normalize(towardNext, towardNext);
|
169
|
+
Cartesian3_default.normalize(towardCurr, towardCurr);
|
170
|
+
if (Cartesian3_default.dot(towardNext, towardCurr) < MITER_BREAK) {
|
171
|
+
towardCurr = Cartesian3_default.multiplyByScalar(
|
172
|
+
towardCurr,
|
173
|
+
-1,
|
139
174
|
towardCurrScratch
|
140
175
|
);
|
141
|
-
Matrix3.Cartesian3.normalize(towardNext, towardNext);
|
142
|
-
Matrix3.Cartesian3.normalize(towardCurr, towardCurr);
|
143
|
-
|
144
|
-
if (Matrix3.Cartesian3.dot(towardNext, towardCurr) < MITER_BREAK) {
|
145
|
-
towardCurr = Matrix3.Cartesian3.multiplyByScalar(
|
146
|
-
towardCurr,
|
147
|
-
-1.0,
|
148
|
-
towardCurrScratch
|
149
|
-
);
|
150
|
-
}
|
151
|
-
|
152
|
-
Matrix3.Cartesian3.add(towardNext, towardCurr, result);
|
153
|
-
if (Matrix3.Cartesian3.equals(result, Matrix3.Cartesian3.ZERO)) {
|
154
|
-
result = Matrix3.Cartesian3.subtract(previousPosition, position);
|
155
|
-
}
|
156
|
-
|
157
|
-
// Make sure the normal is orthogonal to the ellipsoid surface normal
|
158
|
-
Matrix3.Cartesian3.cross(result, ellipsoidSurfaceNormal, result);
|
159
|
-
Matrix3.Cartesian3.cross(ellipsoidSurfaceNormal, result, result);
|
160
|
-
Matrix3.Cartesian3.normalize(result, result);
|
161
|
-
return result;
|
162
176
|
}
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
177
|
+
Cartesian3_default.add(towardNext, towardCurr, result);
|
178
|
+
if (Cartesian3_default.equals(result, Cartesian3_default.ZERO)) {
|
179
|
+
result = Cartesian3_default.subtract(previousPosition, position);
|
180
|
+
}
|
181
|
+
Cartesian3_default.cross(result, ellipsoidSurfaceNormal, result);
|
182
|
+
Cartesian3_default.cross(ellipsoidSurfaceNormal, result, result);
|
183
|
+
Cartesian3_default.normalize(result, result);
|
184
|
+
return result;
|
185
|
+
}
|
186
|
+
var REFERENCE_INDICES = [
|
187
|
+
0,
|
188
|
+
2,
|
189
|
+
6,
|
190
|
+
0,
|
191
|
+
6,
|
192
|
+
4,
|
193
|
+
// right
|
194
|
+
0,
|
195
|
+
1,
|
196
|
+
3,
|
197
|
+
0,
|
198
|
+
3,
|
199
|
+
2,
|
200
|
+
// start face
|
201
|
+
0,
|
202
|
+
4,
|
203
|
+
5,
|
204
|
+
0,
|
205
|
+
5,
|
206
|
+
1,
|
207
|
+
// bottom
|
208
|
+
5,
|
209
|
+
3,
|
210
|
+
1,
|
211
|
+
5,
|
212
|
+
7,
|
213
|
+
3,
|
214
|
+
// left
|
215
|
+
7,
|
216
|
+
5,
|
217
|
+
4,
|
218
|
+
7,
|
219
|
+
4,
|
220
|
+
6,
|
221
|
+
// end face
|
222
|
+
7,
|
223
|
+
6,
|
224
|
+
2,
|
225
|
+
7,
|
226
|
+
2,
|
227
|
+
3
|
228
|
+
// top
|
229
|
+
];
|
230
|
+
var REFERENCE_INDICES_LENGTH = REFERENCE_INDICES.length;
|
231
|
+
var positionScratch = new Cartesian3_default();
|
232
|
+
var scratchStartEllipsoidNormal = new Cartesian3_default();
|
233
|
+
var scratchStartFaceNormal = new Cartesian3_default();
|
234
|
+
var scratchEndEllipsoidNormal = new Cartesian3_default();
|
235
|
+
var scratchEndFaceNormal = new Cartesian3_default();
|
236
|
+
VertexAttributesAndIndices.prototype.addVolume = function(preStartRTC, startRTC, endRTC, postEndRTC, startHeight, endHeight, halfWidth, batchId, center, ellipsoid) {
|
237
|
+
let position = Cartesian3_default.add(startRTC, center, positionScratch);
|
238
|
+
const startEllipsoidNormal = ellipsoid.geodeticSurfaceNormal(
|
239
|
+
position,
|
240
|
+
scratchStartEllipsoidNormal
|
241
|
+
);
|
242
|
+
position = Cartesian3_default.add(endRTC, center, positionScratch);
|
243
|
+
const endEllipsoidNormal = ellipsoid.geodeticSurfaceNormal(
|
244
|
+
position,
|
245
|
+
scratchEndEllipsoidNormal
|
246
|
+
);
|
247
|
+
const startFaceNormal = computeMiteredNormal(
|
219
248
|
preStartRTC,
|
220
249
|
startRTC,
|
221
250
|
endRTC,
|
251
|
+
startEllipsoidNormal,
|
252
|
+
scratchStartFaceNormal
|
253
|
+
);
|
254
|
+
const endFaceNormal = computeMiteredNormal(
|
222
255
|
postEndRTC,
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
endRTC,
|
251
|
-
startRTC,
|
252
|
-
endEllipsoidNormal,
|
253
|
-
scratchEndFaceNormal
|
256
|
+
endRTC,
|
257
|
+
startRTC,
|
258
|
+
endEllipsoidNormal,
|
259
|
+
scratchEndFaceNormal
|
260
|
+
);
|
261
|
+
const startEllipsoidNormals = this.startEllipsoidNormals;
|
262
|
+
const endEllipsoidNormals = this.endEllipsoidNormals;
|
263
|
+
const startPositionAndHeights = this.startPositionAndHeights;
|
264
|
+
const startFaceNormalAndVertexCornerIds = this.startFaceNormalAndVertexCornerIds;
|
265
|
+
const endPositionAndHeights = this.endPositionAndHeights;
|
266
|
+
const endFaceNormalAndHalfWidths = this.endFaceNormalAndHalfWidths;
|
267
|
+
const vertexBatchIds = this.vertexBatchIds;
|
268
|
+
let batchIdOffset = this.batchIdOffset;
|
269
|
+
let vec3Offset = this.vec3Offset;
|
270
|
+
let vec4Offset = this.vec4Offset;
|
271
|
+
let i;
|
272
|
+
for (i = 0; i < 8; i++) {
|
273
|
+
Cartesian3_default.pack(startEllipsoidNormal, startEllipsoidNormals, vec3Offset);
|
274
|
+
Cartesian3_default.pack(endEllipsoidNormal, endEllipsoidNormals, vec3Offset);
|
275
|
+
Cartesian3_default.pack(startRTC, startPositionAndHeights, vec4Offset);
|
276
|
+
startPositionAndHeights[vec4Offset + 3] = startHeight;
|
277
|
+
Cartesian3_default.pack(endRTC, endPositionAndHeights, vec4Offset);
|
278
|
+
endPositionAndHeights[vec4Offset + 3] = endHeight;
|
279
|
+
Cartesian3_default.pack(
|
280
|
+
startFaceNormal,
|
281
|
+
startFaceNormalAndVertexCornerIds,
|
282
|
+
vec4Offset
|
254
283
|
);
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
+
startFaceNormalAndVertexCornerIds[vec4Offset + 3] = i;
|
285
|
+
Cartesian3_default.pack(endFaceNormal, endFaceNormalAndHalfWidths, vec4Offset);
|
286
|
+
endFaceNormalAndHalfWidths[vec4Offset + 3] = halfWidth;
|
287
|
+
vertexBatchIds[batchIdOffset++] = batchId;
|
288
|
+
vec3Offset += 3;
|
289
|
+
vec4Offset += 4;
|
290
|
+
}
|
291
|
+
this.batchIdOffset = batchIdOffset;
|
292
|
+
this.vec3Offset = vec3Offset;
|
293
|
+
this.vec4Offset = vec4Offset;
|
294
|
+
const indices = this.indices;
|
295
|
+
const volumeStartIndex = this.volumeStartIndex;
|
296
|
+
const indexOffset = this.indexOffset;
|
297
|
+
for (i = 0; i < REFERENCE_INDICES_LENGTH; i++) {
|
298
|
+
indices[indexOffset + i] = REFERENCE_INDICES[i] + volumeStartIndex;
|
299
|
+
}
|
300
|
+
this.volumeStartIndex += 8;
|
301
|
+
this.indexOffset += REFERENCE_INDICES_LENGTH;
|
302
|
+
};
|
303
|
+
var scratchRectangle = new Rectangle_default();
|
304
|
+
var scratchEllipsoid = new Ellipsoid_default();
|
305
|
+
var scratchCenter = new Cartesian3_default();
|
306
|
+
var scratchPrev = new Cartesian3_default();
|
307
|
+
var scratchP0 = new Cartesian3_default();
|
308
|
+
var scratchP1 = new Cartesian3_default();
|
309
|
+
var scratchNext = new Cartesian3_default();
|
310
|
+
function createVectorTileClampedPolylines(parameters, transferableObjects) {
|
311
|
+
const encodedPositions = new Uint16Array(parameters.positions);
|
312
|
+
const widths = new Uint16Array(parameters.widths);
|
313
|
+
const counts = new Uint32Array(parameters.counts);
|
314
|
+
const batchIds = new Uint16Array(parameters.batchIds);
|
315
|
+
const rectangle = scratchRectangle;
|
316
|
+
const ellipsoid = scratchEllipsoid;
|
317
|
+
const center = scratchCenter;
|
318
|
+
const packedBuffer = new Float64Array(parameters.packedBuffer);
|
319
|
+
let offset = 0;
|
320
|
+
const minimumHeight = packedBuffer[offset++];
|
321
|
+
const maximumHeight = packedBuffer[offset++];
|
322
|
+
Rectangle_default.unpack(packedBuffer, offset, rectangle);
|
323
|
+
offset += Rectangle_default.packedLength;
|
324
|
+
Ellipsoid_default.unpack(packedBuffer, offset, ellipsoid);
|
325
|
+
offset += Ellipsoid_default.packedLength;
|
326
|
+
Cartesian3_default.unpack(packedBuffer, offset, center);
|
327
|
+
let i;
|
328
|
+
let positionsLength = encodedPositions.length / 3;
|
329
|
+
const uBuffer = encodedPositions.subarray(0, positionsLength);
|
330
|
+
const vBuffer = encodedPositions.subarray(
|
331
|
+
positionsLength,
|
332
|
+
2 * positionsLength
|
333
|
+
);
|
334
|
+
const heightBuffer = encodedPositions.subarray(
|
335
|
+
2 * positionsLength,
|
336
|
+
3 * positionsLength
|
337
|
+
);
|
338
|
+
AttributeCompression_default.zigZagDeltaDecode(uBuffer, vBuffer, heightBuffer);
|
339
|
+
removeDuplicates(uBuffer, vBuffer, heightBuffer, counts);
|
340
|
+
const countsLength = counts.length;
|
341
|
+
let volumesCount = 0;
|
342
|
+
for (i = 0; i < countsLength; i++) {
|
343
|
+
const polylinePositionCount = counts[i];
|
344
|
+
volumesCount += polylinePositionCount - 1;
|
345
|
+
}
|
346
|
+
const attribsAndIndices = new VertexAttributesAndIndices(volumesCount);
|
347
|
+
const positions = decodePositions(
|
348
|
+
uBuffer,
|
349
|
+
vBuffer,
|
350
|
+
heightBuffer,
|
351
|
+
rectangle,
|
352
|
+
minimumHeight,
|
353
|
+
maximumHeight,
|
354
|
+
ellipsoid,
|
355
|
+
center
|
356
|
+
);
|
357
|
+
positionsLength = uBuffer.length;
|
358
|
+
const positionsRTC = new Float32Array(positionsLength * 3);
|
359
|
+
for (i = 0; i < positionsLength; ++i) {
|
360
|
+
positionsRTC[i * 3] = positions[i * 3] - center.x;
|
361
|
+
positionsRTC[i * 3 + 1] = positions[i * 3 + 1] - center.y;
|
362
|
+
positionsRTC[i * 3 + 2] = positions[i * 3 + 2] - center.z;
|
363
|
+
}
|
364
|
+
let currentPositionIndex = 0;
|
365
|
+
let currentHeightIndex = 0;
|
366
|
+
for (i = 0; i < countsLength; i++) {
|
367
|
+
const polylineVolumeCount = counts[i] - 1;
|
368
|
+
const halfWidth = widths[i] * 0.5;
|
369
|
+
const batchId = batchIds[i];
|
370
|
+
const volumeFirstPositionIndex = currentPositionIndex;
|
371
|
+
for (let j = 0; j < polylineVolumeCount; j++) {
|
372
|
+
const volumeStart = Cartesian3_default.unpack(
|
373
|
+
positionsRTC,
|
374
|
+
currentPositionIndex,
|
375
|
+
scratchP0
|
284
376
|
);
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
this.indexOffset += REFERENCE_INDICES_LENGTH;
|
309
|
-
};
|
310
|
-
|
311
|
-
const scratchRectangle = new Matrix2.Rectangle();
|
312
|
-
const scratchEllipsoid = new Matrix3.Ellipsoid();
|
313
|
-
const scratchCenter = new Matrix3.Cartesian3();
|
314
|
-
|
315
|
-
const scratchPrev = new Matrix3.Cartesian3();
|
316
|
-
const scratchP0 = new Matrix3.Cartesian3();
|
317
|
-
const scratchP1 = new Matrix3.Cartesian3();
|
318
|
-
const scratchNext = new Matrix3.Cartesian3();
|
319
|
-
function createVectorTileClampedPolylines(parameters, transferableObjects) {
|
320
|
-
const encodedPositions = new Uint16Array(parameters.positions);
|
321
|
-
const widths = new Uint16Array(parameters.widths);
|
322
|
-
const counts = new Uint32Array(parameters.counts);
|
323
|
-
const batchIds = new Uint16Array(parameters.batchIds);
|
324
|
-
|
325
|
-
// Unpack tile decoding parameters
|
326
|
-
const rectangle = scratchRectangle;
|
327
|
-
const ellipsoid = scratchEllipsoid;
|
328
|
-
const center = scratchCenter;
|
329
|
-
const packedBuffer = new Float64Array(parameters.packedBuffer);
|
330
|
-
|
331
|
-
let offset = 0;
|
332
|
-
const minimumHeight = packedBuffer[offset++];
|
333
|
-
const maximumHeight = packedBuffer[offset++];
|
334
|
-
|
335
|
-
Matrix2.Rectangle.unpack(packedBuffer, offset, rectangle);
|
336
|
-
offset += Matrix2.Rectangle.packedLength;
|
337
|
-
|
338
|
-
Matrix3.Ellipsoid.unpack(packedBuffer, offset, ellipsoid);
|
339
|
-
offset += Matrix3.Ellipsoid.packedLength;
|
340
|
-
|
341
|
-
Matrix3.Cartesian3.unpack(packedBuffer, offset, center);
|
342
|
-
|
343
|
-
let i;
|
344
|
-
|
345
|
-
// Unpack positions and generate volumes
|
346
|
-
let positionsLength = encodedPositions.length / 3;
|
347
|
-
const uBuffer = encodedPositions.subarray(0, positionsLength);
|
348
|
-
const vBuffer = encodedPositions.subarray(
|
349
|
-
positionsLength,
|
350
|
-
2 * positionsLength
|
351
|
-
);
|
352
|
-
const heightBuffer = encodedPositions.subarray(
|
353
|
-
2 * positionsLength,
|
354
|
-
3 * positionsLength
|
355
|
-
);
|
356
|
-
AttributeCompression.AttributeCompression.zigZagDeltaDecode(uBuffer, vBuffer, heightBuffer);
|
357
|
-
|
358
|
-
removeDuplicates(uBuffer, vBuffer, heightBuffer, counts);
|
359
|
-
|
360
|
-
// Figure out how many volumes and how many vertices there will be.
|
361
|
-
const countsLength = counts.length;
|
362
|
-
let volumesCount = 0;
|
363
|
-
for (i = 0; i < countsLength; i++) {
|
364
|
-
const polylinePositionCount = counts[i];
|
365
|
-
volumesCount += polylinePositionCount - 1;
|
366
|
-
}
|
367
|
-
|
368
|
-
const attribsAndIndices = new VertexAttributesAndIndices(volumesCount);
|
369
|
-
|
370
|
-
const positions = decodePositions(
|
371
|
-
uBuffer,
|
372
|
-
vBuffer,
|
373
|
-
heightBuffer,
|
374
|
-
rectangle,
|
375
|
-
minimumHeight,
|
376
|
-
maximumHeight,
|
377
|
-
ellipsoid);
|
378
|
-
|
379
|
-
positionsLength = uBuffer.length;
|
380
|
-
const positionsRTC = new Float32Array(positionsLength * 3);
|
381
|
-
for (i = 0; i < positionsLength; ++i) {
|
382
|
-
positionsRTC[i * 3] = positions[i * 3] - center.x;
|
383
|
-
positionsRTC[i * 3 + 1] = positions[i * 3 + 1] - center.y;
|
384
|
-
positionsRTC[i * 3 + 2] = positions[i * 3 + 2] - center.z;
|
385
|
-
}
|
386
|
-
|
387
|
-
let currentPositionIndex = 0;
|
388
|
-
let currentHeightIndex = 0;
|
389
|
-
for (i = 0; i < countsLength; i++) {
|
390
|
-
const polylineVolumeCount = counts[i] - 1;
|
391
|
-
const halfWidth = widths[i] * 0.5;
|
392
|
-
const batchId = batchIds[i];
|
393
|
-
const volumeFirstPositionIndex = currentPositionIndex;
|
394
|
-
for (let j = 0; j < polylineVolumeCount; j++) {
|
395
|
-
const volumeStart = Matrix3.Cartesian3.unpack(
|
377
|
+
const volumeEnd = Cartesian3_default.unpack(
|
378
|
+
positionsRTC,
|
379
|
+
currentPositionIndex + 3,
|
380
|
+
scratchP1
|
381
|
+
);
|
382
|
+
let startHeight = heightBuffer[currentHeightIndex];
|
383
|
+
let endHeight = heightBuffer[currentHeightIndex + 1];
|
384
|
+
startHeight = Math_default.lerp(
|
385
|
+
minimumHeight,
|
386
|
+
maximumHeight,
|
387
|
+
startHeight / MAX_SHORT
|
388
|
+
);
|
389
|
+
endHeight = Math_default.lerp(
|
390
|
+
minimumHeight,
|
391
|
+
maximumHeight,
|
392
|
+
endHeight / MAX_SHORT
|
393
|
+
);
|
394
|
+
currentHeightIndex++;
|
395
|
+
let preStart = scratchPrev;
|
396
|
+
let postEnd = scratchNext;
|
397
|
+
if (j === 0) {
|
398
|
+
const finalPositionIndex = volumeFirstPositionIndex + polylineVolumeCount * 3;
|
399
|
+
const finalPosition = Cartesian3_default.unpack(
|
396
400
|
positionsRTC,
|
397
|
-
|
398
|
-
|
401
|
+
finalPositionIndex,
|
402
|
+
scratchPrev
|
399
403
|
);
|
400
|
-
|
404
|
+
if (Cartesian3_default.equals(finalPosition, volumeStart)) {
|
405
|
+
Cartesian3_default.unpack(positionsRTC, finalPositionIndex - 3, preStart);
|
406
|
+
} else {
|
407
|
+
const offsetPastStart = Cartesian3_default.subtract(
|
408
|
+
volumeStart,
|
409
|
+
volumeEnd,
|
410
|
+
scratchPrev
|
411
|
+
);
|
412
|
+
preStart = Cartesian3_default.add(offsetPastStart, volumeStart, scratchPrev);
|
413
|
+
}
|
414
|
+
} else {
|
415
|
+
Cartesian3_default.unpack(positionsRTC, currentPositionIndex - 3, preStart);
|
416
|
+
}
|
417
|
+
if (j === polylineVolumeCount - 1) {
|
418
|
+
const firstPosition = Cartesian3_default.unpack(
|
401
419
|
positionsRTC,
|
402
|
-
|
403
|
-
|
404
|
-
);
|
405
|
-
|
406
|
-
let startHeight = heightBuffer[currentHeightIndex];
|
407
|
-
let endHeight = heightBuffer[currentHeightIndex + 1];
|
408
|
-
startHeight = Math$1.CesiumMath.lerp(
|
409
|
-
minimumHeight,
|
410
|
-
maximumHeight,
|
411
|
-
startHeight / MAX_SHORT
|
420
|
+
volumeFirstPositionIndex,
|
421
|
+
scratchNext
|
412
422
|
);
|
413
|
-
|
414
|
-
|
415
|
-
maximumHeight,
|
416
|
-
endHeight / MAX_SHORT
|
417
|
-
);
|
418
|
-
|
419
|
-
currentHeightIndex++;
|
420
|
-
|
421
|
-
let preStart = scratchPrev;
|
422
|
-
let postEnd = scratchNext;
|
423
|
-
if (j === 0) {
|
424
|
-
// Check if this volume is like a loop
|
425
|
-
const finalPositionIndex =
|
426
|
-
volumeFirstPositionIndex + polylineVolumeCount * 3;
|
427
|
-
const finalPosition = Matrix3.Cartesian3.unpack(
|
423
|
+
if (Cartesian3_default.equals(firstPosition, volumeEnd)) {
|
424
|
+
Cartesian3_default.unpack(
|
428
425
|
positionsRTC,
|
429
|
-
|
430
|
-
|
426
|
+
volumeFirstPositionIndex + 3,
|
427
|
+
postEnd
|
431
428
|
);
|
432
|
-
if (Matrix3.Cartesian3.equals(finalPosition, volumeStart)) {
|
433
|
-
Matrix3.Cartesian3.unpack(positionsRTC, finalPositionIndex - 3, preStart);
|
434
|
-
} else {
|
435
|
-
const offsetPastStart = Matrix3.Cartesian3.subtract(
|
436
|
-
volumeStart,
|
437
|
-
volumeEnd,
|
438
|
-
scratchPrev
|
439
|
-
);
|
440
|
-
preStart = Matrix3.Cartesian3.add(offsetPastStart, volumeStart, scratchPrev);
|
441
|
-
}
|
442
429
|
} else {
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
if (j === polylineVolumeCount - 1) {
|
447
|
-
// Check if this volume is like a loop
|
448
|
-
const firstPosition = Matrix3.Cartesian3.unpack(
|
449
|
-
positionsRTC,
|
450
|
-
volumeFirstPositionIndex,
|
430
|
+
const offsetPastEnd = Cartesian3_default.subtract(
|
431
|
+
volumeEnd,
|
432
|
+
volumeStart,
|
451
433
|
scratchNext
|
452
434
|
);
|
453
|
-
|
454
|
-
Matrix3.Cartesian3.unpack(
|
455
|
-
positionsRTC,
|
456
|
-
volumeFirstPositionIndex + 3,
|
457
|
-
postEnd
|
458
|
-
);
|
459
|
-
} else {
|
460
|
-
const offsetPastEnd = Matrix3.Cartesian3.subtract(
|
461
|
-
volumeEnd,
|
462
|
-
volumeStart,
|
463
|
-
scratchNext
|
464
|
-
);
|
465
|
-
postEnd = Matrix3.Cartesian3.add(offsetPastEnd, volumeEnd, scratchNext);
|
466
|
-
}
|
467
|
-
} else {
|
468
|
-
Matrix3.Cartesian3.unpack(positionsRTC, currentPositionIndex + 6, postEnd);
|
435
|
+
postEnd = Cartesian3_default.add(offsetPastEnd, volumeEnd, scratchNext);
|
469
436
|
}
|
470
|
-
|
471
|
-
|
472
|
-
preStart,
|
473
|
-
volumeStart,
|
474
|
-
volumeEnd,
|
475
|
-
postEnd,
|
476
|
-
startHeight,
|
477
|
-
endHeight,
|
478
|
-
halfWidth,
|
479
|
-
batchId,
|
480
|
-
center,
|
481
|
-
ellipsoid
|
482
|
-
);
|
483
|
-
|
484
|
-
currentPositionIndex += 3;
|
437
|
+
} else {
|
438
|
+
Cartesian3_default.unpack(positionsRTC, currentPositionIndex + 6, postEnd);
|
485
439
|
}
|
440
|
+
attribsAndIndices.addVolume(
|
441
|
+
preStart,
|
442
|
+
volumeStart,
|
443
|
+
volumeEnd,
|
444
|
+
postEnd,
|
445
|
+
startHeight,
|
446
|
+
endHeight,
|
447
|
+
halfWidth,
|
448
|
+
batchId,
|
449
|
+
center,
|
450
|
+
ellipsoid
|
451
|
+
);
|
486
452
|
currentPositionIndex += 3;
|
487
|
-
currentHeightIndex++;
|
488
|
-
}
|
489
|
-
|
490
|
-
const indices = attribsAndIndices.indices;
|
491
|
-
|
492
|
-
transferableObjects.push(attribsAndIndices.startEllipsoidNormals.buffer);
|
493
|
-
transferableObjects.push(attribsAndIndices.endEllipsoidNormals.buffer);
|
494
|
-
transferableObjects.push(attribsAndIndices.startPositionAndHeights.buffer);
|
495
|
-
transferableObjects.push(
|
496
|
-
attribsAndIndices.startFaceNormalAndVertexCornerIds.buffer
|
497
|
-
);
|
498
|
-
transferableObjects.push(attribsAndIndices.endPositionAndHeights.buffer);
|
499
|
-
transferableObjects.push(attribsAndIndices.endFaceNormalAndHalfWidths.buffer);
|
500
|
-
transferableObjects.push(attribsAndIndices.vertexBatchIds.buffer);
|
501
|
-
transferableObjects.push(indices.buffer);
|
502
|
-
|
503
|
-
let results = {
|
504
|
-
indexDatatype:
|
505
|
-
indices.BYTES_PER_ELEMENT === 2
|
506
|
-
? IndexDatatype.IndexDatatype.UNSIGNED_SHORT
|
507
|
-
: IndexDatatype.IndexDatatype.UNSIGNED_INT,
|
508
|
-
startEllipsoidNormals: attribsAndIndices.startEllipsoidNormals.buffer,
|
509
|
-
endEllipsoidNormals: attribsAndIndices.endEllipsoidNormals.buffer,
|
510
|
-
startPositionAndHeights: attribsAndIndices.startPositionAndHeights.buffer,
|
511
|
-
startFaceNormalAndVertexCornerIds:
|
512
|
-
attribsAndIndices.startFaceNormalAndVertexCornerIds.buffer,
|
513
|
-
endPositionAndHeights: attribsAndIndices.endPositionAndHeights.buffer,
|
514
|
-
endFaceNormalAndHalfWidths:
|
515
|
-
attribsAndIndices.endFaceNormalAndHalfWidths.buffer,
|
516
|
-
vertexBatchIds: attribsAndIndices.vertexBatchIds.buffer,
|
517
|
-
indices: indices.buffer,
|
518
|
-
};
|
519
|
-
|
520
|
-
if (parameters.keepDecodedPositions) {
|
521
|
-
const positionOffsets = getPositionOffsets(counts);
|
522
|
-
transferableObjects.push(positions.buffer, positionOffsets.buffer);
|
523
|
-
results = combine.combine(results, {
|
524
|
-
decodedPositions: positions.buffer,
|
525
|
-
decodedPositionOffsets: positionOffsets.buffer,
|
526
|
-
});
|
527
453
|
}
|
528
|
-
|
529
|
-
|
454
|
+
currentPositionIndex += 3;
|
455
|
+
currentHeightIndex++;
|
530
456
|
}
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
457
|
+
const indices = attribsAndIndices.indices;
|
458
|
+
transferableObjects.push(attribsAndIndices.startEllipsoidNormals.buffer);
|
459
|
+
transferableObjects.push(attribsAndIndices.endEllipsoidNormals.buffer);
|
460
|
+
transferableObjects.push(attribsAndIndices.startPositionAndHeights.buffer);
|
461
|
+
transferableObjects.push(
|
462
|
+
attribsAndIndices.startFaceNormalAndVertexCornerIds.buffer
|
463
|
+
);
|
464
|
+
transferableObjects.push(attribsAndIndices.endPositionAndHeights.buffer);
|
465
|
+
transferableObjects.push(attribsAndIndices.endFaceNormalAndHalfWidths.buffer);
|
466
|
+
transferableObjects.push(attribsAndIndices.vertexBatchIds.buffer);
|
467
|
+
transferableObjects.push(indices.buffer);
|
468
|
+
let results = {
|
469
|
+
indexDatatype: indices.BYTES_PER_ELEMENT === 2 ? IndexDatatype_default.UNSIGNED_SHORT : IndexDatatype_default.UNSIGNED_INT,
|
470
|
+
startEllipsoidNormals: attribsAndIndices.startEllipsoidNormals.buffer,
|
471
|
+
endEllipsoidNormals: attribsAndIndices.endEllipsoidNormals.buffer,
|
472
|
+
startPositionAndHeights: attribsAndIndices.startPositionAndHeights.buffer,
|
473
|
+
startFaceNormalAndVertexCornerIds: attribsAndIndices.startFaceNormalAndVertexCornerIds.buffer,
|
474
|
+
endPositionAndHeights: attribsAndIndices.endPositionAndHeights.buffer,
|
475
|
+
endFaceNormalAndHalfWidths: attribsAndIndices.endFaceNormalAndHalfWidths.buffer,
|
476
|
+
vertexBatchIds: attribsAndIndices.vertexBatchIds.buffer,
|
477
|
+
indices: indices.buffer
|
478
|
+
};
|
479
|
+
if (parameters.keepDecodedPositions) {
|
480
|
+
const positionOffsets = getPositionOffsets(counts);
|
481
|
+
transferableObjects.push(positions.buffer, positionOffsets.buffer);
|
482
|
+
results = combine_default(results, {
|
483
|
+
decodedPositions: positions.buffer,
|
484
|
+
decodedPositionOffsets: positionOffsets.buffer
|
485
|
+
});
|
486
|
+
}
|
487
|
+
return results;
|
488
|
+
}
|
489
|
+
var createVectorTileClampedPolylines_default = createTaskProcessorWorker_default(createVectorTileClampedPolylines);
|
490
|
+
export {
|
491
|
+
createVectorTileClampedPolylines_default as default
|
492
|
+
};
|