@vcmap/ui 5.0.0-rc.18 → 5.0.0-rc.21
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 +4 -0
- 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.2f992f.js → cesium.49585c.js} +112161 -108735
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.cb0408.js → core.59d4d1.js} +1616 -1629
- package/dist/assets/core.js +1 -1
- package/dist/assets/{index.bccdf969.js → index.a3861d4e.js} +1 -1
- package/dist/assets/{ol.5e3fd0.js → ol.c1c512.js} +6992 -6972
- package/dist/assets/ol.js +1 -1
- package/dist/assets/ui.80175f.css +1 -0
- package/dist/assets/{ui.08c48f.js → ui.80175f.js} +6121 -6785
- package/dist/assets/ui.js +1 -1
- package/dist/assets/{vue.228ead.js → vue.a08ab1.js} +0 -0
- package/dist/assets/vue.js +2 -2
- package/dist/assets/{vuetify.0b5039.css → vuetify.efc158.css} +0 -0
- package/dist/assets/{vuetify.0b5039.js → vuetify.efc158.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} +1 -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/{test → @vcmap-show-case/window-tester}/toolbox-data.js +9 -9
- 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 +1 -3
- package/src/actions/stateRefAction.js +0 -10
- package/src/application/VcsApp.vue +42 -23
- package/src/application/VcsMap.vue +9 -0
- package/src/components/buttons/VcsActionButtonList.vue +1 -0
- 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/VcsList.vue +21 -12
- package/src/components/lists/VcsTreeviewLeaf.vue +14 -2
- package/src/components/notification/VcsTooltip.vue +1 -1
- 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 +2 -6
- package/src/i18n/en.js +2 -6
- package/src/legend/legendHelper.js +4 -3
- package/src/legend/vcsLegend.vue +21 -2
- 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.08c48f.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 -209
- package/plugins/wizardExample/wizardExample.vue +0 -77
- package/src/components/form-inputs-controls/VcsColorPicker.vue +0 -85
@@ -1,25 +1,458 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
1
|
+
define(['./defaultValue-0a909f67', './Matrix3-315394f6', './ArcType-ce2e50ab', './Transforms-40229881', './Color-a84038cb', './ComponentDatatype-f7b11d02', './Check-666ab1a0', './GeometryAttribute-7d6f1732', './GeometryAttributes-f06a2792', './IndexDatatype-a55ceaa1', './Math-2dbd6b93', './PolylinePipeline-32f36d2a', './Matrix2-13178034', './RuntimeError-06c93819', './combine-ca22a614', './WebGLConstants-a8cc3e8c', './EllipsoidGeodesic-98c62a56', './EllipsoidRhumbLine-19756602', './IntersectionTests-f6e6bd8a', './Plane-900aa728'], (function (defaultValue, Matrix3, ArcType, Transforms, Color, ComponentDatatype, Check, GeometryAttribute, GeometryAttributes, IndexDatatype, Math, PolylinePipeline, Matrix2, RuntimeError, combine, WebGLConstants, EllipsoidGeodesic, EllipsoidRhumbLine, IntersectionTests, Plane) { 'use strict';
|
2
|
+
|
3
|
+
function interpolateColors(p0, p1, color0, color1, minDistance, array, offset) {
|
4
|
+
const numPoints = PolylinePipeline.PolylinePipeline.numberOfPoints(p0, p1, minDistance);
|
5
|
+
let i;
|
6
|
+
|
7
|
+
const r0 = color0.red;
|
8
|
+
const g0 = color0.green;
|
9
|
+
const b0 = color0.blue;
|
10
|
+
const a0 = color0.alpha;
|
11
|
+
|
12
|
+
const r1 = color1.red;
|
13
|
+
const g1 = color1.green;
|
14
|
+
const b1 = color1.blue;
|
15
|
+
const a1 = color1.alpha;
|
16
|
+
|
17
|
+
if (Color.Color.equals(color0, color1)) {
|
18
|
+
for (i = 0; i < numPoints; i++) {
|
19
|
+
array[offset++] = Color.Color.floatToByte(r0);
|
20
|
+
array[offset++] = Color.Color.floatToByte(g0);
|
21
|
+
array[offset++] = Color.Color.floatToByte(b0);
|
22
|
+
array[offset++] = Color.Color.floatToByte(a0);
|
23
|
+
}
|
24
|
+
return offset;
|
25
|
+
}
|
26
|
+
|
27
|
+
const redPerVertex = (r1 - r0) / numPoints;
|
28
|
+
const greenPerVertex = (g1 - g0) / numPoints;
|
29
|
+
const bluePerVertex = (b1 - b0) / numPoints;
|
30
|
+
const alphaPerVertex = (a1 - a0) / numPoints;
|
31
|
+
|
32
|
+
let index = offset;
|
33
|
+
for (i = 0; i < numPoints; i++) {
|
34
|
+
array[index++] = Color.Color.floatToByte(r0 + i * redPerVertex);
|
35
|
+
array[index++] = Color.Color.floatToByte(g0 + i * greenPerVertex);
|
36
|
+
array[index++] = Color.Color.floatToByte(b0 + i * bluePerVertex);
|
37
|
+
array[index++] = Color.Color.floatToByte(a0 + i * alphaPerVertex);
|
38
|
+
}
|
39
|
+
|
40
|
+
return index;
|
41
|
+
}
|
42
|
+
|
43
|
+
/**
|
44
|
+
* A description of a polyline modeled as a line strip; the first two positions define a line segment,
|
45
|
+
* and each additional position defines a line segment from the previous position.
|
46
|
+
*
|
47
|
+
* @alias SimplePolylineGeometry
|
48
|
+
* @constructor
|
49
|
+
*
|
50
|
+
* @param {Object} options Object with the following properties:
|
51
|
+
* @param {Cartesian3[]} options.positions An array of {@link Cartesian3} defining the positions in the polyline as a line strip.
|
52
|
+
* @param {Color[]} [options.colors] An Array of {@link Color} defining the per vertex or per segment colors.
|
53
|
+
* @param {Boolean} [options.colorsPerVertex=false] A boolean that determines whether the colors will be flat across each segment of the line or interpolated across the vertices.
|
54
|
+
* @param {ArcType} [options.arcType=ArcType.GEODESIC] The type of line the polyline segments must follow.
|
55
|
+
* @param {Number} [options.granularity=CesiumMath.RADIANS_PER_DEGREE] The distance, in radians, between each latitude and longitude if options.arcType is not ArcType.NONE. Determines the number of positions in the buffer.
|
56
|
+
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.WGS84] The ellipsoid to be used as a reference.
|
57
|
+
*
|
58
|
+
* @exception {DeveloperError} At least two positions are required.
|
59
|
+
* @exception {DeveloperError} colors has an invalid length.
|
60
|
+
*
|
61
|
+
* @see SimplePolylineGeometry#createGeometry
|
62
|
+
*
|
63
|
+
* @example
|
64
|
+
* // A polyline with two connected line segments
|
65
|
+
* const polyline = new Cesium.SimplePolylineGeometry({
|
66
|
+
* positions : Cesium.Cartesian3.fromDegreesArray([
|
67
|
+
* 0.0, 0.0,
|
68
|
+
* 5.0, 0.0,
|
69
|
+
* 5.0, 5.0
|
70
|
+
* ])
|
71
|
+
* });
|
72
|
+
* const geometry = Cesium.SimplePolylineGeometry.createGeometry(polyline);
|
73
|
+
*/
|
74
|
+
function SimplePolylineGeometry(options) {
|
75
|
+
options = defaultValue.defaultValue(options, defaultValue.defaultValue.EMPTY_OBJECT);
|
76
|
+
const positions = options.positions;
|
77
|
+
const colors = options.colors;
|
78
|
+
const colorsPerVertex = defaultValue.defaultValue(options.colorsPerVertex, false);
|
79
|
+
|
80
|
+
//>>includeStart('debug', pragmas.debug);
|
81
|
+
if (!defaultValue.defined(positions) || positions.length < 2) {
|
82
|
+
throw new Check.DeveloperError("At least two positions are required.");
|
83
|
+
}
|
84
|
+
if (
|
85
|
+
defaultValue.defined(colors) &&
|
86
|
+
((colorsPerVertex && colors.length < positions.length) ||
|
87
|
+
(!colorsPerVertex && colors.length < positions.length - 1))
|
88
|
+
) {
|
89
|
+
throw new Check.DeveloperError("colors has an invalid length.");
|
90
|
+
}
|
91
|
+
//>>includeEnd('debug');
|
92
|
+
|
93
|
+
this._positions = positions;
|
94
|
+
this._colors = colors;
|
95
|
+
this._colorsPerVertex = colorsPerVertex;
|
96
|
+
|
97
|
+
this._arcType = defaultValue.defaultValue(options.arcType, ArcType.ArcType.GEODESIC);
|
98
|
+
this._granularity = defaultValue.defaultValue(
|
99
|
+
options.granularity,
|
100
|
+
Math.CesiumMath.RADIANS_PER_DEGREE
|
101
|
+
);
|
102
|
+
this._ellipsoid = defaultValue.defaultValue(options.ellipsoid, Matrix3.Ellipsoid.WGS84);
|
103
|
+
this._workerName = "createSimplePolylineGeometry";
|
104
|
+
|
105
|
+
let numComponents = 1 + positions.length * Matrix3.Cartesian3.packedLength;
|
106
|
+
numComponents += defaultValue.defined(colors) ? 1 + colors.length * Color.Color.packedLength : 1;
|
107
|
+
|
108
|
+
/**
|
109
|
+
* The number of elements used to pack the object into an array.
|
110
|
+
* @type {Number}
|
111
|
+
*/
|
112
|
+
this.packedLength = numComponents + Matrix3.Ellipsoid.packedLength + 3;
|
113
|
+
}
|
114
|
+
|
115
|
+
/**
|
116
|
+
* Stores the provided instance into the provided array.
|
117
|
+
*
|
118
|
+
* @param {SimplePolylineGeometry} value The value to pack.
|
119
|
+
* @param {Number[]} array The array to pack into.
|
120
|
+
* @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
|
121
|
+
*
|
122
|
+
* @returns {Number[]} The array that was packed into
|
123
|
+
*/
|
124
|
+
SimplePolylineGeometry.pack = function (value, array, startingIndex) {
|
125
|
+
//>>includeStart('debug', pragmas.debug);
|
126
|
+
if (!defaultValue.defined(value)) {
|
127
|
+
throw new Check.DeveloperError("value is required");
|
128
|
+
}
|
129
|
+
if (!defaultValue.defined(array)) {
|
130
|
+
throw new Check.DeveloperError("array is required");
|
131
|
+
}
|
132
|
+
//>>includeEnd('debug');
|
133
|
+
|
134
|
+
startingIndex = defaultValue.defaultValue(startingIndex, 0);
|
135
|
+
|
136
|
+
let i;
|
137
|
+
|
138
|
+
const positions = value._positions;
|
139
|
+
let length = positions.length;
|
140
|
+
array[startingIndex++] = length;
|
141
|
+
|
142
|
+
for (i = 0; i < length; ++i, startingIndex += Matrix3.Cartesian3.packedLength) {
|
143
|
+
Matrix3.Cartesian3.pack(positions[i], array, startingIndex);
|
144
|
+
}
|
145
|
+
|
146
|
+
const colors = value._colors;
|
147
|
+
length = defaultValue.defined(colors) ? colors.length : 0.0;
|
148
|
+
array[startingIndex++] = length;
|
149
|
+
|
150
|
+
for (i = 0; i < length; ++i, startingIndex += Color.Color.packedLength) {
|
151
|
+
Color.Color.pack(colors[i], array, startingIndex);
|
152
|
+
}
|
153
|
+
|
154
|
+
Matrix3.Ellipsoid.pack(value._ellipsoid, array, startingIndex);
|
155
|
+
startingIndex += Matrix3.Ellipsoid.packedLength;
|
156
|
+
|
157
|
+
array[startingIndex++] = value._colorsPerVertex ? 1.0 : 0.0;
|
158
|
+
array[startingIndex++] = value._arcType;
|
159
|
+
array[startingIndex] = value._granularity;
|
160
|
+
|
161
|
+
return array;
|
162
|
+
};
|
163
|
+
|
164
|
+
/**
|
165
|
+
* Retrieves an instance from a packed array.
|
166
|
+
*
|
167
|
+
* @param {Number[]} array The packed array.
|
168
|
+
* @param {Number} [startingIndex=0] The starting index of the element to be unpacked.
|
169
|
+
* @param {SimplePolylineGeometry} [result] The object into which to store the result.
|
170
|
+
* @returns {SimplePolylineGeometry} The modified result parameter or a new SimplePolylineGeometry instance if one was not provided.
|
171
|
+
*/
|
172
|
+
SimplePolylineGeometry.unpack = function (array, startingIndex, result) {
|
173
|
+
//>>includeStart('debug', pragmas.debug);
|
174
|
+
if (!defaultValue.defined(array)) {
|
175
|
+
throw new Check.DeveloperError("array is required");
|
176
|
+
}
|
177
|
+
//>>includeEnd('debug');
|
178
|
+
|
179
|
+
startingIndex = defaultValue.defaultValue(startingIndex, 0);
|
180
|
+
|
181
|
+
let i;
|
182
|
+
|
183
|
+
let length = array[startingIndex++];
|
184
|
+
const positions = new Array(length);
|
185
|
+
|
186
|
+
for (i = 0; i < length; ++i, startingIndex += Matrix3.Cartesian3.packedLength) {
|
187
|
+
positions[i] = Matrix3.Cartesian3.unpack(array, startingIndex);
|
188
|
+
}
|
189
|
+
|
190
|
+
length = array[startingIndex++];
|
191
|
+
const colors = length > 0 ? new Array(length) : undefined;
|
192
|
+
|
193
|
+
for (i = 0; i < length; ++i, startingIndex += Color.Color.packedLength) {
|
194
|
+
colors[i] = Color.Color.unpack(array, startingIndex);
|
195
|
+
}
|
196
|
+
|
197
|
+
const ellipsoid = Matrix3.Ellipsoid.unpack(array, startingIndex);
|
198
|
+
startingIndex += Matrix3.Ellipsoid.packedLength;
|
199
|
+
|
200
|
+
const colorsPerVertex = array[startingIndex++] === 1.0;
|
201
|
+
const arcType = array[startingIndex++];
|
202
|
+
const granularity = array[startingIndex];
|
203
|
+
|
204
|
+
if (!defaultValue.defined(result)) {
|
205
|
+
return new SimplePolylineGeometry({
|
206
|
+
positions: positions,
|
207
|
+
colors: colors,
|
208
|
+
ellipsoid: ellipsoid,
|
209
|
+
colorsPerVertex: colorsPerVertex,
|
210
|
+
arcType: arcType,
|
211
|
+
granularity: granularity,
|
212
|
+
});
|
213
|
+
}
|
214
|
+
|
215
|
+
result._positions = positions;
|
216
|
+
result._colors = colors;
|
217
|
+
result._ellipsoid = ellipsoid;
|
218
|
+
result._colorsPerVertex = colorsPerVertex;
|
219
|
+
result._arcType = arcType;
|
220
|
+
result._granularity = granularity;
|
221
|
+
|
222
|
+
return result;
|
223
|
+
};
|
224
|
+
|
225
|
+
const scratchArray1 = new Array(2);
|
226
|
+
const scratchArray2 = new Array(2);
|
227
|
+
const generateArcOptionsScratch = {
|
228
|
+
positions: scratchArray1,
|
229
|
+
height: scratchArray2,
|
230
|
+
ellipsoid: undefined,
|
231
|
+
minDistance: undefined,
|
232
|
+
granularity: undefined,
|
233
|
+
};
|
234
|
+
|
235
|
+
/**
|
236
|
+
* Computes the geometric representation of a simple polyline, including its vertices, indices, and a bounding sphere.
|
237
|
+
*
|
238
|
+
* @param {SimplePolylineGeometry} simplePolylineGeometry A description of the polyline.
|
239
|
+
* @returns {Geometry|undefined} The computed vertices and indices.
|
240
|
+
*/
|
241
|
+
SimplePolylineGeometry.createGeometry = function (simplePolylineGeometry) {
|
242
|
+
const positions = simplePolylineGeometry._positions;
|
243
|
+
const colors = simplePolylineGeometry._colors;
|
244
|
+
const colorsPerVertex = simplePolylineGeometry._colorsPerVertex;
|
245
|
+
const arcType = simplePolylineGeometry._arcType;
|
246
|
+
const granularity = simplePolylineGeometry._granularity;
|
247
|
+
const ellipsoid = simplePolylineGeometry._ellipsoid;
|
248
|
+
|
249
|
+
const minDistance = Math.CesiumMath.chordLength(
|
250
|
+
granularity,
|
251
|
+
ellipsoid.maximumRadius
|
252
|
+
);
|
253
|
+
const perSegmentColors = defaultValue.defined(colors) && !colorsPerVertex;
|
254
|
+
|
255
|
+
let i;
|
256
|
+
const length = positions.length;
|
257
|
+
|
258
|
+
let positionValues;
|
259
|
+
let numberOfPositions;
|
260
|
+
let colorValues;
|
261
|
+
let color;
|
262
|
+
let offset = 0;
|
263
|
+
|
264
|
+
if (arcType === ArcType.ArcType.GEODESIC || arcType === ArcType.ArcType.RHUMB) {
|
265
|
+
let subdivisionSize;
|
266
|
+
let numberOfPointsFunction;
|
267
|
+
let generateArcFunction;
|
268
|
+
if (arcType === ArcType.ArcType.GEODESIC) {
|
269
|
+
subdivisionSize = Math.CesiumMath.chordLength(
|
270
|
+
granularity,
|
271
|
+
ellipsoid.maximumRadius
|
272
|
+
);
|
273
|
+
numberOfPointsFunction = PolylinePipeline.PolylinePipeline.numberOfPoints;
|
274
|
+
generateArcFunction = PolylinePipeline.PolylinePipeline.generateArc;
|
275
|
+
} else {
|
276
|
+
subdivisionSize = granularity;
|
277
|
+
numberOfPointsFunction = PolylinePipeline.PolylinePipeline.numberOfPointsRhumbLine;
|
278
|
+
generateArcFunction = PolylinePipeline.PolylinePipeline.generateRhumbArc;
|
279
|
+
}
|
280
|
+
|
281
|
+
const heights = PolylinePipeline.PolylinePipeline.extractHeights(positions, ellipsoid);
|
282
|
+
|
283
|
+
const generateArcOptions = generateArcOptionsScratch;
|
284
|
+
if (arcType === ArcType.ArcType.GEODESIC) {
|
285
|
+
generateArcOptions.minDistance = minDistance;
|
286
|
+
} else {
|
287
|
+
generateArcOptions.granularity = granularity;
|
288
|
+
}
|
289
|
+
generateArcOptions.ellipsoid = ellipsoid;
|
290
|
+
|
291
|
+
if (perSegmentColors) {
|
292
|
+
let positionCount = 0;
|
293
|
+
for (i = 0; i < length - 1; i++) {
|
294
|
+
positionCount +=
|
295
|
+
numberOfPointsFunction(
|
296
|
+
positions[i],
|
297
|
+
positions[i + 1],
|
298
|
+
subdivisionSize
|
299
|
+
) + 1;
|
300
|
+
}
|
301
|
+
|
302
|
+
positionValues = new Float64Array(positionCount * 3);
|
303
|
+
colorValues = new Uint8Array(positionCount * 4);
|
304
|
+
|
305
|
+
generateArcOptions.positions = scratchArray1;
|
306
|
+
generateArcOptions.height = scratchArray2;
|
307
|
+
|
308
|
+
let ci = 0;
|
309
|
+
for (i = 0; i < length - 1; ++i) {
|
310
|
+
scratchArray1[0] = positions[i];
|
311
|
+
scratchArray1[1] = positions[i + 1];
|
312
|
+
|
313
|
+
scratchArray2[0] = heights[i];
|
314
|
+
scratchArray2[1] = heights[i + 1];
|
315
|
+
|
316
|
+
const pos = generateArcFunction(generateArcOptions);
|
317
|
+
|
318
|
+
if (defaultValue.defined(colors)) {
|
319
|
+
const segLen = pos.length / 3;
|
320
|
+
color = colors[i];
|
321
|
+
for (let k = 0; k < segLen; ++k) {
|
322
|
+
colorValues[ci++] = Color.Color.floatToByte(color.red);
|
323
|
+
colorValues[ci++] = Color.Color.floatToByte(color.green);
|
324
|
+
colorValues[ci++] = Color.Color.floatToByte(color.blue);
|
325
|
+
colorValues[ci++] = Color.Color.floatToByte(color.alpha);
|
326
|
+
}
|
327
|
+
}
|
328
|
+
|
329
|
+
positionValues.set(pos, offset);
|
330
|
+
offset += pos.length;
|
331
|
+
}
|
332
|
+
} else {
|
333
|
+
generateArcOptions.positions = positions;
|
334
|
+
generateArcOptions.height = heights;
|
335
|
+
positionValues = new Float64Array(
|
336
|
+
generateArcFunction(generateArcOptions)
|
337
|
+
);
|
338
|
+
|
339
|
+
if (defaultValue.defined(colors)) {
|
340
|
+
colorValues = new Uint8Array((positionValues.length / 3) * 4);
|
341
|
+
|
342
|
+
for (i = 0; i < length - 1; ++i) {
|
343
|
+
const p0 = positions[i];
|
344
|
+
const p1 = positions[i + 1];
|
345
|
+
const c0 = colors[i];
|
346
|
+
const c1 = colors[i + 1];
|
347
|
+
offset = interpolateColors(
|
348
|
+
p0,
|
349
|
+
p1,
|
350
|
+
c0,
|
351
|
+
c1,
|
352
|
+
minDistance,
|
353
|
+
colorValues,
|
354
|
+
offset
|
355
|
+
);
|
356
|
+
}
|
357
|
+
|
358
|
+
const lastColor = colors[length - 1];
|
359
|
+
colorValues[offset++] = Color.Color.floatToByte(lastColor.red);
|
360
|
+
colorValues[offset++] = Color.Color.floatToByte(lastColor.green);
|
361
|
+
colorValues[offset++] = Color.Color.floatToByte(lastColor.blue);
|
362
|
+
colorValues[offset++] = Color.Color.floatToByte(lastColor.alpha);
|
363
|
+
}
|
364
|
+
}
|
365
|
+
} else {
|
366
|
+
numberOfPositions = perSegmentColors ? length * 2 - 2 : length;
|
367
|
+
positionValues = new Float64Array(numberOfPositions * 3);
|
368
|
+
colorValues = defaultValue.defined(colors)
|
369
|
+
? new Uint8Array(numberOfPositions * 4)
|
370
|
+
: undefined;
|
371
|
+
|
372
|
+
let positionIndex = 0;
|
373
|
+
let colorIndex = 0;
|
374
|
+
|
375
|
+
for (i = 0; i < length; ++i) {
|
376
|
+
const p = positions[i];
|
377
|
+
|
378
|
+
if (perSegmentColors && i > 0) {
|
379
|
+
Matrix3.Cartesian3.pack(p, positionValues, positionIndex);
|
380
|
+
positionIndex += 3;
|
381
|
+
|
382
|
+
color = colors[i - 1];
|
383
|
+
colorValues[colorIndex++] = Color.Color.floatToByte(color.red);
|
384
|
+
colorValues[colorIndex++] = Color.Color.floatToByte(color.green);
|
385
|
+
colorValues[colorIndex++] = Color.Color.floatToByte(color.blue);
|
386
|
+
colorValues[colorIndex++] = Color.Color.floatToByte(color.alpha);
|
387
|
+
}
|
388
|
+
|
389
|
+
if (perSegmentColors && i === length - 1) {
|
390
|
+
break;
|
391
|
+
}
|
392
|
+
|
393
|
+
Matrix3.Cartesian3.pack(p, positionValues, positionIndex);
|
394
|
+
positionIndex += 3;
|
395
|
+
|
396
|
+
if (defaultValue.defined(colors)) {
|
397
|
+
color = colors[i];
|
398
|
+
colorValues[colorIndex++] = Color.Color.floatToByte(color.red);
|
399
|
+
colorValues[colorIndex++] = Color.Color.floatToByte(color.green);
|
400
|
+
colorValues[colorIndex++] = Color.Color.floatToByte(color.blue);
|
401
|
+
colorValues[colorIndex++] = Color.Color.floatToByte(color.alpha);
|
402
|
+
}
|
403
|
+
}
|
404
|
+
}
|
405
|
+
|
406
|
+
const attributes = new GeometryAttributes.GeometryAttributes();
|
407
|
+
attributes.position = new GeometryAttribute.GeometryAttribute({
|
408
|
+
componentDatatype: ComponentDatatype.ComponentDatatype.DOUBLE,
|
409
|
+
componentsPerAttribute: 3,
|
410
|
+
values: positionValues,
|
411
|
+
});
|
412
|
+
|
413
|
+
if (defaultValue.defined(colors)) {
|
414
|
+
attributes.color = new GeometryAttribute.GeometryAttribute({
|
415
|
+
componentDatatype: ComponentDatatype.ComponentDatatype.UNSIGNED_BYTE,
|
416
|
+
componentsPerAttribute: 4,
|
417
|
+
values: colorValues,
|
418
|
+
normalize: true,
|
419
|
+
});
|
420
|
+
}
|
421
|
+
|
422
|
+
numberOfPositions = positionValues.length / 3;
|
423
|
+
const numberOfIndices = (numberOfPositions - 1) * 2;
|
424
|
+
const indices = IndexDatatype.IndexDatatype.createTypedArray(
|
425
|
+
numberOfPositions,
|
426
|
+
numberOfIndices
|
427
|
+
);
|
428
|
+
|
429
|
+
let index = 0;
|
430
|
+
for (i = 0; i < numberOfPositions - 1; ++i) {
|
431
|
+
indices[index++] = i;
|
432
|
+
indices[index++] = i + 1;
|
433
|
+
}
|
434
|
+
|
435
|
+
return new GeometryAttribute.Geometry({
|
436
|
+
attributes: attributes,
|
437
|
+
indices: indices,
|
438
|
+
primitiveType: GeometryAttribute.PrimitiveType.LINES,
|
439
|
+
boundingSphere: Transforms.BoundingSphere.fromPoints(positions),
|
440
|
+
});
|
441
|
+
};
|
442
|
+
|
443
|
+
function createSimplePolylineGeometry(simplePolylineGeometry, offset) {
|
444
|
+
if (defaultValue.defined(offset)) {
|
445
|
+
simplePolylineGeometry = SimplePolylineGeometry.unpack(
|
446
|
+
simplePolylineGeometry,
|
447
|
+
offset
|
448
|
+
);
|
449
|
+
}
|
450
|
+
simplePolylineGeometry._ellipsoid = Matrix3.Ellipsoid.clone(
|
451
|
+
simplePolylineGeometry._ellipsoid
|
452
|
+
);
|
453
|
+
return SimplePolylineGeometry.createGeometry(simplePolylineGeometry);
|
454
|
+
}
|
455
|
+
|
456
|
+
return createSimplePolylineGeometry;
|
457
|
+
|
458
|
+
}));
|
@@ -1,25 +1,123 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
1
|
+
define(['./defaultValue-0a909f67', './Matrix3-315394f6', './Check-666ab1a0', './EllipsoidGeometry-21c0e3a5', './VertexFormat-6b480673', './Math-2dbd6b93', './Transforms-40229881', './Matrix2-13178034', './RuntimeError-06c93819', './combine-ca22a614', './ComponentDatatype-f7b11d02', './WebGLConstants-a8cc3e8c', './GeometryAttribute-7d6f1732', './GeometryAttributes-f06a2792', './GeometryOffsetAttribute-04332ce7', './IndexDatatype-a55ceaa1'], (function (defaultValue, Matrix3, Check, EllipsoidGeometry, VertexFormat, Math, Transforms, Matrix2, RuntimeError, combine, ComponentDatatype, WebGLConstants, GeometryAttribute, GeometryAttributes, GeometryOffsetAttribute, IndexDatatype) { 'use strict';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* A description of a sphere centered at the origin.
|
5
|
+
*
|
6
|
+
* @alias SphereGeometry
|
7
|
+
* @constructor
|
8
|
+
*
|
9
|
+
* @param {Object} [options] Object with the following properties:
|
10
|
+
* @param {Number} [options.radius=1.0] The radius of the sphere.
|
11
|
+
* @param {Number} [options.stackPartitions=64] The number of times to partition the ellipsoid into stacks.
|
12
|
+
* @param {Number} [options.slicePartitions=64] The number of times to partition the ellipsoid into radial slices.
|
13
|
+
* @param {VertexFormat} [options.vertexFormat=VertexFormat.DEFAULT] The vertex attributes to be computed.
|
14
|
+
*
|
15
|
+
* @exception {DeveloperError} options.slicePartitions cannot be less than three.
|
16
|
+
* @exception {DeveloperError} options.stackPartitions cannot be less than three.
|
17
|
+
*
|
18
|
+
* @see SphereGeometry#createGeometry
|
19
|
+
*
|
20
|
+
* @example
|
21
|
+
* const sphere = new Cesium.SphereGeometry({
|
22
|
+
* radius : 100.0,
|
23
|
+
* vertexFormat : Cesium.VertexFormat.POSITION_ONLY
|
24
|
+
* });
|
25
|
+
* const geometry = Cesium.SphereGeometry.createGeometry(sphere);
|
26
|
+
*/
|
27
|
+
function SphereGeometry(options) {
|
28
|
+
const radius = defaultValue.defaultValue(options.radius, 1.0);
|
29
|
+
const radii = new Matrix3.Cartesian3(radius, radius, radius);
|
30
|
+
const ellipsoidOptions = {
|
31
|
+
radii: radii,
|
32
|
+
stackPartitions: options.stackPartitions,
|
33
|
+
slicePartitions: options.slicePartitions,
|
34
|
+
vertexFormat: options.vertexFormat,
|
35
|
+
};
|
36
|
+
|
37
|
+
this._ellipsoidGeometry = new EllipsoidGeometry.EllipsoidGeometry(ellipsoidOptions);
|
38
|
+
this._workerName = "createSphereGeometry";
|
39
|
+
}
|
40
|
+
|
41
|
+
/**
|
42
|
+
* The number of elements used to pack the object into an array.
|
43
|
+
* @type {Number}
|
44
|
+
*/
|
45
|
+
SphereGeometry.packedLength = EllipsoidGeometry.EllipsoidGeometry.packedLength;
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Stores the provided instance into the provided array.
|
49
|
+
*
|
50
|
+
* @param {SphereGeometry} value The value to pack.
|
51
|
+
* @param {Number[]} array The array to pack into.
|
52
|
+
* @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
|
53
|
+
*
|
54
|
+
* @returns {Number[]} The array that was packed into
|
55
|
+
*/
|
56
|
+
SphereGeometry.pack = function (value, array, startingIndex) {
|
57
|
+
//>>includeStart('debug', pragmas.debug);
|
58
|
+
Check.Check.typeOf.object("value", value);
|
59
|
+
//>>includeEnd('debug');
|
60
|
+
|
61
|
+
return EllipsoidGeometry.EllipsoidGeometry.pack(value._ellipsoidGeometry, array, startingIndex);
|
62
|
+
};
|
63
|
+
|
64
|
+
const scratchEllipsoidGeometry = new EllipsoidGeometry.EllipsoidGeometry();
|
65
|
+
const scratchOptions = {
|
66
|
+
radius: undefined,
|
67
|
+
radii: new Matrix3.Cartesian3(),
|
68
|
+
vertexFormat: new VertexFormat.VertexFormat(),
|
69
|
+
stackPartitions: undefined,
|
70
|
+
slicePartitions: undefined,
|
71
|
+
};
|
72
|
+
|
73
|
+
/**
|
74
|
+
* Retrieves an instance from a packed array.
|
75
|
+
*
|
76
|
+
* @param {Number[]} array The packed array.
|
77
|
+
* @param {Number} [startingIndex=0] The starting index of the element to be unpacked.
|
78
|
+
* @param {SphereGeometry} [result] The object into which to store the result.
|
79
|
+
* @returns {SphereGeometry} The modified result parameter or a new SphereGeometry instance if one was not provided.
|
80
|
+
*/
|
81
|
+
SphereGeometry.unpack = function (array, startingIndex, result) {
|
82
|
+
const ellipsoidGeometry = EllipsoidGeometry.EllipsoidGeometry.unpack(
|
83
|
+
array,
|
84
|
+
startingIndex,
|
85
|
+
scratchEllipsoidGeometry
|
86
|
+
);
|
87
|
+
scratchOptions.vertexFormat = VertexFormat.VertexFormat.clone(
|
88
|
+
ellipsoidGeometry._vertexFormat,
|
89
|
+
scratchOptions.vertexFormat
|
90
|
+
);
|
91
|
+
scratchOptions.stackPartitions = ellipsoidGeometry._stackPartitions;
|
92
|
+
scratchOptions.slicePartitions = ellipsoidGeometry._slicePartitions;
|
93
|
+
|
94
|
+
if (!defaultValue.defined(result)) {
|
95
|
+
scratchOptions.radius = ellipsoidGeometry._radii.x;
|
96
|
+
return new SphereGeometry(scratchOptions);
|
97
|
+
}
|
98
|
+
|
99
|
+
Matrix3.Cartesian3.clone(ellipsoidGeometry._radii, scratchOptions.radii);
|
100
|
+
result._ellipsoidGeometry = new EllipsoidGeometry.EllipsoidGeometry(scratchOptions);
|
101
|
+
return result;
|
102
|
+
};
|
103
|
+
|
104
|
+
/**
|
105
|
+
* Computes the geometric representation of a sphere, including its vertices, indices, and a bounding sphere.
|
106
|
+
*
|
107
|
+
* @param {SphereGeometry} sphereGeometry A description of the sphere.
|
108
|
+
* @returns {Geometry|undefined} The computed vertices and indices.
|
109
|
+
*/
|
110
|
+
SphereGeometry.createGeometry = function (sphereGeometry) {
|
111
|
+
return EllipsoidGeometry.EllipsoidGeometry.createGeometry(sphereGeometry._ellipsoidGeometry);
|
112
|
+
};
|
113
|
+
|
114
|
+
function createSphereGeometry(sphereGeometry, offset) {
|
115
|
+
if (defaultValue.defined(offset)) {
|
116
|
+
sphereGeometry = SphereGeometry.unpack(sphereGeometry, offset);
|
117
|
+
}
|
118
|
+
return SphereGeometry.createGeometry(sphereGeometry);
|
119
|
+
}
|
120
|
+
|
121
|
+
return createSphereGeometry;
|
122
|
+
|
123
|
+
}));
|