@vcmap/ui 5.0.0-rc.30 → 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 +4 -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.eaf7cc.js → cesium.77d0f7.js} +8915 -13165
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.b16511.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.4bbf0f.js → ol.e48649.js} +4 -4
- package/dist/assets/ol.js +1 -1
- package/dist/assets/{ui.ab815e.css → ui.50452a.css} +1 -1
- package/dist/assets/{ui.ab815e.js → ui.50452a.js} +4270 -4355
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +2 -2
- package/dist/assets/{vuetify.ea3fa8.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/package.json +5 -5
- 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/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/vectorPropertiesExample.vue +20 -1
- package/plugins/package.json +6 -2
- package/src/application/VcsAttributions.vue +27 -20
- package/src/components/form-inputs-controls/VcsChipArrayInput.vue +22 -14
- package/src/components/form-inputs-controls/VcsSlider.vue +1 -0
- 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 +2 -2
- package/src/components/tables/VcsDataTable.vue +1 -1
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +57 -14
- package/src/contentTree/contentTreeCollection.js +30 -9
- package/src/i18n/de.js +8 -5
- package/src/i18n/en.js +8 -5
- package/src/i18n/i18nCollection.js +19 -65
- package/src/manager/buttonManager.js +4 -0
- package/src/manager/contextMenu/contextMenuManager.js +2 -0
- package/src/pluginHelper.js +2 -2
- package/src/vcsUiApp.js +9 -4
- 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-c115e3a1.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/SearchNominatimEditor.vue +0 -90
- package/plugins/@vcmap/search-nominatim/config.json +0 -3
- package/plugins/@vcmap/search-nominatim/index.js +0 -66
- package/plugins/@vcmap/search-nominatim/nominatim.js +0 -175
- package/plugins/@vcmap/search-nominatim/package.json +0 -9
- /package/dist/assets/{vue.67e80f.js → vue.5d696e.js} +0 -0
- /package/dist/assets/{vuetify.ea3fa8.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,619 +0,0 @@
|
|
1
|
-
define(['exports', './Matrix2-e1298525', './Matrix3-41c58dde', './Check-6ede7e26', './defaultValue-fe22d8c0', './WebGLConstants-0b1ce7ba', './Transforms-a2a85221'], (function (exports, Matrix2, Matrix3, Check, defaultValue, WebGLConstants, Transforms) { 'use strict';
|
2
|
-
|
3
|
-
/**
|
4
|
-
* @private
|
5
|
-
*/
|
6
|
-
const GeometryType = {
|
7
|
-
NONE: 0,
|
8
|
-
TRIANGLES: 1,
|
9
|
-
LINES: 2,
|
10
|
-
POLYLINES: 3,
|
11
|
-
};
|
12
|
-
var GeometryType$1 = Object.freeze(GeometryType);
|
13
|
-
|
14
|
-
/**
|
15
|
-
* The type of a geometric primitive, i.e., points, lines, and triangles.
|
16
|
-
*
|
17
|
-
* @enum {number}
|
18
|
-
*/
|
19
|
-
const PrimitiveType = {
|
20
|
-
/**
|
21
|
-
* Points primitive where each vertex (or index) is a separate point.
|
22
|
-
*
|
23
|
-
* @type {number}
|
24
|
-
* @constant
|
25
|
-
*/
|
26
|
-
POINTS: WebGLConstants.WebGLConstants.POINTS,
|
27
|
-
|
28
|
-
/**
|
29
|
-
* Lines primitive where each two vertices (or indices) is a line segment. Line segments are not necessarily connected.
|
30
|
-
*
|
31
|
-
* @type {number}
|
32
|
-
* @constant
|
33
|
-
*/
|
34
|
-
LINES: WebGLConstants.WebGLConstants.LINES,
|
35
|
-
|
36
|
-
/**
|
37
|
-
* Line loop primitive where each vertex (or index) after the first connects a line to
|
38
|
-
* the previous vertex, and the last vertex implicitly connects to the first.
|
39
|
-
*
|
40
|
-
* @type {number}
|
41
|
-
* @constant
|
42
|
-
*/
|
43
|
-
LINE_LOOP: WebGLConstants.WebGLConstants.LINE_LOOP,
|
44
|
-
|
45
|
-
/**
|
46
|
-
* Line strip primitive where each vertex (or index) after the first connects a line to the previous vertex.
|
47
|
-
*
|
48
|
-
* @type {number}
|
49
|
-
* @constant
|
50
|
-
*/
|
51
|
-
LINE_STRIP: WebGLConstants.WebGLConstants.LINE_STRIP,
|
52
|
-
|
53
|
-
/**
|
54
|
-
* Triangles primitive where each three vertices (or indices) is a triangle. Triangles do not necessarily share edges.
|
55
|
-
*
|
56
|
-
* @type {number}
|
57
|
-
* @constant
|
58
|
-
*/
|
59
|
-
TRIANGLES: WebGLConstants.WebGLConstants.TRIANGLES,
|
60
|
-
|
61
|
-
/**
|
62
|
-
* Triangle strip primitive where each vertex (or index) after the first two connect to
|
63
|
-
* the previous two vertices forming a triangle. For example, this can be used to model a wall.
|
64
|
-
*
|
65
|
-
* @type {number}
|
66
|
-
* @constant
|
67
|
-
*/
|
68
|
-
TRIANGLE_STRIP: WebGLConstants.WebGLConstants.TRIANGLE_STRIP,
|
69
|
-
|
70
|
-
/**
|
71
|
-
* Triangle fan primitive where each vertex (or index) after the first two connect to
|
72
|
-
* the previous vertex and the first vertex forming a triangle. For example, this can be used
|
73
|
-
* to model a cone or circle.
|
74
|
-
*
|
75
|
-
* @type {number}
|
76
|
-
* @constant
|
77
|
-
*/
|
78
|
-
TRIANGLE_FAN: WebGLConstants.WebGLConstants.TRIANGLE_FAN,
|
79
|
-
};
|
80
|
-
|
81
|
-
/**
|
82
|
-
* @private
|
83
|
-
*/
|
84
|
-
PrimitiveType.isLines = function (primitiveType) {
|
85
|
-
return (
|
86
|
-
primitiveType === PrimitiveType.LINES ||
|
87
|
-
primitiveType === PrimitiveType.LINE_LOOP ||
|
88
|
-
primitiveType === PrimitiveType.LINE_STRIP
|
89
|
-
);
|
90
|
-
};
|
91
|
-
|
92
|
-
/**
|
93
|
-
* @private
|
94
|
-
*/
|
95
|
-
PrimitiveType.isTriangles = function (primitiveType) {
|
96
|
-
return (
|
97
|
-
primitiveType === PrimitiveType.TRIANGLES ||
|
98
|
-
primitiveType === PrimitiveType.TRIANGLE_STRIP ||
|
99
|
-
primitiveType === PrimitiveType.TRIANGLE_FAN
|
100
|
-
);
|
101
|
-
};
|
102
|
-
|
103
|
-
/**
|
104
|
-
* @private
|
105
|
-
*/
|
106
|
-
PrimitiveType.validate = function (primitiveType) {
|
107
|
-
return (
|
108
|
-
primitiveType === PrimitiveType.POINTS ||
|
109
|
-
primitiveType === PrimitiveType.LINES ||
|
110
|
-
primitiveType === PrimitiveType.LINE_LOOP ||
|
111
|
-
primitiveType === PrimitiveType.LINE_STRIP ||
|
112
|
-
primitiveType === PrimitiveType.TRIANGLES ||
|
113
|
-
primitiveType === PrimitiveType.TRIANGLE_STRIP ||
|
114
|
-
primitiveType === PrimitiveType.TRIANGLE_FAN
|
115
|
-
);
|
116
|
-
};
|
117
|
-
|
118
|
-
var PrimitiveType$1 = Object.freeze(PrimitiveType);
|
119
|
-
|
120
|
-
/**
|
121
|
-
* A geometry representation with attributes forming vertices and optional index data
|
122
|
-
* defining primitives. Geometries and an {@link Appearance}, which describes the shading,
|
123
|
-
* can be assigned to a {@link Primitive} for visualization. A <code>Primitive</code> can
|
124
|
-
* be created from many heterogeneous - in many cases - geometries for performance.
|
125
|
-
* <p>
|
126
|
-
* Geometries can be transformed and optimized using functions in {@link GeometryPipeline}.
|
127
|
-
* </p>
|
128
|
-
*
|
129
|
-
* @alias Geometry
|
130
|
-
* @constructor
|
131
|
-
*
|
132
|
-
* @param {object} options Object with the following properties:
|
133
|
-
* @param {GeometryAttributes} options.attributes Attributes, which make up the geometry's vertices.
|
134
|
-
* @param {PrimitiveType} [options.primitiveType=PrimitiveType.TRIANGLES] The type of primitives in the geometry.
|
135
|
-
* @param {Uint16Array|Uint32Array} [options.indices] Optional index data that determines the primitives in the geometry.
|
136
|
-
* @param {BoundingSphere} [options.boundingSphere] An optional bounding sphere that fully enclosed the geometry.
|
137
|
-
*
|
138
|
-
* @see PolygonGeometry
|
139
|
-
* @see RectangleGeometry
|
140
|
-
* @see EllipseGeometry
|
141
|
-
* @see CircleGeometry
|
142
|
-
* @see WallGeometry
|
143
|
-
* @see SimplePolylineGeometry
|
144
|
-
* @see BoxGeometry
|
145
|
-
* @see EllipsoidGeometry
|
146
|
-
*
|
147
|
-
* @demo {@link https://sandcastle.cesium.com/index.html?src=Geometry%20and%20Appearances.html|Geometry and Appearances Demo}
|
148
|
-
*
|
149
|
-
* @example
|
150
|
-
* // Create geometry with a position attribute and indexed lines.
|
151
|
-
* const positions = new Float64Array([
|
152
|
-
* 0.0, 0.0, 0.0,
|
153
|
-
* 7500000.0, 0.0, 0.0,
|
154
|
-
* 0.0, 7500000.0, 0.0
|
155
|
-
* ]);
|
156
|
-
*
|
157
|
-
* const geometry = new Cesium.Geometry({
|
158
|
-
* attributes : {
|
159
|
-
* position : new Cesium.GeometryAttribute({
|
160
|
-
* componentDatatype : Cesium.ComponentDatatype.DOUBLE,
|
161
|
-
* componentsPerAttribute : 3,
|
162
|
-
* values : positions
|
163
|
-
* })
|
164
|
-
* },
|
165
|
-
* indices : new Uint16Array([0, 1, 1, 2, 2, 0]),
|
166
|
-
* primitiveType : Cesium.PrimitiveType.LINES,
|
167
|
-
* boundingSphere : Cesium.BoundingSphere.fromVertices(positions)
|
168
|
-
* });
|
169
|
-
*/
|
170
|
-
function Geometry(options) {
|
171
|
-
options = defaultValue.defaultValue(options, defaultValue.defaultValue.EMPTY_OBJECT);
|
172
|
-
|
173
|
-
//>>includeStart('debug', pragmas.debug);
|
174
|
-
Check.Check.typeOf.object("options.attributes", options.attributes);
|
175
|
-
//>>includeEnd('debug');
|
176
|
-
|
177
|
-
/**
|
178
|
-
* Attributes, which make up the geometry's vertices. Each property in this object corresponds to a
|
179
|
-
* {@link GeometryAttribute} containing the attribute's data.
|
180
|
-
* <p>
|
181
|
-
* Attributes are always stored non-interleaved in a Geometry.
|
182
|
-
* </p>
|
183
|
-
* <p>
|
184
|
-
* There are reserved attribute names with well-known semantics. The following attributes
|
185
|
-
* are created by a Geometry (depending on the provided {@link VertexFormat}.
|
186
|
-
* <ul>
|
187
|
-
* <li><code>position</code> - 3D vertex position. 64-bit floating-point (for precision). 3 components per attribute. See {@link VertexFormat#position}.</li>
|
188
|
-
* <li><code>normal</code> - Normal (normalized), commonly used for lighting. 32-bit floating-point. 3 components per attribute. See {@link VertexFormat#normal}.</li>
|
189
|
-
* <li><code>st</code> - 2D texture coordinate. 32-bit floating-point. 2 components per attribute. See {@link VertexFormat#st}.</li>
|
190
|
-
* <li><code>bitangent</code> - Bitangent (normalized), used for tangent-space effects like bump mapping. 32-bit floating-point. 3 components per attribute. See {@link VertexFormat#bitangent}.</li>
|
191
|
-
* <li><code>tangent</code> - Tangent (normalized), used for tangent-space effects like bump mapping. 32-bit floating-point. 3 components per attribute. See {@link VertexFormat#tangent}.</li>
|
192
|
-
* </ul>
|
193
|
-
* </p>
|
194
|
-
* <p>
|
195
|
-
* The following attribute names are generally not created by a Geometry, but are added
|
196
|
-
* to a Geometry by a {@link Primitive} or {@link GeometryPipeline} functions to prepare
|
197
|
-
* the geometry for rendering.
|
198
|
-
* <ul>
|
199
|
-
* <li><code>position3DHigh</code> - High 32 bits for encoded 64-bit position computed with {@link GeometryPipeline.encodeAttribute}. 32-bit floating-point. 4 components per attribute.</li>
|
200
|
-
* <li><code>position3DLow</code> - Low 32 bits for encoded 64-bit position computed with {@link GeometryPipeline.encodeAttribute}. 32-bit floating-point. 4 components per attribute.</li>
|
201
|
-
* <li><code>position3DHigh</code> - High 32 bits for encoded 64-bit 2D (Columbus view) position computed with {@link GeometryPipeline.encodeAttribute}. 32-bit floating-point. 4 components per attribute.</li>
|
202
|
-
* <li><code>position2DLow</code> - Low 32 bits for encoded 64-bit 2D (Columbus view) position computed with {@link GeometryPipeline.encodeAttribute}. 32-bit floating-point. 4 components per attribute.</li>
|
203
|
-
* <li><code>color</code> - RGBA color (normalized) usually from {@link GeometryInstance#color}. 32-bit floating-point. 4 components per attribute.</li>
|
204
|
-
* <li><code>pickColor</code> - RGBA color used for picking. 32-bit floating-point. 4 components per attribute.</li>
|
205
|
-
* </ul>
|
206
|
-
* </p>
|
207
|
-
*
|
208
|
-
* @type GeometryAttributes
|
209
|
-
*
|
210
|
-
* @default undefined
|
211
|
-
*
|
212
|
-
*
|
213
|
-
* @example
|
214
|
-
* geometry.attributes.position = new Cesium.GeometryAttribute({
|
215
|
-
* componentDatatype : Cesium.ComponentDatatype.FLOAT,
|
216
|
-
* componentsPerAttribute : 3,
|
217
|
-
* values : new Float32Array(0)
|
218
|
-
* });
|
219
|
-
*
|
220
|
-
* @see GeometryAttribute
|
221
|
-
* @see VertexFormat
|
222
|
-
*/
|
223
|
-
this.attributes = options.attributes;
|
224
|
-
|
225
|
-
/**
|
226
|
-
* Optional index data that - along with {@link Geometry#primitiveType} -
|
227
|
-
* determines the primitives in the geometry.
|
228
|
-
*
|
229
|
-
* @type {Array}
|
230
|
-
*
|
231
|
-
* @default undefined
|
232
|
-
*/
|
233
|
-
this.indices = options.indices;
|
234
|
-
|
235
|
-
/**
|
236
|
-
* The type of primitives in the geometry. This is most often {@link PrimitiveType.TRIANGLES},
|
237
|
-
* but can varying based on the specific geometry.
|
238
|
-
*
|
239
|
-
* @type PrimitiveType
|
240
|
-
*
|
241
|
-
* @default undefined
|
242
|
-
*/
|
243
|
-
this.primitiveType = defaultValue.defaultValue(
|
244
|
-
options.primitiveType,
|
245
|
-
PrimitiveType$1.TRIANGLES
|
246
|
-
);
|
247
|
-
|
248
|
-
/**
|
249
|
-
* An optional bounding sphere that fully encloses the geometry. This is
|
250
|
-
* commonly used for culling.
|
251
|
-
*
|
252
|
-
* @type BoundingSphere
|
253
|
-
*
|
254
|
-
* @default undefined
|
255
|
-
*/
|
256
|
-
this.boundingSphere = options.boundingSphere;
|
257
|
-
|
258
|
-
/**
|
259
|
-
* @private
|
260
|
-
*/
|
261
|
-
this.geometryType = defaultValue.defaultValue(options.geometryType, GeometryType$1.NONE);
|
262
|
-
|
263
|
-
/**
|
264
|
-
* @private
|
265
|
-
*/
|
266
|
-
this.boundingSphereCV = options.boundingSphereCV;
|
267
|
-
|
268
|
-
/**
|
269
|
-
* Used for computing the bounding sphere for geometry using the applyOffset vertex attribute
|
270
|
-
* @private
|
271
|
-
*/
|
272
|
-
this.offsetAttribute = options.offsetAttribute;
|
273
|
-
}
|
274
|
-
|
275
|
-
/**
|
276
|
-
* Computes the number of vertices in a geometry. The runtime is linear with
|
277
|
-
* respect to the number of attributes in a vertex, not the number of vertices.
|
278
|
-
*
|
279
|
-
* @param {Geometry} geometry The geometry.
|
280
|
-
* @returns {number} The number of vertices in the geometry.
|
281
|
-
*
|
282
|
-
* @example
|
283
|
-
* const numVertices = Cesium.Geometry.computeNumberOfVertices(geometry);
|
284
|
-
*/
|
285
|
-
Geometry.computeNumberOfVertices = function (geometry) {
|
286
|
-
//>>includeStart('debug', pragmas.debug);
|
287
|
-
Check.Check.typeOf.object("geometry", geometry);
|
288
|
-
//>>includeEnd('debug');
|
289
|
-
|
290
|
-
let numberOfVertices = -1;
|
291
|
-
for (const property in geometry.attributes) {
|
292
|
-
if (
|
293
|
-
geometry.attributes.hasOwnProperty(property) &&
|
294
|
-
defaultValue.defined(geometry.attributes[property]) &&
|
295
|
-
defaultValue.defined(geometry.attributes[property].values)
|
296
|
-
) {
|
297
|
-
const attribute = geometry.attributes[property];
|
298
|
-
const num = attribute.values.length / attribute.componentsPerAttribute;
|
299
|
-
//>>includeStart('debug', pragmas.debug);
|
300
|
-
if (numberOfVertices !== num && numberOfVertices !== -1) {
|
301
|
-
throw new Check.DeveloperError(
|
302
|
-
"All attribute lists must have the same number of attributes."
|
303
|
-
);
|
304
|
-
}
|
305
|
-
//>>includeEnd('debug');
|
306
|
-
numberOfVertices = num;
|
307
|
-
}
|
308
|
-
}
|
309
|
-
|
310
|
-
return numberOfVertices;
|
311
|
-
};
|
312
|
-
|
313
|
-
const rectangleCenterScratch = new Matrix3.Cartographic();
|
314
|
-
const enuCenterScratch = new Matrix3.Cartesian3();
|
315
|
-
const fixedFrameToEnuScratch = new Matrix2.Matrix4();
|
316
|
-
const boundingRectanglePointsCartographicScratch = [
|
317
|
-
new Matrix3.Cartographic(),
|
318
|
-
new Matrix3.Cartographic(),
|
319
|
-
new Matrix3.Cartographic(),
|
320
|
-
];
|
321
|
-
const boundingRectanglePointsEnuScratch = [
|
322
|
-
new Matrix2.Cartesian2(),
|
323
|
-
new Matrix2.Cartesian2(),
|
324
|
-
new Matrix2.Cartesian2(),
|
325
|
-
];
|
326
|
-
const points2DScratch = [new Matrix2.Cartesian2(), new Matrix2.Cartesian2(), new Matrix2.Cartesian2()];
|
327
|
-
const pointEnuScratch = new Matrix3.Cartesian3();
|
328
|
-
const enuRotationScratch = new Transforms.Quaternion();
|
329
|
-
const enuRotationMatrixScratch = new Matrix2.Matrix4();
|
330
|
-
const rotation2DScratch = new Matrix2.Matrix2();
|
331
|
-
|
332
|
-
/**
|
333
|
-
* For remapping texture coordinates when rendering GroundPrimitives with materials.
|
334
|
-
* GroundPrimitive texture coordinates are computed to align with the cartographic coordinate system on the globe.
|
335
|
-
* However, EllipseGeometry, RectangleGeometry, and PolygonGeometry all bake rotations to per-vertex texture coordinates
|
336
|
-
* using different strategies.
|
337
|
-
*
|
338
|
-
* This method is used by EllipseGeometry and PolygonGeometry to approximate the same visual effect.
|
339
|
-
* We encapsulate rotation and scale by computing a "transformed" texture coordinate system and computing
|
340
|
-
* a set of reference points from which "cartographic" texture coordinates can be remapped to the "transformed"
|
341
|
-
* system using distances to lines in 2D.
|
342
|
-
*
|
343
|
-
* This approximation becomes less accurate as the covered area increases, especially for GroundPrimitives near the poles,
|
344
|
-
* but is generally reasonable for polygons and ellipses around the size of USA states.
|
345
|
-
*
|
346
|
-
* RectangleGeometry has its own version of this method that computes remapping coordinates using cartographic space
|
347
|
-
* as an intermediary instead of local ENU, which is more accurate for large-area rectangles.
|
348
|
-
*
|
349
|
-
* @param {Cartesian3[]} positions Array of positions outlining the geometry
|
350
|
-
* @param {number} stRotation Texture coordinate rotation.
|
351
|
-
* @param {Ellipsoid} ellipsoid Ellipsoid for projecting and generating local vectors.
|
352
|
-
* @param {Rectangle} boundingRectangle Bounding rectangle around the positions.
|
353
|
-
* @returns {number[]} An array of 6 numbers specifying [minimum point, u extent, v extent] as points in the "cartographic" system.
|
354
|
-
* @private
|
355
|
-
*/
|
356
|
-
Geometry._textureCoordinateRotationPoints = function (
|
357
|
-
positions,
|
358
|
-
stRotation,
|
359
|
-
ellipsoid,
|
360
|
-
boundingRectangle
|
361
|
-
) {
|
362
|
-
let i;
|
363
|
-
|
364
|
-
// Create a local east-north-up coordinate system centered on the polygon's bounding rectangle.
|
365
|
-
// Project the southwest, northwest, and southeast corners of the bounding rectangle into the plane of ENU as 2D points.
|
366
|
-
// These are the equivalents of (0,0), (0,1), and (1,0) in the texture coordiante system computed in ShadowVolumeAppearanceFS,
|
367
|
-
// aka "ENU texture space."
|
368
|
-
const rectangleCenter = Matrix2.Rectangle.center(
|
369
|
-
boundingRectangle,
|
370
|
-
rectangleCenterScratch
|
371
|
-
);
|
372
|
-
const enuCenter = Matrix3.Cartographic.toCartesian(
|
373
|
-
rectangleCenter,
|
374
|
-
ellipsoid,
|
375
|
-
enuCenterScratch
|
376
|
-
);
|
377
|
-
const enuToFixedFrame = Transforms.Transforms.eastNorthUpToFixedFrame(
|
378
|
-
enuCenter,
|
379
|
-
ellipsoid,
|
380
|
-
fixedFrameToEnuScratch
|
381
|
-
);
|
382
|
-
const fixedFrameToEnu = Matrix2.Matrix4.inverse(
|
383
|
-
enuToFixedFrame,
|
384
|
-
fixedFrameToEnuScratch
|
385
|
-
);
|
386
|
-
|
387
|
-
const boundingPointsEnu = boundingRectanglePointsEnuScratch;
|
388
|
-
const boundingPointsCarto = boundingRectanglePointsCartographicScratch;
|
389
|
-
|
390
|
-
boundingPointsCarto[0].longitude = boundingRectangle.west;
|
391
|
-
boundingPointsCarto[0].latitude = boundingRectangle.south;
|
392
|
-
|
393
|
-
boundingPointsCarto[1].longitude = boundingRectangle.west;
|
394
|
-
boundingPointsCarto[1].latitude = boundingRectangle.north;
|
395
|
-
|
396
|
-
boundingPointsCarto[2].longitude = boundingRectangle.east;
|
397
|
-
boundingPointsCarto[2].latitude = boundingRectangle.south;
|
398
|
-
|
399
|
-
let posEnu = pointEnuScratch;
|
400
|
-
|
401
|
-
for (i = 0; i < 3; i++) {
|
402
|
-
Matrix3.Cartographic.toCartesian(boundingPointsCarto[i], ellipsoid, posEnu);
|
403
|
-
posEnu = Matrix2.Matrix4.multiplyByPointAsVector(fixedFrameToEnu, posEnu, posEnu);
|
404
|
-
boundingPointsEnu[i].x = posEnu.x;
|
405
|
-
boundingPointsEnu[i].y = posEnu.y;
|
406
|
-
}
|
407
|
-
|
408
|
-
// Rotate each point in the polygon around the up vector in the ENU by -stRotation and project into ENU as 2D.
|
409
|
-
// Compute the bounding box of these rotated points in the 2D ENU plane.
|
410
|
-
// Rotate the corners back by stRotation, then compute their equivalents in the ENU texture space using the corners computed earlier.
|
411
|
-
const rotation = Transforms.Quaternion.fromAxisAngle(
|
412
|
-
Matrix3.Cartesian3.UNIT_Z,
|
413
|
-
-stRotation,
|
414
|
-
enuRotationScratch
|
415
|
-
);
|
416
|
-
const textureMatrix = Matrix3.Matrix3.fromQuaternion(
|
417
|
-
rotation,
|
418
|
-
enuRotationMatrixScratch
|
419
|
-
);
|
420
|
-
|
421
|
-
const positionsLength = positions.length;
|
422
|
-
let enuMinX = Number.POSITIVE_INFINITY;
|
423
|
-
let enuMinY = Number.POSITIVE_INFINITY;
|
424
|
-
let enuMaxX = Number.NEGATIVE_INFINITY;
|
425
|
-
let enuMaxY = Number.NEGATIVE_INFINITY;
|
426
|
-
for (i = 0; i < positionsLength; i++) {
|
427
|
-
posEnu = Matrix2.Matrix4.multiplyByPointAsVector(
|
428
|
-
fixedFrameToEnu,
|
429
|
-
positions[i],
|
430
|
-
posEnu
|
431
|
-
);
|
432
|
-
posEnu = Matrix3.Matrix3.multiplyByVector(textureMatrix, posEnu, posEnu);
|
433
|
-
|
434
|
-
enuMinX = Math.min(enuMinX, posEnu.x);
|
435
|
-
enuMinY = Math.min(enuMinY, posEnu.y);
|
436
|
-
enuMaxX = Math.max(enuMaxX, posEnu.x);
|
437
|
-
enuMaxY = Math.max(enuMaxY, posEnu.y);
|
438
|
-
}
|
439
|
-
|
440
|
-
const toDesiredInComputed = Matrix2.Matrix2.fromRotation(
|
441
|
-
stRotation,
|
442
|
-
rotation2DScratch
|
443
|
-
);
|
444
|
-
|
445
|
-
const points2D = points2DScratch;
|
446
|
-
points2D[0].x = enuMinX;
|
447
|
-
points2D[0].y = enuMinY;
|
448
|
-
|
449
|
-
points2D[1].x = enuMinX;
|
450
|
-
points2D[1].y = enuMaxY;
|
451
|
-
|
452
|
-
points2D[2].x = enuMaxX;
|
453
|
-
points2D[2].y = enuMinY;
|
454
|
-
|
455
|
-
const boundingEnuMin = boundingPointsEnu[0];
|
456
|
-
const boundingPointsWidth = boundingPointsEnu[2].x - boundingEnuMin.x;
|
457
|
-
const boundingPointsHeight = boundingPointsEnu[1].y - boundingEnuMin.y;
|
458
|
-
|
459
|
-
for (i = 0; i < 3; i++) {
|
460
|
-
const point2D = points2D[i];
|
461
|
-
// rotate back
|
462
|
-
Matrix2.Matrix2.multiplyByVector(toDesiredInComputed, point2D, point2D);
|
463
|
-
|
464
|
-
// Convert point into east-north texture coordinate space
|
465
|
-
point2D.x = (point2D.x - boundingEnuMin.x) / boundingPointsWidth;
|
466
|
-
point2D.y = (point2D.y - boundingEnuMin.y) / boundingPointsHeight;
|
467
|
-
}
|
468
|
-
|
469
|
-
const minXYCorner = points2D[0];
|
470
|
-
const maxYCorner = points2D[1];
|
471
|
-
const maxXCorner = points2D[2];
|
472
|
-
const result = new Array(6);
|
473
|
-
Matrix2.Cartesian2.pack(minXYCorner, result);
|
474
|
-
Matrix2.Cartesian2.pack(maxYCorner, result, 2);
|
475
|
-
Matrix2.Cartesian2.pack(maxXCorner, result, 4);
|
476
|
-
|
477
|
-
return result;
|
478
|
-
};
|
479
|
-
|
480
|
-
/**
|
481
|
-
* Values and type information for geometry attributes. A {@link Geometry}
|
482
|
-
* generally contains one or more attributes. All attributes together form
|
483
|
-
* the geometry's vertices.
|
484
|
-
*
|
485
|
-
* @alias GeometryAttribute
|
486
|
-
* @constructor
|
487
|
-
*
|
488
|
-
* @param {object} [options] Object with the following properties:
|
489
|
-
* @param {ComponentDatatype} [options.componentDatatype] The datatype of each component in the attribute, e.g., individual elements in values.
|
490
|
-
* @param {number} [options.componentsPerAttribute] A number between 1 and 4 that defines the number of components in an attributes.
|
491
|
-
* @param {boolean} [options.normalize=false] When <code>true</code> and <code>componentDatatype</code> is an integer format, indicate that the components should be mapped to the range [0, 1] (unsigned) or [-1, 1] (signed) when they are accessed as floating-point for rendering.
|
492
|
-
* @param {number[]|Int8Array|Uint8Array|Int16Array|Uint16Array|Int32Array|Uint32Array|Float32Array|Float64Array} [options.values] The values for the attributes stored in a typed array.
|
493
|
-
*
|
494
|
-
* @exception {DeveloperError} options.componentsPerAttribute must be between 1 and 4.
|
495
|
-
*
|
496
|
-
*
|
497
|
-
* @example
|
498
|
-
* const geometry = new Cesium.Geometry({
|
499
|
-
* attributes : {
|
500
|
-
* position : new Cesium.GeometryAttribute({
|
501
|
-
* componentDatatype : Cesium.ComponentDatatype.FLOAT,
|
502
|
-
* componentsPerAttribute : 3,
|
503
|
-
* values : new Float32Array([
|
504
|
-
* 0.0, 0.0, 0.0,
|
505
|
-
* 7500000.0, 0.0, 0.0,
|
506
|
-
* 0.0, 7500000.0, 0.0
|
507
|
-
* ])
|
508
|
-
* })
|
509
|
-
* },
|
510
|
-
* primitiveType : Cesium.PrimitiveType.LINE_LOOP
|
511
|
-
* });
|
512
|
-
*
|
513
|
-
* @see Geometry
|
514
|
-
*/
|
515
|
-
function GeometryAttribute(options) {
|
516
|
-
options = defaultValue.defaultValue(options, defaultValue.defaultValue.EMPTY_OBJECT);
|
517
|
-
|
518
|
-
//>>includeStart('debug', pragmas.debug);
|
519
|
-
if (!defaultValue.defined(options.componentDatatype)) {
|
520
|
-
throw new Check.DeveloperError("options.componentDatatype is required.");
|
521
|
-
}
|
522
|
-
if (!defaultValue.defined(options.componentsPerAttribute)) {
|
523
|
-
throw new Check.DeveloperError("options.componentsPerAttribute is required.");
|
524
|
-
}
|
525
|
-
if (
|
526
|
-
options.componentsPerAttribute < 1 ||
|
527
|
-
options.componentsPerAttribute > 4
|
528
|
-
) {
|
529
|
-
throw new Check.DeveloperError(
|
530
|
-
"options.componentsPerAttribute must be between 1 and 4."
|
531
|
-
);
|
532
|
-
}
|
533
|
-
if (!defaultValue.defined(options.values)) {
|
534
|
-
throw new Check.DeveloperError("options.values is required.");
|
535
|
-
}
|
536
|
-
//>>includeEnd('debug');
|
537
|
-
|
538
|
-
/**
|
539
|
-
* The datatype of each component in the attribute, e.g., individual elements in
|
540
|
-
* {@link GeometryAttribute#values}.
|
541
|
-
*
|
542
|
-
* @type {ComponentDatatype}
|
543
|
-
*
|
544
|
-
* @default undefined
|
545
|
-
*/
|
546
|
-
this.componentDatatype = options.componentDatatype;
|
547
|
-
|
548
|
-
/**
|
549
|
-
* A number between 1 and 4 that defines the number of components in an attributes.
|
550
|
-
* For example, a position attribute with x, y, and z components would have 3 as
|
551
|
-
* shown in the code example.
|
552
|
-
*
|
553
|
-
* @type {number}
|
554
|
-
*
|
555
|
-
* @default undefined
|
556
|
-
*
|
557
|
-
* @example
|
558
|
-
* attribute.componentDatatype = Cesium.ComponentDatatype.FLOAT;
|
559
|
-
* attribute.componentsPerAttribute = 3;
|
560
|
-
* attribute.values = new Float32Array([
|
561
|
-
* 0.0, 0.0, 0.0,
|
562
|
-
* 7500000.0, 0.0, 0.0,
|
563
|
-
* 0.0, 7500000.0, 0.0
|
564
|
-
* ]);
|
565
|
-
*/
|
566
|
-
this.componentsPerAttribute = options.componentsPerAttribute;
|
567
|
-
|
568
|
-
/**
|
569
|
-
* When <code>true</code> and <code>componentDatatype</code> is an integer format,
|
570
|
-
* indicate that the components should be mapped to the range [0, 1] (unsigned)
|
571
|
-
* or [-1, 1] (signed) when they are accessed as floating-point for rendering.
|
572
|
-
* <p>
|
573
|
-
* This is commonly used when storing colors using {@link ComponentDatatype.UNSIGNED_BYTE}.
|
574
|
-
* </p>
|
575
|
-
*
|
576
|
-
* @type {boolean}
|
577
|
-
*
|
578
|
-
* @default false
|
579
|
-
*
|
580
|
-
* @example
|
581
|
-
* attribute.componentDatatype = Cesium.ComponentDatatype.UNSIGNED_BYTE;
|
582
|
-
* attribute.componentsPerAttribute = 4;
|
583
|
-
* attribute.normalize = true;
|
584
|
-
* attribute.values = new Uint8Array([
|
585
|
-
* Cesium.Color.floatToByte(color.red),
|
586
|
-
* Cesium.Color.floatToByte(color.green),
|
587
|
-
* Cesium.Color.floatToByte(color.blue),
|
588
|
-
* Cesium.Color.floatToByte(color.alpha)
|
589
|
-
* ]);
|
590
|
-
*/
|
591
|
-
this.normalize = defaultValue.defaultValue(options.normalize, false);
|
592
|
-
|
593
|
-
/**
|
594
|
-
* The values for the attributes stored in a typed array. In the code example,
|
595
|
-
* every three elements in <code>values</code> defines one attributes since
|
596
|
-
* <code>componentsPerAttribute</code> is 3.
|
597
|
-
*
|
598
|
-
* @type {number[]|Int8Array|Uint8Array|Int16Array|Uint16Array|Int32Array|Uint32Array|Float32Array|Float64Array}
|
599
|
-
*
|
600
|
-
* @default undefined
|
601
|
-
*
|
602
|
-
* @example
|
603
|
-
* attribute.componentDatatype = Cesium.ComponentDatatype.FLOAT;
|
604
|
-
* attribute.componentsPerAttribute = 3;
|
605
|
-
* attribute.values = new Float32Array([
|
606
|
-
* 0.0, 0.0, 0.0,
|
607
|
-
* 7500000.0, 0.0, 0.0,
|
608
|
-
* 0.0, 7500000.0, 0.0
|
609
|
-
* ]);
|
610
|
-
*/
|
611
|
-
this.values = options.values;
|
612
|
-
}
|
613
|
-
|
614
|
-
exports.Geometry = Geometry;
|
615
|
-
exports.GeometryAttribute = GeometryAttribute;
|
616
|
-
exports.GeometryType = GeometryType$1;
|
617
|
-
exports.PrimitiveType = PrimitiveType$1;
|
618
|
-
|
619
|
-
}));
|