@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,445 +1,386 @@
|
|
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
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
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
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
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
|
+
Color_default
|
28
|
+
} from "./chunk-JS3AW5BK.js";
|
29
|
+
import {
|
30
|
+
CylinderGeometry_default
|
31
|
+
} from "./chunk-KD4Y7CZL.js";
|
32
|
+
import "./chunk-ZFOBYDGF.js";
|
33
|
+
import {
|
34
|
+
EllipsoidGeometry_default
|
35
|
+
} from "./chunk-XY7MGBKC.js";
|
36
|
+
import {
|
37
|
+
createTaskProcessorWorker_default
|
38
|
+
} from "./chunk-A4JVFBQ3.js";
|
39
|
+
import {
|
40
|
+
BoxGeometry_default
|
41
|
+
} from "./chunk-ZA25DG4Y.js";
|
42
|
+
import "./chunk-MPAZH4BF.js";
|
43
|
+
import "./chunk-QMEMZIJI.js";
|
44
|
+
import {
|
45
|
+
IndexDatatype_default
|
46
|
+
} from "./chunk-RW6LU2CJ.js";
|
47
|
+
import "./chunk-EW2GWJYB.js";
|
48
|
+
import "./chunk-X4SU25DT.js";
|
49
|
+
import {
|
50
|
+
BoundingSphere_default
|
51
|
+
} from "./chunk-PFQBCKBM.js";
|
52
|
+
import "./chunk-QJ3DFBH3.js";
|
53
|
+
import {
|
54
|
+
Matrix4_default
|
55
|
+
} from "./chunk-DUHWWBQQ.js";
|
56
|
+
import "./chunk-LLUNNUJV.js";
|
57
|
+
import {
|
58
|
+
Cartesian3_default
|
59
|
+
} from "./chunk-PCJWUS4M.js";
|
60
|
+
import "./chunk-N3JIFFX2.js";
|
61
|
+
import "./chunk-AHKEZ2OE.js";
|
62
|
+
import "./chunk-ABADGKYE.js";
|
63
|
+
import "./chunk-WXTV4ATB.js";
|
64
|
+
import "./chunk-4MFFIWUA.js";
|
65
|
+
import {
|
66
|
+
defined_default
|
67
|
+
} from "./chunk-6BTKZDRG.js";
|
68
|
+
|
69
|
+
// packages/engine/Source/Scene/Vector3DTileBatch.js
|
70
|
+
function Vector3DTileBatch(options) {
|
71
|
+
this.offset = options.offset;
|
72
|
+
this.count = options.count;
|
73
|
+
this.color = options.color;
|
74
|
+
this.batchIds = options.batchIds;
|
75
|
+
}
|
76
|
+
var Vector3DTileBatch_default = Vector3DTileBatch;
|
77
|
+
|
78
|
+
// packages/engine/Source/Workers/createVectorTileGeometries.js
|
79
|
+
var scratchCartesian = new Cartesian3_default();
|
80
|
+
var packedBoxLength = Matrix4_default.packedLength + Cartesian3_default.packedLength;
|
81
|
+
var packedCylinderLength = Matrix4_default.packedLength + 2;
|
82
|
+
var packedEllipsoidLength = Matrix4_default.packedLength + Cartesian3_default.packedLength;
|
83
|
+
var packedSphereLength = Cartesian3_default.packedLength + 1;
|
84
|
+
var scratchModelMatrixAndBV = {
|
85
|
+
modelMatrix: new Matrix4_default(),
|
86
|
+
boundingVolume: new BoundingSphere_default()
|
87
|
+
};
|
88
|
+
function boxModelMatrixAndBoundingVolume(boxes, index) {
|
89
|
+
let boxIndex = index * packedBoxLength;
|
90
|
+
const dimensions = Cartesian3_default.unpack(boxes, boxIndex, scratchCartesian);
|
91
|
+
boxIndex += Cartesian3_default.packedLength;
|
92
|
+
const boxModelMatrix = Matrix4_default.unpack(
|
93
|
+
boxes,
|
94
|
+
boxIndex,
|
95
|
+
scratchModelMatrixAndBV.modelMatrix
|
96
|
+
);
|
97
|
+
Matrix4_default.multiplyByScale(boxModelMatrix, dimensions, boxModelMatrix);
|
98
|
+
const boundingVolume = scratchModelMatrixAndBV.boundingVolume;
|
99
|
+
Cartesian3_default.clone(Cartesian3_default.ZERO, boundingVolume.center);
|
100
|
+
boundingVolume.radius = Math.sqrt(3);
|
101
|
+
return scratchModelMatrixAndBV;
|
102
|
+
}
|
103
|
+
function cylinderModelMatrixAndBoundingVolume(cylinders, index) {
|
104
|
+
let cylinderIndex = index * packedCylinderLength;
|
105
|
+
const cylinderRadius = cylinders[cylinderIndex++];
|
106
|
+
const length = cylinders[cylinderIndex++];
|
107
|
+
const scale = Cartesian3_default.fromElements(
|
108
|
+
cylinderRadius,
|
109
|
+
cylinderRadius,
|
110
|
+
length,
|
111
|
+
scratchCartesian
|
112
|
+
);
|
113
|
+
const cylinderModelMatrix = Matrix4_default.unpack(
|
114
|
+
cylinders,
|
115
|
+
cylinderIndex,
|
116
|
+
scratchModelMatrixAndBV.modelMatrix
|
117
|
+
);
|
118
|
+
Matrix4_default.multiplyByScale(cylinderModelMatrix, scale, cylinderModelMatrix);
|
119
|
+
const boundingVolume = scratchModelMatrixAndBV.boundingVolume;
|
120
|
+
Cartesian3_default.clone(Cartesian3_default.ZERO, boundingVolume.center);
|
121
|
+
boundingVolume.radius = Math.sqrt(2);
|
122
|
+
return scratchModelMatrixAndBV;
|
123
|
+
}
|
124
|
+
function ellipsoidModelMatrixAndBoundingVolume(ellipsoids, index) {
|
125
|
+
let ellipsoidIndex = index * packedEllipsoidLength;
|
126
|
+
const radii = Cartesian3_default.unpack(ellipsoids, ellipsoidIndex, scratchCartesian);
|
127
|
+
ellipsoidIndex += Cartesian3_default.packedLength;
|
128
|
+
const ellipsoidModelMatrix = Matrix4_default.unpack(
|
129
|
+
ellipsoids,
|
130
|
+
ellipsoidIndex,
|
131
|
+
scratchModelMatrixAndBV.modelMatrix
|
132
|
+
);
|
133
|
+
Matrix4_default.multiplyByScale(ellipsoidModelMatrix, radii, ellipsoidModelMatrix);
|
134
|
+
const boundingVolume = scratchModelMatrixAndBV.boundingVolume;
|
135
|
+
Cartesian3_default.clone(Cartesian3_default.ZERO, boundingVolume.center);
|
136
|
+
boundingVolume.radius = 1;
|
137
|
+
return scratchModelMatrixAndBV;
|
138
|
+
}
|
139
|
+
function sphereModelMatrixAndBoundingVolume(spheres, index) {
|
140
|
+
let sphereIndex = index * packedSphereLength;
|
141
|
+
const sphereRadius = spheres[sphereIndex++];
|
142
|
+
const sphereTranslation = Cartesian3_default.unpack(
|
143
|
+
spheres,
|
144
|
+
sphereIndex,
|
145
|
+
scratchCartesian
|
146
|
+
);
|
147
|
+
const sphereModelMatrix = Matrix4_default.fromTranslation(
|
148
|
+
sphereTranslation,
|
149
|
+
scratchModelMatrixAndBV.modelMatrix
|
150
|
+
);
|
151
|
+
Matrix4_default.multiplyByUniformScale(
|
152
|
+
sphereModelMatrix,
|
153
|
+
sphereRadius,
|
154
|
+
sphereModelMatrix
|
155
|
+
);
|
156
|
+
const boundingVolume = scratchModelMatrixAndBV.boundingVolume;
|
157
|
+
Cartesian3_default.clone(Cartesian3_default.ZERO, boundingVolume.center);
|
158
|
+
boundingVolume.radius = 1;
|
159
|
+
return scratchModelMatrixAndBV;
|
160
|
+
}
|
161
|
+
var scratchPosition = new Cartesian3_default();
|
162
|
+
function createPrimitive(options, primitive, primitiveBatchIds, geometry, getModelMatrixAndBoundingVolume) {
|
163
|
+
if (!defined_default(primitive)) {
|
164
|
+
return;
|
96
165
|
}
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
166
|
+
const numberOfPrimitives = primitiveBatchIds.length;
|
167
|
+
const geometryPositions = geometry.attributes.position.values;
|
168
|
+
const geometryIndices = geometry.indices;
|
169
|
+
const positions = options.positions;
|
170
|
+
const vertexBatchIds = options.vertexBatchIds;
|
171
|
+
const indices = options.indices;
|
172
|
+
const batchIds = options.batchIds;
|
173
|
+
const batchTableColors = options.batchTableColors;
|
174
|
+
const batchedIndices = options.batchedIndices;
|
175
|
+
const indexOffsets = options.indexOffsets;
|
176
|
+
const indexCounts = options.indexCounts;
|
177
|
+
const boundingVolumes = options.boundingVolumes;
|
178
|
+
const modelMatrix = options.modelMatrix;
|
179
|
+
const center = options.center;
|
180
|
+
let positionOffset = options.positionOffset;
|
181
|
+
let batchIdIndex = options.batchIdIndex;
|
182
|
+
let indexOffset = options.indexOffset;
|
183
|
+
const batchedIndicesOffset = options.batchedIndicesOffset;
|
184
|
+
for (let i = 0; i < numberOfPrimitives; ++i) {
|
185
|
+
const primitiveModelMatrixAndBV = getModelMatrixAndBoundingVolume(
|
186
|
+
primitive,
|
187
|
+
i
|
108
188
|
);
|
109
|
-
|
110
|
-
|
111
|
-
const
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
let sphereIndex = index * packedSphereLength;
|
120
|
-
|
121
|
-
const sphereRadius = spheres[sphereIndex++];
|
122
|
-
|
123
|
-
const sphereTranslation = Matrix3.Cartesian3.unpack(
|
124
|
-
spheres,
|
125
|
-
sphereIndex,
|
126
|
-
scratchCartesian
|
127
|
-
);
|
128
|
-
const sphereModelMatrix = Matrix2.Matrix4.fromTranslation(
|
129
|
-
sphereTranslation,
|
130
|
-
scratchModelMatrixAndBV.modelMatrix
|
131
|
-
);
|
132
|
-
Matrix2.Matrix4.multiplyByUniformScale(
|
133
|
-
sphereModelMatrix,
|
134
|
-
sphereRadius,
|
135
|
-
sphereModelMatrix
|
136
|
-
);
|
137
|
-
|
138
|
-
const boundingVolume = scratchModelMatrixAndBV.boundingVolume;
|
139
|
-
Matrix3.Cartesian3.clone(Matrix3.Cartesian3.ZERO, boundingVolume.center);
|
140
|
-
boundingVolume.radius = 1.0;
|
141
|
-
|
142
|
-
return scratchModelMatrixAndBV;
|
143
|
-
}
|
144
|
-
|
145
|
-
const scratchPosition = new Matrix3.Cartesian3();
|
146
|
-
|
147
|
-
function createPrimitive(
|
148
|
-
options,
|
149
|
-
primitive,
|
150
|
-
primitiveBatchIds,
|
151
|
-
geometry,
|
152
|
-
getModelMatrixAndBoundingVolume
|
153
|
-
) {
|
154
|
-
if (!defaultValue.defined(primitive)) {
|
155
|
-
return;
|
189
|
+
const primitiveModelMatrix = primitiveModelMatrixAndBV.modelMatrix;
|
190
|
+
Matrix4_default.multiply(modelMatrix, primitiveModelMatrix, primitiveModelMatrix);
|
191
|
+
const batchId = primitiveBatchIds[i];
|
192
|
+
const positionsLength = geometryPositions.length;
|
193
|
+
for (let j = 0; j < positionsLength; j += 3) {
|
194
|
+
const position = Cartesian3_default.unpack(geometryPositions, j, scratchPosition);
|
195
|
+
Matrix4_default.multiplyByPoint(primitiveModelMatrix, position, position);
|
196
|
+
Cartesian3_default.subtract(position, center, position);
|
197
|
+
Cartesian3_default.pack(position, positions, positionOffset * 3 + j);
|
198
|
+
vertexBatchIds[batchIdIndex++] = batchId;
|
156
199
|
}
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
const geometryIndices = geometry.indices;
|
161
|
-
|
162
|
-
const positions = options.positions;
|
163
|
-
const vertexBatchIds = options.vertexBatchIds;
|
164
|
-
const indices = options.indices;
|
165
|
-
|
166
|
-
const batchIds = options.batchIds;
|
167
|
-
const batchTableColors = options.batchTableColors;
|
168
|
-
const batchedIndices = options.batchedIndices;
|
169
|
-
const indexOffsets = options.indexOffsets;
|
170
|
-
const indexCounts = options.indexCounts;
|
171
|
-
const boundingVolumes = options.boundingVolumes;
|
172
|
-
|
173
|
-
const modelMatrix = options.modelMatrix;
|
174
|
-
const center = options.center;
|
175
|
-
|
176
|
-
let positionOffset = options.positionOffset;
|
177
|
-
let batchIdIndex = options.batchIdIndex;
|
178
|
-
let indexOffset = options.indexOffset;
|
179
|
-
const batchedIndicesOffset = options.batchedIndicesOffset;
|
180
|
-
|
181
|
-
for (let i = 0; i < numberOfPrimitives; ++i) {
|
182
|
-
const primitiveModelMatrixAndBV = getModelMatrixAndBoundingVolume(
|
183
|
-
primitive,
|
184
|
-
i
|
185
|
-
);
|
186
|
-
const primitiveModelMatrix = primitiveModelMatrixAndBV.modelMatrix;
|
187
|
-
Matrix2.Matrix4.multiply(modelMatrix, primitiveModelMatrix, primitiveModelMatrix);
|
188
|
-
|
189
|
-
const batchId = primitiveBatchIds[i];
|
190
|
-
|
191
|
-
const positionsLength = geometryPositions.length;
|
192
|
-
for (let j = 0; j < positionsLength; j += 3) {
|
193
|
-
const position = Matrix3.Cartesian3.unpack(geometryPositions, j, scratchPosition);
|
194
|
-
Matrix2.Matrix4.multiplyByPoint(primitiveModelMatrix, position, position);
|
195
|
-
Matrix3.Cartesian3.subtract(position, center, position);
|
196
|
-
|
197
|
-
Matrix3.Cartesian3.pack(position, positions, positionOffset * 3 + j);
|
198
|
-
vertexBatchIds[batchIdIndex++] = batchId;
|
199
|
-
}
|
200
|
-
|
201
|
-
const indicesLength = geometryIndices.length;
|
202
|
-
for (let k = 0; k < indicesLength; ++k) {
|
203
|
-
indices[indexOffset + k] = geometryIndices[k] + positionOffset;
|
204
|
-
}
|
205
|
-
|
206
|
-
const offset = i + batchedIndicesOffset;
|
207
|
-
batchedIndices[offset] = new Vector3DTileBatch({
|
208
|
-
offset: indexOffset,
|
209
|
-
count: indicesLength,
|
210
|
-
color: Color.Color.fromRgba(batchTableColors[batchId]),
|
211
|
-
batchIds: [batchId],
|
212
|
-
});
|
213
|
-
batchIds[offset] = batchId;
|
214
|
-
indexOffsets[offset] = indexOffset;
|
215
|
-
indexCounts[offset] = indicesLength;
|
216
|
-
boundingVolumes[offset] = Transforms.BoundingSphere.transform(
|
217
|
-
primitiveModelMatrixAndBV.boundingVolume,
|
218
|
-
primitiveModelMatrix
|
219
|
-
);
|
220
|
-
|
221
|
-
positionOffset += positionsLength / 3;
|
222
|
-
indexOffset += indicesLength;
|
200
|
+
const indicesLength = geometryIndices.length;
|
201
|
+
for (let k = 0; k < indicesLength; ++k) {
|
202
|
+
indices[indexOffset + k] = geometryIndices[k] + positionOffset;
|
223
203
|
}
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
204
|
+
const offset = i + batchedIndicesOffset;
|
205
|
+
batchedIndices[offset] = new Vector3DTileBatch_default({
|
206
|
+
offset: indexOffset,
|
207
|
+
count: indicesLength,
|
208
|
+
color: Color_default.fromRgba(batchTableColors[batchId]),
|
209
|
+
batchIds: [batchId]
|
210
|
+
});
|
211
|
+
batchIds[offset] = batchId;
|
212
|
+
indexOffsets[offset] = indexOffset;
|
213
|
+
indexCounts[offset] = indicesLength;
|
214
|
+
boundingVolumes[offset] = BoundingSphere_default.transform(
|
215
|
+
primitiveModelMatrixAndBV.boundingVolume,
|
216
|
+
primitiveModelMatrix
|
217
|
+
);
|
218
|
+
positionOffset += positionsLength / 3;
|
219
|
+
indexOffset += indicesLength;
|
229
220
|
}
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
221
|
+
options.positionOffset = positionOffset;
|
222
|
+
options.batchIdIndex = batchIdIndex;
|
223
|
+
options.indexOffset = indexOffset;
|
224
|
+
options.batchedIndicesOffset += numberOfPrimitives;
|
225
|
+
}
|
226
|
+
var scratchCenter = new Cartesian3_default();
|
227
|
+
var scratchMatrix4 = new Matrix4_default();
|
228
|
+
function unpackBuffer(buffer) {
|
229
|
+
const packedBuffer = new Float64Array(buffer);
|
230
|
+
let offset = 0;
|
231
|
+
Cartesian3_default.unpack(packedBuffer, offset, scratchCenter);
|
232
|
+
offset += Cartesian3_default.packedLength;
|
233
|
+
Matrix4_default.unpack(packedBuffer, offset, scratchMatrix4);
|
234
|
+
}
|
235
|
+
function packedBatchedIndicesLength(batchedIndices) {
|
236
|
+
const length = batchedIndices.length;
|
237
|
+
let count = 0;
|
238
|
+
for (let i = 0; i < length; ++i) {
|
239
|
+
count += Color_default.packedLength + 3 + batchedIndices[i].batchIds.length;
|
242
240
|
}
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
241
|
+
return count;
|
242
|
+
}
|
243
|
+
function packBuffer(indicesBytesPerElement, batchedIndices, boundingVolumes) {
|
244
|
+
const numBVs = boundingVolumes.length;
|
245
|
+
const length = 1 + 1 + numBVs * BoundingSphere_default.packedLength + 1 + packedBatchedIndicesLength(batchedIndices);
|
246
|
+
const packedBuffer = new Float64Array(length);
|
247
|
+
let offset = 0;
|
248
|
+
packedBuffer[offset++] = indicesBytesPerElement;
|
249
|
+
packedBuffer[offset++] = numBVs;
|
250
|
+
for (let i = 0; i < numBVs; ++i) {
|
251
|
+
BoundingSphere_default.pack(boundingVolumes[i], packedBuffer, offset);
|
252
|
+
offset += BoundingSphere_default.packedLength;
|
251
253
|
}
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
const
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
packedBuffer[offset++] = indicesBytesPerElement;
|
266
|
-
packedBuffer[offset++] = numBVs;
|
267
|
-
|
268
|
-
for (let i = 0; i < numBVs; ++i) {
|
269
|
-
Transforms.BoundingSphere.pack(boundingVolumes[i], packedBuffer, offset);
|
270
|
-
offset += Transforms.BoundingSphere.packedLength;
|
254
|
+
const indicesLength = batchedIndices.length;
|
255
|
+
packedBuffer[offset++] = indicesLength;
|
256
|
+
for (let j = 0; j < indicesLength; ++j) {
|
257
|
+
const batchedIndex = batchedIndices[j];
|
258
|
+
Color_default.pack(batchedIndex.color, packedBuffer, offset);
|
259
|
+
offset += Color_default.packedLength;
|
260
|
+
packedBuffer[offset++] = batchedIndex.offset;
|
261
|
+
packedBuffer[offset++] = batchedIndex.count;
|
262
|
+
const batchIds = batchedIndex.batchIds;
|
263
|
+
const batchIdsLength = batchIds.length;
|
264
|
+
packedBuffer[offset++] = batchIdsLength;
|
265
|
+
for (let k = 0; k < batchIdsLength; ++k) {
|
266
|
+
packedBuffer[offset++] = batchIds[k];
|
271
267
|
}
|
272
|
-
|
273
|
-
const indicesLength = batchedIndices.length;
|
274
|
-
packedBuffer[offset++] = indicesLength;
|
275
|
-
|
276
|
-
for (let j = 0; j < indicesLength; ++j) {
|
277
|
-
const batchedIndex = batchedIndices[j];
|
278
|
-
|
279
|
-
Color.Color.pack(batchedIndex.color, packedBuffer, offset);
|
280
|
-
offset += Color.Color.packedLength;
|
281
|
-
|
282
|
-
packedBuffer[offset++] = batchedIndex.offset;
|
283
|
-
packedBuffer[offset++] = batchedIndex.count;
|
284
|
-
|
285
|
-
const batchIds = batchedIndex.batchIds;
|
286
|
-
const batchIdsLength = batchIds.length;
|
287
|
-
packedBuffer[offset++] = batchIdsLength;
|
288
|
-
|
289
|
-
for (let k = 0; k < batchIdsLength; ++k) {
|
290
|
-
packedBuffer[offset++] = batchIds[k];
|
291
|
-
}
|
292
|
-
}
|
293
|
-
|
294
|
-
return packedBuffer;
|
295
|
-
}
|
296
|
-
|
297
|
-
function createVectorTileGeometries(parameters, transferableObjects) {
|
298
|
-
const boxes = defaultValue.defined(parameters.boxes)
|
299
|
-
? new Float32Array(parameters.boxes)
|
300
|
-
: undefined;
|
301
|
-
const boxBatchIds = defaultValue.defined(parameters.boxBatchIds)
|
302
|
-
? new Uint16Array(parameters.boxBatchIds)
|
303
|
-
: undefined;
|
304
|
-
const cylinders = defaultValue.defined(parameters.cylinders)
|
305
|
-
? new Float32Array(parameters.cylinders)
|
306
|
-
: undefined;
|
307
|
-
const cylinderBatchIds = defaultValue.defined(parameters.cylinderBatchIds)
|
308
|
-
? new Uint16Array(parameters.cylinderBatchIds)
|
309
|
-
: undefined;
|
310
|
-
const ellipsoids = defaultValue.defined(parameters.ellipsoids)
|
311
|
-
? new Float32Array(parameters.ellipsoids)
|
312
|
-
: undefined;
|
313
|
-
const ellipsoidBatchIds = defaultValue.defined(parameters.ellipsoidBatchIds)
|
314
|
-
? new Uint16Array(parameters.ellipsoidBatchIds)
|
315
|
-
: undefined;
|
316
|
-
const spheres = defaultValue.defined(parameters.spheres)
|
317
|
-
? new Float32Array(parameters.spheres)
|
318
|
-
: undefined;
|
319
|
-
const sphereBatchIds = defaultValue.defined(parameters.sphereBatchIds)
|
320
|
-
? new Uint16Array(parameters.sphereBatchIds)
|
321
|
-
: undefined;
|
322
|
-
|
323
|
-
const numberOfBoxes = defaultValue.defined(boxes) ? boxBatchIds.length : 0;
|
324
|
-
const numberOfCylinders = defaultValue.defined(cylinders) ? cylinderBatchIds.length : 0;
|
325
|
-
const numberOfEllipsoids = defaultValue.defined(ellipsoids) ? ellipsoidBatchIds.length : 0;
|
326
|
-
const numberOfSpheres = defaultValue.defined(spheres) ? sphereBatchIds.length : 0;
|
327
|
-
|
328
|
-
const boxGeometry = BoxGeometry.BoxGeometry.getUnitBox();
|
329
|
-
const cylinderGeometry = CylinderGeometry.CylinderGeometry.getUnitCylinder();
|
330
|
-
const ellipsoidGeometry = EllipsoidGeometry.EllipsoidGeometry.getUnitEllipsoid();
|
331
|
-
|
332
|
-
const boxPositions = boxGeometry.attributes.position.values;
|
333
|
-
const cylinderPositions = cylinderGeometry.attributes.position.values;
|
334
|
-
const ellipsoidPositions = ellipsoidGeometry.attributes.position.values;
|
335
|
-
|
336
|
-
let numberOfPositions = boxPositions.length * numberOfBoxes;
|
337
|
-
numberOfPositions += cylinderPositions.length * numberOfCylinders;
|
338
|
-
numberOfPositions +=
|
339
|
-
ellipsoidPositions.length * (numberOfEllipsoids + numberOfSpheres);
|
340
|
-
|
341
|
-
const boxIndices = boxGeometry.indices;
|
342
|
-
const cylinderIndices = cylinderGeometry.indices;
|
343
|
-
const ellipsoidIndices = ellipsoidGeometry.indices;
|
344
|
-
|
345
|
-
let numberOfIndices = boxIndices.length * numberOfBoxes;
|
346
|
-
numberOfIndices += cylinderIndices.length * numberOfCylinders;
|
347
|
-
numberOfIndices +=
|
348
|
-
ellipsoidIndices.length * (numberOfEllipsoids + numberOfSpheres);
|
349
|
-
|
350
|
-
const positions = new Float32Array(numberOfPositions);
|
351
|
-
const vertexBatchIds = new Uint16Array(numberOfPositions / 3);
|
352
|
-
const indices = IndexDatatype.IndexDatatype.createTypedArray(
|
353
|
-
numberOfPositions / 3,
|
354
|
-
numberOfIndices
|
355
|
-
);
|
356
|
-
|
357
|
-
const numberOfGeometries =
|
358
|
-
numberOfBoxes + numberOfCylinders + numberOfEllipsoids + numberOfSpheres;
|
359
|
-
const batchIds = new Uint16Array(numberOfGeometries);
|
360
|
-
const batchedIndices = new Array(numberOfGeometries);
|
361
|
-
const indexOffsets = new Uint32Array(numberOfGeometries);
|
362
|
-
const indexCounts = new Uint32Array(numberOfGeometries);
|
363
|
-
const boundingVolumes = new Array(numberOfGeometries);
|
364
|
-
|
365
|
-
unpackBuffer(parameters.packedBuffer);
|
366
|
-
|
367
|
-
const options = {
|
368
|
-
batchTableColors: new Uint32Array(parameters.batchTableColors),
|
369
|
-
positions: positions,
|
370
|
-
vertexBatchIds: vertexBatchIds,
|
371
|
-
indices: indices,
|
372
|
-
batchIds: batchIds,
|
373
|
-
batchedIndices: batchedIndices,
|
374
|
-
indexOffsets: indexOffsets,
|
375
|
-
indexCounts: indexCounts,
|
376
|
-
boundingVolumes: boundingVolumes,
|
377
|
-
positionOffset: 0,
|
378
|
-
batchIdIndex: 0,
|
379
|
-
indexOffset: 0,
|
380
|
-
batchedIndicesOffset: 0,
|
381
|
-
modelMatrix: scratchMatrix4,
|
382
|
-
center: scratchCenter,
|
383
|
-
};
|
384
|
-
|
385
|
-
createPrimitive(
|
386
|
-
options,
|
387
|
-
boxes,
|
388
|
-
boxBatchIds,
|
389
|
-
boxGeometry,
|
390
|
-
boxModelMatrixAndBoundingVolume
|
391
|
-
);
|
392
|
-
createPrimitive(
|
393
|
-
options,
|
394
|
-
cylinders,
|
395
|
-
cylinderBatchIds,
|
396
|
-
cylinderGeometry,
|
397
|
-
cylinderModelMatrixAndBoundingVolume
|
398
|
-
);
|
399
|
-
createPrimitive(
|
400
|
-
options,
|
401
|
-
ellipsoids,
|
402
|
-
ellipsoidBatchIds,
|
403
|
-
ellipsoidGeometry,
|
404
|
-
ellipsoidModelMatrixAndBoundingVolume
|
405
|
-
);
|
406
|
-
createPrimitive(
|
407
|
-
options,
|
408
|
-
spheres,
|
409
|
-
sphereBatchIds,
|
410
|
-
ellipsoidGeometry,
|
411
|
-
sphereModelMatrixAndBoundingVolume
|
412
|
-
);
|
413
|
-
|
414
|
-
const packedBuffer = packBuffer(
|
415
|
-
indices.BYTES_PER_ELEMENT,
|
416
|
-
batchedIndices,
|
417
|
-
boundingVolumes
|
418
|
-
);
|
419
|
-
transferableObjects.push(
|
420
|
-
positions.buffer,
|
421
|
-
vertexBatchIds.buffer,
|
422
|
-
indices.buffer
|
423
|
-
);
|
424
|
-
transferableObjects.push(
|
425
|
-
batchIds.buffer,
|
426
|
-
indexOffsets.buffer,
|
427
|
-
indexCounts.buffer
|
428
|
-
);
|
429
|
-
transferableObjects.push(packedBuffer.buffer);
|
430
|
-
|
431
|
-
return {
|
432
|
-
positions: positions.buffer,
|
433
|
-
vertexBatchIds: vertexBatchIds.buffer,
|
434
|
-
indices: indices.buffer,
|
435
|
-
indexOffsets: indexOffsets.buffer,
|
436
|
-
indexCounts: indexCounts.buffer,
|
437
|
-
batchIds: batchIds.buffer,
|
438
|
-
packedBuffer: packedBuffer.buffer,
|
439
|
-
};
|
440
268
|
}
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
269
|
+
return packedBuffer;
|
270
|
+
}
|
271
|
+
function createVectorTileGeometries(parameters, transferableObjects) {
|
272
|
+
const boxes = defined_default(parameters.boxes) ? new Float32Array(parameters.boxes) : void 0;
|
273
|
+
const boxBatchIds = defined_default(parameters.boxBatchIds) ? new Uint16Array(parameters.boxBatchIds) : void 0;
|
274
|
+
const cylinders = defined_default(parameters.cylinders) ? new Float32Array(parameters.cylinders) : void 0;
|
275
|
+
const cylinderBatchIds = defined_default(parameters.cylinderBatchIds) ? new Uint16Array(parameters.cylinderBatchIds) : void 0;
|
276
|
+
const ellipsoids = defined_default(parameters.ellipsoids) ? new Float32Array(parameters.ellipsoids) : void 0;
|
277
|
+
const ellipsoidBatchIds = defined_default(parameters.ellipsoidBatchIds) ? new Uint16Array(parameters.ellipsoidBatchIds) : void 0;
|
278
|
+
const spheres = defined_default(parameters.spheres) ? new Float32Array(parameters.spheres) : void 0;
|
279
|
+
const sphereBatchIds = defined_default(parameters.sphereBatchIds) ? new Uint16Array(parameters.sphereBatchIds) : void 0;
|
280
|
+
const numberOfBoxes = defined_default(boxes) ? boxBatchIds.length : 0;
|
281
|
+
const numberOfCylinders = defined_default(cylinders) ? cylinderBatchIds.length : 0;
|
282
|
+
const numberOfEllipsoids = defined_default(ellipsoids) ? ellipsoidBatchIds.length : 0;
|
283
|
+
const numberOfSpheres = defined_default(spheres) ? sphereBatchIds.length : 0;
|
284
|
+
const boxGeometry = BoxGeometry_default.getUnitBox();
|
285
|
+
const cylinderGeometry = CylinderGeometry_default.getUnitCylinder();
|
286
|
+
const ellipsoidGeometry = EllipsoidGeometry_default.getUnitEllipsoid();
|
287
|
+
const boxPositions = boxGeometry.attributes.position.values;
|
288
|
+
const cylinderPositions = cylinderGeometry.attributes.position.values;
|
289
|
+
const ellipsoidPositions = ellipsoidGeometry.attributes.position.values;
|
290
|
+
let numberOfPositions = boxPositions.length * numberOfBoxes;
|
291
|
+
numberOfPositions += cylinderPositions.length * numberOfCylinders;
|
292
|
+
numberOfPositions += ellipsoidPositions.length * (numberOfEllipsoids + numberOfSpheres);
|
293
|
+
const boxIndices = boxGeometry.indices;
|
294
|
+
const cylinderIndices = cylinderGeometry.indices;
|
295
|
+
const ellipsoidIndices = ellipsoidGeometry.indices;
|
296
|
+
let numberOfIndices = boxIndices.length * numberOfBoxes;
|
297
|
+
numberOfIndices += cylinderIndices.length * numberOfCylinders;
|
298
|
+
numberOfIndices += ellipsoidIndices.length * (numberOfEllipsoids + numberOfSpheres);
|
299
|
+
const positions = new Float32Array(numberOfPositions);
|
300
|
+
const vertexBatchIds = new Uint16Array(numberOfPositions / 3);
|
301
|
+
const indices = IndexDatatype_default.createTypedArray(
|
302
|
+
numberOfPositions / 3,
|
303
|
+
numberOfIndices
|
304
|
+
);
|
305
|
+
const numberOfGeometries = numberOfBoxes + numberOfCylinders + numberOfEllipsoids + numberOfSpheres;
|
306
|
+
const batchIds = new Uint16Array(numberOfGeometries);
|
307
|
+
const batchedIndices = new Array(numberOfGeometries);
|
308
|
+
const indexOffsets = new Uint32Array(numberOfGeometries);
|
309
|
+
const indexCounts = new Uint32Array(numberOfGeometries);
|
310
|
+
const boundingVolumes = new Array(numberOfGeometries);
|
311
|
+
unpackBuffer(parameters.packedBuffer);
|
312
|
+
const options = {
|
313
|
+
batchTableColors: new Uint32Array(parameters.batchTableColors),
|
314
|
+
positions,
|
315
|
+
vertexBatchIds,
|
316
|
+
indices,
|
317
|
+
batchIds,
|
318
|
+
batchedIndices,
|
319
|
+
indexOffsets,
|
320
|
+
indexCounts,
|
321
|
+
boundingVolumes,
|
322
|
+
positionOffset: 0,
|
323
|
+
batchIdIndex: 0,
|
324
|
+
indexOffset: 0,
|
325
|
+
batchedIndicesOffset: 0,
|
326
|
+
modelMatrix: scratchMatrix4,
|
327
|
+
center: scratchCenter
|
328
|
+
};
|
329
|
+
createPrimitive(
|
330
|
+
options,
|
331
|
+
boxes,
|
332
|
+
boxBatchIds,
|
333
|
+
boxGeometry,
|
334
|
+
boxModelMatrixAndBoundingVolume
|
335
|
+
);
|
336
|
+
createPrimitive(
|
337
|
+
options,
|
338
|
+
cylinders,
|
339
|
+
cylinderBatchIds,
|
340
|
+
cylinderGeometry,
|
341
|
+
cylinderModelMatrixAndBoundingVolume
|
342
|
+
);
|
343
|
+
createPrimitive(
|
344
|
+
options,
|
345
|
+
ellipsoids,
|
346
|
+
ellipsoidBatchIds,
|
347
|
+
ellipsoidGeometry,
|
348
|
+
ellipsoidModelMatrixAndBoundingVolume
|
349
|
+
);
|
350
|
+
createPrimitive(
|
351
|
+
options,
|
352
|
+
spheres,
|
353
|
+
sphereBatchIds,
|
354
|
+
ellipsoidGeometry,
|
355
|
+
sphereModelMatrixAndBoundingVolume
|
356
|
+
);
|
357
|
+
const packedBuffer = packBuffer(
|
358
|
+
indices.BYTES_PER_ELEMENT,
|
359
|
+
batchedIndices,
|
360
|
+
boundingVolumes
|
361
|
+
);
|
362
|
+
transferableObjects.push(
|
363
|
+
positions.buffer,
|
364
|
+
vertexBatchIds.buffer,
|
365
|
+
indices.buffer
|
366
|
+
);
|
367
|
+
transferableObjects.push(
|
368
|
+
batchIds.buffer,
|
369
|
+
indexOffsets.buffer,
|
370
|
+
indexCounts.buffer
|
371
|
+
);
|
372
|
+
transferableObjects.push(packedBuffer.buffer);
|
373
|
+
return {
|
374
|
+
positions: positions.buffer,
|
375
|
+
vertexBatchIds: vertexBatchIds.buffer,
|
376
|
+
indices: indices.buffer,
|
377
|
+
indexOffsets: indexOffsets.buffer,
|
378
|
+
indexCounts: indexCounts.buffer,
|
379
|
+
batchIds: batchIds.buffer,
|
380
|
+
packedBuffer: packedBuffer.buffer
|
381
|
+
};
|
382
|
+
}
|
383
|
+
var createVectorTileGeometries_default = createTaskProcessorWorker_default(createVectorTileGeometries);
|
384
|
+
export {
|
385
|
+
createVectorTileGeometries_default as default
|
386
|
+
};
|