@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,435 @@
|
|
1
|
+
import { reactive, ref } from '@vue/composition-api';
|
2
|
+
import { VcsEvent } from '@vcmap/core';
|
3
|
+
import { v4 as uuidv4 } from 'uuid';
|
4
|
+
import { parseEnumValue } from '@vcsuite/parsers';
|
5
|
+
import { check } from '@vcsuite/check';
|
6
|
+
import { vcsAppSymbol } from '../../pluginHelper.js';
|
7
|
+
|
8
|
+
/**
|
9
|
+
* @readonly
|
10
|
+
* @enum {string}
|
11
|
+
* @property {string} STATIC
|
12
|
+
* @property {string} DYNAMIC_LEFT
|
13
|
+
* @property {string} DYNAMIC_RIGHT
|
14
|
+
* @property {string} DETACHED
|
15
|
+
*/
|
16
|
+
export const WindowSlot = {
|
17
|
+
STATIC: 'static',
|
18
|
+
DYNAMIC_LEFT: 'dynamicLeft',
|
19
|
+
DYNAMIC_RIGHT: 'dynamicRight',
|
20
|
+
DETACHED: 'detached',
|
21
|
+
};
|
22
|
+
|
23
|
+
|
24
|
+
/**
|
25
|
+
* @typedef WindowPositionOptions
|
26
|
+
* @property {string|number|undefined} left Can be a css position string (e.g. '320px' or '50%') number values are treated as `px` values
|
27
|
+
* @property {string|number|undefined} top Can be a css position string (e.g. '320px' or '50%') number values are treated as `px` values
|
28
|
+
* @property {string|number|undefined} right Can be a css position string (e.g. '320px' or '50%') number values are treated as `px` values
|
29
|
+
* @property {string|number|undefined} bottom Can be a css position string (e.g. '320px' or '50%') number values are treated as `px` values
|
30
|
+
* @property {string|number|undefined} width Can be a css position string (e.g. '320px') number values are treated as `px` values
|
31
|
+
* @property {string|number|undefined} height Can be pixel-value string (e.g. '320px') number values are treated as `px` values
|
32
|
+
*/
|
33
|
+
|
34
|
+
/**
|
35
|
+
* @typedef WindowPosition
|
36
|
+
* @property {string} left - absolute to map container
|
37
|
+
* @property {string} top - absolute to map container
|
38
|
+
* @property {string} right - absolute to map container
|
39
|
+
* @property {string} bottom - absolute to map container
|
40
|
+
* @property {string} width
|
41
|
+
* @property {string} height
|
42
|
+
*/
|
43
|
+
|
44
|
+
/**
|
45
|
+
* @readonly
|
46
|
+
* @enum {WindowPositionOptions}
|
47
|
+
* @property {Position} TOP_LEFT position of the DYNAMIC_LEFT or STATIC Slot
|
48
|
+
* @property {Position} TOP_LEFT2 position of the DYNAMIC_LEFT Slot if a STATIC is present
|
49
|
+
* @property {Position} TOP_RIGHT position of the DYNAMIC_RIGHT Slot
|
50
|
+
* @property {Position} DETACHED default position of DETACHED Windows if no position is given
|
51
|
+
* @private
|
52
|
+
*/
|
53
|
+
export const WindowPositions = {
|
54
|
+
TOP_LEFT: {
|
55
|
+
left: '0px',
|
56
|
+
top: '0px',
|
57
|
+
},
|
58
|
+
TOP_LEFT2: {
|
59
|
+
left: '320px',
|
60
|
+
top: '0px',
|
61
|
+
},
|
62
|
+
TOP_RIGHT: {
|
63
|
+
right: '0px',
|
64
|
+
top: '0px',
|
65
|
+
},
|
66
|
+
DETACHED: {
|
67
|
+
left: '200px',
|
68
|
+
top: '200px',
|
69
|
+
},
|
70
|
+
};
|
71
|
+
|
72
|
+
/**
|
73
|
+
* @typedef WindowComponentOptions
|
74
|
+
* @property {string} [id] Optional ID, If not provided an uuid will be generated.
|
75
|
+
* @property {VueComponent} component Main Component which is shown below the header.
|
76
|
+
* @property {VueComponent} [headerComponent] Replaces the Header Component.
|
77
|
+
* @property {WindowPositionOptions} [position] Will be ignored if WindowSlot !== DETACHED, can be given otherwise or default will be used
|
78
|
+
* @property {WindowState} [state]
|
79
|
+
* @property {WindowSlot} [slot] If WindowSlot is not detached the position will be ignored
|
80
|
+
* @property {Object} [props]
|
81
|
+
*/
|
82
|
+
|
83
|
+
/**
|
84
|
+
* @typedef WindowState
|
85
|
+
* @property {string} id
|
86
|
+
* @property {string|vcsAppSymbol} owner Owner of the window, set by windowManager on add
|
87
|
+
* @property {boolean} [hideHeader] be used to not show the header.
|
88
|
+
* @property {string} [headerTitle]
|
89
|
+
* @property {string} [headerIcon]
|
90
|
+
* @property {Object<string, string>} styles[styles] Can be used to add additional styles to the root WindowComponent. Use Vue Style Bindings Object Syntax https://vuejs.org/v2/guide/class-and-style.html
|
91
|
+
* @property {Array<string>|Object<string,string>} [classes] Can be used to add additional classes to the root WindowComponent. Use Vue Class Bindings Syntax https://vuejs.org/v2/guide/class-and-style.html
|
92
|
+
*/
|
93
|
+
|
94
|
+
/**
|
95
|
+
* @typedef WindowComponent
|
96
|
+
* @property {string} id
|
97
|
+
* @property {VueComponent} component
|
98
|
+
* @property {VueComponent} [headerComponent]
|
99
|
+
* @property {WindowPosition} position
|
100
|
+
* @property {WindowState} state
|
101
|
+
* @property {Ref<UnwrapRef<WindowSlot>>} slot
|
102
|
+
* @property {Object} props
|
103
|
+
*/
|
104
|
+
|
105
|
+
/**
|
106
|
+
* @param {string|number|undefined} pos
|
107
|
+
* @returns {string|undefined}
|
108
|
+
*/
|
109
|
+
function parsePosition(pos) {
|
110
|
+
if (typeof pos === 'number') {
|
111
|
+
return `${pos}px`;
|
112
|
+
}
|
113
|
+
return pos;
|
114
|
+
}
|
115
|
+
|
116
|
+
/**
|
117
|
+
* @param {WindowPositionOptions} windowPositionOptions
|
118
|
+
* @param {WindowPosition=} windowPosition
|
119
|
+
* @returns {WindowPosition}
|
120
|
+
*/
|
121
|
+
export function windowPositionFromOptions(windowPositionOptions, windowPosition = {}) {
|
122
|
+
let left = parsePosition(windowPositionOptions.left) || 'unset';
|
123
|
+
const right = parsePosition(windowPositionOptions.right) || 'unset';
|
124
|
+
let top = parsePosition(windowPositionOptions.top) || 'unset';
|
125
|
+
const bottom = parsePosition(windowPositionOptions.bottom) || 'unset';
|
126
|
+
let width = parsePosition(windowPositionOptions.width) || 'auto';
|
127
|
+
let height = parsePosition(windowPositionOptions.height) || 'auto';
|
128
|
+
if (left !== 'unset' && right !== 'unset') {
|
129
|
+
width = 'auto'; // left + right takes precedence over configured width
|
130
|
+
} else if (width === 'auto') {
|
131
|
+
width = '320px'; // default width if no value is given and no value can be calculated indirectly by left+right
|
132
|
+
}
|
133
|
+
if (left === 'unset' && right === 'unset') {
|
134
|
+
left = '200px'; // default value if neither a left or right value is given
|
135
|
+
}
|
136
|
+
if (top !== 'unset' && bottom !== 'unset') {
|
137
|
+
height = 'auto'; // top + bottom takes precedence over configured height
|
138
|
+
}
|
139
|
+
if (top === 'unset' && bottom === 'unset') {
|
140
|
+
top = '200px'; // default value if neither a top or bottom value is given
|
141
|
+
}
|
142
|
+
const result = {
|
143
|
+
left,
|
144
|
+
right,
|
145
|
+
top,
|
146
|
+
bottom,
|
147
|
+
width,
|
148
|
+
height,
|
149
|
+
};
|
150
|
+
return Object.assign(windowPosition, result);
|
151
|
+
}
|
152
|
+
|
153
|
+
/**
|
154
|
+
* WindowPositionOptions from client position relative to a HTMLElement
|
155
|
+
* @param {number} x
|
156
|
+
* @param {number} y
|
157
|
+
* @param {string|HTMLElement} [element='mapElement']
|
158
|
+
* @returns {WindowPositionOptions}
|
159
|
+
*/
|
160
|
+
export function getWindowPositionOptions(x, y, element = 'mapElement') {
|
161
|
+
let mapElement = element;
|
162
|
+
if (typeof mapElement === 'string') {
|
163
|
+
mapElement = document.getElementsByClassName(element).item(0);
|
164
|
+
}
|
165
|
+
const { left, top } = mapElement.getBoundingClientRect();
|
166
|
+
return { left: x - left, top: y - top };
|
167
|
+
}
|
168
|
+
|
169
|
+
/**
|
170
|
+
* @class WindowManager
|
171
|
+
* @description Manages a set of Draggable Windows
|
172
|
+
* @implements VcsComponentManager<WindowComponent,WindowComponentOptions>
|
173
|
+
*/
|
174
|
+
export class WindowManager {
|
175
|
+
constructor() {
|
176
|
+
/**
|
177
|
+
* @type {import("@vcmap/core").VcsEvent<WindowComponent>}
|
178
|
+
*/
|
179
|
+
this.added = new VcsEvent();
|
180
|
+
/**
|
181
|
+
* @type {import("@vcmap/core").VcsEvent<WindowComponent>}
|
182
|
+
*/
|
183
|
+
this.removed = new VcsEvent();
|
184
|
+
/**
|
185
|
+
* reactive ordered array of ids,
|
186
|
+
* @type {Array<string>}
|
187
|
+
*/
|
188
|
+
this.componentIds = reactive([]);
|
189
|
+
|
190
|
+
/**
|
191
|
+
* @type {Map<string, WindowComponent>}
|
192
|
+
* @private
|
193
|
+
*/
|
194
|
+
this._windowComponents = new Map();
|
195
|
+
}
|
196
|
+
|
197
|
+
/**
|
198
|
+
* @param {string} id
|
199
|
+
* @returns {WindowComponent}
|
200
|
+
*/
|
201
|
+
get(id) {
|
202
|
+
return this._windowComponents.get(id);
|
203
|
+
}
|
204
|
+
|
205
|
+
/**
|
206
|
+
* @param {string} id
|
207
|
+
* @returns {boolean}
|
208
|
+
*/
|
209
|
+
has(id) {
|
210
|
+
return this._windowComponents.has(id);
|
211
|
+
}
|
212
|
+
|
213
|
+
/**
|
214
|
+
* removes a window, Component will not be rendered anymore and will be destroyed. Add WindowComponent again
|
215
|
+
* to show the component again
|
216
|
+
* @param {string} id
|
217
|
+
*/
|
218
|
+
remove(id) {
|
219
|
+
check(id, String);
|
220
|
+
const windowComponent = this._windowComponents.get(id);
|
221
|
+
if (windowComponent) {
|
222
|
+
const index = this.componentIds.indexOf(id);
|
223
|
+
this.componentIds.splice(index, 1);
|
224
|
+
this._windowComponents.delete(id);
|
225
|
+
this._handleSlotsChanged(windowComponent.slot.value);
|
226
|
+
this.removed.raiseEvent(windowComponent);
|
227
|
+
}
|
228
|
+
}
|
229
|
+
|
230
|
+
/**
|
231
|
+
* @param {string} id
|
232
|
+
* @param {WindowPositionOptions} windowPositionOptions
|
233
|
+
*/
|
234
|
+
setWindowPositionOptions(id, windowPositionOptions) {
|
235
|
+
const windowComponent = this._windowComponents.get(id);
|
236
|
+
if (windowComponent) {
|
237
|
+
const isSlotPosition = windowPositionOptions === WindowPositions.TOP_LEFT ||
|
238
|
+
windowPositionOptions === WindowPositions.TOP_LEFT2 ||
|
239
|
+
windowPositionOptions === WindowPositions.TOP_RIGHT;
|
240
|
+
// not one of the default Positions, so we also have to DETACH the windowState.
|
241
|
+
if (!isSlotPosition) {
|
242
|
+
windowComponent.slot.value = WindowSlot.DETACHED;
|
243
|
+
}
|
244
|
+
windowPositionFromOptions(windowPositionOptions, windowComponent.position);
|
245
|
+
}
|
246
|
+
}
|
247
|
+
|
248
|
+
/**
|
249
|
+
* handles changes in the Slots. Makes sure that a STATIC Window is positioned on the right to the DYNAMIC_LEFT Slot.
|
250
|
+
* If a STATIC Window is removed again, the DYNAMIC_LEFT will be moved back.
|
251
|
+
* @param {WindowSlot} changedSlot
|
252
|
+
* @private
|
253
|
+
*/
|
254
|
+
_handleSlotsChanged(changedSlot) {
|
255
|
+
if (changedSlot === WindowSlot.STATIC) {
|
256
|
+
const staticWindow = this._findWindowBySlot(WindowSlot.STATIC);
|
257
|
+
const dynamicWindowLeft = this._findWindowBySlot(WindowSlot.DYNAMIC_LEFT);
|
258
|
+
if (staticWindow && dynamicWindowLeft) {
|
259
|
+
this.setWindowPositionOptions(dynamicWindowLeft.id, WindowPositions.TOP_LEFT2);
|
260
|
+
} else if (!staticWindow && dynamicWindowLeft) {
|
261
|
+
this.setWindowPositionOptions(dynamicWindowLeft.id, WindowPositions.TOP_LEFT);
|
262
|
+
}
|
263
|
+
}
|
264
|
+
}
|
265
|
+
|
266
|
+
/**
|
267
|
+
* @param {WindowSlot} slot
|
268
|
+
* @returns {WindowComponent}
|
269
|
+
* @private
|
270
|
+
*/
|
271
|
+
_findWindowBySlot(slot) {
|
272
|
+
return Array.from(this._windowComponents.values()).find(item => item.slot.value === slot);
|
273
|
+
}
|
274
|
+
|
275
|
+
/**
|
276
|
+
* @param {WindowSlot} slot
|
277
|
+
* @param {WindowPositionOptions=} position
|
278
|
+
* @returns {WindowPositionOptions}
|
279
|
+
* @private
|
280
|
+
*/
|
281
|
+
_getPositionOptionsForSlot(slot, position) {
|
282
|
+
if (slot === WindowSlot.STATIC) {
|
283
|
+
return WindowPositions.TOP_LEFT;
|
284
|
+
}
|
285
|
+
if (slot === WindowSlot.DYNAMIC_LEFT) {
|
286
|
+
const windowAtStatic = this._findWindowBySlot(WindowSlot.STATIC);
|
287
|
+
if (windowAtStatic) {
|
288
|
+
return WindowPositions.TOP_LEFT2;
|
289
|
+
} else {
|
290
|
+
return WindowPositions.TOP_LEFT;
|
291
|
+
}
|
292
|
+
}
|
293
|
+
if (slot === WindowSlot.DYNAMIC_RIGHT) {
|
294
|
+
return WindowPositions.TOP_RIGHT;
|
295
|
+
}
|
296
|
+
return position || WindowPositions.DETACHED;
|
297
|
+
}
|
298
|
+
|
299
|
+
/**
|
300
|
+
* removes the window at the given slot if it exists (not for DETACHED)
|
301
|
+
* @param {WindowSlot} slot
|
302
|
+
* @private
|
303
|
+
*/
|
304
|
+
_removeWindowAtSlot(slot) {
|
305
|
+
if (slot !== WindowSlot.DETACHED) {
|
306
|
+
const toRemove = this._findWindowBySlot(slot);
|
307
|
+
if (toRemove) {
|
308
|
+
this.remove(toRemove.id);
|
309
|
+
}
|
310
|
+
}
|
311
|
+
}
|
312
|
+
|
313
|
+
/**
|
314
|
+
* adds a windowComponent to the WindowManager and renders the Window at the provided position/slot.
|
315
|
+
* The reactive WindowState Object can be used to watch Changes on position/WindowSlot.
|
316
|
+
* The WindowState Object can also be used to change hideHeader, headerTitle, headerIcon, styles and classes
|
317
|
+
* @param {WindowComponentOptions|WindowComponent} windowComponentOptions
|
318
|
+
* @param {string|symbol} owner pluginName or vcsAppSymbol
|
319
|
+
* @throws {Error} if a windowComponent with the same ID has already been added
|
320
|
+
* @returns {WindowComponent}
|
321
|
+
*/
|
322
|
+
add(windowComponentOptions, owner) {
|
323
|
+
check(owner, [String, vcsAppSymbol]);
|
324
|
+
|
325
|
+
if (windowComponentOptions.id && this.has(windowComponentOptions.id)) {
|
326
|
+
throw new Error(`A window with id ${windowComponentOptions.id} has already been registered.`);
|
327
|
+
}
|
328
|
+
const id = windowComponentOptions.id || uuidv4();
|
329
|
+
const slotOption = windowComponentOptions.slot?.value || windowComponentOptions.slot;
|
330
|
+
const slot = parseEnumValue(slotOption, WindowSlot, WindowSlot.DETACHED);
|
331
|
+
const windowPositionOptions = this._getPositionOptionsForSlot(slot, windowComponentOptions.position);
|
332
|
+
const windowPosition = windowPositionFromOptions(windowPositionOptions);
|
333
|
+
|
334
|
+
const slotRef = ref(slot);
|
335
|
+
const {
|
336
|
+
component, headerComponent,
|
337
|
+
} = windowComponentOptions;
|
338
|
+
const styles = { ...windowComponentOptions?.state?.styles };
|
339
|
+
const classes = Array.isArray(windowComponentOptions?.state?.classes) ?
|
340
|
+
[...(windowComponentOptions?.state?.classes ?? [])] :
|
341
|
+
{ ...windowComponentOptions?.state?.classes };
|
342
|
+
|
343
|
+
const state = reactive({
|
344
|
+
id,
|
345
|
+
owner,
|
346
|
+
hideHeader: !!windowComponentOptions?.state?.hideHeader,
|
347
|
+
headerTitle: windowComponentOptions?.state?.headerTitle,
|
348
|
+
headerIcon: windowComponentOptions?.state?.headerIcon,
|
349
|
+
classes,
|
350
|
+
styles,
|
351
|
+
});
|
352
|
+
|
353
|
+
const props = windowComponentOptions.props || {};
|
354
|
+
|
355
|
+
const position = reactive(windowPosition);
|
356
|
+
/**
|
357
|
+
* @type {WindowComponent}
|
358
|
+
*/
|
359
|
+
const windowComponent = {
|
360
|
+
get id() {
|
361
|
+
return id;
|
362
|
+
},
|
363
|
+
get state() {
|
364
|
+
return state;
|
365
|
+
},
|
366
|
+
get component() {
|
367
|
+
return component;
|
368
|
+
},
|
369
|
+
get headerComponent() {
|
370
|
+
return headerComponent;
|
371
|
+
},
|
372
|
+
get slot() {
|
373
|
+
return slotRef;
|
374
|
+
},
|
375
|
+
get position() {
|
376
|
+
return position;
|
377
|
+
},
|
378
|
+
get props() {
|
379
|
+
return props;
|
380
|
+
},
|
381
|
+
};
|
382
|
+
this._removeWindowAtSlot(slot);
|
383
|
+
this._windowComponents.set(id, windowComponent);
|
384
|
+
this.componentIds.push(id);
|
385
|
+
this._handleSlotsChanged(slot);
|
386
|
+
this.added.raiseEvent(windowComponent);
|
387
|
+
return windowComponent;
|
388
|
+
}
|
389
|
+
|
390
|
+
/**
|
391
|
+
* reorders the order of all windows to bring the given ID on top
|
392
|
+
* @param {string} id
|
393
|
+
*/
|
394
|
+
bringWindowToTop(id) {
|
395
|
+
if (this.has(id)) {
|
396
|
+
const index = this.componentIds.indexOf(id);
|
397
|
+
if (index >= 0 && index !== this.componentIds.length - 1) {
|
398
|
+
this.componentIds.push(id);
|
399
|
+
this.componentIds.splice(index, 1);
|
400
|
+
}
|
401
|
+
}
|
402
|
+
}
|
403
|
+
|
404
|
+
/**
|
405
|
+
* removes all windowComponents of a specific owner (plugin) and fires removed Events
|
406
|
+
* @param {string|vcsAppSymbol} owner
|
407
|
+
*/
|
408
|
+
removeOwner(owner) {
|
409
|
+
const componentIds = [...this.componentIds];
|
410
|
+
componentIds.forEach((id) => {
|
411
|
+
const { state } = this.get(id);
|
412
|
+
if (owner === state.owner) {
|
413
|
+
this.remove(id);
|
414
|
+
}
|
415
|
+
});
|
416
|
+
}
|
417
|
+
|
418
|
+
/**
|
419
|
+
* removes all windowComponents and fires removed Events
|
420
|
+
*/
|
421
|
+
clear() {
|
422
|
+
const componentIds = [...this.componentIds];
|
423
|
+
componentIds.forEach((id) => { this.remove(id); });
|
424
|
+
}
|
425
|
+
|
426
|
+
/**
|
427
|
+
* destroys the windowManager;
|
428
|
+
*/
|
429
|
+
destroy() {
|
430
|
+
this.added.destroy();
|
431
|
+
this.removed.destroy();
|
432
|
+
this.componentIds.splice(0);
|
433
|
+
this._windowComponents.clear();
|
434
|
+
}
|
435
|
+
}
|
@@ -0,0 +1,161 @@
|
|
1
|
+
<template>
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="58" height="58" viewBox="0 0 58 58">
|
3
|
+
<g id="Group_1654" data-name="Group 1654" transform="translate(24)">
|
4
|
+
<path
|
5
|
+
:class="canEmit ? 'cursor-pointer' : ''"
|
6
|
+
id="north_arrow"
|
7
|
+
data-name="Polygon 14"
|
8
|
+
d="M4,0,8,13H0Z"
|
9
|
+
transform="translate(1)"
|
10
|
+
fill="currentColor"
|
11
|
+
@click="emit(0)"
|
12
|
+
/>
|
13
|
+
<path
|
14
|
+
:class="canEmit ? 'cursor-pointer' : ''"
|
15
|
+
id="south_arrow"
|
16
|
+
data-name="Polygon 17"
|
17
|
+
d="M4,0,8,13H0Z"
|
18
|
+
transform="translate(9 58) rotate(180)"
|
19
|
+
fill="rgba(88,88,88,0.51)"
|
20
|
+
@click="emit(180)"
|
21
|
+
/>
|
22
|
+
</g>
|
23
|
+
<g id="Group_1653" data-name="Group 1653" transform="translate(0 33) rotate(-90)">
|
24
|
+
<path
|
25
|
+
:class="canEmit ? 'cursor-pointer' : ''"
|
26
|
+
id="west_arrow"
|
27
|
+
data-name="Polygon 14"
|
28
|
+
d="M4,0,8,13H0Z"
|
29
|
+
fill="rgba(88,88,88,0.51)"
|
30
|
+
@click="emit(270)"
|
31
|
+
/>
|
32
|
+
<path
|
33
|
+
:class="canEmit ? 'cursor-pointer' : ''"
|
34
|
+
id="east_arrow"
|
35
|
+
data-name="Polygon 17"
|
36
|
+
d="M4,0,8,13H0Z"
|
37
|
+
transform="translate(8 58) rotate(180)"
|
38
|
+
fill="rgba(88,88,88,0.51)"
|
39
|
+
@click="emit(90)"
|
40
|
+
/>
|
41
|
+
</g>
|
42
|
+
<g id="Group_1672" data-name="Group 1672" transform="translate(1)" v-if="!hideTicks">
|
43
|
+
<line
|
44
|
+
id="Line_289-2"
|
45
|
+
data-name="Line 289"
|
46
|
+
x2="6.079"
|
47
|
+
transform="translate(3.751 15) rotate(30)"
|
48
|
+
fill="none"
|
49
|
+
stroke="#707070"
|
50
|
+
stroke-linecap="round"
|
51
|
+
stroke-width="1"
|
52
|
+
/>
|
53
|
+
<line
|
54
|
+
id="Line_290-2"
|
55
|
+
data-name="Line 290"
|
56
|
+
x2="4.665"
|
57
|
+
transform="translate(48.208 40.667) rotate(30)"
|
58
|
+
fill="none"
|
59
|
+
stroke="#707070"
|
60
|
+
stroke-linecap="round"
|
61
|
+
stroke-width="1"
|
62
|
+
/>
|
63
|
+
<line
|
64
|
+
id="Line_289-4"
|
65
|
+
data-name="Line 289"
|
66
|
+
x2="6.079"
|
67
|
+
transform="translate(14 53.249) rotate(-60)"
|
68
|
+
fill="none"
|
69
|
+
stroke="#707070"
|
70
|
+
stroke-linecap="round"
|
71
|
+
stroke-width="1"
|
72
|
+
/>
|
73
|
+
<line
|
74
|
+
id="Line_290-3"
|
75
|
+
data-name="Line 290"
|
76
|
+
x2="4.665"
|
77
|
+
transform="translate(39.668 8.792) rotate(-60)"
|
78
|
+
fill="none"
|
79
|
+
stroke="#707070"
|
80
|
+
stroke-linecap="round"
|
81
|
+
stroke-width="1"
|
82
|
+
/>
|
83
|
+
<line
|
84
|
+
id="Line_289-5"
|
85
|
+
data-name="Line 289"
|
86
|
+
x2="6.079"
|
87
|
+
transform="translate(14 4.751) rotate(60)"
|
88
|
+
fill="none"
|
89
|
+
stroke="#707070"
|
90
|
+
stroke-linecap="round"
|
91
|
+
stroke-width="1"
|
92
|
+
/>
|
93
|
+
<line
|
94
|
+
id="Line_290-4"
|
95
|
+
data-name="Line 290"
|
96
|
+
x2="4.665"
|
97
|
+
transform="translate(39.667 49.208) rotate(60)"
|
98
|
+
fill="none"
|
99
|
+
stroke="#707070"
|
100
|
+
stroke-linecap="round"
|
101
|
+
stroke-width="1"
|
102
|
+
/>
|
103
|
+
<line
|
104
|
+
id="Line_289-6"
|
105
|
+
data-name="Line 289"
|
106
|
+
x2="6.079"
|
107
|
+
transform="translate(3.752 43) rotate(-30)"
|
108
|
+
fill="none"
|
109
|
+
stroke="#707070"
|
110
|
+
stroke-linecap="round"
|
111
|
+
stroke-width="1"
|
112
|
+
/>
|
113
|
+
<line
|
114
|
+
id="Line_290-5"
|
115
|
+
data-name="Line 290"
|
116
|
+
x2="4.665"
|
117
|
+
transform="translate(48.209 17.333) rotate(-30)"
|
118
|
+
fill="none"
|
119
|
+
stroke="#707070"
|
120
|
+
stroke-linecap="round"
|
121
|
+
stroke-width="1"
|
122
|
+
/>
|
123
|
+
</g>
|
124
|
+
</svg>
|
125
|
+
</template>
|
126
|
+
|
127
|
+
<script>
|
128
|
+
/**
|
129
|
+
* The compass with ticks along the border
|
130
|
+
* @vue-prop {boolean} [canEmit=true] - whether to emit click events on cardinal direction arrows or not
|
131
|
+
* @vue-prop {boolean} [hideTicks=false] - hide ticks on navigation rose
|
132
|
+
* @vue-event {HTMLEvent} direction-click - raised when a cardinal direction arrow is clicked
|
133
|
+
*/
|
134
|
+
export default {
|
135
|
+
props: {
|
136
|
+
canEmit: {
|
137
|
+
type: Boolean,
|
138
|
+
default: true,
|
139
|
+
},
|
140
|
+
hideTicks: {
|
141
|
+
type: Boolean,
|
142
|
+
default: false,
|
143
|
+
},
|
144
|
+
},
|
145
|
+
methods: {
|
146
|
+
emit(event) {
|
147
|
+
if (this.canEmit) {
|
148
|
+
this.$emit('direction-click', event);
|
149
|
+
}
|
150
|
+
},
|
151
|
+
},
|
152
|
+
};
|
153
|
+
</script>
|
154
|
+
|
155
|
+
<style scoped>
|
156
|
+
svg {
|
157
|
+
width: 85%;
|
158
|
+
height: 85%;
|
159
|
+
margin: 7.5%;
|
160
|
+
}
|
161
|
+
</style>
|