@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,781 +0,0 @@
|
|
1
|
-
define(['exports', './Matrix2-e1298525', './Matrix3-41c58dde', './EllipsoidTangentPlane-6dd1b7af', './Math-0a2ac845', './PolylinePipeline-639192e0', './Transforms-a2a85221', './defaultValue-fe22d8c0', './Check-6ede7e26'], (function (exports, Matrix2, Matrix3, EllipsoidTangentPlane, Math$1, PolylinePipeline, Transforms, defaultValue, Check) { 'use strict';
|
2
|
-
|
3
|
-
/**
|
4
|
-
* Style options for corners.
|
5
|
-
*
|
6
|
-
* @demo The {@link https://sandcastle.cesium.com/index.html?src=Corridor.html&label=Geometries|Corridor Demo}
|
7
|
-
* demonstrates the three corner types, as used by {@link CorridorGraphics}.
|
8
|
-
*
|
9
|
-
* @enum {number}
|
10
|
-
*/
|
11
|
-
const CornerType = {
|
12
|
-
/**
|
13
|
-
* <img src="Images/CornerTypeRounded.png" style="vertical-align: middle;" width="186" height="189" />
|
14
|
-
*
|
15
|
-
* Corner has a smooth edge.
|
16
|
-
* @type {number}
|
17
|
-
* @constant
|
18
|
-
*/
|
19
|
-
ROUNDED: 0,
|
20
|
-
|
21
|
-
/**
|
22
|
-
* <img src="Images/CornerTypeMitered.png" style="vertical-align: middle;" width="186" height="189" />
|
23
|
-
*
|
24
|
-
* Corner point is the intersection of adjacent edges.
|
25
|
-
* @type {number}
|
26
|
-
* @constant
|
27
|
-
*/
|
28
|
-
MITERED: 1,
|
29
|
-
|
30
|
-
/**
|
31
|
-
* <img src="Images/CornerTypeBeveled.png" style="vertical-align: middle;" width="186" height="189" />
|
32
|
-
*
|
33
|
-
* Corner is clipped.
|
34
|
-
* @type {number}
|
35
|
-
* @constant
|
36
|
-
*/
|
37
|
-
BEVELED: 2,
|
38
|
-
};
|
39
|
-
var CornerType$1 = Object.freeze(CornerType);
|
40
|
-
|
41
|
-
const warnings = {};
|
42
|
-
|
43
|
-
/**
|
44
|
-
* Logs a one time message to the console. Use this function instead of
|
45
|
-
* <code>console.log</code> directly since this does not log duplicate messages
|
46
|
-
* unless it is called from multiple workers.
|
47
|
-
*
|
48
|
-
* @function oneTimeWarning
|
49
|
-
*
|
50
|
-
* @param {string} identifier The unique identifier for this warning.
|
51
|
-
* @param {string} [message=identifier] The message to log to the console.
|
52
|
-
*
|
53
|
-
* @example
|
54
|
-
* for(let i=0;i<foo.length;++i) {
|
55
|
-
* if (!defined(foo[i].bar)) {
|
56
|
-
* // Something that can be recovered from but may happen a lot
|
57
|
-
* oneTimeWarning('foo.bar undefined', 'foo.bar is undefined. Setting to 0.');
|
58
|
-
* foo[i].bar = 0;
|
59
|
-
* // ...
|
60
|
-
* }
|
61
|
-
* }
|
62
|
-
*
|
63
|
-
* @private
|
64
|
-
*/
|
65
|
-
function oneTimeWarning(identifier, message) {
|
66
|
-
//>>includeStart('debug', pragmas.debug);
|
67
|
-
if (!defaultValue.defined(identifier)) {
|
68
|
-
throw new Check.DeveloperError("identifier is required.");
|
69
|
-
}
|
70
|
-
//>>includeEnd('debug');
|
71
|
-
|
72
|
-
if (!defaultValue.defined(warnings[identifier])) {
|
73
|
-
warnings[identifier] = true;
|
74
|
-
console.warn(defaultValue.defaultValue(message, identifier));
|
75
|
-
}
|
76
|
-
}
|
77
|
-
|
78
|
-
oneTimeWarning.geometryOutlines =
|
79
|
-
"Entity geometry outlines are unsupported on terrain. Outlines will be disabled. To enable outlines, disable geometry terrain clamping by explicitly setting height to 0.";
|
80
|
-
|
81
|
-
oneTimeWarning.geometryZIndex =
|
82
|
-
"Entity geometry with zIndex are unsupported when height or extrudedHeight are defined. zIndex will be ignored";
|
83
|
-
|
84
|
-
oneTimeWarning.geometryHeightReference =
|
85
|
-
"Entity corridor, ellipse, polygon or rectangle with heightReference must also have a defined height. heightReference will be ignored";
|
86
|
-
oneTimeWarning.geometryExtrudedHeightReference =
|
87
|
-
"Entity corridor, ellipse, polygon or rectangle with extrudedHeightReference must also have a defined extrudedHeight. extrudedHeightReference will be ignored";
|
88
|
-
|
89
|
-
const scratch2Array = [new Matrix3.Cartesian3(), new Matrix3.Cartesian3()];
|
90
|
-
const scratchCartesian1 = new Matrix3.Cartesian3();
|
91
|
-
const scratchCartesian2 = new Matrix3.Cartesian3();
|
92
|
-
const scratchCartesian3 = new Matrix3.Cartesian3();
|
93
|
-
const scratchCartesian4 = new Matrix3.Cartesian3();
|
94
|
-
const scratchCartesian5 = new Matrix3.Cartesian3();
|
95
|
-
const scratchCartesian6 = new Matrix3.Cartesian3();
|
96
|
-
const scratchCartesian7 = new Matrix3.Cartesian3();
|
97
|
-
const scratchCartesian8 = new Matrix3.Cartesian3();
|
98
|
-
const scratchCartesian9 = new Matrix3.Cartesian3();
|
99
|
-
|
100
|
-
const scratch1 = new Matrix3.Cartesian3();
|
101
|
-
const scratch2 = new Matrix3.Cartesian3();
|
102
|
-
|
103
|
-
/**
|
104
|
-
* @private
|
105
|
-
*/
|
106
|
-
const PolylineVolumeGeometryLibrary = {};
|
107
|
-
|
108
|
-
let cartographic = new Matrix3.Cartographic();
|
109
|
-
function scaleToSurface(positions, ellipsoid) {
|
110
|
-
const heights = new Array(positions.length);
|
111
|
-
for (let i = 0; i < positions.length; i++) {
|
112
|
-
const pos = positions[i];
|
113
|
-
cartographic = ellipsoid.cartesianToCartographic(pos, cartographic);
|
114
|
-
heights[i] = cartographic.height;
|
115
|
-
positions[i] = ellipsoid.scaleToGeodeticSurface(pos, pos);
|
116
|
-
}
|
117
|
-
return heights;
|
118
|
-
}
|
119
|
-
|
120
|
-
function subdivideHeights(points, h0, h1, granularity) {
|
121
|
-
const p0 = points[0];
|
122
|
-
const p1 = points[1];
|
123
|
-
const angleBetween = Matrix3.Cartesian3.angleBetween(p0, p1);
|
124
|
-
const numPoints = Math.ceil(angleBetween / granularity);
|
125
|
-
const heights = new Array(numPoints);
|
126
|
-
let i;
|
127
|
-
if (h0 === h1) {
|
128
|
-
for (i = 0; i < numPoints; i++) {
|
129
|
-
heights[i] = h0;
|
130
|
-
}
|
131
|
-
heights.push(h1);
|
132
|
-
return heights;
|
133
|
-
}
|
134
|
-
|
135
|
-
const dHeight = h1 - h0;
|
136
|
-
const heightPerVertex = dHeight / numPoints;
|
137
|
-
|
138
|
-
for (i = 1; i < numPoints; i++) {
|
139
|
-
const h = h0 + i * heightPerVertex;
|
140
|
-
heights[i] = h;
|
141
|
-
}
|
142
|
-
|
143
|
-
heights[0] = h0;
|
144
|
-
heights.push(h1);
|
145
|
-
return heights;
|
146
|
-
}
|
147
|
-
|
148
|
-
const nextScratch = new Matrix3.Cartesian3();
|
149
|
-
const prevScratch = new Matrix3.Cartesian3();
|
150
|
-
|
151
|
-
function computeRotationAngle(start, end, position, ellipsoid) {
|
152
|
-
const tangentPlane = new EllipsoidTangentPlane.EllipsoidTangentPlane(position, ellipsoid);
|
153
|
-
const next = tangentPlane.projectPointOntoPlane(
|
154
|
-
Matrix3.Cartesian3.add(position, start, nextScratch),
|
155
|
-
nextScratch
|
156
|
-
);
|
157
|
-
const prev = tangentPlane.projectPointOntoPlane(
|
158
|
-
Matrix3.Cartesian3.add(position, end, prevScratch),
|
159
|
-
prevScratch
|
160
|
-
);
|
161
|
-
const angle = Matrix2.Cartesian2.angleBetween(next, prev);
|
162
|
-
|
163
|
-
return prev.x * next.y - prev.y * next.x >= 0.0 ? -angle : angle;
|
164
|
-
}
|
165
|
-
|
166
|
-
const negativeX = new Matrix3.Cartesian3(-1, 0, 0);
|
167
|
-
let transform = new Matrix2.Matrix4();
|
168
|
-
const translation = new Matrix2.Matrix4();
|
169
|
-
let rotationZ = new Matrix3.Matrix3();
|
170
|
-
const scaleMatrix = Matrix3.Matrix3.IDENTITY.clone();
|
171
|
-
const westScratch = new Matrix3.Cartesian3();
|
172
|
-
const finalPosScratch = new Matrix2.Cartesian4();
|
173
|
-
const heightCartesian = new Matrix3.Cartesian3();
|
174
|
-
function addPosition(
|
175
|
-
center,
|
176
|
-
left,
|
177
|
-
shape,
|
178
|
-
finalPositions,
|
179
|
-
ellipsoid,
|
180
|
-
height,
|
181
|
-
xScalar,
|
182
|
-
repeat
|
183
|
-
) {
|
184
|
-
let west = westScratch;
|
185
|
-
let finalPosition = finalPosScratch;
|
186
|
-
transform = Transforms.Transforms.eastNorthUpToFixedFrame(center, ellipsoid, transform);
|
187
|
-
|
188
|
-
west = Matrix2.Matrix4.multiplyByPointAsVector(transform, negativeX, west);
|
189
|
-
west = Matrix3.Cartesian3.normalize(west, west);
|
190
|
-
const angle = computeRotationAngle(west, left, center, ellipsoid);
|
191
|
-
rotationZ = Matrix3.Matrix3.fromRotationZ(angle, rotationZ);
|
192
|
-
|
193
|
-
heightCartesian.z = height;
|
194
|
-
transform = Matrix2.Matrix4.multiplyTransformation(
|
195
|
-
transform,
|
196
|
-
Matrix2.Matrix4.fromRotationTranslation(rotationZ, heightCartesian, translation),
|
197
|
-
transform
|
198
|
-
);
|
199
|
-
const scale = scaleMatrix;
|
200
|
-
scale[0] = xScalar;
|
201
|
-
|
202
|
-
for (let j = 0; j < repeat; j++) {
|
203
|
-
for (let i = 0; i < shape.length; i += 3) {
|
204
|
-
finalPosition = Matrix3.Cartesian3.fromArray(shape, i, finalPosition);
|
205
|
-
finalPosition = Matrix3.Matrix3.multiplyByVector(
|
206
|
-
scale,
|
207
|
-
finalPosition,
|
208
|
-
finalPosition
|
209
|
-
);
|
210
|
-
finalPosition = Matrix2.Matrix4.multiplyByPoint(
|
211
|
-
transform,
|
212
|
-
finalPosition,
|
213
|
-
finalPosition
|
214
|
-
);
|
215
|
-
finalPositions.push(finalPosition.x, finalPosition.y, finalPosition.z);
|
216
|
-
}
|
217
|
-
}
|
218
|
-
|
219
|
-
return finalPositions;
|
220
|
-
}
|
221
|
-
|
222
|
-
const centerScratch = new Matrix3.Cartesian3();
|
223
|
-
function addPositions(
|
224
|
-
centers,
|
225
|
-
left,
|
226
|
-
shape,
|
227
|
-
finalPositions,
|
228
|
-
ellipsoid,
|
229
|
-
heights,
|
230
|
-
xScalar
|
231
|
-
) {
|
232
|
-
for (let i = 0; i < centers.length; i += 3) {
|
233
|
-
const center = Matrix3.Cartesian3.fromArray(centers, i, centerScratch);
|
234
|
-
finalPositions = addPosition(
|
235
|
-
center,
|
236
|
-
left,
|
237
|
-
shape,
|
238
|
-
finalPositions,
|
239
|
-
ellipsoid,
|
240
|
-
heights[i / 3],
|
241
|
-
xScalar,
|
242
|
-
1
|
243
|
-
);
|
244
|
-
}
|
245
|
-
return finalPositions;
|
246
|
-
}
|
247
|
-
|
248
|
-
function convertShapeTo3DDuplicate(shape2D, boundingRectangle) {
|
249
|
-
//orientate 2D shape to XZ plane center at (0, 0, 0), duplicate points
|
250
|
-
const length = shape2D.length;
|
251
|
-
const shape = new Array(length * 6);
|
252
|
-
let index = 0;
|
253
|
-
const xOffset = boundingRectangle.x + boundingRectangle.width / 2;
|
254
|
-
const yOffset = boundingRectangle.y + boundingRectangle.height / 2;
|
255
|
-
|
256
|
-
let point = shape2D[0];
|
257
|
-
shape[index++] = point.x - xOffset;
|
258
|
-
shape[index++] = 0.0;
|
259
|
-
shape[index++] = point.y - yOffset;
|
260
|
-
for (let i = 1; i < length; i++) {
|
261
|
-
point = shape2D[i];
|
262
|
-
const x = point.x - xOffset;
|
263
|
-
const z = point.y - yOffset;
|
264
|
-
shape[index++] = x;
|
265
|
-
shape[index++] = 0.0;
|
266
|
-
shape[index++] = z;
|
267
|
-
|
268
|
-
shape[index++] = x;
|
269
|
-
shape[index++] = 0.0;
|
270
|
-
shape[index++] = z;
|
271
|
-
}
|
272
|
-
point = shape2D[0];
|
273
|
-
shape[index++] = point.x - xOffset;
|
274
|
-
shape[index++] = 0.0;
|
275
|
-
shape[index++] = point.y - yOffset;
|
276
|
-
|
277
|
-
return shape;
|
278
|
-
}
|
279
|
-
|
280
|
-
function convertShapeTo3D(shape2D, boundingRectangle) {
|
281
|
-
//orientate 2D shape to XZ plane center at (0, 0, 0)
|
282
|
-
const length = shape2D.length;
|
283
|
-
const shape = new Array(length * 3);
|
284
|
-
let index = 0;
|
285
|
-
const xOffset = boundingRectangle.x + boundingRectangle.width / 2;
|
286
|
-
const yOffset = boundingRectangle.y + boundingRectangle.height / 2;
|
287
|
-
|
288
|
-
for (let i = 0; i < length; i++) {
|
289
|
-
shape[index++] = shape2D[i].x - xOffset;
|
290
|
-
shape[index++] = 0;
|
291
|
-
shape[index++] = shape2D[i].y - yOffset;
|
292
|
-
}
|
293
|
-
|
294
|
-
return shape;
|
295
|
-
}
|
296
|
-
|
297
|
-
const quaterion = new Transforms.Quaternion();
|
298
|
-
const startPointScratch = new Matrix3.Cartesian3();
|
299
|
-
const rotMatrix = new Matrix3.Matrix3();
|
300
|
-
function computeRoundCorner(
|
301
|
-
pivot,
|
302
|
-
startPoint,
|
303
|
-
endPoint,
|
304
|
-
cornerType,
|
305
|
-
leftIsOutside,
|
306
|
-
ellipsoid,
|
307
|
-
finalPositions,
|
308
|
-
shape,
|
309
|
-
height,
|
310
|
-
duplicatePoints
|
311
|
-
) {
|
312
|
-
const angle = Matrix3.Cartesian3.angleBetween(
|
313
|
-
Matrix3.Cartesian3.subtract(startPoint, pivot, scratch1),
|
314
|
-
Matrix3.Cartesian3.subtract(endPoint, pivot, scratch2)
|
315
|
-
);
|
316
|
-
const granularity =
|
317
|
-
cornerType === CornerType$1.BEVELED
|
318
|
-
? 0
|
319
|
-
: Math.ceil(angle / Math$1.CesiumMath.toRadians(5));
|
320
|
-
|
321
|
-
let m;
|
322
|
-
if (leftIsOutside) {
|
323
|
-
m = Matrix3.Matrix3.fromQuaternion(
|
324
|
-
Transforms.Quaternion.fromAxisAngle(
|
325
|
-
Matrix3.Cartesian3.negate(pivot, scratch1),
|
326
|
-
angle / (granularity + 1),
|
327
|
-
quaterion
|
328
|
-
),
|
329
|
-
rotMatrix
|
330
|
-
);
|
331
|
-
} else {
|
332
|
-
m = Matrix3.Matrix3.fromQuaternion(
|
333
|
-
Transforms.Quaternion.fromAxisAngle(pivot, angle / (granularity + 1), quaterion),
|
334
|
-
rotMatrix
|
335
|
-
);
|
336
|
-
}
|
337
|
-
|
338
|
-
let left;
|
339
|
-
let surfacePoint;
|
340
|
-
startPoint = Matrix3.Cartesian3.clone(startPoint, startPointScratch);
|
341
|
-
if (granularity > 0) {
|
342
|
-
const repeat = duplicatePoints ? 2 : 1;
|
343
|
-
for (let i = 0; i < granularity; i++) {
|
344
|
-
startPoint = Matrix3.Matrix3.multiplyByVector(m, startPoint, startPoint);
|
345
|
-
left = Matrix3.Cartesian3.subtract(startPoint, pivot, scratch1);
|
346
|
-
left = Matrix3.Cartesian3.normalize(left, left);
|
347
|
-
if (!leftIsOutside) {
|
348
|
-
left = Matrix3.Cartesian3.negate(left, left);
|
349
|
-
}
|
350
|
-
surfacePoint = ellipsoid.scaleToGeodeticSurface(startPoint, scratch2);
|
351
|
-
finalPositions = addPosition(
|
352
|
-
surfacePoint,
|
353
|
-
left,
|
354
|
-
shape,
|
355
|
-
finalPositions,
|
356
|
-
ellipsoid,
|
357
|
-
height,
|
358
|
-
1,
|
359
|
-
repeat
|
360
|
-
);
|
361
|
-
}
|
362
|
-
} else {
|
363
|
-
left = Matrix3.Cartesian3.subtract(startPoint, pivot, scratch1);
|
364
|
-
left = Matrix3.Cartesian3.normalize(left, left);
|
365
|
-
if (!leftIsOutside) {
|
366
|
-
left = Matrix3.Cartesian3.negate(left, left);
|
367
|
-
}
|
368
|
-
surfacePoint = ellipsoid.scaleToGeodeticSurface(startPoint, scratch2);
|
369
|
-
finalPositions = addPosition(
|
370
|
-
surfacePoint,
|
371
|
-
left,
|
372
|
-
shape,
|
373
|
-
finalPositions,
|
374
|
-
ellipsoid,
|
375
|
-
height,
|
376
|
-
1,
|
377
|
-
1
|
378
|
-
);
|
379
|
-
|
380
|
-
endPoint = Matrix3.Cartesian3.clone(endPoint, startPointScratch);
|
381
|
-
left = Matrix3.Cartesian3.subtract(endPoint, pivot, scratch1);
|
382
|
-
left = Matrix3.Cartesian3.normalize(left, left);
|
383
|
-
if (!leftIsOutside) {
|
384
|
-
left = Matrix3.Cartesian3.negate(left, left);
|
385
|
-
}
|
386
|
-
surfacePoint = ellipsoid.scaleToGeodeticSurface(endPoint, scratch2);
|
387
|
-
finalPositions = addPosition(
|
388
|
-
surfacePoint,
|
389
|
-
left,
|
390
|
-
shape,
|
391
|
-
finalPositions,
|
392
|
-
ellipsoid,
|
393
|
-
height,
|
394
|
-
1,
|
395
|
-
1
|
396
|
-
);
|
397
|
-
}
|
398
|
-
|
399
|
-
return finalPositions;
|
400
|
-
}
|
401
|
-
|
402
|
-
PolylineVolumeGeometryLibrary.removeDuplicatesFromShape = function (
|
403
|
-
shapePositions
|
404
|
-
) {
|
405
|
-
const length = shapePositions.length;
|
406
|
-
const cleanedPositions = [];
|
407
|
-
for (let i0 = length - 1, i1 = 0; i1 < length; i0 = i1++) {
|
408
|
-
const v0 = shapePositions[i0];
|
409
|
-
const v1 = shapePositions[i1];
|
410
|
-
|
411
|
-
if (!Matrix2.Cartesian2.equals(v0, v1)) {
|
412
|
-
cleanedPositions.push(v1); // Shallow copy!
|
413
|
-
}
|
414
|
-
}
|
415
|
-
|
416
|
-
return cleanedPositions;
|
417
|
-
};
|
418
|
-
|
419
|
-
PolylineVolumeGeometryLibrary.angleIsGreaterThanPi = function (
|
420
|
-
forward,
|
421
|
-
backward,
|
422
|
-
position,
|
423
|
-
ellipsoid
|
424
|
-
) {
|
425
|
-
const tangentPlane = new EllipsoidTangentPlane.EllipsoidTangentPlane(position, ellipsoid);
|
426
|
-
const next = tangentPlane.projectPointOntoPlane(
|
427
|
-
Matrix3.Cartesian3.add(position, forward, nextScratch),
|
428
|
-
nextScratch
|
429
|
-
);
|
430
|
-
const prev = tangentPlane.projectPointOntoPlane(
|
431
|
-
Matrix3.Cartesian3.add(position, backward, prevScratch),
|
432
|
-
prevScratch
|
433
|
-
);
|
434
|
-
|
435
|
-
return prev.x * next.y - prev.y * next.x >= 0.0;
|
436
|
-
};
|
437
|
-
|
438
|
-
const scratchForwardProjection = new Matrix3.Cartesian3();
|
439
|
-
const scratchBackwardProjection = new Matrix3.Cartesian3();
|
440
|
-
|
441
|
-
PolylineVolumeGeometryLibrary.computePositions = function (
|
442
|
-
positions,
|
443
|
-
shape2D,
|
444
|
-
boundingRectangle,
|
445
|
-
geometry,
|
446
|
-
duplicatePoints
|
447
|
-
) {
|
448
|
-
const ellipsoid = geometry._ellipsoid;
|
449
|
-
const heights = scaleToSurface(positions, ellipsoid);
|
450
|
-
const granularity = geometry._granularity;
|
451
|
-
const cornerType = geometry._cornerType;
|
452
|
-
const shapeForSides = duplicatePoints
|
453
|
-
? convertShapeTo3DDuplicate(shape2D, boundingRectangle)
|
454
|
-
: convertShapeTo3D(shape2D, boundingRectangle);
|
455
|
-
const shapeForEnds = duplicatePoints
|
456
|
-
? convertShapeTo3D(shape2D, boundingRectangle)
|
457
|
-
: undefined;
|
458
|
-
const heightOffset = boundingRectangle.height / 2;
|
459
|
-
const width = boundingRectangle.width / 2;
|
460
|
-
let length = positions.length;
|
461
|
-
let finalPositions = [];
|
462
|
-
let ends = duplicatePoints ? [] : undefined;
|
463
|
-
|
464
|
-
let forward = scratchCartesian1;
|
465
|
-
let backward = scratchCartesian2;
|
466
|
-
let cornerDirection = scratchCartesian3;
|
467
|
-
let surfaceNormal = scratchCartesian4;
|
468
|
-
let pivot = scratchCartesian5;
|
469
|
-
let start = scratchCartesian6;
|
470
|
-
let end = scratchCartesian7;
|
471
|
-
let left = scratchCartesian8;
|
472
|
-
let previousPosition = scratchCartesian9;
|
473
|
-
|
474
|
-
let position = positions[0];
|
475
|
-
let nextPosition = positions[1];
|
476
|
-
surfaceNormal = ellipsoid.geodeticSurfaceNormal(position, surfaceNormal);
|
477
|
-
forward = Matrix3.Cartesian3.subtract(nextPosition, position, forward);
|
478
|
-
forward = Matrix3.Cartesian3.normalize(forward, forward);
|
479
|
-
left = Matrix3.Cartesian3.cross(surfaceNormal, forward, left);
|
480
|
-
left = Matrix3.Cartesian3.normalize(left, left);
|
481
|
-
let h0 = heights[0];
|
482
|
-
let h1 = heights[1];
|
483
|
-
if (duplicatePoints) {
|
484
|
-
ends = addPosition(
|
485
|
-
position,
|
486
|
-
left,
|
487
|
-
shapeForEnds,
|
488
|
-
ends,
|
489
|
-
ellipsoid,
|
490
|
-
h0 + heightOffset,
|
491
|
-
1,
|
492
|
-
1
|
493
|
-
);
|
494
|
-
}
|
495
|
-
previousPosition = Matrix3.Cartesian3.clone(position, previousPosition);
|
496
|
-
position = nextPosition;
|
497
|
-
backward = Matrix3.Cartesian3.negate(forward, backward);
|
498
|
-
let subdividedHeights;
|
499
|
-
let subdividedPositions;
|
500
|
-
for (let i = 1; i < length - 1; i++) {
|
501
|
-
const repeat = duplicatePoints ? 2 : 1;
|
502
|
-
nextPosition = positions[i + 1];
|
503
|
-
if (position.equals(nextPosition)) {
|
504
|
-
oneTimeWarning(
|
505
|
-
"Positions are too close and are considered equivalent with rounding error."
|
506
|
-
);
|
507
|
-
continue;
|
508
|
-
}
|
509
|
-
forward = Matrix3.Cartesian3.subtract(nextPosition, position, forward);
|
510
|
-
forward = Matrix3.Cartesian3.normalize(forward, forward);
|
511
|
-
cornerDirection = Matrix3.Cartesian3.add(forward, backward, cornerDirection);
|
512
|
-
cornerDirection = Matrix3.Cartesian3.normalize(cornerDirection, cornerDirection);
|
513
|
-
surfaceNormal = ellipsoid.geodeticSurfaceNormal(position, surfaceNormal);
|
514
|
-
|
515
|
-
const forwardProjection = Matrix3.Cartesian3.multiplyByScalar(
|
516
|
-
surfaceNormal,
|
517
|
-
Matrix3.Cartesian3.dot(forward, surfaceNormal),
|
518
|
-
scratchForwardProjection
|
519
|
-
);
|
520
|
-
Matrix3.Cartesian3.subtract(forward, forwardProjection, forwardProjection);
|
521
|
-
Matrix3.Cartesian3.normalize(forwardProjection, forwardProjection);
|
522
|
-
|
523
|
-
const backwardProjection = Matrix3.Cartesian3.multiplyByScalar(
|
524
|
-
surfaceNormal,
|
525
|
-
Matrix3.Cartesian3.dot(backward, surfaceNormal),
|
526
|
-
scratchBackwardProjection
|
527
|
-
);
|
528
|
-
Matrix3.Cartesian3.subtract(backward, backwardProjection, backwardProjection);
|
529
|
-
Matrix3.Cartesian3.normalize(backwardProjection, backwardProjection);
|
530
|
-
|
531
|
-
const doCorner = !Math$1.CesiumMath.equalsEpsilon(
|
532
|
-
Math.abs(Matrix3.Cartesian3.dot(forwardProjection, backwardProjection)),
|
533
|
-
1.0,
|
534
|
-
Math$1.CesiumMath.EPSILON7
|
535
|
-
);
|
536
|
-
|
537
|
-
if (doCorner) {
|
538
|
-
cornerDirection = Matrix3.Cartesian3.cross(
|
539
|
-
cornerDirection,
|
540
|
-
surfaceNormal,
|
541
|
-
cornerDirection
|
542
|
-
);
|
543
|
-
cornerDirection = Matrix3.Cartesian3.cross(
|
544
|
-
surfaceNormal,
|
545
|
-
cornerDirection,
|
546
|
-
cornerDirection
|
547
|
-
);
|
548
|
-
cornerDirection = Matrix3.Cartesian3.normalize(cornerDirection, cornerDirection);
|
549
|
-
const scalar =
|
550
|
-
1 /
|
551
|
-
Math.max(
|
552
|
-
0.25,
|
553
|
-
Matrix3.Cartesian3.magnitude(
|
554
|
-
Matrix3.Cartesian3.cross(cornerDirection, backward, scratch1)
|
555
|
-
)
|
556
|
-
);
|
557
|
-
const leftIsOutside = PolylineVolumeGeometryLibrary.angleIsGreaterThanPi(
|
558
|
-
forward,
|
559
|
-
backward,
|
560
|
-
position,
|
561
|
-
ellipsoid
|
562
|
-
);
|
563
|
-
if (leftIsOutside) {
|
564
|
-
pivot = Matrix3.Cartesian3.add(
|
565
|
-
position,
|
566
|
-
Matrix3.Cartesian3.multiplyByScalar(
|
567
|
-
cornerDirection,
|
568
|
-
scalar * width,
|
569
|
-
cornerDirection
|
570
|
-
),
|
571
|
-
pivot
|
572
|
-
);
|
573
|
-
start = Matrix3.Cartesian3.add(
|
574
|
-
pivot,
|
575
|
-
Matrix3.Cartesian3.multiplyByScalar(left, width, start),
|
576
|
-
start
|
577
|
-
);
|
578
|
-
scratch2Array[0] = Matrix3.Cartesian3.clone(previousPosition, scratch2Array[0]);
|
579
|
-
scratch2Array[1] = Matrix3.Cartesian3.clone(start, scratch2Array[1]);
|
580
|
-
subdividedHeights = subdivideHeights(
|
581
|
-
scratch2Array,
|
582
|
-
h0 + heightOffset,
|
583
|
-
h1 + heightOffset,
|
584
|
-
granularity
|
585
|
-
);
|
586
|
-
subdividedPositions = PolylinePipeline.PolylinePipeline.generateArc({
|
587
|
-
positions: scratch2Array,
|
588
|
-
granularity: granularity,
|
589
|
-
ellipsoid: ellipsoid,
|
590
|
-
});
|
591
|
-
finalPositions = addPositions(
|
592
|
-
subdividedPositions,
|
593
|
-
left,
|
594
|
-
shapeForSides,
|
595
|
-
finalPositions,
|
596
|
-
ellipsoid,
|
597
|
-
subdividedHeights,
|
598
|
-
1
|
599
|
-
);
|
600
|
-
left = Matrix3.Cartesian3.cross(surfaceNormal, forward, left);
|
601
|
-
left = Matrix3.Cartesian3.normalize(left, left);
|
602
|
-
end = Matrix3.Cartesian3.add(
|
603
|
-
pivot,
|
604
|
-
Matrix3.Cartesian3.multiplyByScalar(left, width, end),
|
605
|
-
end
|
606
|
-
);
|
607
|
-
if (
|
608
|
-
cornerType === CornerType$1.ROUNDED ||
|
609
|
-
cornerType === CornerType$1.BEVELED
|
610
|
-
) {
|
611
|
-
computeRoundCorner(
|
612
|
-
pivot,
|
613
|
-
start,
|
614
|
-
end,
|
615
|
-
cornerType,
|
616
|
-
leftIsOutside,
|
617
|
-
ellipsoid,
|
618
|
-
finalPositions,
|
619
|
-
shapeForSides,
|
620
|
-
h1 + heightOffset,
|
621
|
-
duplicatePoints
|
622
|
-
);
|
623
|
-
} else {
|
624
|
-
cornerDirection = Matrix3.Cartesian3.negate(cornerDirection, cornerDirection);
|
625
|
-
finalPositions = addPosition(
|
626
|
-
position,
|
627
|
-
cornerDirection,
|
628
|
-
shapeForSides,
|
629
|
-
finalPositions,
|
630
|
-
ellipsoid,
|
631
|
-
h1 + heightOffset,
|
632
|
-
scalar,
|
633
|
-
repeat
|
634
|
-
);
|
635
|
-
}
|
636
|
-
previousPosition = Matrix3.Cartesian3.clone(end, previousPosition);
|
637
|
-
} else {
|
638
|
-
pivot = Matrix3.Cartesian3.add(
|
639
|
-
position,
|
640
|
-
Matrix3.Cartesian3.multiplyByScalar(
|
641
|
-
cornerDirection,
|
642
|
-
scalar * width,
|
643
|
-
cornerDirection
|
644
|
-
),
|
645
|
-
pivot
|
646
|
-
);
|
647
|
-
start = Matrix3.Cartesian3.add(
|
648
|
-
pivot,
|
649
|
-
Matrix3.Cartesian3.multiplyByScalar(left, -width, start),
|
650
|
-
start
|
651
|
-
);
|
652
|
-
scratch2Array[0] = Matrix3.Cartesian3.clone(previousPosition, scratch2Array[0]);
|
653
|
-
scratch2Array[1] = Matrix3.Cartesian3.clone(start, scratch2Array[1]);
|
654
|
-
subdividedHeights = subdivideHeights(
|
655
|
-
scratch2Array,
|
656
|
-
h0 + heightOffset,
|
657
|
-
h1 + heightOffset,
|
658
|
-
granularity
|
659
|
-
);
|
660
|
-
subdividedPositions = PolylinePipeline.PolylinePipeline.generateArc({
|
661
|
-
positions: scratch2Array,
|
662
|
-
granularity: granularity,
|
663
|
-
ellipsoid: ellipsoid,
|
664
|
-
});
|
665
|
-
finalPositions = addPositions(
|
666
|
-
subdividedPositions,
|
667
|
-
left,
|
668
|
-
shapeForSides,
|
669
|
-
finalPositions,
|
670
|
-
ellipsoid,
|
671
|
-
subdividedHeights,
|
672
|
-
1
|
673
|
-
);
|
674
|
-
left = Matrix3.Cartesian3.cross(surfaceNormal, forward, left);
|
675
|
-
left = Matrix3.Cartesian3.normalize(left, left);
|
676
|
-
end = Matrix3.Cartesian3.add(
|
677
|
-
pivot,
|
678
|
-
Matrix3.Cartesian3.multiplyByScalar(left, -width, end),
|
679
|
-
end
|
680
|
-
);
|
681
|
-
if (
|
682
|
-
cornerType === CornerType$1.ROUNDED ||
|
683
|
-
cornerType === CornerType$1.BEVELED
|
684
|
-
) {
|
685
|
-
computeRoundCorner(
|
686
|
-
pivot,
|
687
|
-
start,
|
688
|
-
end,
|
689
|
-
cornerType,
|
690
|
-
leftIsOutside,
|
691
|
-
ellipsoid,
|
692
|
-
finalPositions,
|
693
|
-
shapeForSides,
|
694
|
-
h1 + heightOffset,
|
695
|
-
duplicatePoints
|
696
|
-
);
|
697
|
-
} else {
|
698
|
-
finalPositions = addPosition(
|
699
|
-
position,
|
700
|
-
cornerDirection,
|
701
|
-
shapeForSides,
|
702
|
-
finalPositions,
|
703
|
-
ellipsoid,
|
704
|
-
h1 + heightOffset,
|
705
|
-
scalar,
|
706
|
-
repeat
|
707
|
-
);
|
708
|
-
}
|
709
|
-
previousPosition = Matrix3.Cartesian3.clone(end, previousPosition);
|
710
|
-
}
|
711
|
-
backward = Matrix3.Cartesian3.negate(forward, backward);
|
712
|
-
} else {
|
713
|
-
finalPositions = addPosition(
|
714
|
-
previousPosition,
|
715
|
-
left,
|
716
|
-
shapeForSides,
|
717
|
-
finalPositions,
|
718
|
-
ellipsoid,
|
719
|
-
h0 + heightOffset,
|
720
|
-
1,
|
721
|
-
1
|
722
|
-
);
|
723
|
-
previousPosition = position;
|
724
|
-
}
|
725
|
-
h0 = h1;
|
726
|
-
h1 = heights[i + 1];
|
727
|
-
position = nextPosition;
|
728
|
-
}
|
729
|
-
|
730
|
-
scratch2Array[0] = Matrix3.Cartesian3.clone(previousPosition, scratch2Array[0]);
|
731
|
-
scratch2Array[1] = Matrix3.Cartesian3.clone(position, scratch2Array[1]);
|
732
|
-
subdividedHeights = subdivideHeights(
|
733
|
-
scratch2Array,
|
734
|
-
h0 + heightOffset,
|
735
|
-
h1 + heightOffset,
|
736
|
-
granularity
|
737
|
-
);
|
738
|
-
subdividedPositions = PolylinePipeline.PolylinePipeline.generateArc({
|
739
|
-
positions: scratch2Array,
|
740
|
-
granularity: granularity,
|
741
|
-
ellipsoid: ellipsoid,
|
742
|
-
});
|
743
|
-
finalPositions = addPositions(
|
744
|
-
subdividedPositions,
|
745
|
-
left,
|
746
|
-
shapeForSides,
|
747
|
-
finalPositions,
|
748
|
-
ellipsoid,
|
749
|
-
subdividedHeights,
|
750
|
-
1
|
751
|
-
);
|
752
|
-
if (duplicatePoints) {
|
753
|
-
ends = addPosition(
|
754
|
-
position,
|
755
|
-
left,
|
756
|
-
shapeForEnds,
|
757
|
-
ends,
|
758
|
-
ellipsoid,
|
759
|
-
h1 + heightOffset,
|
760
|
-
1,
|
761
|
-
1
|
762
|
-
);
|
763
|
-
}
|
764
|
-
|
765
|
-
length = finalPositions.length;
|
766
|
-
const posLength = duplicatePoints ? length + ends.length : length;
|
767
|
-
const combinedPositions = new Float64Array(posLength);
|
768
|
-
combinedPositions.set(finalPositions);
|
769
|
-
if (duplicatePoints) {
|
770
|
-
combinedPositions.set(ends, length);
|
771
|
-
}
|
772
|
-
|
773
|
-
return combinedPositions;
|
774
|
-
};
|
775
|
-
var PolylineVolumeGeometryLibrary$1 = PolylineVolumeGeometryLibrary;
|
776
|
-
|
777
|
-
exports.CornerType = CornerType$1;
|
778
|
-
exports.PolylineVolumeGeometryLibrary = PolylineVolumeGeometryLibrary$1;
|
779
|
-
exports.oneTimeWarning = oneTimeWarning;
|
780
|
-
|
781
|
-
}));
|