@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,259 @@
|
|
1
|
+
import { ref } from '@vue/composition-api';
|
2
|
+
import { ButtonLocation, createToggleAction } from '@vcmap/ui';
|
3
|
+
import { Context } from '@vcmap/core';
|
4
|
+
import { getLogger } from '@vcsuite/logger';
|
5
|
+
import ProjectsComponent from './ProjectSelectorComponent.vue';
|
6
|
+
import packageJSON from './package.json';
|
7
|
+
import defaultConfig from './config.json';
|
8
|
+
import de from './de.json';
|
9
|
+
import en from './en.json';
|
10
|
+
/**
|
11
|
+
* @typedef {Object} VCMapContextOptions
|
12
|
+
* @property {string} [name]
|
13
|
+
* @property {string} [description]
|
14
|
+
* @property {string} configUrl
|
15
|
+
*/
|
16
|
+
|
17
|
+
/**
|
18
|
+
* @typedef {Object} VCMapContext
|
19
|
+
* @property {string} [name]
|
20
|
+
* @property {string} [description]
|
21
|
+
* @property {string} configUrl
|
22
|
+
* @property {string} contextId
|
23
|
+
* @property {boolean} active
|
24
|
+
*/
|
25
|
+
|
26
|
+
/**
|
27
|
+
* @typedef {Object} VCMapProjectOptions
|
28
|
+
* @property {string} name
|
29
|
+
* @property {string} [description]
|
30
|
+
* @property {Array<VCMapContextOptions>} contexts
|
31
|
+
*/
|
32
|
+
|
33
|
+
/**
|
34
|
+
* @typedef {Object} VCMapProject
|
35
|
+
* @property {string} name
|
36
|
+
* @property {string} [description]
|
37
|
+
* @property {Array<VCMapContext>} contexts
|
38
|
+
* @property {boolean} active
|
39
|
+
*/
|
40
|
+
|
41
|
+
/**
|
42
|
+
* @typedef {Object} ProjectSelectorConfig
|
43
|
+
* @property {string} [selected='VC Map Base'] - selected project on startup
|
44
|
+
* @property {string[]} [selectedContexts] - selected contexts on startup
|
45
|
+
* @property {boolean} [open=false] - open plugin on startup
|
46
|
+
* @property {Array<VCMapProjectOptions>} projects
|
47
|
+
* @property {Array<VCMapContextOptions>} contexts
|
48
|
+
*/
|
49
|
+
|
50
|
+
/**
|
51
|
+
* @param {ProjectSelectorConfig} config
|
52
|
+
* @returns {VcsPlugin}
|
53
|
+
*/
|
54
|
+
export default async function projectSelector(config) {
|
55
|
+
const { selected, selectedContexts, open, projects = [], contexts = [] } = config;
|
56
|
+
|
57
|
+
const pluginConfig = {
|
58
|
+
selected: ref(selected || defaultConfig.selected),
|
59
|
+
selectedContexts: ref(selectedContexts || defaultConfig.selectedContexts),
|
60
|
+
open: ref(open || defaultConfig.open),
|
61
|
+
projects: ref(/** @type {Array<VCMapProjectOptions>} */[...defaultConfig.projects, ...projects]),
|
62
|
+
contexts: ref(/** @type {Array<VCMapContextOptions>} */[...defaultConfig.contexts, ...contexts]),
|
63
|
+
};
|
64
|
+
|
65
|
+
const pluginState = {
|
66
|
+
projects: ref(/** @type {Array<VCMapProject>} */[]),
|
67
|
+
contexts: ref(/** @type {Array<VCMapContext>} */[]),
|
68
|
+
};
|
69
|
+
|
70
|
+
/**
|
71
|
+
* @param {VCMapContextOptions} contextOptions
|
72
|
+
*/
|
73
|
+
function addContextFromOptions(contextOptions) {
|
74
|
+
/**
|
75
|
+
* @type {VCMapContext}
|
76
|
+
*/
|
77
|
+
const context = {
|
78
|
+
name: undefined,
|
79
|
+
description: undefined,
|
80
|
+
configUrl: undefined,
|
81
|
+
...contextOptions,
|
82
|
+
contextId: undefined,
|
83
|
+
active: false,
|
84
|
+
};
|
85
|
+
pluginState.contexts.value.push(context);
|
86
|
+
}
|
87
|
+
|
88
|
+
/**
|
89
|
+
* @param {VCMapContext} context
|
90
|
+
*/
|
91
|
+
function removeContext(context) {
|
92
|
+
const idx = pluginState.contexts.value.findIndex(c => c.configUrl === context.configUrl);
|
93
|
+
pluginState.contexts.value.splice(idx, 1);
|
94
|
+
}
|
95
|
+
|
96
|
+
/**
|
97
|
+
* @param {VCMapProjectOptions} projectOptions
|
98
|
+
*/
|
99
|
+
function addProjectFromOptions(projectOptions) {
|
100
|
+
const { name, description, contexts: contextsOptions = [] } = projectOptions;
|
101
|
+
/**
|
102
|
+
* @type {VCMapProject}
|
103
|
+
*/
|
104
|
+
const project = {
|
105
|
+
name,
|
106
|
+
description,
|
107
|
+
contexts: contextsOptions.map(options => /** @type {VCMapContext} */({
|
108
|
+
name: undefined,
|
109
|
+
description: undefined,
|
110
|
+
configUrl: undefined,
|
111
|
+
...options,
|
112
|
+
contextId: undefined,
|
113
|
+
active: false,
|
114
|
+
})),
|
115
|
+
active: false,
|
116
|
+
};
|
117
|
+
pluginState.projects.value.push(project);
|
118
|
+
}
|
119
|
+
|
120
|
+
/**
|
121
|
+
* @param {VCMapProject} project
|
122
|
+
*/
|
123
|
+
function removeProject(project) {
|
124
|
+
const projectIdx = pluginState.projects.findIndex(p => p.name === project.name);
|
125
|
+
pluginState.projects.value.splice(projectIdx, 1);
|
126
|
+
}
|
127
|
+
|
128
|
+
/**
|
129
|
+
* @param {VcsApp} app
|
130
|
+
* @param {VCMapContext} vcMapContext
|
131
|
+
* @returns {Promise<void>}
|
132
|
+
*/
|
133
|
+
async function loadContext(app, vcMapContext) {
|
134
|
+
try {
|
135
|
+
const configJson = await fetch(vcMapContext.configUrl)
|
136
|
+
.then(response => response.json());
|
137
|
+
const context = new Context(configJson);
|
138
|
+
if (!app.getContextById(context.id)) {
|
139
|
+
await app.addContext(context);
|
140
|
+
}
|
141
|
+
vcMapContext.contextId = context.id;
|
142
|
+
vcMapContext.active = true;
|
143
|
+
} catch (err) {
|
144
|
+
getLogger().error(`Failed loading context from ${ vcMapContext.configUrl}`, err);
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
/**
|
149
|
+
* @param {VcsApp} app
|
150
|
+
* @param {VCMapContext} vcMapContext
|
151
|
+
* @returns {Promise<void>}
|
152
|
+
*/
|
153
|
+
async function unloadContext(app, vcMapContext) {
|
154
|
+
if (app.getContextById(vcMapContext.contextId)) {
|
155
|
+
await app.removeContext(vcMapContext.contextId);
|
156
|
+
}
|
157
|
+
vcMapContext.active = false;
|
158
|
+
}
|
159
|
+
|
160
|
+
/**
|
161
|
+
* @param {VcsApp} app
|
162
|
+
* @param {VCMapProject} project
|
163
|
+
* @returns {Promise<void>}
|
164
|
+
*/
|
165
|
+
async function deselectProject(app, project) {
|
166
|
+
if (project.active) {
|
167
|
+
await Promise.all([...project.contexts].map((context) => {
|
168
|
+
return unloadContext(app, context);
|
169
|
+
}));
|
170
|
+
project.active = false;
|
171
|
+
}
|
172
|
+
}
|
173
|
+
|
174
|
+
/**
|
175
|
+
* @param {VcsApp} app
|
176
|
+
* @param {VCMapProject} project
|
177
|
+
* @returns {Promise<void>}
|
178
|
+
*/
|
179
|
+
async function selectProject(app, project) {
|
180
|
+
if (!project.active) {
|
181
|
+
await Promise.all([...pluginState.projects.value].map((p) => {
|
182
|
+
return deselectProject(app, p);
|
183
|
+
}));
|
184
|
+
await Promise.all([...project.contexts].map((context) => {
|
185
|
+
return loadContext(app, context);
|
186
|
+
}));
|
187
|
+
project.active = true;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
return {
|
192
|
+
get name() { return packageJSON.name; },
|
193
|
+
get version() { return packageJSON.version; },
|
194
|
+
get vcMapVersion() { return packageJSON.vcMapVersion; },
|
195
|
+
config: pluginConfig,
|
196
|
+
state: pluginState,
|
197
|
+
addContextFromOptions,
|
198
|
+
removeContext,
|
199
|
+
addProjectFromOptions,
|
200
|
+
removeProject,
|
201
|
+
selectProject,
|
202
|
+
deselectProject,
|
203
|
+
loadContext,
|
204
|
+
unloadContext,
|
205
|
+
onVcsAppMounted(app) {
|
206
|
+
const windowComponent = {
|
207
|
+
id: 'project-selector',
|
208
|
+
component: ProjectsComponent,
|
209
|
+
state: {
|
210
|
+
headerTitle: 'Project Selector',
|
211
|
+
},
|
212
|
+
position: {
|
213
|
+
left: '30%',
|
214
|
+
right: '30%',
|
215
|
+
top: '20%',
|
216
|
+
bottom: '20%',
|
217
|
+
},
|
218
|
+
};
|
219
|
+
const { action, destroy } = createToggleAction(
|
220
|
+
{
|
221
|
+
name: 'VC Map HOSTING',
|
222
|
+
icon: 'mdi-chevron-down',
|
223
|
+
},
|
224
|
+
windowComponent,
|
225
|
+
app.windowManager,
|
226
|
+
packageJSON.name,
|
227
|
+
);
|
228
|
+
app.navbarManager.add(
|
229
|
+
{ id: 'project-selector', action },
|
230
|
+
packageJSON.name,
|
231
|
+
ButtonLocation.PROJECT,
|
232
|
+
);
|
233
|
+
this._destroyAction = destroy;
|
234
|
+
|
235
|
+
pluginConfig.contexts.value.forEach(c => addContextFromOptions(c));
|
236
|
+
pluginConfig.projects.value.forEach(p => addProjectFromOptions(p));
|
237
|
+
const projectToSelect = [...pluginState.projects.value]
|
238
|
+
.find(p => p.name === pluginConfig.selected.value) ||
|
239
|
+
pluginState.projects.value[0];
|
240
|
+
selectProject(app, projectToSelect);
|
241
|
+
const contextsToSelect = [...pluginState.contexts.value]
|
242
|
+
.filter(c => pluginConfig.selectedContexts.value.includes(c.name));
|
243
|
+
contextsToSelect.forEach(c => loadContext(app, c));
|
244
|
+
if (pluginConfig.open) {
|
245
|
+
app.windowManager.add(windowComponent, packageJSON.name);
|
246
|
+
}
|
247
|
+
},
|
248
|
+
i18n: {
|
249
|
+
de,
|
250
|
+
en,
|
251
|
+
},
|
252
|
+
destroy() {
|
253
|
+
if (this._destroyAction) {
|
254
|
+
this._destroyAction();
|
255
|
+
this._destroyAction = null;
|
256
|
+
}
|
257
|
+
},
|
258
|
+
};
|
259
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
{
|
2
|
+
"name": "@vcmap/project-selector",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"vcMapVersion": "~5.0.0",
|
5
|
+
"dependencies": {
|
6
|
+
"@vcsuite/check": "^1.1.2",
|
7
|
+
"@vcsuite/logger": "^1.0.1"
|
8
|
+
},
|
9
|
+
"peerDependencies": {
|
10
|
+
"@vcmap/ui": "^5.0.0-rc.11",
|
11
|
+
"@vcmap/core": "^5.0.0-rc.5",
|
12
|
+
"@vue/composition-api": "^1.4.5"
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# VC Map Plugin Theme Changer
|
2
|
+
|
3
|
+
This is a plugin to manage themes of the VC Map.
|
4
|
+
This plugin provides 4 themes:
|
5
|
+
- VCS Theme (defined by `@vcmap/ui`)
|
6
|
+
- Theme 1
|
7
|
+
- Theme 2
|
8
|
+
- Theme 3
|
9
|
+
|
10
|
+
Per config custom themes can be added.
|
11
|
+
|
12
|
+
## configuration
|
13
|
+
|
14
|
+
You can override the themes array by defining your own themes. A theme must provide:
|
15
|
+
|
16
|
+
### VcMapTheme
|
17
|
+
| Property | Type | Description |
|
18
|
+
|----------|------|------------------------|
|
19
|
+
| name | string | name of the theme |
|
20
|
+
| dark | VuetifyTheme | dark theme definition |
|
21
|
+
| light | VuetifyTheme | light theme definition |
|
@@ -0,0 +1,92 @@
|
|
1
|
+
<template>
|
2
|
+
<v-card>
|
3
|
+
<v-list-item>
|
4
|
+
<v-list-item-content>
|
5
|
+
<v-list-item-title class="font-weight-bold">
|
6
|
+
Dark Mode
|
7
|
+
</v-list-item-title>
|
8
|
+
</v-list-item-content>
|
9
|
+
<v-list-item-action>
|
10
|
+
<v-switch v-model="$vuetify.theme.dark" />
|
11
|
+
</v-list-item-action>
|
12
|
+
</v-list-item>
|
13
|
+
<v-divider />
|
14
|
+
<v-card-text>
|
15
|
+
<v-card
|
16
|
+
class="my-2"
|
17
|
+
:disabled="state.selected.value === theme.name"
|
18
|
+
@click="setTheme(theme)"
|
19
|
+
hover
|
20
|
+
outlined
|
21
|
+
v-for="(theme, index) in config.themes.value"
|
22
|
+
:key="index"
|
23
|
+
>
|
24
|
+
<v-list-item>
|
25
|
+
<v-list-item-content>
|
26
|
+
<v-list-item-title class="font-weight-bold">
|
27
|
+
{{ theme.name }}
|
28
|
+
</v-list-item-title>
|
29
|
+
</v-list-item-content>
|
30
|
+
<v-list-item-action>
|
31
|
+
<v-avatar
|
32
|
+
color="success"
|
33
|
+
size="30"
|
34
|
+
v-if="state.selected.value === theme.name"
|
35
|
+
>
|
36
|
+
<v-icon>mdi-check</v-icon>
|
37
|
+
</v-avatar>
|
38
|
+
</v-list-item-action>
|
39
|
+
</v-list-item>
|
40
|
+
<v-card class="my-1 ma-1 py-1 white">
|
41
|
+
<v-chip
|
42
|
+
class="mx-1"
|
43
|
+
label
|
44
|
+
:color="theme.dark[key]"
|
45
|
+
v-for="(key, index) in Object.keys(theme.dark)"
|
46
|
+
:key="index"
|
47
|
+
>
|
48
|
+
{{ key }}
|
49
|
+
</v-chip>
|
50
|
+
</v-card>
|
51
|
+
<v-card class="my-1 ma-1 py-1 black">
|
52
|
+
<v-chip
|
53
|
+
class="mx-1"
|
54
|
+
label
|
55
|
+
:color="theme.light[key]"
|
56
|
+
v-for="(key, index) in Object.keys(theme.light)"
|
57
|
+
:key="index"
|
58
|
+
>
|
59
|
+
{{ key }}
|
60
|
+
</v-chip>
|
61
|
+
</v-card>
|
62
|
+
</v-card>
|
63
|
+
</v-card-text>
|
64
|
+
</v-card>
|
65
|
+
</template>
|
66
|
+
<script>
|
67
|
+
import { inject } from '@vue/composition-api';
|
68
|
+
|
69
|
+
export default {
|
70
|
+
name: 'ThemeChanger',
|
71
|
+
setup() {
|
72
|
+
const app = inject('vcsApp');
|
73
|
+
const plugin = app.plugins.getByKey('@vcmap/theme-changer');
|
74
|
+
|
75
|
+
function setTheme(theme) {
|
76
|
+
const { name, dark, light } = theme;
|
77
|
+
Object.keys(dark).forEach((i) => {
|
78
|
+
this.$vuetify.theme.themes.dark[i] = dark[i];
|
79
|
+
});
|
80
|
+
Object.keys(light).forEach((i) => {
|
81
|
+
this.$vuetify.theme.themes.light[i] = light[i];
|
82
|
+
});
|
83
|
+
plugin.state.selected.value = name;
|
84
|
+
}
|
85
|
+
return {
|
86
|
+
state: plugin.state,
|
87
|
+
config: plugin.config,
|
88
|
+
setTheme,
|
89
|
+
};
|
90
|
+
},
|
91
|
+
};
|
92
|
+
</script>
|
@@ -0,0 +1,69 @@
|
|
1
|
+
{
|
2
|
+
"name": "themeChanger",
|
3
|
+
"entry": "plugins/@vcmap/theme-changer/index.js",
|
4
|
+
"themes": [
|
5
|
+
{
|
6
|
+
"name": "Theme 1",
|
7
|
+
"dark": {
|
8
|
+
"primary": "#21CFF3",
|
9
|
+
"accent": "#FF4081",
|
10
|
+
"secondary": "#21dc79",
|
11
|
+
"success": "#86af3f",
|
12
|
+
"info": "#f34fc6",
|
13
|
+
"warning": "#FB8C00",
|
14
|
+
"error": "#FF5252"
|
15
|
+
},
|
16
|
+
"light": {
|
17
|
+
"primary": "#22daff",
|
18
|
+
"accent": "#ff6b99",
|
19
|
+
"secondary": "#26ff8c",
|
20
|
+
"success": "#a5d64c",
|
21
|
+
"info": "#ff53d0",
|
22
|
+
"warning": "#ff8e00",
|
23
|
+
"error": "#ff5252"
|
24
|
+
}
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"name": "Theme 2",
|
28
|
+
"dark": {
|
29
|
+
"primary": "#E65100",
|
30
|
+
"accent": "#7CB342",
|
31
|
+
"secondary": "#689F38",
|
32
|
+
"success": "#4CAF50",
|
33
|
+
"info": "#6156d8",
|
34
|
+
"warning": "#1565C0",
|
35
|
+
"error": "#FF7043"
|
36
|
+
},
|
37
|
+
"light": {
|
38
|
+
"primary": "#ffa450",
|
39
|
+
"accent": "#a1e754",
|
40
|
+
"secondary": "#92de4e",
|
41
|
+
"success": "#6dff74",
|
42
|
+
"info": "#7365ff",
|
43
|
+
"warning": "#2e8ac0",
|
44
|
+
"error": "#ff5e3c"
|
45
|
+
}
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"name": "Theme 3",
|
49
|
+
"dark": {
|
50
|
+
"primary": "#33691E",
|
51
|
+
"accent": "#FFCA28",
|
52
|
+
"secondary": "#607D8B",
|
53
|
+
"success": "#FFEB3B",
|
54
|
+
"info": "#2196F3",
|
55
|
+
"warning": "#9C27B0",
|
56
|
+
"error": "#B71C1C"
|
57
|
+
},
|
58
|
+
"light": {
|
59
|
+
"primary": "#6ae240",
|
60
|
+
"accent": "#ffe063",
|
61
|
+
"secondary": "#7ea4b6",
|
62
|
+
"success": "#ffea70",
|
63
|
+
"info": "#229eff",
|
64
|
+
"warning": "#e239ff",
|
65
|
+
"error": "#e82424"
|
66
|
+
}
|
67
|
+
}
|
68
|
+
]
|
69
|
+
}
|
@@ -0,0 +1,102 @@
|
|
1
|
+
import { ref } from '@vue/composition-api';
|
2
|
+
import { check } from '@vcsuite/check';
|
3
|
+
import { ButtonLocation, createToggleAction, vuetify } from '@vcmap/ui';
|
4
|
+
import ThemeChangerComponent from './ThemeChangerComponent.vue';
|
5
|
+
import packageJSON from './package.json';
|
6
|
+
import defaultConfig from './config.json';
|
7
|
+
|
8
|
+
/**
|
9
|
+
* @typedef {Object} VuetifyTheme
|
10
|
+
* @property {string} primary
|
11
|
+
* @property {string} secondary
|
12
|
+
* @property {string} accent
|
13
|
+
* @property {string} error
|
14
|
+
* @property {string} info
|
15
|
+
* @property {string} success
|
16
|
+
* @property {string} warning
|
17
|
+
*/
|
18
|
+
|
19
|
+
/**
|
20
|
+
* @typedef {Object} VcMapTheme
|
21
|
+
* @property {string} name
|
22
|
+
* @property {VuetifyTheme} light
|
23
|
+
* @property {VuetifyTheme} dark
|
24
|
+
*/
|
25
|
+
|
26
|
+
/**
|
27
|
+
* @param {Object} config
|
28
|
+
* @returns {VcsPlugin}
|
29
|
+
*/
|
30
|
+
export default async function themeChanger(config) {
|
31
|
+
/** @type {VcMapTheme} */
|
32
|
+
const vcsTheme = {
|
33
|
+
name: 'VCS Theme',
|
34
|
+
...vuetify.userPreset.theme.themes,
|
35
|
+
};
|
36
|
+
const customThemes = config.themes || defaultConfig.themes;
|
37
|
+
const availableThemes = [vcsTheme, ...customThemes];
|
38
|
+
|
39
|
+
const pluginConfig = {
|
40
|
+
themes: ref(/** @type {Array<VcMapTheme> */[]),
|
41
|
+
};
|
42
|
+
|
43
|
+
const pluginState = {
|
44
|
+
selected: ref(vcsTheme.name),
|
45
|
+
};
|
46
|
+
|
47
|
+
/**
|
48
|
+
* @param {VcMapTheme} theme
|
49
|
+
*/
|
50
|
+
function addTheme(theme) {
|
51
|
+
check(theme.name, String);
|
52
|
+
check(theme.light, Object);
|
53
|
+
check(theme.dark, Object);
|
54
|
+
pluginConfig.themes.value.push(theme);
|
55
|
+
}
|
56
|
+
availableThemes.forEach(t => addTheme(t));
|
57
|
+
|
58
|
+
return {
|
59
|
+
get name() { return packageJSON.name; },
|
60
|
+
get version() { return packageJSON.version; },
|
61
|
+
get vcMapVersion() { return packageJSON.vcMapVersion; },
|
62
|
+
config: pluginConfig,
|
63
|
+
state: pluginState,
|
64
|
+
addTheme,
|
65
|
+
onVcsAppMounted(app) {
|
66
|
+
const { action, destroy } = createToggleAction(
|
67
|
+
{
|
68
|
+
name: 'Theme Changer',
|
69
|
+
icon: 'mdi-palette',
|
70
|
+
},
|
71
|
+
{
|
72
|
+
id: 'theme-changer',
|
73
|
+
component: ThemeChangerComponent,
|
74
|
+
position: {
|
75
|
+
left: '60%',
|
76
|
+
right: '0%',
|
77
|
+
top: '5%',
|
78
|
+
bottom: '50%',
|
79
|
+
},
|
80
|
+
state: {
|
81
|
+
headerTitle: 'Theme Changer',
|
82
|
+
headerIcon: 'mdi-palette',
|
83
|
+
},
|
84
|
+
},
|
85
|
+
app.windowManager,
|
86
|
+
packageJSON.name,
|
87
|
+
);
|
88
|
+
app.navbarManager.add(
|
89
|
+
{ id: 'theme-changer', action },
|
90
|
+
packageJSON.name,
|
91
|
+
ButtonLocation.MENU,
|
92
|
+
);
|
93
|
+
this._destroyAction = destroy;
|
94
|
+
},
|
95
|
+
destroy() {
|
96
|
+
if (this._destroyAction) {
|
97
|
+
this._destroyAction();
|
98
|
+
this._destroyAction = null;
|
99
|
+
}
|
100
|
+
},
|
101
|
+
};
|
102
|
+
}
|