@vcmap/ui 5.0.0-rc.17 → 5.0.0-rc.20
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/README.md +6 -6
- package/build/build.js +2 -2
- package/build/buildCesium.js +3 -3
- package/build/buildHelpers.js +2 -1
- package/config/base.config.json +0 -4
- package/config/dev.config.json +35 -14
- package/config/www.config.json +752 -123
- package/dist/assets/cesium/Workers/ArcType-ce2e50ab.js +37 -0
- package/dist/assets/cesium/Workers/AttributeCompression-b646d393.js +716 -0
- package/dist/assets/cesium/Workers/AxisAlignedBoundingBox-ff186ccc.js +258 -0
- package/dist/assets/cesium/Workers/BoundingRectangle-be5924f4.js +369 -0
- package/dist/assets/cesium/Workers/BoxGeometry-12eeccaf.js +884 -0
- package/dist/assets/cesium/Workers/Check-666ab1a0.js +290 -0
- package/dist/assets/cesium/Workers/Color-a84038cb.js +2262 -0
- package/dist/assets/cesium/Workers/ComponentDatatype-f7b11d02.js +341 -0
- package/dist/assets/cesium/Workers/CoplanarPolygonGeometryLibrary-3272c1b3.js +132 -0
- package/dist/assets/cesium/Workers/CorridorGeometryLibrary-0170e093.js +498 -0
- package/dist/assets/cesium/Workers/CylinderGeometry-7c5da648.js +467 -0
- package/dist/assets/cesium/Workers/CylinderGeometryLibrary-372c07d8.js +63 -0
- package/dist/assets/cesium/Workers/EllipseGeometry-797d580e.js +1304 -0
- package/dist/assets/cesium/Workers/EllipseGeometryLibrary-2939e1dc.js +366 -0
- package/dist/assets/cesium/Workers/EllipseOutlineGeometry-8b50870f.js +443 -0
- package/dist/assets/cesium/Workers/EllipsoidGeodesic-98c62a56.js +520 -0
- package/dist/assets/cesium/Workers/EllipsoidGeometry-21c0e3a5.js +637 -0
- package/dist/assets/cesium/Workers/EllipsoidOutlineGeometry-eff247c8.js +454 -0
- package/dist/assets/cesium/Workers/EllipsoidRhumbLine-19756602.js +741 -0
- package/dist/assets/cesium/Workers/EllipsoidTangentPlane-214683dc.js +373 -0
- package/dist/assets/cesium/Workers/EncodedCartesian3-81f70735.js +171 -0
- package/dist/assets/cesium/Workers/FrustumGeometry-ac42a6d9.js +2512 -0
- package/dist/assets/cesium/Workers/GeometryAttribute-7d6f1732.js +619 -0
- package/dist/assets/cesium/Workers/GeometryAttributes-f06a2792.js +91 -0
- package/dist/assets/cesium/Workers/GeometryInstance-451dc1cd.js +121 -0
- package/dist/assets/cesium/Workers/GeometryOffsetAttribute-04332ce7.js +16 -0
- package/dist/assets/cesium/Workers/GeometryPipeline-ce4339ed.js +3690 -0
- package/dist/assets/cesium/Workers/IndexDatatype-a55ceaa1.js +200 -0
- package/dist/assets/cesium/Workers/IntersectionTests-f6e6bd8a.js +1836 -0
- package/dist/assets/cesium/Workers/Math-2dbd6b93.js +1330 -0
- package/dist/assets/cesium/Workers/Matrix2-13178034.js +7086 -0
- package/dist/assets/cesium/Workers/Matrix3-315394f6.js +4283 -0
- package/dist/assets/cesium/Workers/OrientedBoundingBox-04920dc7.js +1257 -0
- package/dist/assets/cesium/Workers/Plane-900aa728.js +309 -0
- package/dist/assets/cesium/Workers/PolygonGeometryLibrary-a8680d96.js +1074 -0
- package/dist/assets/cesium/Workers/PolygonPipeline-844aab0a.js +1345 -0
- package/dist/assets/cesium/Workers/PolylinePipeline-32f36d2a.js +573 -0
- package/dist/assets/cesium/Workers/PolylineVolumeGeometryLibrary-a510d657.js +781 -0
- package/dist/assets/cesium/Workers/PrimitivePipeline-ba38434a.js +966 -0
- package/dist/assets/cesium/Workers/RectangleGeometryLibrary-bdba697e.js +280 -0
- package/dist/assets/cesium/Workers/RuntimeError-06c93819.js +68 -0
- package/dist/assets/cesium/Workers/TerrainEncoding-833187da.js +1227 -0
- package/dist/assets/cesium/Workers/Transforms-40229881.js +14696 -0
- package/dist/assets/cesium/Workers/VertexFormat-6b480673.js +312 -0
- package/dist/assets/cesium/Workers/WallGeometryLibrary-919eed92.js +211 -0
- package/dist/assets/cesium/Workers/WebGLConstants-a8cc3e8c.js +620 -0
- package/dist/assets/cesium/Workers/WebMercatorProjection-13a90d41.js +151 -0
- package/dist/assets/cesium/Workers/arrayRemoveDuplicates-c2038105.js +129 -0
- package/dist/assets/cesium/Workers/cesiumWorkerBootstrapper.js +1336 -4
- package/dist/assets/cesium/Workers/combine-ca22a614.js +82 -0
- package/dist/assets/cesium/Workers/combineGeometry.js +17 -25
- package/dist/assets/cesium/Workers/createBoxGeometry.js +12 -25
- package/dist/assets/cesium/Workers/createBoxOutlineGeometry.js +313 -25
- package/dist/assets/cesium/Workers/createCircleGeometry.js +213 -25
- package/dist/assets/cesium/Workers/createCircleOutlineGeometry.js +160 -25
- package/dist/assets/cesium/Workers/createCoplanarPolygonGeometry.js +586 -25
- package/dist/assets/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +236 -25
- package/dist/assets/cesium/Workers/createCorridorGeometry.js +1407 -25
- package/dist/assets/cesium/Workers/createCorridorOutlineGeometry.js +603 -25
- package/dist/assets/cesium/Workers/createCylinderGeometry.js +12 -25
- package/dist/assets/cesium/Workers/createCylinderOutlineGeometry.js +265 -25
- package/dist/assets/cesium/Workers/createEllipseGeometry.js +14 -25
- package/dist/assets/cesium/Workers/createEllipseOutlineGeometry.js +14 -25
- package/dist/assets/cesium/Workers/createEllipsoidGeometry.js +12 -25
- package/dist/assets/cesium/Workers/createEllipsoidOutlineGeometry.js +15 -25
- package/dist/assets/cesium/Workers/createFrustumGeometry.js +12 -25
- package/dist/assets/cesium/Workers/createFrustumOutlineGeometry.js +251 -25
- package/dist/assets/cesium/Workers/createGeometry.js +55 -25
- package/dist/assets/cesium/Workers/createGroundPolylineGeometry.js +2134 -25
- package/dist/assets/cesium/Workers/createPlaneGeometry.js +250 -25
- package/dist/assets/cesium/Workers/createPlaneOutlineGeometry.js +115 -25
- package/dist/assets/cesium/Workers/createPolygonGeometry.js +1420 -25
- package/dist/assets/cesium/Workers/createPolygonOutlineGeometry.js +683 -25
- package/dist/assets/cesium/Workers/createPolylineGeometry.js +571 -25
- package/dist/assets/cesium/Workers/createPolylineVolumeGeometry.js +411 -25
- package/dist/assets/cesium/Workers/createPolylineVolumeOutlineGeometry.js +301 -25
- package/dist/assets/cesium/Workers/createRectangleGeometry.js +1476 -25
- package/dist/assets/cesium/Workers/createRectangleOutlineGeometry.js +535 -25
- package/dist/assets/cesium/Workers/createSimplePolylineGeometry.js +458 -25
- package/dist/assets/cesium/Workers/createSphereGeometry.js +123 -25
- package/dist/assets/cesium/Workers/createSphereOutlineGeometry.js +126 -25
- package/dist/assets/cesium/Workers/createTaskProcessorWorker.js +127 -25
- package/dist/assets/cesium/Workers/createVectorTileClampedPolylines.js +535 -25
- package/dist/assets/cesium/Workers/createVectorTileGeometries.js +445 -25
- package/dist/assets/cesium/Workers/createVectorTilePoints.js +79 -25
- package/dist/assets/cesium/Workers/createVectorTilePolygons.js +406 -25
- package/dist/assets/cesium/Workers/createVectorTilePolylines.js +254 -25
- package/dist/assets/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +640 -25
- package/dist/assets/cesium/Workers/createVerticesFromHeightmap.js +2711 -27
- package/dist/assets/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +994 -25
- package/dist/assets/cesium/Workers/createWallGeometry.js +623 -25
- package/dist/assets/cesium/Workers/createWallOutlineGeometry.js +432 -25
- package/dist/assets/cesium/Workers/decodeDraco.js +381 -25
- package/dist/assets/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +3687 -25
- package/dist/assets/cesium/Workers/decodeI3S.js +1040 -0
- package/dist/assets/cesium/Workers/defaultValue-0a909f67.js +51 -0
- package/dist/assets/cesium/Workers/package.js +2 -2
- package/dist/assets/cesium/Workers/transcodeKTX2.js +1516 -25
- package/dist/assets/cesium/Workers/transferTypedArrayTest.js +18 -2
- package/dist/assets/cesium/Workers/upsampleQuantizedTerrainMesh.js +1023 -25
- package/dist/assets/{cesium.41de56.js → cesium.adbd45.js} +112161 -108735
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.af84e3.js → core.60e74d.js} +1616 -1629
- package/dist/assets/core.f198cf.js +15993 -0
- package/dist/assets/core.js +1 -1
- package/dist/assets/{index.5b773cad.js → index.884a53ef.js} +1 -1
- package/dist/assets/{ol.5c7490.js → ol.c6ff35.js} +6992 -6972
- package/dist/assets/ol.dbd604.js +44299 -0
- package/dist/assets/ol.js +1 -1
- package/dist/assets/ui.bf504d.css +1 -0
- package/dist/assets/{ui.dffe32.js → ui.bf504d.js} +6171 -6821
- package/dist/assets/ui.js +1 -1
- package/dist/assets/{vue.25da17.js → vue.75b819.js} +0 -0
- package/dist/assets/vue.a831f1.js +4675 -0
- package/dist/assets/vue.js +2 -2
- package/dist/assets/{vuetify.e4ece7.css → vuetify.0d7360.css} +0 -0
- package/dist/assets/{vuetify.e4ece7.js → vuetify.0d7360.js} +1 -1
- package/dist/assets/vuetify.js +2 -2
- package/dist/index.html +1 -1
- package/index.js +2 -1
- package/lib/cesium.js +1 -1
- package/package.json +3 -4
- package/plugins/{simple-graph → @vcmap/simple-graph}/README.md +1 -1
- package/plugins/{simple-graph → @vcmap/simple-graph}/SimpleGraphComponent.vue +0 -0
- package/plugins/{simple-graph → @vcmap/simple-graph}/index.js +0 -0
- package/plugins/{simple-graph → @vcmap/simple-graph}/package.json +0 -0
- package/plugins/{simple-graph → @vcmap/simple-graph}/simpleGraphView.js +0 -0
- package/plugins/@vcmap-show-case/README.md +20 -0
- package/plugins/{buttonExamples/ButtonExamples.vue → @vcmap-show-case/buttons-example/ButtonsExample.vue} +19 -1
- package/plugins/@vcmap-show-case/buttons-example/README.md +4 -0
- package/plugins/{buttonExamples → @vcmap-show-case/buttons-example}/index.js +16 -8
- package/plugins/@vcmap-show-case/buttons-example/package.json +5 -0
- package/plugins/{categoryTest → @vcmap-show-case/category-tester}/Categories.vue +7 -6
- package/plugins/{categoryTest → @vcmap-show-case/category-tester}/Category.vue +4 -3
- package/plugins/@vcmap-show-case/category-tester/README.md +3 -0
- package/plugins/{categoryTest → @vcmap-show-case/category-tester}/index.js +12 -4
- package/plugins/@vcmap-show-case/category-tester/package.json +5 -0
- package/plugins/@vcmap-show-case/config-editor/README.md +3 -0
- package/plugins/{test → @vcmap-show-case/config-editor}/editor.vue +0 -0
- package/plugins/@vcmap-show-case/config-editor/index.js +47 -0
- package/plugins/@vcmap-show-case/config-editor/package.json +5 -0
- package/plugins/@vcmap-show-case/context-menu-tester/README.md +3 -0
- package/plugins/@vcmap-show-case/context-menu-tester/index.js +33 -0
- package/plugins/@vcmap-show-case/context-menu-tester/package.json +5 -0
- package/plugins/{@vcmap/pluginExample/pluginExampleComponent.vue → @vcmap-show-case/form-inputs-example/FormInputsExample.vue} +14 -13
- package/plugins/@vcmap-show-case/form-inputs-example/README.md +4 -0
- package/plugins/@vcmap-show-case/form-inputs-example/config.json +5 -0
- package/plugins/{@vcmap/pluginExample → @vcmap-show-case/form-inputs-example}/exampleActions.js +1 -1
- package/plugins/{@vcmap/pluginExample → @vcmap-show-case/form-inputs-example}/index.js +23 -22
- package/plugins/@vcmap-show-case/form-inputs-example/package.json +5 -0
- package/plugins/{@vcmap/pluginExample → @vcmap-show-case/form-inputs-example}/validation.js +0 -0
- package/plugins/@vcmap-show-case/icons-example/README.md +5 -0
- package/plugins/@vcmap-show-case/icons-example/allIconsComponent.vue +51 -0
- package/plugins/@vcmap-show-case/icons-example/index.js +44 -0
- package/plugins/@vcmap-show-case/icons-example/package.json +5 -0
- package/plugins/{test/testList.vue → @vcmap-show-case/list-example/ListExample.vue} +1 -1
- package/plugins/@vcmap-show-case/list-example/README.md +3 -0
- package/plugins/@vcmap-show-case/list-example/index.js +44 -0
- package/plugins/@vcmap-show-case/list-example/package.json +5 -0
- package/plugins/@vcmap-show-case/notifier-tester/README.md +3 -0
- package/plugins/{notifier → @vcmap-show-case/notifier-tester}/index.js +11 -6
- package/plugins/{notifier → @vcmap-show-case/notifier-tester}/notifierTester.vue +0 -0
- package/plugins/@vcmap-show-case/notifier-tester/package.json +5 -0
- package/plugins/@vcmap-show-case/textfields-example/README.md +3 -0
- package/plugins/{example/mySuperComponent.vue → @vcmap-show-case/textfields-example/TextfieldsExample.vue} +1 -7
- package/plugins/{example → @vcmap-show-case/textfields-example}/index.js +58 -62
- package/plugins/@vcmap-show-case/textfields-example/package.json +5 -0
- package/plugins/@vcmap-show-case/window-tester/README.md +3 -0
- package/plugins/{test/windowManagerExample.vue → @vcmap-show-case/window-tester/WindowExample.vue} +36 -20
- package/plugins/{test → @vcmap-show-case/window-tester}/emptyComponent.vue +8 -3
- package/plugins/@vcmap-show-case/window-tester/index.js +62 -0
- package/plugins/{test → @vcmap-show-case/window-tester}/myCustomHeader.vue +0 -0
- package/plugins/@vcmap-show-case/window-tester/package.json +5 -0
- package/plugins/@vcmap-show-case/window-tester/toolbox-data.js +211 -0
- package/plugins/{test/vcsContent.vue → @vcmap-show-case/window-tester/windowExampleContent.vue} +1 -5
- package/plugins/@vcmap-show-case/wizard-example/README.md +3 -0
- package/plugins/{wizardExample → @vcmap-show-case/wizard-example}/index.js +12 -6
- package/plugins/@vcmap-show-case/wizard-example/package.json +5 -0
- package/plugins/@vcmap-show-case/wizard-example/wizardExample.vue +95 -0
- package/plugins/package.json +2 -1
- package/src/actions/actionHelper.js +4 -4
- package/src/actions/stateRefAction.js +0 -10
- package/src/application/VcsApp.vue +42 -23
- package/src/application/VcsMap.vue +9 -0
- package/src/application/VcsNavbar.vue +1 -1
- package/src/components/buttons/VcsActionButtonList.vue +1 -0
- package/src/components/buttons/VcsButton.vue +14 -3
- package/src/components/form-inputs-controls/VcsCheckbox.vue +3 -1
- package/src/components/form-inputs-controls/VcsWizard.vue +17 -20
- package/src/components/form-inputs-controls/VcsWizardStep.vue +160 -0
- package/src/{icons → components/icons}/+all.js +0 -0
- package/src/{icons → components/icons}/2DAreaIcon.vue +0 -0
- package/src/{icons → components/icons}/2DDistanceIcon.vue +0 -0
- package/src/{icons → components/icons}/3DAreaIcon.vue +0 -0
- package/src/{icons → components/icons}/3DDistanceIcon.vue +0 -0
- package/src/{icons → components/icons}/3DHeightIcon.vue +0 -0
- package/src/{icons → components/icons}/AngleIcon.vue +0 -0
- package/src/{icons → components/icons}/AssociationsIcon.vue +0 -0
- package/src/{icons → components/icons}/AxisIcon.vue +0 -0
- package/src/{icons → components/icons}/BoundingBoxIcon.vue +0 -0
- package/src/{icons → components/icons}/CheckboxCheckedIcon.vue +0 -0
- package/src/{icons → components/icons}/CheckboxIcon.vue +0 -0
- package/src/{icons → components/icons}/CheckboxIndeterminateIcon.vue +0 -0
- package/src/{icons → components/icons}/CircleIcon.vue +0 -0
- package/src/{icons → components/icons}/ClippingHorizontalIcon.vue +0 -0
- package/src/{icons → components/icons}/ClippingIcon.vue +0 -0
- package/src/{icons → components/icons}/ClippingVerticalIcon.vue +0 -0
- package/src/{icons → components/icons}/ColorPickerIcon.vue +0 -0
- package/src/{icons → components/icons}/ColorSwatchIcon.vue +0 -0
- package/src/{icons → components/icons}/CommentIcon.vue +0 -0
- package/src/{icons → components/icons}/CompassIcon.vue +0 -0
- package/src/{icons → components/icons}/ComponentsIcon.vue +0 -0
- package/src/{icons → components/icons}/ConeIcon.vue +0 -0
- package/src/{icons → components/icons}/DimensionsHouseIcon.vue +0 -0
- package/src/{icons → components/icons}/EditIcon.vue +0 -0
- package/src/{icons → components/icons}/ElevationProfileIcon.vue +0 -0
- package/src/{icons → components/icons}/ExportAreaIcon.vue +0 -0
- package/src/{icons → components/icons}/ExportFlightIcon.vue +0 -0
- package/src/{icons → components/icons}/ExportIcon.vue +0 -0
- package/src/{icons → components/icons}/ExternalLinkIcon.vue +0 -0
- package/src/{icons → components/icons}/EyeIcon.vue +0 -0
- package/src/{icons → components/icons}/FastForwardIcon.vue +0 -0
- package/src/{icons → components/icons}/FilterIcon.vue +0 -0
- package/src/{icons → components/icons}/GlobalTerrainIcon.vue +0 -0
- package/src/{icons → components/icons}/GlobeNatureIcon.vue +0 -0
- package/src/{icons → components/icons}/GroundIcon.vue +0 -0
- package/src/{icons → components/icons}/HealthCareIndustriesIcon.vue +0 -0
- package/src/{icons → components/icons}/HelpIcon.vue +0 -0
- package/src/{icons → components/icons}/HideIcon.vue +0 -0
- package/src/{icons → components/icons}/HomePointIcon.vue +0 -0
- package/src/{icons → components/icons}/HospitalsIcon.vue +0 -0
- package/src/{icons → components/icons}/HouseIcon.vue +0 -0
- package/src/{icons → components/icons}/ImportIcon.vue +0 -0
- package/src/{icons → components/icons}/InfoIcon.vue +0 -0
- package/src/{icons → components/icons}/KebabIcon.vue +0 -0
- package/src/{icons → components/icons}/LabelIcon.vue +0 -0
- package/src/{icons → components/icons}/LayersIcon.vue +0 -0
- package/src/{icons → components/icons}/LegendIcon.vue +0 -0
- package/src/{icons → components/icons}/LineIcon.vue +0 -0
- package/src/{icons → components/icons}/LinkIcon.vue +0 -0
- package/src/{icons → components/icons}/LogoutIcon.vue +0 -0
- package/src/{icons → components/icons}/MapIcon.vue +0 -0
- package/src/{icons → components/icons}/MenuIcon.vue +0 -0
- package/src/{icons → components/icons}/MinusIcon.vue +0 -0
- package/src/{icons → components/icons}/ObjectAttributeIcon.vue +0 -0
- package/src/{icons → components/icons}/ObjectSelectIcon.vue +0 -0
- package/src/{icons → components/icons}/ObliqueViewIcon.vue +0 -0
- package/src/{icons → components/icons}/PdfIcon.vue +0 -0
- package/src/{icons → components/icons}/PedestrianIcon.vue +0 -0
- package/src/{icons → components/icons}/PenIcon.vue +0 -0
- package/src/{icons → components/icons}/PlayCircleIcon.vue +0 -0
- package/src/{icons → components/icons}/PlusIcon.vue +0 -0
- package/src/{icons → components/icons}/PoiIcon.vue +0 -0
- package/src/{icons → components/icons}/PointSelectIcon.vue +0 -0
- package/src/{icons → components/icons}/PolygonIcon.vue +0 -0
- package/src/{icons → components/icons}/PresentationModeIcon.vue +0 -0
- package/src/{icons → components/icons}/ProgressIcon.vue +0 -0
- package/src/{icons → components/icons}/QueryIcon.vue +0 -0
- package/src/{icons → components/icons}/RectangleIcon.vue +0 -0
- package/src/{icons → components/icons}/ReturnIcon.vue +0 -0
- package/src/{icons → components/icons}/RewindIcon.vue +0 -0
- package/src/{icons → components/icons}/RotateLeftIcon.vue +0 -0
- package/src/{icons → components/icons}/RotateRightIcon.vue +0 -0
- package/src/{icons → components/icons}/ScreenshotIcon.vue +0 -0
- package/src/{icons → components/icons}/SearchIcon.vue +0 -0
- package/src/{icons → components/icons}/ShadowIcon.vue +0 -0
- package/src/{icons → components/icons}/ShapesIcon.vue +0 -0
- package/src/{icons → components/icons}/ShareIcon.vue +0 -0
- package/src/{icons → components/icons}/SimpleCircleFilledIcon.vue +0 -0
- package/src/{icons → components/icons}/SimpleCircleHalfFilledIcon.vue +0 -0
- package/src/{icons → components/icons}/SimpleCircleOutlinedIcon.vue +0 -0
- package/src/{icons → components/icons}/SkipNextIcon.vue +0 -0
- package/src/{icons → components/icons}/SkipPreviousIcon.vue +0 -0
- package/src/{icons → components/icons}/SplitViewIcon.vue +0 -0
- package/src/{icons → components/icons}/TerrainBoxIcon.vue +0 -0
- package/src/{icons → components/icons}/TextStyleIcon.vue +0 -0
- package/src/{icons → components/icons}/ThreeDimensionsIcon.vue +0 -0
- package/src/{icons → components/icons}/ToolsIcon.vue +0 -0
- package/src/{icons → components/icons}/TouchIcon.vue +0 -0
- package/src/{icons → components/icons}/TrashCanIcon.vue +0 -0
- package/src/{icons → components/icons}/TriangleIcon.vue +0 -0
- package/src/{icons → components/icons}/TwoDimensionsIcon.vue +0 -0
- package/src/{icons → components/icons}/UploadIcon.vue +0 -0
- package/src/{icons → components/icons}/UserProfileIcon.vue +0 -0
- package/src/{icons → components/icons}/UserShareIcon.vue +0 -0
- package/src/{icons → components/icons}/VideoRecorderIcon.vue +0 -0
- package/src/{icons → components/icons}/ViewpointFlightIcon.vue +0 -0
- package/src/{icons → components/icons}/ViewpointIcon.vue +0 -0
- package/src/{icons → components/icons}/Viewshed360Icon.vue +0 -0
- package/src/{icons → components/icons}/ViewshedConeIcon.vue +0 -0
- package/src/{icons → components/icons}/ViewshedIcon.vue +0 -0
- package/src/{icons → components/icons}/WalkingIcon.vue +0 -0
- package/src/{icons → components/icons}/WallIcon.vue +0 -0
- package/src/{icons → components/icons}/WandIcon.vue +0 -0
- package/src/components/lists/VcsActionList.vue +2 -0
- package/src/components/lists/VcsList.vue +21 -12
- package/src/components/lists/VcsTreeviewLeaf.vue +14 -2
- package/src/components/notification/VcsTooltip.vue +1 -1
- package/src/contentTree/layerContentTreeItem.js +2 -2
- package/src/featureInfo/BalloonComponent.vue +2 -2
- package/src/featureInfo/abstractFeatureInfoView.js +1 -1
- package/src/featureInfo/addressBalloonFeatureInfoView.js +1 -1
- package/src/featureInfo/balloonFeatureInfoView.js +1 -1
- package/src/featureInfo/balloonHelper.js +6 -6
- package/src/featureInfo/featureInfo.js +2 -2
- package/src/i18n/de.js +8 -8
- package/src/i18n/en.js +6 -6
- package/src/legend/legendHelper.js +8 -8
- package/src/legend/vcsLegend.vue +33 -5
- package/src/manager/toolbox/ToolboxManager.vue +1 -0
- package/src/manager/window/WindowComponent.vue +42 -4
- package/src/manager/window/WindowComponentHeader.vue +1 -1
- package/src/manager/window/windowHelper.js +7 -11
- package/src/manager/window/windowManager.js +15 -11
- package/src/navigation/mapNavCompass.vue +13 -7
- package/src/navigation/mapNavigation.vue +66 -4
- package/src/navigation/orientationToolsButton.vue +1 -1
- package/src/navigation/overviewMap.js +26 -10
- package/src/navigation/vcsCompass.vue +4 -73
- package/src/setup.js +1 -1
- package/src/vuePlugins/vuetify.js +1 -1
- package/dist/assets/cesium/Workers/ArcType-c9b2b290.js +0 -25
- package/dist/assets/cesium/Workers/AttributeCompression-7b0f288d.js +0 -25
- package/dist/assets/cesium/Workers/AxisAlignedBoundingBox-d0c22774.js +0 -25
- package/dist/assets/cesium/Workers/BoundingRectangle-201b1a81.js +0 -25
- package/dist/assets/cesium/Workers/BoxGeometry-4985457c.js +0 -25
- package/dist/assets/cesium/Workers/Color-cc8c18b3.js +0 -25
- package/dist/assets/cesium/Workers/ComponentDatatype-0200bf8c.js +0 -25
- package/dist/assets/cesium/Workers/CoplanarPolygonGeometryLibrary-4345acdf.js +0 -25
- package/dist/assets/cesium/Workers/CorridorGeometryLibrary-850a6c35.js +0 -25
- package/dist/assets/cesium/Workers/CylinderGeometry-57a1051a.js +0 -25
- package/dist/assets/cesium/Workers/CylinderGeometryLibrary-62ce5a1f.js +0 -25
- package/dist/assets/cesium/Workers/EllipseGeometry-8627398f.js +0 -25
- package/dist/assets/cesium/Workers/EllipseGeometryLibrary-e5919563.js +0 -25
- package/dist/assets/cesium/Workers/EllipseOutlineGeometry-96fd4ae1.js +0 -25
- package/dist/assets/cesium/Workers/EllipsoidGeodesic-8bfefbff.js +0 -25
- package/dist/assets/cesium/Workers/EllipsoidGeometry-377329b9.js +0 -25
- package/dist/assets/cesium/Workers/EllipsoidOutlineGeometry-e6e16e49.js +0 -25
- package/dist/assets/cesium/Workers/EllipsoidRhumbLine-03528f73.js +0 -25
- package/dist/assets/cesium/Workers/EllipsoidTangentPlane-c080fd1b.js +0 -25
- package/dist/assets/cesium/Workers/EncodedCartesian3-ea0e408f.js +0 -25
- package/dist/assets/cesium/Workers/FrustumGeometry-a8b5d817.js +0 -25
- package/dist/assets/cesium/Workers/GeometryAttribute-8458a8fd.js +0 -25
- package/dist/assets/cesium/Workers/GeometryAttributes-ac0f8485.js +0 -25
- package/dist/assets/cesium/Workers/GeometryInstance-ee3aa3ba.js +0 -25
- package/dist/assets/cesium/Workers/GeometryOffsetAttribute-08ae0c50.js +0 -25
- package/dist/assets/cesium/Workers/GeometryPipeline-33ca229c.js +0 -25
- package/dist/assets/cesium/Workers/IndexDatatype-e713bfd2.js +0 -25
- package/dist/assets/cesium/Workers/IntersectionTests-eb4db8e0.js +0 -25
- package/dist/assets/cesium/Workers/Matrix2-eefef8eb.js +0 -25
- package/dist/assets/cesium/Workers/OrientedBoundingBox-5193f9a2.js +0 -25
- package/dist/assets/cesium/Workers/Plane-b0299683.js +0 -25
- package/dist/assets/cesium/Workers/PolygonGeometryLibrary-b61295f3.js +0 -25
- package/dist/assets/cesium/Workers/PolygonPipeline-eb527514.js +0 -25
- package/dist/assets/cesium/Workers/PolylinePipeline-0f23dd84.js +0 -25
- package/dist/assets/cesium/Workers/PolylineVolumeGeometryLibrary-2d903430.js +0 -25
- package/dist/assets/cesium/Workers/PrimitivePipeline-e2640413.js +0 -25
- package/dist/assets/cesium/Workers/RectangleGeometryLibrary-ae8bf8a5.js +0 -25
- package/dist/assets/cesium/Workers/RuntimeError-5baf5c66.js +0 -25
- package/dist/assets/cesium/Workers/TerrainEncoding-bc10ab54.js +0 -25
- package/dist/assets/cesium/Workers/Transforms-d2e5867e.js +0 -63
- package/dist/assets/cesium/Workers/VertexFormat-5ec0d9ff.js +0 -25
- package/dist/assets/cesium/Workers/WallGeometryLibrary-1a33e416.js +0 -25
- package/dist/assets/cesium/Workers/WebGLConstants-5b50ced1.js +0 -25
- package/dist/assets/cesium/Workers/WebMercatorProjection-cd2f30c2.js +0 -25
- package/dist/assets/cesium/Workers/_commonjsHelpers-bc29abbc.js +0 -25
- package/dist/assets/cesium/Workers/arrayRemoveDuplicates-f13aceb1.js +0 -25
- package/dist/assets/cesium/Workers/combine-7533016d.js +0 -25
- package/dist/assets/cesium/Workers/defaultValue-0c475b81.js +0 -25
- package/dist/assets/cesium/Workers/package.json +0 -1
- package/dist/assets/ui.dffe32.css +0 -1
- package/plugins/@vcmap/pluginExample/config.json +0 -6
- package/plugins/@vcmap/pluginExample/package.json +0 -7
- package/plugins/categoryTest/ItemEditor.vue +0 -13
- package/plugins/test/allIconsComponent.vue +0 -50
- package/plugins/test/index.js +0 -207
- package/plugins/test/toolbox-data.js +0 -154
- package/plugins/wizardExample/wizardExample.vue +0 -77
- package/src/components/form-inputs-controls/VcsColorPicker.vue +0 -85
@@ -0,0 +1,443 @@
|
|
1
|
+
define(['exports', './Transforms-40229881', './Matrix3-315394f6', './ComponentDatatype-f7b11d02', './defaultValue-0a909f67', './Check-666ab1a0', './EllipseGeometryLibrary-2939e1dc', './GeometryAttribute-7d6f1732', './GeometryAttributes-f06a2792', './GeometryOffsetAttribute-04332ce7', './IndexDatatype-a55ceaa1', './Math-2dbd6b93'], (function (exports, Transforms, Matrix3, ComponentDatatype, defaultValue, Check, EllipseGeometryLibrary, GeometryAttribute, GeometryAttributes, GeometryOffsetAttribute, IndexDatatype, Math$1) { 'use strict';
|
2
|
+
|
3
|
+
const scratchCartesian1 = new Matrix3.Cartesian3();
|
4
|
+
let boundingSphereCenter = new Matrix3.Cartesian3();
|
5
|
+
|
6
|
+
function computeEllipse(options) {
|
7
|
+
const center = options.center;
|
8
|
+
boundingSphereCenter = Matrix3.Cartesian3.multiplyByScalar(
|
9
|
+
options.ellipsoid.geodeticSurfaceNormal(center, boundingSphereCenter),
|
10
|
+
options.height,
|
11
|
+
boundingSphereCenter
|
12
|
+
);
|
13
|
+
boundingSphereCenter = Matrix3.Cartesian3.add(
|
14
|
+
center,
|
15
|
+
boundingSphereCenter,
|
16
|
+
boundingSphereCenter
|
17
|
+
);
|
18
|
+
const boundingSphere = new Transforms.BoundingSphere(
|
19
|
+
boundingSphereCenter,
|
20
|
+
options.semiMajorAxis
|
21
|
+
);
|
22
|
+
const positions = EllipseGeometryLibrary.EllipseGeometryLibrary.computeEllipsePositions(
|
23
|
+
options,
|
24
|
+
false,
|
25
|
+
true
|
26
|
+
).outerPositions;
|
27
|
+
|
28
|
+
const attributes = new GeometryAttributes.GeometryAttributes({
|
29
|
+
position: new GeometryAttribute.GeometryAttribute({
|
30
|
+
componentDatatype: ComponentDatatype.ComponentDatatype.DOUBLE,
|
31
|
+
componentsPerAttribute: 3,
|
32
|
+
values: EllipseGeometryLibrary.EllipseGeometryLibrary.raisePositionsToHeight(
|
33
|
+
positions,
|
34
|
+
options,
|
35
|
+
false
|
36
|
+
),
|
37
|
+
}),
|
38
|
+
});
|
39
|
+
|
40
|
+
const length = positions.length / 3;
|
41
|
+
const indices = IndexDatatype.IndexDatatype.createTypedArray(length, length * 2);
|
42
|
+
let index = 0;
|
43
|
+
for (let i = 0; i < length; ++i) {
|
44
|
+
indices[index++] = i;
|
45
|
+
indices[index++] = (i + 1) % length;
|
46
|
+
}
|
47
|
+
|
48
|
+
return {
|
49
|
+
boundingSphere: boundingSphere,
|
50
|
+
attributes: attributes,
|
51
|
+
indices: indices,
|
52
|
+
};
|
53
|
+
}
|
54
|
+
|
55
|
+
const topBoundingSphere = new Transforms.BoundingSphere();
|
56
|
+
const bottomBoundingSphere = new Transforms.BoundingSphere();
|
57
|
+
function computeExtrudedEllipse(options) {
|
58
|
+
const center = options.center;
|
59
|
+
const ellipsoid = options.ellipsoid;
|
60
|
+
const semiMajorAxis = options.semiMajorAxis;
|
61
|
+
let scaledNormal = Matrix3.Cartesian3.multiplyByScalar(
|
62
|
+
ellipsoid.geodeticSurfaceNormal(center, scratchCartesian1),
|
63
|
+
options.height,
|
64
|
+
scratchCartesian1
|
65
|
+
);
|
66
|
+
topBoundingSphere.center = Matrix3.Cartesian3.add(
|
67
|
+
center,
|
68
|
+
scaledNormal,
|
69
|
+
topBoundingSphere.center
|
70
|
+
);
|
71
|
+
topBoundingSphere.radius = semiMajorAxis;
|
72
|
+
|
73
|
+
scaledNormal = Matrix3.Cartesian3.multiplyByScalar(
|
74
|
+
ellipsoid.geodeticSurfaceNormal(center, scaledNormal),
|
75
|
+
options.extrudedHeight,
|
76
|
+
scaledNormal
|
77
|
+
);
|
78
|
+
bottomBoundingSphere.center = Matrix3.Cartesian3.add(
|
79
|
+
center,
|
80
|
+
scaledNormal,
|
81
|
+
bottomBoundingSphere.center
|
82
|
+
);
|
83
|
+
bottomBoundingSphere.radius = semiMajorAxis;
|
84
|
+
|
85
|
+
let positions = EllipseGeometryLibrary.EllipseGeometryLibrary.computeEllipsePositions(
|
86
|
+
options,
|
87
|
+
false,
|
88
|
+
true
|
89
|
+
).outerPositions;
|
90
|
+
const attributes = new GeometryAttributes.GeometryAttributes({
|
91
|
+
position: new GeometryAttribute.GeometryAttribute({
|
92
|
+
componentDatatype: ComponentDatatype.ComponentDatatype.DOUBLE,
|
93
|
+
componentsPerAttribute: 3,
|
94
|
+
values: EllipseGeometryLibrary.EllipseGeometryLibrary.raisePositionsToHeight(
|
95
|
+
positions,
|
96
|
+
options,
|
97
|
+
true
|
98
|
+
),
|
99
|
+
}),
|
100
|
+
});
|
101
|
+
|
102
|
+
positions = attributes.position.values;
|
103
|
+
const boundingSphere = Transforms.BoundingSphere.union(
|
104
|
+
topBoundingSphere,
|
105
|
+
bottomBoundingSphere
|
106
|
+
);
|
107
|
+
let length = positions.length / 3;
|
108
|
+
|
109
|
+
if (defaultValue.defined(options.offsetAttribute)) {
|
110
|
+
let applyOffset = new Uint8Array(length);
|
111
|
+
if (options.offsetAttribute === GeometryOffsetAttribute.GeometryOffsetAttribute.TOP) {
|
112
|
+
applyOffset = applyOffset.fill(1, 0, length / 2);
|
113
|
+
} else {
|
114
|
+
const offsetValue =
|
115
|
+
options.offsetAttribute === GeometryOffsetAttribute.GeometryOffsetAttribute.NONE ? 0 : 1;
|
116
|
+
applyOffset = applyOffset.fill(offsetValue);
|
117
|
+
}
|
118
|
+
|
119
|
+
attributes.applyOffset = new GeometryAttribute.GeometryAttribute({
|
120
|
+
componentDatatype: ComponentDatatype.ComponentDatatype.UNSIGNED_BYTE,
|
121
|
+
componentsPerAttribute: 1,
|
122
|
+
values: applyOffset,
|
123
|
+
});
|
124
|
+
}
|
125
|
+
|
126
|
+
let numberOfVerticalLines = defaultValue.defaultValue(options.numberOfVerticalLines, 16);
|
127
|
+
numberOfVerticalLines = Math$1.CesiumMath.clamp(
|
128
|
+
numberOfVerticalLines,
|
129
|
+
0,
|
130
|
+
length / 2
|
131
|
+
);
|
132
|
+
|
133
|
+
const indices = IndexDatatype.IndexDatatype.createTypedArray(
|
134
|
+
length,
|
135
|
+
length * 2 + numberOfVerticalLines * 2
|
136
|
+
);
|
137
|
+
|
138
|
+
length /= 2;
|
139
|
+
let index = 0;
|
140
|
+
let i;
|
141
|
+
for (i = 0; i < length; ++i) {
|
142
|
+
indices[index++] = i;
|
143
|
+
indices[index++] = (i + 1) % length;
|
144
|
+
indices[index++] = i + length;
|
145
|
+
indices[index++] = ((i + 1) % length) + length;
|
146
|
+
}
|
147
|
+
|
148
|
+
let numSide;
|
149
|
+
if (numberOfVerticalLines > 0) {
|
150
|
+
const numSideLines = Math.min(numberOfVerticalLines, length);
|
151
|
+
numSide = Math.round(length / numSideLines);
|
152
|
+
|
153
|
+
const maxI = Math.min(numSide * numberOfVerticalLines, length);
|
154
|
+
for (i = 0; i < maxI; i += numSide) {
|
155
|
+
indices[index++] = i;
|
156
|
+
indices[index++] = i + length;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
return {
|
161
|
+
boundingSphere: boundingSphere,
|
162
|
+
attributes: attributes,
|
163
|
+
indices: indices,
|
164
|
+
};
|
165
|
+
}
|
166
|
+
|
167
|
+
/**
|
168
|
+
* A description of the outline of an ellipse on an ellipsoid.
|
169
|
+
*
|
170
|
+
* @alias EllipseOutlineGeometry
|
171
|
+
* @constructor
|
172
|
+
*
|
173
|
+
* @param {Object} options Object with the following properties:
|
174
|
+
* @param {Cartesian3} options.center The ellipse's center point in the fixed frame.
|
175
|
+
* @param {Number} options.semiMajorAxis The length of the ellipse's semi-major axis in meters.
|
176
|
+
* @param {Number} options.semiMinorAxis The length of the ellipse's semi-minor axis in meters.
|
177
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.WGS84] The ellipsoid the ellipse will be on.
|
178
|
+
* @param {Number} [options.height=0.0] The distance in meters between the ellipse and the ellipsoid surface.
|
179
|
+
* @param {Number} [options.extrudedHeight] The distance in meters between the ellipse's extruded face and the ellipsoid surface.
|
180
|
+
* @param {Number} [options.rotation=0.0] The angle from north (counter-clockwise) in radians.
|
181
|
+
* @param {Number} [options.granularity=0.02] The angular distance between points on the ellipse in radians.
|
182
|
+
* @param {Number} [options.numberOfVerticalLines=16] Number of lines to draw between the top and bottom surface of an extruded ellipse.
|
183
|
+
*
|
184
|
+
* @exception {DeveloperError} semiMajorAxis and semiMinorAxis must be greater than zero.
|
185
|
+
* @exception {DeveloperError} semiMajorAxis must be greater than or equal to the semiMinorAxis.
|
186
|
+
* @exception {DeveloperError} granularity must be greater than zero.
|
187
|
+
*
|
188
|
+
* @see EllipseOutlineGeometry.createGeometry
|
189
|
+
*
|
190
|
+
* @example
|
191
|
+
* const ellipse = new Cesium.EllipseOutlineGeometry({
|
192
|
+
* center : Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
|
193
|
+
* semiMajorAxis : 500000.0,
|
194
|
+
* semiMinorAxis : 300000.0,
|
195
|
+
* rotation : Cesium.Math.toRadians(60.0)
|
196
|
+
* });
|
197
|
+
* const geometry = Cesium.EllipseOutlineGeometry.createGeometry(ellipse);
|
198
|
+
*/
|
199
|
+
function EllipseOutlineGeometry(options) {
|
200
|
+
options = defaultValue.defaultValue(options, defaultValue.defaultValue.EMPTY_OBJECT);
|
201
|
+
|
202
|
+
const center = options.center;
|
203
|
+
const ellipsoid = defaultValue.defaultValue(options.ellipsoid, Matrix3.Ellipsoid.WGS84);
|
204
|
+
const semiMajorAxis = options.semiMajorAxis;
|
205
|
+
const semiMinorAxis = options.semiMinorAxis;
|
206
|
+
const granularity = defaultValue.defaultValue(
|
207
|
+
options.granularity,
|
208
|
+
Math$1.CesiumMath.RADIANS_PER_DEGREE
|
209
|
+
);
|
210
|
+
|
211
|
+
//>>includeStart('debug', pragmas.debug);
|
212
|
+
if (!defaultValue.defined(center)) {
|
213
|
+
throw new Check.DeveloperError("center is required.");
|
214
|
+
}
|
215
|
+
if (!defaultValue.defined(semiMajorAxis)) {
|
216
|
+
throw new Check.DeveloperError("semiMajorAxis is required.");
|
217
|
+
}
|
218
|
+
if (!defaultValue.defined(semiMinorAxis)) {
|
219
|
+
throw new Check.DeveloperError("semiMinorAxis is required.");
|
220
|
+
}
|
221
|
+
if (semiMajorAxis < semiMinorAxis) {
|
222
|
+
throw new Check.DeveloperError(
|
223
|
+
"semiMajorAxis must be greater than or equal to the semiMinorAxis."
|
224
|
+
);
|
225
|
+
}
|
226
|
+
if (granularity <= 0.0) {
|
227
|
+
throw new Check.DeveloperError("granularity must be greater than zero.");
|
228
|
+
}
|
229
|
+
//>>includeEnd('debug');
|
230
|
+
|
231
|
+
const height = defaultValue.defaultValue(options.height, 0.0);
|
232
|
+
const extrudedHeight = defaultValue.defaultValue(options.extrudedHeight, height);
|
233
|
+
|
234
|
+
this._center = Matrix3.Cartesian3.clone(center);
|
235
|
+
this._semiMajorAxis = semiMajorAxis;
|
236
|
+
this._semiMinorAxis = semiMinorAxis;
|
237
|
+
this._ellipsoid = Matrix3.Ellipsoid.clone(ellipsoid);
|
238
|
+
this._rotation = defaultValue.defaultValue(options.rotation, 0.0);
|
239
|
+
this._height = Math.max(extrudedHeight, height);
|
240
|
+
this._granularity = granularity;
|
241
|
+
this._extrudedHeight = Math.min(extrudedHeight, height);
|
242
|
+
this._numberOfVerticalLines = Math.max(
|
243
|
+
defaultValue.defaultValue(options.numberOfVerticalLines, 16),
|
244
|
+
0
|
245
|
+
);
|
246
|
+
this._offsetAttribute = options.offsetAttribute;
|
247
|
+
this._workerName = "createEllipseOutlineGeometry";
|
248
|
+
}
|
249
|
+
|
250
|
+
/**
|
251
|
+
* The number of elements used to pack the object into an array.
|
252
|
+
* @type {Number}
|
253
|
+
*/
|
254
|
+
EllipseOutlineGeometry.packedLength =
|
255
|
+
Matrix3.Cartesian3.packedLength + Matrix3.Ellipsoid.packedLength + 8;
|
256
|
+
|
257
|
+
/**
|
258
|
+
* Stores the provided instance into the provided array.
|
259
|
+
*
|
260
|
+
* @param {EllipseOutlineGeometry} value The value to pack.
|
261
|
+
* @param {Number[]} array The array to pack into.
|
262
|
+
* @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
|
263
|
+
*
|
264
|
+
* @returns {Number[]} The array that was packed into
|
265
|
+
*/
|
266
|
+
EllipseOutlineGeometry.pack = function (value, array, startingIndex) {
|
267
|
+
//>>includeStart('debug', pragmas.debug);
|
268
|
+
if (!defaultValue.defined(value)) {
|
269
|
+
throw new Check.DeveloperError("value is required");
|
270
|
+
}
|
271
|
+
if (!defaultValue.defined(array)) {
|
272
|
+
throw new Check.DeveloperError("array is required");
|
273
|
+
}
|
274
|
+
//>>includeEnd('debug');
|
275
|
+
|
276
|
+
startingIndex = defaultValue.defaultValue(startingIndex, 0);
|
277
|
+
|
278
|
+
Matrix3.Cartesian3.pack(value._center, array, startingIndex);
|
279
|
+
startingIndex += Matrix3.Cartesian3.packedLength;
|
280
|
+
|
281
|
+
Matrix3.Ellipsoid.pack(value._ellipsoid, array, startingIndex);
|
282
|
+
startingIndex += Matrix3.Ellipsoid.packedLength;
|
283
|
+
|
284
|
+
array[startingIndex++] = value._semiMajorAxis;
|
285
|
+
array[startingIndex++] = value._semiMinorAxis;
|
286
|
+
array[startingIndex++] = value._rotation;
|
287
|
+
array[startingIndex++] = value._height;
|
288
|
+
array[startingIndex++] = value._granularity;
|
289
|
+
array[startingIndex++] = value._extrudedHeight;
|
290
|
+
array[startingIndex++] = value._numberOfVerticalLines;
|
291
|
+
array[startingIndex] = defaultValue.defaultValue(value._offsetAttribute, -1);
|
292
|
+
|
293
|
+
return array;
|
294
|
+
};
|
295
|
+
|
296
|
+
const scratchCenter = new Matrix3.Cartesian3();
|
297
|
+
const scratchEllipsoid = new Matrix3.Ellipsoid();
|
298
|
+
const scratchOptions = {
|
299
|
+
center: scratchCenter,
|
300
|
+
ellipsoid: scratchEllipsoid,
|
301
|
+
semiMajorAxis: undefined,
|
302
|
+
semiMinorAxis: undefined,
|
303
|
+
rotation: undefined,
|
304
|
+
height: undefined,
|
305
|
+
granularity: undefined,
|
306
|
+
extrudedHeight: undefined,
|
307
|
+
numberOfVerticalLines: undefined,
|
308
|
+
offsetAttribute: undefined,
|
309
|
+
};
|
310
|
+
|
311
|
+
/**
|
312
|
+
* Retrieves an instance from a packed array.
|
313
|
+
*
|
314
|
+
* @param {Number[]} array The packed array.
|
315
|
+
* @param {Number} [startingIndex=0] The starting index of the element to be unpacked.
|
316
|
+
* @param {EllipseOutlineGeometry} [result] The object into which to store the result.
|
317
|
+
* @returns {EllipseOutlineGeometry} The modified result parameter or a new EllipseOutlineGeometry instance if one was not provided.
|
318
|
+
*/
|
319
|
+
EllipseOutlineGeometry.unpack = function (array, startingIndex, result) {
|
320
|
+
//>>includeStart('debug', pragmas.debug);
|
321
|
+
if (!defaultValue.defined(array)) {
|
322
|
+
throw new Check.DeveloperError("array is required");
|
323
|
+
}
|
324
|
+
//>>includeEnd('debug');
|
325
|
+
|
326
|
+
startingIndex = defaultValue.defaultValue(startingIndex, 0);
|
327
|
+
|
328
|
+
const center = Matrix3.Cartesian3.unpack(array, startingIndex, scratchCenter);
|
329
|
+
startingIndex += Matrix3.Cartesian3.packedLength;
|
330
|
+
|
331
|
+
const ellipsoid = Matrix3.Ellipsoid.unpack(array, startingIndex, scratchEllipsoid);
|
332
|
+
startingIndex += Matrix3.Ellipsoid.packedLength;
|
333
|
+
|
334
|
+
const semiMajorAxis = array[startingIndex++];
|
335
|
+
const semiMinorAxis = array[startingIndex++];
|
336
|
+
const rotation = array[startingIndex++];
|
337
|
+
const height = array[startingIndex++];
|
338
|
+
const granularity = array[startingIndex++];
|
339
|
+
const extrudedHeight = array[startingIndex++];
|
340
|
+
const numberOfVerticalLines = array[startingIndex++];
|
341
|
+
const offsetAttribute = array[startingIndex];
|
342
|
+
|
343
|
+
if (!defaultValue.defined(result)) {
|
344
|
+
scratchOptions.height = height;
|
345
|
+
scratchOptions.extrudedHeight = extrudedHeight;
|
346
|
+
scratchOptions.granularity = granularity;
|
347
|
+
scratchOptions.rotation = rotation;
|
348
|
+
scratchOptions.semiMajorAxis = semiMajorAxis;
|
349
|
+
scratchOptions.semiMinorAxis = semiMinorAxis;
|
350
|
+
scratchOptions.numberOfVerticalLines = numberOfVerticalLines;
|
351
|
+
scratchOptions.offsetAttribute =
|
352
|
+
offsetAttribute === -1 ? undefined : offsetAttribute;
|
353
|
+
|
354
|
+
return new EllipseOutlineGeometry(scratchOptions);
|
355
|
+
}
|
356
|
+
|
357
|
+
result._center = Matrix3.Cartesian3.clone(center, result._center);
|
358
|
+
result._ellipsoid = Matrix3.Ellipsoid.clone(ellipsoid, result._ellipsoid);
|
359
|
+
result._semiMajorAxis = semiMajorAxis;
|
360
|
+
result._semiMinorAxis = semiMinorAxis;
|
361
|
+
result._rotation = rotation;
|
362
|
+
result._height = height;
|
363
|
+
result._granularity = granularity;
|
364
|
+
result._extrudedHeight = extrudedHeight;
|
365
|
+
result._numberOfVerticalLines = numberOfVerticalLines;
|
366
|
+
result._offsetAttribute =
|
367
|
+
offsetAttribute === -1 ? undefined : offsetAttribute;
|
368
|
+
|
369
|
+
return result;
|
370
|
+
};
|
371
|
+
|
372
|
+
/**
|
373
|
+
* Computes the geometric representation of an outline of an ellipse on an ellipsoid, including its vertices, indices, and a bounding sphere.
|
374
|
+
*
|
375
|
+
* @param {EllipseOutlineGeometry} ellipseGeometry A description of the ellipse.
|
376
|
+
* @returns {Geometry|undefined} The computed vertices and indices.
|
377
|
+
*/
|
378
|
+
EllipseOutlineGeometry.createGeometry = function (ellipseGeometry) {
|
379
|
+
if (
|
380
|
+
ellipseGeometry._semiMajorAxis <= 0.0 ||
|
381
|
+
ellipseGeometry._semiMinorAxis <= 0.0
|
382
|
+
) {
|
383
|
+
return;
|
384
|
+
}
|
385
|
+
|
386
|
+
const height = ellipseGeometry._height;
|
387
|
+
const extrudedHeight = ellipseGeometry._extrudedHeight;
|
388
|
+
const extrude = !Math$1.CesiumMath.equalsEpsilon(
|
389
|
+
height,
|
390
|
+
extrudedHeight,
|
391
|
+
0,
|
392
|
+
Math$1.CesiumMath.EPSILON2
|
393
|
+
);
|
394
|
+
|
395
|
+
ellipseGeometry._center = ellipseGeometry._ellipsoid.scaleToGeodeticSurface(
|
396
|
+
ellipseGeometry._center,
|
397
|
+
ellipseGeometry._center
|
398
|
+
);
|
399
|
+
const options = {
|
400
|
+
center: ellipseGeometry._center,
|
401
|
+
semiMajorAxis: ellipseGeometry._semiMajorAxis,
|
402
|
+
semiMinorAxis: ellipseGeometry._semiMinorAxis,
|
403
|
+
ellipsoid: ellipseGeometry._ellipsoid,
|
404
|
+
rotation: ellipseGeometry._rotation,
|
405
|
+
height: height,
|
406
|
+
granularity: ellipseGeometry._granularity,
|
407
|
+
numberOfVerticalLines: ellipseGeometry._numberOfVerticalLines,
|
408
|
+
};
|
409
|
+
let geometry;
|
410
|
+
if (extrude) {
|
411
|
+
options.extrudedHeight = extrudedHeight;
|
412
|
+
options.offsetAttribute = ellipseGeometry._offsetAttribute;
|
413
|
+
geometry = computeExtrudedEllipse(options);
|
414
|
+
} else {
|
415
|
+
geometry = computeEllipse(options);
|
416
|
+
|
417
|
+
if (defaultValue.defined(ellipseGeometry._offsetAttribute)) {
|
418
|
+
const length = geometry.attributes.position.values.length;
|
419
|
+
const offsetValue =
|
420
|
+
ellipseGeometry._offsetAttribute === GeometryOffsetAttribute.GeometryOffsetAttribute.NONE
|
421
|
+
? 0
|
422
|
+
: 1;
|
423
|
+
const applyOffset = new Uint8Array(length / 3).fill(offsetValue);
|
424
|
+
geometry.attributes.applyOffset = new GeometryAttribute.GeometryAttribute({
|
425
|
+
componentDatatype: ComponentDatatype.ComponentDatatype.UNSIGNED_BYTE,
|
426
|
+
componentsPerAttribute: 1,
|
427
|
+
values: applyOffset,
|
428
|
+
});
|
429
|
+
}
|
430
|
+
}
|
431
|
+
|
432
|
+
return new GeometryAttribute.Geometry({
|
433
|
+
attributes: geometry.attributes,
|
434
|
+
indices: geometry.indices,
|
435
|
+
primitiveType: GeometryAttribute.PrimitiveType.LINES,
|
436
|
+
boundingSphere: geometry.boundingSphere,
|
437
|
+
offsetAttribute: ellipseGeometry._offsetAttribute,
|
438
|
+
});
|
439
|
+
};
|
440
|
+
|
441
|
+
exports.EllipseOutlineGeometry = EllipseOutlineGeometry;
|
442
|
+
|
443
|
+
}));
|