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