@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,373 +0,0 @@
|
|
1
|
-
define(['exports', './AxisAlignedBoundingBox-4140c51f', './Matrix2-e1298525', './Matrix3-41c58dde', './Check-6ede7e26', './defaultValue-fe22d8c0', './IntersectionTests-70d39ba9', './Plane-4c3d403b', './Transforms-a2a85221'], (function (exports, AxisAlignedBoundingBox, Matrix2, Matrix3, Check, defaultValue, IntersectionTests, Plane, Transforms) { 'use strict';
|
2
|
-
|
3
|
-
const scratchCart4 = new Matrix2.Cartesian4();
|
4
|
-
/**
|
5
|
-
* A plane tangent to the provided ellipsoid at the provided origin.
|
6
|
-
* If origin is not on the surface of the ellipsoid, it's surface projection will be used.
|
7
|
-
* If origin is at the center of the ellipsoid, an exception will be thrown.
|
8
|
-
* @alias EllipsoidTangentPlane
|
9
|
-
* @constructor
|
10
|
-
*
|
11
|
-
* @param {Cartesian3} origin The point on the surface of the ellipsoid where the tangent plane touches.
|
12
|
-
* @param {Ellipsoid} [ellipsoid=Ellipsoid.WGS84] The ellipsoid to use.
|
13
|
-
*
|
14
|
-
* @exception {DeveloperError} origin must not be at the center of the ellipsoid.
|
15
|
-
*/
|
16
|
-
function EllipsoidTangentPlane(origin, ellipsoid) {
|
17
|
-
//>>includeStart('debug', pragmas.debug);
|
18
|
-
Check.Check.defined("origin", origin);
|
19
|
-
//>>includeEnd('debug');
|
20
|
-
|
21
|
-
ellipsoid = defaultValue.defaultValue(ellipsoid, Matrix3.Ellipsoid.WGS84);
|
22
|
-
origin = ellipsoid.scaleToGeodeticSurface(origin);
|
23
|
-
|
24
|
-
//>>includeStart('debug', pragmas.debug);
|
25
|
-
if (!defaultValue.defined(origin)) {
|
26
|
-
throw new Check.DeveloperError(
|
27
|
-
"origin must not be at the center of the ellipsoid."
|
28
|
-
);
|
29
|
-
}
|
30
|
-
//>>includeEnd('debug');
|
31
|
-
|
32
|
-
const eastNorthUp = Transforms.Transforms.eastNorthUpToFixedFrame(origin, ellipsoid);
|
33
|
-
this._ellipsoid = ellipsoid;
|
34
|
-
this._origin = origin;
|
35
|
-
this._xAxis = Matrix3.Cartesian3.fromCartesian4(
|
36
|
-
Matrix2.Matrix4.getColumn(eastNorthUp, 0, scratchCart4)
|
37
|
-
);
|
38
|
-
this._yAxis = Matrix3.Cartesian3.fromCartesian4(
|
39
|
-
Matrix2.Matrix4.getColumn(eastNorthUp, 1, scratchCart4)
|
40
|
-
);
|
41
|
-
|
42
|
-
const normal = Matrix3.Cartesian3.fromCartesian4(
|
43
|
-
Matrix2.Matrix4.getColumn(eastNorthUp, 2, scratchCart4)
|
44
|
-
);
|
45
|
-
this._plane = Plane.Plane.fromPointNormal(origin, normal);
|
46
|
-
}
|
47
|
-
|
48
|
-
Object.defineProperties(EllipsoidTangentPlane.prototype, {
|
49
|
-
/**
|
50
|
-
* Gets the ellipsoid.
|
51
|
-
* @memberof EllipsoidTangentPlane.prototype
|
52
|
-
* @type {Ellipsoid}
|
53
|
-
*/
|
54
|
-
ellipsoid: {
|
55
|
-
get: function () {
|
56
|
-
return this._ellipsoid;
|
57
|
-
},
|
58
|
-
},
|
59
|
-
|
60
|
-
/**
|
61
|
-
* Gets the origin.
|
62
|
-
* @memberof EllipsoidTangentPlane.prototype
|
63
|
-
* @type {Cartesian3}
|
64
|
-
*/
|
65
|
-
origin: {
|
66
|
-
get: function () {
|
67
|
-
return this._origin;
|
68
|
-
},
|
69
|
-
},
|
70
|
-
|
71
|
-
/**
|
72
|
-
* Gets the plane which is tangent to the ellipsoid.
|
73
|
-
* @memberof EllipsoidTangentPlane.prototype
|
74
|
-
* @readonly
|
75
|
-
* @type {Plane}
|
76
|
-
*/
|
77
|
-
plane: {
|
78
|
-
get: function () {
|
79
|
-
return this._plane;
|
80
|
-
},
|
81
|
-
},
|
82
|
-
|
83
|
-
/**
|
84
|
-
* Gets the local X-axis (east) of the tangent plane.
|
85
|
-
* @memberof EllipsoidTangentPlane.prototype
|
86
|
-
* @readonly
|
87
|
-
* @type {Cartesian3}
|
88
|
-
*/
|
89
|
-
xAxis: {
|
90
|
-
get: function () {
|
91
|
-
return this._xAxis;
|
92
|
-
},
|
93
|
-
},
|
94
|
-
|
95
|
-
/**
|
96
|
-
* Gets the local Y-axis (north) of the tangent plane.
|
97
|
-
* @memberof EllipsoidTangentPlane.prototype
|
98
|
-
* @readonly
|
99
|
-
* @type {Cartesian3}
|
100
|
-
*/
|
101
|
-
yAxis: {
|
102
|
-
get: function () {
|
103
|
-
return this._yAxis;
|
104
|
-
},
|
105
|
-
},
|
106
|
-
|
107
|
-
/**
|
108
|
-
* Gets the local Z-axis (up) of the tangent plane.
|
109
|
-
* @memberof EllipsoidTangentPlane.prototype
|
110
|
-
* @readonly
|
111
|
-
* @type {Cartesian3}
|
112
|
-
*/
|
113
|
-
zAxis: {
|
114
|
-
get: function () {
|
115
|
-
return this._plane.normal;
|
116
|
-
},
|
117
|
-
},
|
118
|
-
});
|
119
|
-
|
120
|
-
const tmp = new AxisAlignedBoundingBox.AxisAlignedBoundingBox();
|
121
|
-
/**
|
122
|
-
* Creates a new instance from the provided ellipsoid and the center
|
123
|
-
* point of the provided Cartesians.
|
124
|
-
*
|
125
|
-
* @param {Cartesian3[]} cartesians The list of positions surrounding the center point.
|
126
|
-
* @param {Ellipsoid} [ellipsoid=Ellipsoid.WGS84] The ellipsoid to use.
|
127
|
-
* @returns {EllipsoidTangentPlane} The new instance of EllipsoidTangentPlane.
|
128
|
-
*/
|
129
|
-
EllipsoidTangentPlane.fromPoints = function (cartesians, ellipsoid) {
|
130
|
-
//>>includeStart('debug', pragmas.debug);
|
131
|
-
Check.Check.defined("cartesians", cartesians);
|
132
|
-
//>>includeEnd('debug');
|
133
|
-
|
134
|
-
const box = AxisAlignedBoundingBox.AxisAlignedBoundingBox.fromPoints(cartesians, tmp);
|
135
|
-
return new EllipsoidTangentPlane(box.center, ellipsoid);
|
136
|
-
};
|
137
|
-
|
138
|
-
const scratchProjectPointOntoPlaneRay = new IntersectionTests.Ray();
|
139
|
-
const scratchProjectPointOntoPlaneCartesian3 = new Matrix3.Cartesian3();
|
140
|
-
|
141
|
-
/**
|
142
|
-
* Computes the projection of the provided 3D position onto the 2D plane, radially outward from the {@link EllipsoidTangentPlane.ellipsoid} coordinate system origin.
|
143
|
-
*
|
144
|
-
* @param {Cartesian3} cartesian The point to project.
|
145
|
-
* @param {Cartesian2} [result] The object onto which to store the result.
|
146
|
-
* @returns {Cartesian2} The modified result parameter or a new Cartesian2 instance if none was provided. Undefined if there is no intersection point
|
147
|
-
*/
|
148
|
-
EllipsoidTangentPlane.prototype.projectPointOntoPlane = function (
|
149
|
-
cartesian,
|
150
|
-
result
|
151
|
-
) {
|
152
|
-
//>>includeStart('debug', pragmas.debug);
|
153
|
-
Check.Check.defined("cartesian", cartesian);
|
154
|
-
//>>includeEnd('debug');
|
155
|
-
|
156
|
-
const ray = scratchProjectPointOntoPlaneRay;
|
157
|
-
ray.origin = cartesian;
|
158
|
-
Matrix3.Cartesian3.normalize(cartesian, ray.direction);
|
159
|
-
|
160
|
-
let intersectionPoint = IntersectionTests.IntersectionTests.rayPlane(
|
161
|
-
ray,
|
162
|
-
this._plane,
|
163
|
-
scratchProjectPointOntoPlaneCartesian3
|
164
|
-
);
|
165
|
-
if (!defaultValue.defined(intersectionPoint)) {
|
166
|
-
Matrix3.Cartesian3.negate(ray.direction, ray.direction);
|
167
|
-
intersectionPoint = IntersectionTests.IntersectionTests.rayPlane(
|
168
|
-
ray,
|
169
|
-
this._plane,
|
170
|
-
scratchProjectPointOntoPlaneCartesian3
|
171
|
-
);
|
172
|
-
}
|
173
|
-
|
174
|
-
if (defaultValue.defined(intersectionPoint)) {
|
175
|
-
const v = Matrix3.Cartesian3.subtract(
|
176
|
-
intersectionPoint,
|
177
|
-
this._origin,
|
178
|
-
intersectionPoint
|
179
|
-
);
|
180
|
-
const x = Matrix3.Cartesian3.dot(this._xAxis, v);
|
181
|
-
const y = Matrix3.Cartesian3.dot(this._yAxis, v);
|
182
|
-
|
183
|
-
if (!defaultValue.defined(result)) {
|
184
|
-
return new Matrix2.Cartesian2(x, y);
|
185
|
-
}
|
186
|
-
result.x = x;
|
187
|
-
result.y = y;
|
188
|
-
return result;
|
189
|
-
}
|
190
|
-
return undefined;
|
191
|
-
};
|
192
|
-
|
193
|
-
/**
|
194
|
-
* Computes the projection of the provided 3D positions onto the 2D plane (where possible), radially outward from the global origin.
|
195
|
-
* The resulting array may be shorter than the input array - if a single projection is impossible it will not be included.
|
196
|
-
*
|
197
|
-
* @see EllipsoidTangentPlane.projectPointOntoPlane
|
198
|
-
*
|
199
|
-
* @param {Cartesian3[]} cartesians The array of points to project.
|
200
|
-
* @param {Cartesian2[]} [result] The array of Cartesian2 instances onto which to store results.
|
201
|
-
* @returns {Cartesian2[]} The modified result parameter or a new array of Cartesian2 instances if none was provided.
|
202
|
-
*/
|
203
|
-
EllipsoidTangentPlane.prototype.projectPointsOntoPlane = function (
|
204
|
-
cartesians,
|
205
|
-
result
|
206
|
-
) {
|
207
|
-
//>>includeStart('debug', pragmas.debug);
|
208
|
-
Check.Check.defined("cartesians", cartesians);
|
209
|
-
//>>includeEnd('debug');
|
210
|
-
|
211
|
-
if (!defaultValue.defined(result)) {
|
212
|
-
result = [];
|
213
|
-
}
|
214
|
-
|
215
|
-
let count = 0;
|
216
|
-
const length = cartesians.length;
|
217
|
-
for (let i = 0; i < length; i++) {
|
218
|
-
const p = this.projectPointOntoPlane(cartesians[i], result[count]);
|
219
|
-
if (defaultValue.defined(p)) {
|
220
|
-
result[count] = p;
|
221
|
-
count++;
|
222
|
-
}
|
223
|
-
}
|
224
|
-
result.length = count;
|
225
|
-
return result;
|
226
|
-
};
|
227
|
-
|
228
|
-
/**
|
229
|
-
* Computes the projection of the provided 3D position onto the 2D plane, along the plane normal.
|
230
|
-
*
|
231
|
-
* @param {Cartesian3} cartesian The point to project.
|
232
|
-
* @param {Cartesian2} [result] The object onto which to store the result.
|
233
|
-
* @returns {Cartesian2} The modified result parameter or a new Cartesian2 instance if none was provided.
|
234
|
-
*/
|
235
|
-
EllipsoidTangentPlane.prototype.projectPointToNearestOnPlane = function (
|
236
|
-
cartesian,
|
237
|
-
result
|
238
|
-
) {
|
239
|
-
//>>includeStart('debug', pragmas.debug);
|
240
|
-
Check.Check.defined("cartesian", cartesian);
|
241
|
-
//>>includeEnd('debug');
|
242
|
-
|
243
|
-
if (!defaultValue.defined(result)) {
|
244
|
-
result = new Matrix2.Cartesian2();
|
245
|
-
}
|
246
|
-
|
247
|
-
const ray = scratchProjectPointOntoPlaneRay;
|
248
|
-
ray.origin = cartesian;
|
249
|
-
Matrix3.Cartesian3.clone(this._plane.normal, ray.direction);
|
250
|
-
|
251
|
-
let intersectionPoint = IntersectionTests.IntersectionTests.rayPlane(
|
252
|
-
ray,
|
253
|
-
this._plane,
|
254
|
-
scratchProjectPointOntoPlaneCartesian3
|
255
|
-
);
|
256
|
-
if (!defaultValue.defined(intersectionPoint)) {
|
257
|
-
Matrix3.Cartesian3.negate(ray.direction, ray.direction);
|
258
|
-
intersectionPoint = IntersectionTests.IntersectionTests.rayPlane(
|
259
|
-
ray,
|
260
|
-
this._plane,
|
261
|
-
scratchProjectPointOntoPlaneCartesian3
|
262
|
-
);
|
263
|
-
}
|
264
|
-
|
265
|
-
const v = Matrix3.Cartesian3.subtract(
|
266
|
-
intersectionPoint,
|
267
|
-
this._origin,
|
268
|
-
intersectionPoint
|
269
|
-
);
|
270
|
-
const x = Matrix3.Cartesian3.dot(this._xAxis, v);
|
271
|
-
const y = Matrix3.Cartesian3.dot(this._yAxis, v);
|
272
|
-
|
273
|
-
result.x = x;
|
274
|
-
result.y = y;
|
275
|
-
return result;
|
276
|
-
};
|
277
|
-
|
278
|
-
/**
|
279
|
-
* Computes the projection of the provided 3D positions onto the 2D plane, along the plane normal.
|
280
|
-
*
|
281
|
-
* @see EllipsoidTangentPlane.projectPointToNearestOnPlane
|
282
|
-
*
|
283
|
-
* @param {Cartesian3[]} cartesians The array of points to project.
|
284
|
-
* @param {Cartesian2[]} [result] The array of Cartesian2 instances onto which to store results.
|
285
|
-
* @returns {Cartesian2[]} The modified result parameter or a new array of Cartesian2 instances if none was provided. This will have the same length as <code>cartesians</code>.
|
286
|
-
*/
|
287
|
-
EllipsoidTangentPlane.prototype.projectPointsToNearestOnPlane = function (
|
288
|
-
cartesians,
|
289
|
-
result
|
290
|
-
) {
|
291
|
-
//>>includeStart('debug', pragmas.debug);
|
292
|
-
Check.Check.defined("cartesians", cartesians);
|
293
|
-
//>>includeEnd('debug');
|
294
|
-
|
295
|
-
if (!defaultValue.defined(result)) {
|
296
|
-
result = [];
|
297
|
-
}
|
298
|
-
|
299
|
-
const length = cartesians.length;
|
300
|
-
result.length = length;
|
301
|
-
for (let i = 0; i < length; i++) {
|
302
|
-
result[i] = this.projectPointToNearestOnPlane(cartesians[i], result[i]);
|
303
|
-
}
|
304
|
-
return result;
|
305
|
-
};
|
306
|
-
|
307
|
-
const projectPointsOntoEllipsoidScratch = new Matrix3.Cartesian3();
|
308
|
-
/**
|
309
|
-
* Computes the projection of the provided 2D position onto the 3D ellipsoid.
|
310
|
-
*
|
311
|
-
* @param {Cartesian2} cartesian The points to project.
|
312
|
-
* @param {Cartesian3} [result] The Cartesian3 instance to store result.
|
313
|
-
* @returns {Cartesian3} The modified result parameter or a new Cartesian3 instance if none was provided.
|
314
|
-
*/
|
315
|
-
EllipsoidTangentPlane.prototype.projectPointOntoEllipsoid = function (
|
316
|
-
cartesian,
|
317
|
-
result
|
318
|
-
) {
|
319
|
-
//>>includeStart('debug', pragmas.debug);
|
320
|
-
Check.Check.defined("cartesian", cartesian);
|
321
|
-
//>>includeEnd('debug');
|
322
|
-
|
323
|
-
if (!defaultValue.defined(result)) {
|
324
|
-
result = new Matrix3.Cartesian3();
|
325
|
-
}
|
326
|
-
|
327
|
-
const ellipsoid = this._ellipsoid;
|
328
|
-
const origin = this._origin;
|
329
|
-
const xAxis = this._xAxis;
|
330
|
-
const yAxis = this._yAxis;
|
331
|
-
const tmp = projectPointsOntoEllipsoidScratch;
|
332
|
-
|
333
|
-
Matrix3.Cartesian3.multiplyByScalar(xAxis, cartesian.x, tmp);
|
334
|
-
result = Matrix3.Cartesian3.add(origin, tmp, result);
|
335
|
-
Matrix3.Cartesian3.multiplyByScalar(yAxis, cartesian.y, tmp);
|
336
|
-
Matrix3.Cartesian3.add(result, tmp, result);
|
337
|
-
ellipsoid.scaleToGeocentricSurface(result, result);
|
338
|
-
|
339
|
-
return result;
|
340
|
-
};
|
341
|
-
|
342
|
-
/**
|
343
|
-
* Computes the projection of the provided 2D positions onto the 3D ellipsoid.
|
344
|
-
*
|
345
|
-
* @param {Cartesian2[]} cartesians The array of points to project.
|
346
|
-
* @param {Cartesian3[]} [result] The array of Cartesian3 instances onto which to store results.
|
347
|
-
* @returns {Cartesian3[]} The modified result parameter or a new array of Cartesian3 instances if none was provided.
|
348
|
-
*/
|
349
|
-
EllipsoidTangentPlane.prototype.projectPointsOntoEllipsoid = function (
|
350
|
-
cartesians,
|
351
|
-
result
|
352
|
-
) {
|
353
|
-
//>>includeStart('debug', pragmas.debug);
|
354
|
-
Check.Check.defined("cartesians", cartesians);
|
355
|
-
//>>includeEnd('debug');
|
356
|
-
|
357
|
-
const length = cartesians.length;
|
358
|
-
if (!defaultValue.defined(result)) {
|
359
|
-
result = new Array(length);
|
360
|
-
} else {
|
361
|
-
result.length = length;
|
362
|
-
}
|
363
|
-
|
364
|
-
for (let i = 0; i < length; ++i) {
|
365
|
-
result[i] = this.projectPointOntoEllipsoid(cartesians[i], result[i]);
|
366
|
-
}
|
367
|
-
|
368
|
-
return result;
|
369
|
-
};
|
370
|
-
|
371
|
-
exports.EllipsoidTangentPlane = EllipsoidTangentPlane;
|
372
|
-
|
373
|
-
}));
|
@@ -1,171 +0,0 @@
|
|
1
|
-
define(['exports', './Matrix3-41c58dde', './Check-6ede7e26', './defaultValue-fe22d8c0'], (function (exports, Matrix3, Check, defaultValue) { 'use strict';
|
2
|
-
|
3
|
-
/**
|
4
|
-
* A fixed-point encoding of a {@link Cartesian3} with 64-bit floating-point components, as two {@link Cartesian3}
|
5
|
-
* values that, when converted to 32-bit floating-point and added, approximate the original input.
|
6
|
-
* <p>
|
7
|
-
* This is used to encode positions in vertex buffers for rendering without jittering artifacts
|
8
|
-
* as described in {@link http://help.agi.com/AGIComponents/html/BlogPrecisionsPrecisions.htm|Precisions, Precisions}.
|
9
|
-
* </p>
|
10
|
-
*
|
11
|
-
* @alias EncodedCartesian3
|
12
|
-
* @constructor
|
13
|
-
*
|
14
|
-
* @private
|
15
|
-
*/
|
16
|
-
function EncodedCartesian3() {
|
17
|
-
/**
|
18
|
-
* The high bits for each component. Bits 0 to 22 store the whole value. Bits 23 to 31 are not used.
|
19
|
-
*
|
20
|
-
* @type {Cartesian3}
|
21
|
-
* @default {@link Cartesian3.ZERO}
|
22
|
-
*/
|
23
|
-
this.high = Matrix3.Cartesian3.clone(Matrix3.Cartesian3.ZERO);
|
24
|
-
|
25
|
-
/**
|
26
|
-
* The low bits for each component. Bits 7 to 22 store the whole value, and bits 0 to 6 store the fraction. Bits 23 to 31 are not used.
|
27
|
-
*
|
28
|
-
* @type {Cartesian3}
|
29
|
-
* @default {@link Cartesian3.ZERO}
|
30
|
-
*/
|
31
|
-
this.low = Matrix3.Cartesian3.clone(Matrix3.Cartesian3.ZERO);
|
32
|
-
}
|
33
|
-
|
34
|
-
/**
|
35
|
-
* Encodes a 64-bit floating-point value as two floating-point values that, when converted to
|
36
|
-
* 32-bit floating-point and added, approximate the original input. The returned object
|
37
|
-
* has <code>high</code> and <code>low</code> properties for the high and low bits, respectively.
|
38
|
-
* <p>
|
39
|
-
* The fixed-point encoding follows {@link http://help.agi.com/AGIComponents/html/BlogPrecisionsPrecisions.htm|Precisions, Precisions}.
|
40
|
-
* </p>
|
41
|
-
*
|
42
|
-
* @param {number} value The floating-point value to encode.
|
43
|
-
* @param {object} [result] The object onto which to store the result.
|
44
|
-
* @returns {object} The modified result parameter or a new instance if one was not provided.
|
45
|
-
*
|
46
|
-
* @example
|
47
|
-
* const value = 1234567.1234567;
|
48
|
-
* const splitValue = Cesium.EncodedCartesian3.encode(value);
|
49
|
-
*/
|
50
|
-
EncodedCartesian3.encode = function (value, result) {
|
51
|
-
//>>includeStart('debug', pragmas.debug);
|
52
|
-
Check.Check.typeOf.number("value", value);
|
53
|
-
//>>includeEnd('debug');
|
54
|
-
|
55
|
-
if (!defaultValue.defined(result)) {
|
56
|
-
result = {
|
57
|
-
high: 0.0,
|
58
|
-
low: 0.0,
|
59
|
-
};
|
60
|
-
}
|
61
|
-
|
62
|
-
let doubleHigh;
|
63
|
-
if (value >= 0.0) {
|
64
|
-
doubleHigh = Math.floor(value / 65536.0) * 65536.0;
|
65
|
-
result.high = doubleHigh;
|
66
|
-
result.low = value - doubleHigh;
|
67
|
-
} else {
|
68
|
-
doubleHigh = Math.floor(-value / 65536.0) * 65536.0;
|
69
|
-
result.high = -doubleHigh;
|
70
|
-
result.low = value + doubleHigh;
|
71
|
-
}
|
72
|
-
|
73
|
-
return result;
|
74
|
-
};
|
75
|
-
|
76
|
-
const scratchEncode = {
|
77
|
-
high: 0.0,
|
78
|
-
low: 0.0,
|
79
|
-
};
|
80
|
-
|
81
|
-
/**
|
82
|
-
* Encodes a {@link Cartesian3} with 64-bit floating-point components as two {@link Cartesian3}
|
83
|
-
* values that, when converted to 32-bit floating-point and added, approximate the original input.
|
84
|
-
* <p>
|
85
|
-
* The fixed-point encoding follows {@link https://help.agi.com/AGIComponents/html/BlogPrecisionsPrecisions.htm|Precisions, Precisions}.
|
86
|
-
* </p>
|
87
|
-
*
|
88
|
-
* @param {Cartesian3} cartesian The cartesian to encode.
|
89
|
-
* @param {EncodedCartesian3} [result] The object onto which to store the result.
|
90
|
-
* @returns {EncodedCartesian3} The modified result parameter or a new EncodedCartesian3 instance if one was not provided.
|
91
|
-
*
|
92
|
-
* @example
|
93
|
-
* const cart = new Cesium.Cartesian3(-10000000.0, 0.0, 10000000.0);
|
94
|
-
* const encoded = Cesium.EncodedCartesian3.fromCartesian(cart);
|
95
|
-
*/
|
96
|
-
EncodedCartesian3.fromCartesian = function (cartesian, result) {
|
97
|
-
//>>includeStart('debug', pragmas.debug);
|
98
|
-
Check.Check.typeOf.object("cartesian", cartesian);
|
99
|
-
//>>includeEnd('debug');
|
100
|
-
|
101
|
-
if (!defaultValue.defined(result)) {
|
102
|
-
result = new EncodedCartesian3();
|
103
|
-
}
|
104
|
-
|
105
|
-
const high = result.high;
|
106
|
-
const low = result.low;
|
107
|
-
|
108
|
-
EncodedCartesian3.encode(cartesian.x, scratchEncode);
|
109
|
-
high.x = scratchEncode.high;
|
110
|
-
low.x = scratchEncode.low;
|
111
|
-
|
112
|
-
EncodedCartesian3.encode(cartesian.y, scratchEncode);
|
113
|
-
high.y = scratchEncode.high;
|
114
|
-
low.y = scratchEncode.low;
|
115
|
-
|
116
|
-
EncodedCartesian3.encode(cartesian.z, scratchEncode);
|
117
|
-
high.z = scratchEncode.high;
|
118
|
-
low.z = scratchEncode.low;
|
119
|
-
|
120
|
-
return result;
|
121
|
-
};
|
122
|
-
|
123
|
-
const encodedP = new EncodedCartesian3();
|
124
|
-
|
125
|
-
/**
|
126
|
-
* Encodes the provided <code>cartesian</code>, and writes it to an array with <code>high</code>
|
127
|
-
* components followed by <code>low</code> components, i.e. <code>[high.x, high.y, high.z, low.x, low.y, low.z]</code>.
|
128
|
-
* <p>
|
129
|
-
* This is used to create interleaved high-precision position vertex attributes.
|
130
|
-
* </p>
|
131
|
-
*
|
132
|
-
* @param {Cartesian3} cartesian The cartesian to encode.
|
133
|
-
* @param {number[]} cartesianArray The array to write to.
|
134
|
-
* @param {number} index The index into the array to start writing. Six elements will be written.
|
135
|
-
*
|
136
|
-
* @exception {DeveloperError} index must be a number greater than or equal to 0.
|
137
|
-
*
|
138
|
-
* @example
|
139
|
-
* const positions = [
|
140
|
-
* new Cesium.Cartesian3(),
|
141
|
-
* // ...
|
142
|
-
* ];
|
143
|
-
* const encodedPositions = new Float32Array(2 * 3 * positions.length);
|
144
|
-
* let j = 0;
|
145
|
-
* for (let i = 0; i < positions.length; ++i) {
|
146
|
-
* Cesium.EncodedCartesian3.writeElement(positions[i], encodedPositions, j);
|
147
|
-
* j += 6;
|
148
|
-
* }
|
149
|
-
*/
|
150
|
-
EncodedCartesian3.writeElements = function (cartesian, cartesianArray, index) {
|
151
|
-
//>>includeStart('debug', pragmas.debug);
|
152
|
-
Check.Check.defined("cartesianArray", cartesianArray);
|
153
|
-
Check.Check.typeOf.number("index", index);
|
154
|
-
Check.Check.typeOf.number.greaterThanOrEquals("index", index, 0);
|
155
|
-
//>>includeEnd('debug');
|
156
|
-
|
157
|
-
EncodedCartesian3.fromCartesian(cartesian, encodedP);
|
158
|
-
const high = encodedP.high;
|
159
|
-
const low = encodedP.low;
|
160
|
-
|
161
|
-
cartesianArray[index] = high.x;
|
162
|
-
cartesianArray[index + 1] = high.y;
|
163
|
-
cartesianArray[index + 2] = high.z;
|
164
|
-
cartesianArray[index + 3] = low.x;
|
165
|
-
cartesianArray[index + 4] = low.y;
|
166
|
-
cartesianArray[index + 5] = low.z;
|
167
|
-
};
|
168
|
-
|
169
|
-
exports.EncodedCartesian3 = EncodedCartesian3;
|
170
|
-
|
171
|
-
}));
|