@vcmap/ui 5.0.0-rc.10
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/LICENSE.md +21 -0
- package/README.md +182 -0
- package/build/.eslintrc +6 -0
- package/build/build.js +162 -0
- package/build/buildCesium.js +19 -0
- package/build/buildHelpers.js +212 -0
- package/build/buildPreview.js +23 -0
- package/build/commonViteConfig.js +39 -0
- package/build/determineHost.js +46 -0
- package/build/generateOLLib.js +196 -0
- package/build/getPluginProxies.js +29 -0
- package/build/info/api-plugin.js +11 -0
- package/build/info/conf.json +21 -0
- package/build/info/define-plugin.js +31 -0
- package/build/info/package.json +3 -0
- package/build/info/publish.js +190 -0
- package/build/info/virtual-plugin.js +15 -0
- package/build/staging/Dockerfile +2 -0
- package/config/aerowest.config.json +388 -0
- package/config/base.config.json +991 -0
- package/config/berlin.config.json +510 -0
- package/config/dev.config.json +44 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/dist/assets/cesium/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/dist/assets/cesium/Assets/Images/bing_maps_credit.png +0 -0
- package/dist/assets/cesium/Assets/Images/cesium_credit.png +0 -0
- package/dist/assets/cesium/Assets/Images/google_earth_credit.png +0 -0
- package/dist/assets/cesium/Assets/Images/ion-credit.png +0 -0
- package/dist/assets/cesium/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/airfield.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/airport.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/america-football.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/art-gallery.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/bakery.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/bank.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/bar.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/baseball.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/basketball.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/beer.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/bicycle.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/building.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/bus.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/cafe.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/camera.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/campsite.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/car.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/cemetery.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/cesium.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/chemist.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/cinema.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/circle-stroked.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/circle.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/city.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/clothing-store.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/college.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/commercial.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/cricket.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/cross.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/dam.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/danger.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/disability.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/dog-park.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/embassy.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/entrance.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/farm.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/fast-food.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/ferry.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/fire-station.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/fuel.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/garden.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/gift.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/golf.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/grocery.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/hairdresser.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/harbor.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/heart.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/heliport.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/hospital.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/ice-cream.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/industrial.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/land-use.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/laundry.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/library.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/lighthouse.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/lodging.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/logging.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/london-underground.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/marker-stroked.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/marker.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/minefield.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/mobilephone.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/monument.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/museum.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/music.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/oil-well.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/park.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/park2.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/parking-garage.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/parking.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/pharmacy.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/pitch.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/place-of-worship.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/playground.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/police.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/polling-place.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/post.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/prison.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/rail-above.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/rail-light.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/rail-metro.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/rail-underground.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/rail.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/religious-christian.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/religious-jewish.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/religious-muslim.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/restaurant.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/roadblock.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/rocket.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/school.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/scooter.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/shop.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/skiing.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/soccer.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/square-stroked.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/square.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/star-stroked.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/star.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/suitcase.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/swimming.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/telephone.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/tennis.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/theatre.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/toilets.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/town-hall.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/town.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/triangle.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/village.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/warehouse.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/waste-basket.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/water.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/wetland.png +0 -0
- package/dist/assets/cesium/Assets/Textures/maki/zoo.png +0 -0
- package/dist/assets/cesium/Assets/Textures/moonSmall.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/pin.svg +1 -0
- package/dist/assets/cesium/Assets/Textures/waterNormals.jpg +0 -0
- package/dist/assets/cesium/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/dist/assets/cesium/Assets/approximateTerrainHeights.json +1 -0
- package/dist/assets/cesium/Workers/ArcType-fc72c06c.js +1 -0
- package/dist/assets/cesium/Workers/AttributeCompression-80665726.js +1 -0
- package/dist/assets/cesium/Workers/AxisAlignedBoundingBox-a655a4bc.js +1 -0
- package/dist/assets/cesium/Workers/BoundingRectangle-c3b79029.js +1 -0
- package/dist/assets/cesium/Workers/BoxGeometry-f8f9c981.js +1 -0
- package/dist/assets/cesium/Workers/Color-de06a177.js +1 -0
- package/dist/assets/cesium/Workers/ComponentDatatype-a15c9a19.js +1 -0
- package/dist/assets/cesium/Workers/CoplanarPolygonGeometryLibrary-48cdc26d.js +1 -0
- package/dist/assets/cesium/Workers/CorridorGeometryLibrary-ddc027d3.js +1 -0
- package/dist/assets/cesium/Workers/CylinderGeometry-82a8cbe6.js +1 -0
- package/dist/assets/cesium/Workers/CylinderGeometryLibrary-76cda53e.js +1 -0
- package/dist/assets/cesium/Workers/EllipseGeometry-32d55454.js +1 -0
- package/dist/assets/cesium/Workers/EllipseGeometryLibrary-b2ae188a.js +1 -0
- package/dist/assets/cesium/Workers/EllipseOutlineGeometry-f05a5a27.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidGeodesic-19e75e11.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidGeometry-7c99fc81.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidOutlineGeometry-21c243df.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidRhumbLine-6145377b.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidTangentPlane-a01286f6.js +1 -0
- package/dist/assets/cesium/Workers/EncodedCartesian3-d9f5c4a4.js +1 -0
- package/dist/assets/cesium/Workers/FrustumGeometry-17776af8.js +1 -0
- package/dist/assets/cesium/Workers/GeometryAttribute-89a520b9.js +1 -0
- package/dist/assets/cesium/Workers/GeometryAttributes-32b29525.js +1 -0
- package/dist/assets/cesium/Workers/GeometryInstance-4fbf16ba.js +1 -0
- package/dist/assets/cesium/Workers/GeometryOffsetAttribute-8c5e10db.js +1 -0
- package/dist/assets/cesium/Workers/GeometryPipeline-309fad76.js +1 -0
- package/dist/assets/cesium/Workers/IndexDatatype-f1dcdf35.js +1 -0
- package/dist/assets/cesium/Workers/IntersectionTests-58aa8f80.js +1 -0
- package/dist/assets/cesium/Workers/Matrix2-47e98d76.js +1 -0
- package/dist/assets/cesium/Workers/OrientedBoundingBox-fcb5b750.js +1 -0
- package/dist/assets/cesium/Workers/Plane-3f01019d.js +1 -0
- package/dist/assets/cesium/Workers/PolygonGeometryLibrary-0b29eb16.js +1 -0
- package/dist/assets/cesium/Workers/PolygonPipeline-a934c4dd.js +1 -0
- package/dist/assets/cesium/Workers/PolylinePipeline-8095c9bc.js +1 -0
- package/dist/assets/cesium/Workers/PolylineVolumeGeometryLibrary-67d12fff.js +1 -0
- package/dist/assets/cesium/Workers/PrimitivePipeline-980e44c5.js +1 -0
- package/dist/assets/cesium/Workers/RectangleGeometryLibrary-621c6de8.js +1 -0
- package/dist/assets/cesium/Workers/RuntimeError-8952249c.js +1 -0
- package/dist/assets/cesium/Workers/TerrainEncoding-f96552d5.js +1 -0
- package/dist/assets/cesium/Workers/Transforms-c8cb8f43.js +39 -0
- package/dist/assets/cesium/Workers/VertexFormat-a0b706b0.js +1 -0
- package/dist/assets/cesium/Workers/WallGeometryLibrary-c03d8479.js +1 -0
- package/dist/assets/cesium/Workers/WebGLConstants-508b9636.js +1 -0
- package/dist/assets/cesium/Workers/WebMercatorProjection-79b3214e.js +1 -0
- package/dist/assets/cesium/Workers/_commonjsHelpers-3aae1032-26891ab7.js +1 -0
- package/dist/assets/cesium/Workers/_rollup_plugin_ignore_empty_module_placeholder-57d574d0.js +1 -0
- package/dist/assets/cesium/Workers/arrayRemoveDuplicates-dc2f4046.js +1 -0
- package/dist/assets/cesium/Workers/cesiumWorkerBootstrapper.js +6 -0
- package/dist/assets/cesium/Workers/combine-3c023bda.js +1 -0
- package/dist/assets/cesium/Workers/combineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createBoxGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createBoxOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCircleGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCircleOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCoplanarPolygonGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCorridorGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCorridorOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCylinderGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createCylinderOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createEllipseGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createEllipseOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createEllipsoidGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createEllipsoidOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createFrustumGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createFrustumOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createGroundPolylineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPlaneGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPlaneOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPolygonGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPolygonOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPolylineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPolylineVolumeGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createPolylineVolumeOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createRectangleGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createRectangleOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createSimplePolylineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createSphereGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createSphereOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createTaskProcessorWorker.js +1 -0
- package/dist/assets/cesium/Workers/createVectorTileClampedPolylines.js +1 -0
- package/dist/assets/cesium/Workers/createVectorTileGeometries.js +1 -0
- package/dist/assets/cesium/Workers/createVectorTilePoints.js +1 -0
- package/dist/assets/cesium/Workers/createVectorTilePolygons.js +1 -0
- package/dist/assets/cesium/Workers/createVectorTilePolylines.js +1 -0
- package/dist/assets/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -0
- package/dist/assets/cesium/Workers/createVerticesFromHeightmap.js +3 -0
- package/dist/assets/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -0
- package/dist/assets/cesium/Workers/createWallGeometry.js +1 -0
- package/dist/assets/cesium/Workers/createWallOutlineGeometry.js +1 -0
- package/dist/assets/cesium/Workers/decodeDraco.js +1 -0
- package/dist/assets/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +1 -0
- package/dist/assets/cesium/Workers/defaultValue-81eec7ed.js +1 -0
- package/dist/assets/cesium/Workers/transcodeKTX2.js +1 -0
- package/dist/assets/cesium/Workers/transferTypedArrayTest.js +1 -0
- package/dist/assets/cesium/Workers/upsampleQuantizedTerrainMesh.js +1 -0
- package/dist/assets/cesium.eb5667.js +9105 -0
- package/dist/assets/cesium.js +1 -0
- package/dist/assets/core.216494.js +4 -0
- package/dist/assets/core.js +1 -0
- package/dist/assets/index.4ccd4433.js +1 -0
- package/dist/assets/ol.ef03b1.js +311 -0
- package/dist/assets/ol.js +1 -0
- package/dist/assets/ui.99a1a7.css +1 -0
- package/dist/assets/ui.99a1a7.js +70 -0
- package/dist/assets/ui.js +1 -0
- package/dist/assets/vue-composition-api.c5aca1.js +14 -0
- package/dist/assets/vue-composition-api.js +2 -0
- package/dist/assets/vue.762edd.js +9 -0
- package/dist/assets/vue.js +1 -0
- package/dist/assets/vuetify.401a29.css +5 -0
- package/dist/assets/vuetify.401a29.js +148 -0
- package/dist/assets/vuetify.js +2 -0
- package/dist/index.html +82 -0
- package/index.js +108 -0
- package/lib/cesium.js +1 -0
- package/lib/core.js +1 -0
- package/lib/ol.js +1 -0
- package/lib/olLib.js +844 -0
- package/lib/ui.js +1 -0
- package/lib/vue-composition-api.js +2 -0
- package/lib/vue.js +1 -0
- package/lib/vuetify.js +2 -0
- package/map.config.json +35 -0
- package/package.json +126 -0
- package/plugins/@vcmap/pluginExample/config.json +6 -0
- package/plugins/@vcmap/pluginExample/index.js +209 -0
- package/plugins/@vcmap/pluginExample/package.json +7 -0
- package/plugins/@vcmap/pluginExample/pluginExampleComponent.vue +374 -0
- package/plugins/@vcmap/pluginExample/validation.js +30 -0
- package/plugins/@vcmap/project-selector/ContextsListComponent.vue +62 -0
- package/plugins/@vcmap/project-selector/ProjectSelectorComponent.vue +81 -0
- package/plugins/@vcmap/project-selector/README.md +29 -0
- package/plugins/@vcmap/project-selector/config.json +15 -0
- package/plugins/@vcmap/project-selector/de.json +7 -0
- package/plugins/@vcmap/project-selector/en.json +7 -0
- package/plugins/@vcmap/project-selector/index.js +259 -0
- package/plugins/@vcmap/project-selector/package.json +14 -0
- package/plugins/@vcmap/theme-changer/README.md +21 -0
- package/plugins/@vcmap/theme-changer/ThemeChangerComponent.vue +92 -0
- package/plugins/@vcmap/theme-changer/config.json +69 -0
- package/plugins/@vcmap/theme-changer/index.js +102 -0
- package/plugins/@vcmap/theme-changer/package.json +12 -0
- package/plugins/buttonExamples/ButtonExamples.vue +190 -0
- package/plugins/buttonExamples/index.js +41 -0
- package/plugins/categoryTest/Categories.vue +145 -0
- package/plugins/categoryTest/Category.vue +114 -0
- package/plugins/categoryTest/ItemEditor.vue +13 -0
- package/plugins/categoryTest/index.js +41 -0
- package/plugins/example/index.js +75 -0
- package/plugins/example/mySuperComponent.vue +127 -0
- package/plugins/package.json +5 -0
- package/plugins/test/allIconsComponent.vue +34 -0
- package/plugins/test/editor.vue +63 -0
- package/plugins/test/emptyComponent.vue +13 -0
- package/plugins/test/index.js +116 -0
- package/plugins/test/myCustomHeader.vue +19 -0
- package/plugins/test/toolbox-data.js +129 -0
- package/plugins/test/vcsContent.vue +23 -0
- package/plugins/test/windowManagerExample.vue +144 -0
- package/src/actions/actionHelper.js +262 -0
- package/src/actions/stateRefAction.js +59 -0
- package/src/actions/styleSelector.vue +90 -0
- package/src/application/Navbar.vue +143 -0
- package/src/application/VcsApp.vue +202 -0
- package/src/application/VcsMap.vue +38 -0
- package/src/application/VcsSettings.vue +85 -0
- package/src/application/vcsAppWrapper.vue +29 -0
- package/src/assets/logo-mobile.svg +9 -0
- package/src/assets/logo.svg +26 -0
- package/src/components/buttons/VcsActionButtonList.vue +99 -0
- package/src/components/buttons/VcsButton.vue +201 -0
- package/src/components/form-inputs-controls/VcsCheckbox.vue +74 -0
- package/src/components/form-inputs-controls/VcsColorPicker.vue +81 -0
- package/src/components/form-inputs-controls/VcsFormSection.vue +46 -0
- package/src/components/form-inputs-controls/VcsLabel.vue +38 -0
- package/src/components/form-inputs-controls/VcsSelect.vue +97 -0
- package/src/components/form-inputs-controls/VcsTextArea.vue +130 -0
- package/src/components/form-inputs-controls/VcsTextField.vue +129 -0
- package/src/components/form-output/VcsFormattedNumber.vue +103 -0
- package/src/components/lists/VcsActionList.vue +100 -0
- package/src/components/lists/VcsTreeview.vue +104 -0
- package/src/components/lists/VcsTreeviewLeaf.vue +91 -0
- package/src/components/lists/VcsTreeviewSearchbar.vue +157 -0
- package/src/components/notification/VcsBadge.vue +27 -0
- package/src/components/notification/VcsTooltip.vue +154 -0
- package/src/components/notification/validation.js +19 -0
- package/src/contentTree/LayerTree.vue +39 -0
- package/src/contentTree/contentTreeCollection.js +315 -0
- package/src/contentTree/contentTreeItem.js +457 -0
- package/src/contentTree/groupContentTreeItem.js +67 -0
- package/src/contentTree/layerContentTreeItem.js +235 -0
- package/src/contentTree/layerGroupContentTreeItem.js +154 -0
- package/src/contentTree/nodeContentTreeItem.js +37 -0
- package/src/contentTree/obliqueCollectionContentTreeItem.js +155 -0
- package/src/contentTree/subContentTreeItem.js +42 -0
- package/src/contentTree/vcsObjectContentTreeItem.js +98 -0
- package/src/contentTree/viewPointContentTreeItem.js +107 -0
- package/src/i18n/de.js +55 -0
- package/src/i18n/en.js +55 -0
- package/src/i18n/i18nCollection.js +138 -0
- package/src/icons/+all.js +359 -0
- package/src/icons/2DAreaIcon.vue +21 -0
- package/src/icons/2DDistanceIcon.vue +18 -0
- package/src/icons/3DAreaIcon.vue +21 -0
- package/src/icons/3DDistanceIcon.vue +18 -0
- package/src/icons/3DHeightIcon.vue +18 -0
- package/src/icons/AngleIcon.vue +8 -0
- package/src/icons/AssociationsIcon.vue +34 -0
- package/src/icons/AxisIcon.vue +10 -0
- package/src/icons/BoundingBoxIcon.vue +15 -0
- package/src/icons/CheckboxCheckedIcon.vue +16 -0
- package/src/icons/CheckboxIcon.vue +23 -0
- package/src/icons/CheckboxIndeterminateIcon.vue +24 -0
- package/src/icons/CircleIcon.vue +10 -0
- package/src/icons/ColorSwatchIcon.vue +17 -0
- package/src/icons/CommentIcon.vue +19 -0
- package/src/icons/CompassIcon.vue +8 -0
- package/src/icons/ComponentsIcon.vue +7 -0
- package/src/icons/ConeIcon.vue +11 -0
- package/src/icons/DimensionsHouseIcon.vue +14 -0
- package/src/icons/ElevationProfileIcon.vue +111 -0
- package/src/icons/ExportAreaIcon.vue +7 -0
- package/src/icons/ExportFlightIcon.vue +7 -0
- package/src/icons/ExportIcon.vue +8 -0
- package/src/icons/ExternalLinkIcon.vue +10 -0
- package/src/icons/EyeIcon.vue +7 -0
- package/src/icons/FastForwardIcon.vue +7 -0
- package/src/icons/FilterIcon.vue +8 -0
- package/src/icons/GlobeNatureIcon.vue +14 -0
- package/src/icons/HealthCareIndustriesIcon.vue +118 -0
- package/src/icons/HelpIcon.vue +7 -0
- package/src/icons/HomePointIcon.vue +8 -0
- package/src/icons/HospitalsIcon.vue +237 -0
- package/src/icons/HouseIcon.vue +25 -0
- package/src/icons/ImportIcon.vue +8 -0
- package/src/icons/InfoIcon.vue +10 -0
- package/src/icons/KebabIcon.vue +36 -0
- package/src/icons/LabelIcon.vue +7 -0
- package/src/icons/LayersIcon.vue +26 -0
- package/src/icons/LegendIcon.vue +65 -0
- package/src/icons/LineIcon.vue +7 -0
- package/src/icons/LinkIcon.vue +7 -0
- package/src/icons/MapIcon.vue +8 -0
- package/src/icons/MenuIcon.vue +34 -0
- package/src/icons/MinusIcon.vue +8 -0
- package/src/icons/ObjectAttributeIcon.vue +18 -0
- package/src/icons/ObjectSelectIcon.vue +8 -0
- package/src/icons/ObliqueViewIcon.vue +13 -0
- package/src/icons/PdfIcon.vue +10 -0
- package/src/icons/PedestrianIcon.vue +8 -0
- package/src/icons/PenIcon.vue +14 -0
- package/src/icons/PlayCircleIcon.vue +10 -0
- package/src/icons/PlusIcon.vue +9 -0
- package/src/icons/PoiIcon.vue +7 -0
- package/src/icons/PointSelectIcon.vue +7 -0
- package/src/icons/PolygonIcon.vue +38 -0
- package/src/icons/PresentationModeIcon.vue +7 -0
- package/src/icons/ProgressIcon.vue +24 -0
- package/src/icons/QueryIcon.vue +15 -0
- package/src/icons/RectangleIcon.vue +9 -0
- package/src/icons/ReturnIcon.vue +7 -0
- package/src/icons/RewindIcon.vue +6 -0
- package/src/icons/SearchIcon.vue +8 -0
- package/src/icons/ShadowIcon.vue +9 -0
- package/src/icons/ShapesIcon.vue +28 -0
- package/src/icons/ShareIcon.vue +22 -0
- package/src/icons/SimpleCircleFilledIcon.vue +15 -0
- package/src/icons/SimpleCircleHalfFilledIcon.vue +12 -0
- package/src/icons/SimpleCircleOutlinedIcon.vue +15 -0
- package/src/icons/SkipNextIcon.vue +7 -0
- package/src/icons/SkipPreviousIcon.vue +9 -0
- package/src/icons/SplitViewIcon.vue +19 -0
- package/src/icons/TextStyleIcon.vue +14 -0
- package/src/icons/ThreeDimensionsIcon.vue +7 -0
- package/src/icons/ToolsIcon.vue +35 -0
- package/src/icons/TouchIcon.vue +8 -0
- package/src/icons/TrashCanIcon.vue +7 -0
- package/src/icons/TriangleIcon.vue +15 -0
- package/src/icons/TwoDimensionsIcon.vue +8 -0
- package/src/icons/UploadIcon.vue +14 -0
- package/src/icons/VideoRecorderIcon.vue +14 -0
- package/src/icons/WalkingIcon.vue +7 -0
- package/src/icons/WallIcon.vue +14 -0
- package/src/init.js +38 -0
- package/src/manager/buttonManager.js +156 -0
- package/src/manager/navbarManager.js +81 -0
- package/src/manager/toolbox/ToolboxGroupComponent.vue +128 -0
- package/src/manager/toolbox/ToolboxManager.vue +157 -0
- package/src/manager/toolbox/toolboxManager.js +204 -0
- package/src/manager/window/WindowComponent.vue +140 -0
- package/src/manager/window/WindowComponentHeader.vue +53 -0
- package/src/manager/window/WindowManager.vue +126 -0
- package/src/manager/window/windowManager.js +435 -0
- package/src/navigation/mapNavCompass.vue +161 -0
- package/src/navigation/mapNavigation.vue +207 -0
- package/src/navigation/obliqueRotation.vue +48 -0
- package/src/navigation/orientationToolsButton.vue +52 -0
- package/src/navigation/overviewMap.js +615 -0
- package/src/navigation/overviewMapClickedInteraction.js +38 -0
- package/src/navigation/tiltSlider.vue +96 -0
- package/src/navigation/vcsCompass.vue +144 -0
- package/src/navigation/vcsZoomButton.vue +27 -0
- package/src/pluginHelper.js +106 -0
- package/src/setup.js +11 -0
- package/src/styles/_theming.scss +25 -0
- package/src/styles/_typography.scss +42 -0
- package/src/styles/main.scss +12 -0
- package/src/styles/utils/_all.scss +12 -0
- package/src/styles/utils/_border.scss +7 -0
- package/src/styles/utils/_cursor.scss +15 -0
- package/src/styles/utils/_display.scss +3 -0
- package/src/styles/utils/_fade-in.scss +8 -0
- package/src/styles/utils/_position.scss +38 -0
- package/src/styles/utils/_size.scss +79 -0
- package/src/styles/utils/_slide-in.scss +26 -0
- package/src/styles/utils/_spacing.scss +11 -0
- package/src/styles/utils/_text.scss +30 -0
- package/src/styles/utils/_transform.scss +11 -0
- package/src/styles/utils/_transition.scss +11 -0
- package/src/styles/utils/_z-index.scss +15 -0
- package/src/styles/variables.scss +70 -0
- package/src/styles/vcsFont.scss +5 -0
- package/src/styles/vcsGrid.scss +4 -0
- package/src/vcsUiApp.js +259 -0
- package/src/vuePlugins/i18n.js +69 -0
- package/src/vuePlugins/vuetify.js +54 -0
- package/start.js +3 -0
@@ -0,0 +1,157 @@
|
|
1
|
+
<script src="../../vcsUiApp.js"></script>
|
2
|
+
<template>
|
3
|
+
<v-toolbar
|
4
|
+
v-if="toolboxOpen && actionGroups.length > 0 && $vuetify.breakpoint.mdAndUp"
|
5
|
+
dense
|
6
|
+
class="vcs-toolbox toolbar__secondary rounded-b mx-auto v-sheet marginToTop"
|
7
|
+
:width="width"
|
8
|
+
>
|
9
|
+
<v-toolbar-items class="w-full">
|
10
|
+
<div class="d-flex align-center justify-space-between w-full">
|
11
|
+
<ToolboxGroupComponent
|
12
|
+
v-for="(group, idx) in actionGroups"
|
13
|
+
:key="group.id"
|
14
|
+
:group-icon="group.icon"
|
15
|
+
:group-title="group.title"
|
16
|
+
:actions="group.actions"
|
17
|
+
class="px-2"
|
18
|
+
:active="groupId === group.id"
|
19
|
+
:position="getPosition(idx)"
|
20
|
+
@click="toggleGroup(group.id)"
|
21
|
+
/>
|
22
|
+
</div>
|
23
|
+
</v-toolbar-items>
|
24
|
+
</v-toolbar>
|
25
|
+
</template>
|
26
|
+
|
27
|
+
<style lang="scss" scoped>
|
28
|
+
.toolbar__secondary {
|
29
|
+
position: absolute;
|
30
|
+
top: 0;
|
31
|
+
left: 0;
|
32
|
+
right: 0;
|
33
|
+
|
34
|
+
&.v-toolbar {
|
35
|
+
::v-deep .v-toolbar__content {
|
36
|
+
padding: 0;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
&.theme--light.v-toolbar.v-sheet {
|
41
|
+
background-color: #ffffffda;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.marginToTop {
|
46
|
+
margin-top: 2px;
|
47
|
+
}
|
48
|
+
</style>
|
49
|
+
|
50
|
+
<script>
|
51
|
+
|
52
|
+
import { inject, ref, computed, watch, onUnmounted } from '@vue/composition-api';
|
53
|
+
import ToolboxGroupComponent from './ToolboxGroupComponent.vue';
|
54
|
+
import {ButtonLocation, vcsAppSymbol} from '@vcmap/ui';
|
55
|
+
|
56
|
+
/**
|
57
|
+
* @typedef {Object} ActionGroup
|
58
|
+
* @property {string} id
|
59
|
+
* @property {string} icon
|
60
|
+
* @property {string} title
|
61
|
+
* @property {Array<VcsAction>} actions
|
62
|
+
*/
|
63
|
+
|
64
|
+
/**
|
65
|
+
* @description ToolboxManager component rendering toolbox using {@link ToolboxGroupComponent}.
|
66
|
+
* @vue-computed {Array<ActionGroup>} actionGroups - Array of group components
|
67
|
+
* @vue-computed {number} width - width of toolbox depending on number of groups
|
68
|
+
*/
|
69
|
+
export default {
|
70
|
+
name: 'VcsToolboxManager',
|
71
|
+
components: {
|
72
|
+
ToolboxGroupComponent,
|
73
|
+
},
|
74
|
+
setup() {
|
75
|
+
const app = inject('vcsApp');
|
76
|
+
|
77
|
+
const toolboxComponentIds = ref(app.toolboxManager.componentIds);
|
78
|
+
const actionGroups = computed(() => {
|
79
|
+
const groups = toolboxComponentIds.value.map(id => app.toolboxManager.get(id));
|
80
|
+
return groups
|
81
|
+
.map((g) => {
|
82
|
+
const buttonIds = ref(g.buttonManager.componentIds);
|
83
|
+
return {
|
84
|
+
id: g.id,
|
85
|
+
icon: g.icon,
|
86
|
+
title: g.title,
|
87
|
+
actions: buttonIds.value.map(id => g.buttonManager.get(id).action),
|
88
|
+
};
|
89
|
+
})
|
90
|
+
.filter(g => g.actions.length > 0);
|
91
|
+
});
|
92
|
+
|
93
|
+
const toolboxOpen = ref(true);
|
94
|
+
const toolboxToggleAction = {
|
95
|
+
name: 'toolboxToggleAction',
|
96
|
+
icon: '$vcsTools',
|
97
|
+
title: 'Toolbox',
|
98
|
+
active: true,
|
99
|
+
callback() {
|
100
|
+
this.active = !this.active;
|
101
|
+
toolboxOpen.value = this.active;
|
102
|
+
},
|
103
|
+
};
|
104
|
+
|
105
|
+
const stopWatching = watch([actionGroups],
|
106
|
+
([actionGroups]) => {
|
107
|
+
if (actionGroups.length > 0) {
|
108
|
+
if (!app.navbarManager.has('toolbox')) {
|
109
|
+
app.navbarManager.add(
|
110
|
+
{
|
111
|
+
id: 'toolbox',
|
112
|
+
action: toolboxToggleAction,
|
113
|
+
},
|
114
|
+
vcsAppSymbol,
|
115
|
+
ButtonLocation.TOOL,
|
116
|
+
);
|
117
|
+
}
|
118
|
+
} else {
|
119
|
+
app.navbarManager.remove('toolbox');
|
120
|
+
}
|
121
|
+
}
|
122
|
+
);
|
123
|
+
|
124
|
+
onUnmounted(() => {
|
125
|
+
stopWatching();
|
126
|
+
});
|
127
|
+
|
128
|
+
// XXX can this solved by CSS to get rid of the hardcoded size and padding?
|
129
|
+
const buttonSize = 54;
|
130
|
+
const buttonPadding = 8;
|
131
|
+
const size = buttonSize + (2 * buttonPadding);
|
132
|
+
const width = computed(() => actionGroups.value.length * size);
|
133
|
+
|
134
|
+
/**
|
135
|
+
* calculates relative x-position of a button from the left edge of toolbar
|
136
|
+
* @param {number} idx
|
137
|
+
* @returns {number}
|
138
|
+
*/
|
139
|
+
const getPosition = (idx) => (size * (idx + 1)) - (size / 2);
|
140
|
+
|
141
|
+
return {
|
142
|
+
toolboxOpen,
|
143
|
+
actionGroups,
|
144
|
+
width,
|
145
|
+
getPosition,
|
146
|
+
groupId: null,
|
147
|
+
toggleGroup(groupId) {
|
148
|
+
if (this.groupId === groupId) {
|
149
|
+
this.groupId = null;
|
150
|
+
} else {
|
151
|
+
this.groupId = groupId;
|
152
|
+
}
|
153
|
+
},
|
154
|
+
};
|
155
|
+
},
|
156
|
+
};
|
157
|
+
</script>
|
@@ -0,0 +1,204 @@
|
|
1
|
+
/* eslint-disable import/prefer-default-export */
|
2
|
+
import { VcsEvent } from '@vcmap/core';
|
3
|
+
import { reactive } from '@vue/composition-api';
|
4
|
+
import { check, checkMaybe } from '@vcsuite/check';
|
5
|
+
import { v4 as uuidv4 } from 'uuid';
|
6
|
+
import { ButtonManager } from '../buttonManager.js';
|
7
|
+
|
8
|
+
/**
|
9
|
+
* @typedef ToolboxGroupComponentOptions
|
10
|
+
* @property {string} [id] Optional ID, If not provided an uuid will be generated.
|
11
|
+
* @property {string} [icon] Optional group icon, for dropdowns
|
12
|
+
* @property {string} [title] Optional group title, for dropdowns
|
13
|
+
*/
|
14
|
+
|
15
|
+
/**
|
16
|
+
* @typedef ToolboxGroupComponent
|
17
|
+
* @property {string} id
|
18
|
+
* @property {string} title
|
19
|
+
* @property {ButtonManager} buttonManager
|
20
|
+
*/
|
21
|
+
|
22
|
+
/**
|
23
|
+
* Default groups predefining icon and title of the group
|
24
|
+
* @type {Array<ToolboxGroupComponentOptions>}
|
25
|
+
*/
|
26
|
+
const defaultGroups = [
|
27
|
+
{
|
28
|
+
id: 'select',
|
29
|
+
icon: '$vcsPen',
|
30
|
+
title: 'select',
|
31
|
+
},
|
32
|
+
{
|
33
|
+
id: 'measurement',
|
34
|
+
icon: '$vcsDimensionsHouse',
|
35
|
+
title: 'measurement',
|
36
|
+
},
|
37
|
+
{
|
38
|
+
id: 'flight',
|
39
|
+
icon: '$vcsVideoRecorder',
|
40
|
+
title: 'flight',
|
41
|
+
},
|
42
|
+
];
|
43
|
+
|
44
|
+
/**
|
45
|
+
* Requests default groups for a toolboxManager.
|
46
|
+
* Once requested, group id, icon and title are defined and cannot be changed or overwritten.
|
47
|
+
* @param {ToolboxManager} toolboxManager
|
48
|
+
* @param {Array<ToolboxGroupComponentOptions>} groups
|
49
|
+
*/
|
50
|
+
export function setupDefaultGroups(toolboxManager, groups = defaultGroups) {
|
51
|
+
groups.forEach(({ id, icon, title }) => toolboxManager.requestGroup(id, icon, title));
|
52
|
+
}
|
53
|
+
|
54
|
+
/**
|
55
|
+
* @class ToolboxManager
|
56
|
+
* @description Manages a set of Toolbox Groups
|
57
|
+
* @implements VcsComponentManager<ToolboxGroupComponent,ToolboxGroupComponentOptions>
|
58
|
+
*/
|
59
|
+
export class ToolboxManager {
|
60
|
+
constructor() {
|
61
|
+
/**
|
62
|
+
* @type {import("@vcmap/core").VcsEvent<ToolboxGroupComponent>}
|
63
|
+
*/
|
64
|
+
this.added = new VcsEvent();
|
65
|
+
/**
|
66
|
+
* @type {import("@vcmap/core").VcsEvent<ToolboxGroupComponent>}
|
67
|
+
*/
|
68
|
+
this.removed = new VcsEvent();
|
69
|
+
/**
|
70
|
+
* reactive ordered array of ids,
|
71
|
+
* @type {Array<string>}
|
72
|
+
*/
|
73
|
+
this.componentIds = reactive([]);
|
74
|
+
|
75
|
+
/**
|
76
|
+
* @type {Map<string, ToolboxGroupComponent>}
|
77
|
+
* @private
|
78
|
+
*/
|
79
|
+
this._toolboxGroups = new Map();
|
80
|
+
}
|
81
|
+
|
82
|
+
/**
|
83
|
+
* @param {string} id
|
84
|
+
* @returns {ToolboxGroupComponent}
|
85
|
+
*/
|
86
|
+
get(id) {
|
87
|
+
return this._toolboxGroups.get(id);
|
88
|
+
}
|
89
|
+
|
90
|
+
/**
|
91
|
+
* @param {string} id
|
92
|
+
* @returns {boolean}
|
93
|
+
*/
|
94
|
+
has(id) {
|
95
|
+
return this._toolboxGroups.has(id);
|
96
|
+
}
|
97
|
+
|
98
|
+
/**
|
99
|
+
* Toolbox groups should be static. Removing them can lead to undefined behavior.
|
100
|
+
* @param {string} id
|
101
|
+
*/
|
102
|
+
remove(id) {
|
103
|
+
check(id, String);
|
104
|
+
const toolboxGroupComponent = this._toolboxGroups.get(id);
|
105
|
+
if (toolboxGroupComponent) {
|
106
|
+
const index = this.componentIds.indexOf(id);
|
107
|
+
this.componentIds.splice(index, 1);
|
108
|
+
this._toolboxGroups.delete(id);
|
109
|
+
this.removed.raiseEvent(toolboxGroupComponent);
|
110
|
+
toolboxGroupComponent.buttonManager.destroy();
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
/**
|
115
|
+
* Do not call add directly. Use requestGroup for adding toolbox groups.
|
116
|
+
* @param {ToolboxGroupComponentOptions} toolboxGroupComponentOptions
|
117
|
+
* @throws {Error} if a buttonComponent with the same ID has already been added
|
118
|
+
* @returns {ToolboxGroupComponent}
|
119
|
+
*/
|
120
|
+
add(toolboxGroupComponentOptions) {
|
121
|
+
checkMaybe(toolboxGroupComponentOptions.id, String);
|
122
|
+
checkMaybe(toolboxGroupComponentOptions.icon, String);
|
123
|
+
checkMaybe(toolboxGroupComponentOptions.title, String);
|
124
|
+
|
125
|
+
if (toolboxGroupComponentOptions.id && this.has(toolboxGroupComponentOptions.id)) {
|
126
|
+
throw new Error(`A toolGroup with id ${toolboxGroupComponentOptions.id} has already been registered.`);
|
127
|
+
}
|
128
|
+
const id = toolboxGroupComponentOptions.id || uuidv4();
|
129
|
+
const icon = toolboxGroupComponentOptions.icon || undefined;
|
130
|
+
const title = toolboxGroupComponentOptions.title || undefined;
|
131
|
+
const buttonManager = new ButtonManager();
|
132
|
+
|
133
|
+
/**
|
134
|
+
* @type {ToolboxGroupComponent}
|
135
|
+
*/
|
136
|
+
const toolboxGroupComponent = {
|
137
|
+
get id() {
|
138
|
+
return id;
|
139
|
+
},
|
140
|
+
get icon() {
|
141
|
+
return icon;
|
142
|
+
},
|
143
|
+
get title() {
|
144
|
+
return title;
|
145
|
+
},
|
146
|
+
get buttonManager() {
|
147
|
+
return buttonManager;
|
148
|
+
},
|
149
|
+
};
|
150
|
+
|
151
|
+
this._toolboxGroups.set(id, toolboxGroupComponent);
|
152
|
+
this.componentIds.push(id);
|
153
|
+
this.added.raiseEvent(toolboxGroupComponent);
|
154
|
+
return toolboxGroupComponent;
|
155
|
+
}
|
156
|
+
|
157
|
+
/**
|
158
|
+
* Returns an existing group or creates a new group. Add toolbox groups with this API.
|
159
|
+
* @param {string} id
|
160
|
+
* @param {string} [icon='mdi-select-group']
|
161
|
+
* @param {string} [title='defaultGroup']
|
162
|
+
* @returns {ToolboxGroupComponent}
|
163
|
+
*/
|
164
|
+
requestGroup(id, icon = 'mdi-select-group', title = 'defaultGroup') {
|
165
|
+
check(id, String);
|
166
|
+
checkMaybe(icon, String);
|
167
|
+
checkMaybe(title, String);
|
168
|
+
|
169
|
+
if (this.has(id)) {
|
170
|
+
return this.get(id);
|
171
|
+
} else {
|
172
|
+
return this.add({ id, icon, title });
|
173
|
+
}
|
174
|
+
}
|
175
|
+
|
176
|
+
/**
|
177
|
+
* removes all {@link ButtonComponent}s of a specific owner and fires removed Events
|
178
|
+
* @param {string|vcsAppSymbol} owner
|
179
|
+
*/
|
180
|
+
removeOwner(owner) {
|
181
|
+
this.componentIds.forEach((id) => {
|
182
|
+
this.get(id).buttonManager.removeOwner(owner);
|
183
|
+
});
|
184
|
+
}
|
185
|
+
|
186
|
+
/**
|
187
|
+
* removes all buttonComponents and fires removed Events
|
188
|
+
*/
|
189
|
+
clear() {
|
190
|
+
const componentIds = [...this.componentIds];
|
191
|
+
componentIds.forEach((id) => { this.remove(id); });
|
192
|
+
}
|
193
|
+
|
194
|
+
/**
|
195
|
+
* destroys the ButtonManager;
|
196
|
+
*/
|
197
|
+
destroy() {
|
198
|
+
this.added.destroy();
|
199
|
+
this.removed.destroy();
|
200
|
+
this.clear();
|
201
|
+
this.componentIds.splice(0);
|
202
|
+
this._toolboxGroups.clear();
|
203
|
+
}
|
204
|
+
}
|
@@ -0,0 +1,140 @@
|
|
1
|
+
<template>
|
2
|
+
<v-sheet
|
3
|
+
:id="`window-component--${windowState.id}`"
|
4
|
+
class="elevation-3 position-absolute d-flex flex-column"
|
5
|
+
ref="windowComponentRef"
|
6
|
+
@click="clicked"
|
7
|
+
:class="{
|
8
|
+
'rounded': !isDocked,
|
9
|
+
'marginToTop': isDocked
|
10
|
+
}"
|
11
|
+
>
|
12
|
+
<div
|
13
|
+
v-if="!windowState.hideHeader"
|
14
|
+
ref="draggableHeaderRef"
|
15
|
+
class="pa-2"
|
16
|
+
:class="{
|
17
|
+
'cursor-grab': isDynamic,
|
18
|
+
'grey--text': !isOnTop,
|
19
|
+
}"
|
20
|
+
:draggable="isDynamic"
|
21
|
+
>
|
22
|
+
<slot name="headerComponent" />
|
23
|
+
</div>
|
24
|
+
<v-divider />
|
25
|
+
<div
|
26
|
+
class="overflow-x-hidden"
|
27
|
+
>
|
28
|
+
<slot />
|
29
|
+
</div>
|
30
|
+
</v-sheet>
|
31
|
+
</template>
|
32
|
+
|
33
|
+
<style scoped>
|
34
|
+
|
35
|
+
.marginToTop {
|
36
|
+
margin-top: 2px;
|
37
|
+
}
|
38
|
+
|
39
|
+
</style>
|
40
|
+
|
41
|
+
<script>
|
42
|
+
import {
|
43
|
+
onMounted, onUnmounted, computed, ref, nextTick,
|
44
|
+
} from '@vue/composition-api';
|
45
|
+
import { fromEvent } from 'rxjs';
|
46
|
+
import { switchMap, take, map, tap } from 'rxjs/operators';
|
47
|
+
import { WindowSlot } from './windowManager.js';
|
48
|
+
|
49
|
+
export default {
|
50
|
+
props: {
|
51
|
+
windowState: {
|
52
|
+
type: Object,
|
53
|
+
required: true,
|
54
|
+
},
|
55
|
+
isOnTop: {
|
56
|
+
type: Boolean,
|
57
|
+
required: true,
|
58
|
+
default: false,
|
59
|
+
},
|
60
|
+
slotWindow: {
|
61
|
+
type: Object,
|
62
|
+
required: true,
|
63
|
+
},
|
64
|
+
},
|
65
|
+
setup({ windowState, slotWindow }, { emit }) {
|
66
|
+
const draggableHeaderRef = ref(null);
|
67
|
+
const windowComponentRef = ref(null);
|
68
|
+
const isDynamic = computed(() => slotWindow.value !== WindowSlot.STATIC);
|
69
|
+
const isDocked = computed(() => slotWindow.value !== WindowSlot.DETACHED);
|
70
|
+
const clicked = (e) => {
|
71
|
+
emit('click', e);
|
72
|
+
};
|
73
|
+
|
74
|
+
let dragOverSub;
|
75
|
+
let dropSub;
|
76
|
+
onMounted(() => {
|
77
|
+
if (!windowState.hideHeader && slotWindow.value !== WindowSlot.STATIC) {
|
78
|
+
nextTick(() => {
|
79
|
+
const dragStart = fromEvent(draggableHeaderRef.value, 'dragstart');
|
80
|
+
const dragOver = fromEvent(document.body, 'dragover');
|
81
|
+
const drop = fromEvent(document.body, 'drop');
|
82
|
+
const dragThenDrop = dragStart.pipe(
|
83
|
+
tap(() => {
|
84
|
+
dragOverSub = dragOver.subscribe((e) => {
|
85
|
+
// make it accepting drop events
|
86
|
+
// TODO check if setting the position here works.
|
87
|
+
e.preventDefault();
|
88
|
+
});
|
89
|
+
}),
|
90
|
+
switchMap((startEvent) => {
|
91
|
+
// To get to the Root Element of a Custom Component .$el is used here.
|
92
|
+
const style = window.getComputedStyle(windowComponentRef.value.$el, null);
|
93
|
+
const windowPosition = {
|
94
|
+
top: parseInt(style.getPropertyValue('top'), 10),
|
95
|
+
left: parseInt(style.getPropertyValue('left'), 10),
|
96
|
+
width: parseInt(style.getPropertyValue('width'), 10),
|
97
|
+
height: parseInt(style.getPropertyValue('height'), 10),
|
98
|
+
};
|
99
|
+
// set dataTransfer for Firefox
|
100
|
+
startEvent.dataTransfer.setData('text/html', null);
|
101
|
+
|
102
|
+
return drop.pipe(
|
103
|
+
take(1),
|
104
|
+
map((dropEvent) => {
|
105
|
+
windowPosition.dx = startEvent.clientX - dropEvent.clientX;
|
106
|
+
windowPosition.dy = startEvent.clientY - dropEvent.clientY;
|
107
|
+
return windowPosition;
|
108
|
+
}),
|
109
|
+
tap(() => {
|
110
|
+
dragOverSub.unsubscribe();
|
111
|
+
}),
|
112
|
+
);
|
113
|
+
}),
|
114
|
+
);
|
115
|
+
dropSub = dragThenDrop.subscribe((pos) => {
|
116
|
+
emit('dropped', pos);
|
117
|
+
});
|
118
|
+
});
|
119
|
+
}
|
120
|
+
});
|
121
|
+
|
122
|
+
onUnmounted(() => {
|
123
|
+
if (dragOverSub) {
|
124
|
+
dragOverSub.unsubscribe();
|
125
|
+
}
|
126
|
+
if (dropSub) {
|
127
|
+
dropSub.unsubscribe();
|
128
|
+
}
|
129
|
+
});
|
130
|
+
return {
|
131
|
+
isDynamic,
|
132
|
+
isDocked,
|
133
|
+
draggableHeaderRef,
|
134
|
+
windowComponentRef,
|
135
|
+
clicked,
|
136
|
+
};
|
137
|
+
},
|
138
|
+
};
|
139
|
+
</script>
|
140
|
+
|
@@ -0,0 +1,53 @@
|
|
1
|
+
<template>
|
2
|
+
<span class="d-flex justify-space-between align-center window-component-header">
|
3
|
+
<span>
|
4
|
+
<v-icon
|
5
|
+
v-if="windowState.headerIcon"
|
6
|
+
class="mr-2 primary--text"
|
7
|
+
v-text="windowState.headerIcon"
|
8
|
+
/>
|
9
|
+
<h3 class="font-size-14 d-inline-block user-select-none font-weight-bold">
|
10
|
+
{{ $t(windowState.headerTitle) }}
|
11
|
+
</h3>
|
12
|
+
</span>
|
13
|
+
<VcsButton
|
14
|
+
@click.stop="close"
|
15
|
+
small
|
16
|
+
icon="mdi-close-thick"
|
17
|
+
/>
|
18
|
+
</span>
|
19
|
+
</template>
|
20
|
+
|
21
|
+
<style>
|
22
|
+
.window-component-header{
|
23
|
+
max-height: 16px;
|
24
|
+
}
|
25
|
+
</style>
|
26
|
+
|
27
|
+
<script>
|
28
|
+
import VcsButton from '../../components/buttons/VcsButton.vue';
|
29
|
+
|
30
|
+
export default {
|
31
|
+
components: { VcsButton },
|
32
|
+
props: {
|
33
|
+
windowState: {
|
34
|
+
type: Object,
|
35
|
+
required: true,
|
36
|
+
},
|
37
|
+
},
|
38
|
+
setup(props, { emit }) {
|
39
|
+
const close = () => {
|
40
|
+
emit('close');
|
41
|
+
};
|
42
|
+
const clicked = (e) => {
|
43
|
+
emit('click', e);
|
44
|
+
};
|
45
|
+
|
46
|
+
return {
|
47
|
+
close,
|
48
|
+
clicked,
|
49
|
+
};
|
50
|
+
},
|
51
|
+
};
|
52
|
+
</script>
|
53
|
+
|
@@ -0,0 +1,126 @@
|
|
1
|
+
<template>
|
2
|
+
<div :class="$vuetify.breakpoint.xs ? 'win-container-mobile' : 'unset'">
|
3
|
+
<WindowComponent
|
4
|
+
v-for="(id, zIndex) in componentIds"
|
5
|
+
:key="id"
|
6
|
+
:window-state="getState(id)"
|
7
|
+
:slot-window="getSlot(id)"
|
8
|
+
:z-index="zIndex"
|
9
|
+
@dropped="dropped(id, $event)"
|
10
|
+
@click="clicked(id)"
|
11
|
+
:style="getStyles(id, zIndex)"
|
12
|
+
:class="getState(id).classes"
|
13
|
+
:is-on-top="isOnTop(zIndex)"
|
14
|
+
>
|
15
|
+
<component
|
16
|
+
:is="getComponent(id)"
|
17
|
+
:window-state="getState(id)"
|
18
|
+
v-bind="getProps(id)"
|
19
|
+
/>
|
20
|
+
<template v-if="!getState(id).hideHeader" #headerComponent>
|
21
|
+
<component
|
22
|
+
:is="getHeaderComponent(id)"
|
23
|
+
:window-state="getState(id)"
|
24
|
+
@close="close(id)"
|
25
|
+
/>
|
26
|
+
</template>
|
27
|
+
</WindowComponent>
|
28
|
+
</div>
|
29
|
+
</template>
|
30
|
+
|
31
|
+
<style scoped lang="scss">
|
32
|
+
.win-container-mobile {
|
33
|
+
position: absolute;
|
34
|
+
z-index: 2;
|
35
|
+
width: 100%;
|
36
|
+
height: 100%;
|
37
|
+
}
|
38
|
+
.win-container-mobile > {
|
39
|
+
div{
|
40
|
+
width: 100% !important;
|
41
|
+
inset: unset !important;
|
42
|
+
border-radius: 0 !important;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
</style>
|
47
|
+
|
48
|
+
<script>
|
49
|
+
import { inject } from '@vue/composition-api';
|
50
|
+
|
51
|
+
import WindowComponent from './WindowComponent.vue';
|
52
|
+
import WindowComponentHeader from './WindowComponentHeader.vue';
|
53
|
+
|
54
|
+
export default {
|
55
|
+
name: 'VcsWindowManager',
|
56
|
+
components: { WindowComponent },
|
57
|
+
setup() {
|
58
|
+
const app = inject('vcsApp');
|
59
|
+
/** @type {WindowManager} */
|
60
|
+
const { windowManager } = app;
|
61
|
+
|
62
|
+
const { componentIds } = windowManager;
|
63
|
+
|
64
|
+
const getState = (id) => {
|
65
|
+
return windowManager.get(id)?.state;
|
66
|
+
};
|
67
|
+
|
68
|
+
const getProps = (id) => {
|
69
|
+
return windowManager.get(id)?.props ?? {};
|
70
|
+
};
|
71
|
+
|
72
|
+
const isOnTop = (zIndex) => {
|
73
|
+
return zIndex === componentIds.length - 1;
|
74
|
+
};
|
75
|
+
|
76
|
+
const getStyles = (id, zIndex) => {
|
77
|
+
const windowComponent = windowManager.get(id);
|
78
|
+
const state = windowComponent?.state;
|
79
|
+
const position = windowComponent?.position;
|
80
|
+
return {
|
81
|
+
zIndex,
|
82
|
+
left: position.left,
|
83
|
+
top: position.top,
|
84
|
+
right: position.right,
|
85
|
+
bottom: position.bottom,
|
86
|
+
width: position.width,
|
87
|
+
height: position.height,
|
88
|
+
...(state.styles || {}),
|
89
|
+
};
|
90
|
+
};
|
91
|
+
|
92
|
+
const clicked = (id) => {
|
93
|
+
if (windowManager.has(id)) {
|
94
|
+
windowManager.bringWindowToTop(id);
|
95
|
+
}
|
96
|
+
};
|
97
|
+
|
98
|
+
const dropped = (id, pos) => {
|
99
|
+
const { innerWidth, innerHeight } = window;
|
100
|
+
// clip position
|
101
|
+
const top = Math.min(Math.max(0, pos.top - pos.dy), innerHeight - pos.height);
|
102
|
+
const left = Math.min(Math.max(0, pos.left - pos.dx), innerWidth - pos.width);
|
103
|
+
windowManager.setWindowPositionOptions(id, {
|
104
|
+
top,
|
105
|
+
left,
|
106
|
+
width: pos.width,
|
107
|
+
height: pos.height,
|
108
|
+
});
|
109
|
+
};
|
110
|
+
|
111
|
+
return {
|
112
|
+
componentIds,
|
113
|
+
getComponent: id => windowManager.get(id).component,
|
114
|
+
getHeaderComponent: id => windowManager.get(id).headerComponent || WindowComponentHeader,
|
115
|
+
getStyles,
|
116
|
+
getState,
|
117
|
+
getProps,
|
118
|
+
isOnTop,
|
119
|
+
getSlot: id => windowManager.get(id).slot,
|
120
|
+
close: (id) => { windowManager.remove(id); },
|
121
|
+
dropped,
|
122
|
+
clicked,
|
123
|
+
};
|
124
|
+
},
|
125
|
+
};
|
126
|
+
</script>
|