@vcmap/ui 5.0.0-rc.6
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 +132 -0
- package/build/.eslintrc +6 -0
- package/build/build.js +165 -0
- package/build/buildCesium.js +19 -0
- package/build/buildHelpers.js +213 -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 +378 -0
- package/config/base.config.json +1073 -0
- package/config/berlin.config.json +529 -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-27507afe.js +1 -0
- package/dist/assets/cesium/Workers/AxisAlignedBoundingBox-7565c1e8.js +1 -0
- package/dist/assets/cesium/Workers/BoundingRectangle-9d707275.js +1 -0
- package/dist/assets/cesium/Workers/BoxGeometry-fb31d3b5.js +1 -0
- package/dist/assets/cesium/Workers/Color-56bb5728.js +1 -0
- package/dist/assets/cesium/Workers/ComponentDatatype-a15c9a19.js +1 -0
- package/dist/assets/cesium/Workers/CoplanarPolygonGeometryLibrary-72143c19.js +1 -0
- package/dist/assets/cesium/Workers/CorridorGeometryLibrary-7bae1712.js +1 -0
- package/dist/assets/cesium/Workers/CylinderGeometry-331891fe.js +1 -0
- package/dist/assets/cesium/Workers/CylinderGeometryLibrary-76cda53e.js +1 -0
- package/dist/assets/cesium/Workers/EllipseGeometry-5e3f67b6.js +1 -0
- package/dist/assets/cesium/Workers/EllipseGeometryLibrary-dbc15162.js +1 -0
- package/dist/assets/cesium/Workers/EllipseOutlineGeometry-21191fce.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidGeodesic-cc3bace8.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidGeometry-8bfa24a9.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidOutlineGeometry-48d9c023.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidRhumbLine-125a8b72.js +1 -0
- package/dist/assets/cesium/Workers/EllipsoidTangentPlane-678e34e4.js +1 -0
- package/dist/assets/cesium/Workers/EncodedCartesian3-96fdc0ef.js +1 -0
- package/dist/assets/cesium/Workers/FrustumGeometry-9ab86004.js +1 -0
- package/dist/assets/cesium/Workers/GeometryAttribute-3915ea0b.js +1 -0
- package/dist/assets/cesium/Workers/GeometryAttributes-32b29525.js +1 -0
- package/dist/assets/cesium/Workers/GeometryInstance-13e4ff38.js +1 -0
- package/dist/assets/cesium/Workers/GeometryOffsetAttribute-8c5e10db.js +1 -0
- package/dist/assets/cesium/Workers/GeometryPipeline-e0eb4567.js +1 -0
- package/dist/assets/cesium/Workers/IndexDatatype-f1dcdf35.js +1 -0
- package/dist/assets/cesium/Workers/IntersectionTests-ac2459de.js +1 -0
- package/dist/assets/cesium/Workers/Matrix2-37e55508.js +1 -0
- package/dist/assets/cesium/Workers/OrientedBoundingBox-e9c07538.js +1 -0
- package/dist/assets/cesium/Workers/Plane-6ee42cab.js +1 -0
- package/dist/assets/cesium/Workers/PolygonGeometryLibrary-b408c688.js +1 -0
- package/dist/assets/cesium/Workers/PolygonPipeline-7b8e4643.js +1 -0
- package/dist/assets/cesium/Workers/PolylinePipeline-6757400c.js +1 -0
- package/dist/assets/cesium/Workers/PolylineVolumeGeometryLibrary-eb972210.js +1 -0
- package/dist/assets/cesium/Workers/PrimitivePipeline-f244975e.js +1 -0
- package/dist/assets/cesium/Workers/RectangleGeometryLibrary-1bd6152a.js +1 -0
- package/dist/assets/cesium/Workers/RuntimeError-8952249c.js +1 -0
- package/dist/assets/cesium/Workers/TerrainEncoding-5a21a97f.js +1 -0
- package/dist/assets/cesium/Workers/Transforms-eb5c1a84.js +39 -0
- package/dist/assets/cesium/Workers/VertexFormat-a0b706b0.js +1 -0
- package/dist/assets/cesium/Workers/WallGeometryLibrary-a6b6a368.js +1 -0
- package/dist/assets/cesium/Workers/WebGLConstants-508b9636.js +1 -0
- package/dist/assets/cesium/Workers/WebMercatorProjection-2839e524.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.fba8ca.js +9118 -0
- package/dist/assets/cesium.js +1 -0
- package/dist/assets/core.d5ed0f.js +4 -0
- package/dist/assets/core.js +1 -0
- package/dist/assets/index.60dea538.css +1 -0
- package/dist/assets/index.6a83278e.js +1 -0
- package/dist/assets/ol.abea3a.js +318 -0
- package/dist/assets/ol.js +1 -0
- package/dist/assets/ui.ad1ec9.css +1 -0
- package/dist/assets/ui.ad1ec9.js +39 -0
- package/dist/assets/ui.js +1 -0
- package/dist/assets/uicomponents.161461.css +1 -0
- package/dist/assets/uicomponents.161461.js +31 -0
- package/dist/assets/uicomponents.js +1 -0
- package/dist/assets/vue-composition-api.7051d7.js +14 -0
- package/dist/assets/vue-composition-api.js +2 -0
- package/dist/assets/vue.9fd7f6.js +9 -0
- package/dist/assets/vue.js +1 -0
- package/dist/assets/vuetify.33dafc.css +5 -0
- package/dist/assets/vuetify.33dafc.js +48 -0
- package/dist/assets/vuetify.js +2 -0
- package/dist/index.html +26 -0
- package/index.js +18 -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/uicomponents.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 +130 -0
- package/plugins/@vcmap/pluginExample/config.json +6 -0
- package/plugins/@vcmap/pluginExample/index.js +193 -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/index.js +254 -0
- package/plugins/@vcmap/project-selector/package.json +15 -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 +40 -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 +56 -0
- package/plugins/example/mySuperComponent.vue +127 -0
- package/plugins/package.json +5 -0
- package/plugins/test/editor.vue +63 -0
- package/plugins/test/index.js +93 -0
- package/plugins/test/myCustomHeader.vue +19 -0
- package/plugins/test/toolbox-data.js +49 -0
- package/plugins/test/vcsContent.vue +23 -0
- package/plugins/test/windowManagerExample.vue +144 -0
- package/src/actions/actionHelper.js +221 -0
- package/src/actions/stateRefAction.js +50 -0
- package/src/actions/styleSelector.vue +90 -0
- package/src/application/Navbar.vue +89 -0
- package/src/application/VcsApp.vue +147 -0
- package/src/application/VcsMap.vue +57 -0
- package/src/application/empty-cmp.vue +6 -0
- package/src/assets/logo.svg +26 -0
- package/src/contentTree/LayerTree.vue +40 -0
- package/src/contentTree/contentTreeCollection.js +311 -0
- package/src/contentTree/contentTreeItem.js +457 -0
- package/src/contentTree/groupContentTreeItem.js +67 -0
- package/src/contentTree/layerContentTreeItem.js +233 -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/init.js +36 -0
- package/src/lang/de.js +60 -0
- package/src/lang/en.js +53 -0
- package/src/manager/buttonManager.js +203 -0
- package/src/manager/toolbox/ToolboxManager.vue +114 -0
- package/src/manager/toolbox/ToolboxMultiSelectButton.vue +96 -0
- package/src/manager/toolbox/ToolboxSingleSelectButton.vue +98 -0
- package/src/manager/toolbox/toolbox-manager.js +203 -0
- package/src/manager/window/WindowComponent.vue +133 -0
- package/src/manager/window/WindowComponentHeader.vue +46 -0
- package/src/manager/window/WindowManager.vue +109 -0
- package/src/manager/window/windowManager.js +437 -0
- package/src/navigation/mapNavCompass.vue +161 -0
- package/src/navigation/mapNavigation.vue +176 -0
- package/src/navigation/obliqueRotation.vue +48 -0
- package/src/navigation/orientationToolsButton.vue +52 -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 +10 -0
- package/src/styles/_theming.scss +15 -0
- package/src/styles/_typography.scss +42 -0
- package/src/styles/main.scss +9 -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/vcsUiApp.js +223 -0
- package/src/vuePlugins/i18n.js +20 -0
- package/src/vuePlugins/vuetify.js +54 -0
- package/start.js +3 -0
package/lib/ui.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from '@vcmap/ui';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from '@vcsuite/ui-components';
|
package/lib/vue.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'vue';
|
package/lib/vuetify.js
ADDED
package/map.config.json
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
{
|
2
|
+
"plugins": [
|
3
|
+
{
|
4
|
+
"name": "@vcmap/project-selector",
|
5
|
+
"entry": "plugins/@vcmap/project-selector/index.js",
|
6
|
+
"selected": "VC Map Base",
|
7
|
+
"selectedContexts": ["development"],
|
8
|
+
"open": true,
|
9
|
+
"projects": [
|
10
|
+
{
|
11
|
+
"name": "VC Map HOSTING",
|
12
|
+
"description": "AEROWEST DEMO (Standard Hosting Layout)",
|
13
|
+
"contexts": [
|
14
|
+
{ "configUrl": "config/aerowest.config.json" }
|
15
|
+
]
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"name": "VC Map Berlin",
|
19
|
+
"description": "Berlin DEMO (Standard Hosting Layout)",
|
20
|
+
"contexts": [
|
21
|
+
{ "configUrl": "config/base.config.json" },
|
22
|
+
{ "configUrl": "config/berlin.config.json" }
|
23
|
+
]
|
24
|
+
}
|
25
|
+
],
|
26
|
+
"contexts": [
|
27
|
+
{
|
28
|
+
"name": "development",
|
29
|
+
"description": "context containing examples, showcases and other stuff",
|
30
|
+
"configUrl": "config/dev.config.json"
|
31
|
+
}
|
32
|
+
]
|
33
|
+
}
|
34
|
+
]
|
35
|
+
}
|
package/package.json
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
{
|
2
|
+
"name": "@vcmap/ui",
|
3
|
+
"version": "5.0.0-rc.6",
|
4
|
+
"author": "Virtual City Systems",
|
5
|
+
"license": "MIT",
|
6
|
+
"scripts": {
|
7
|
+
"start": "vite",
|
8
|
+
"test": "vitest",
|
9
|
+
"coverage": "vitest run --coverage",
|
10
|
+
"coverage:gitlab": "vitest run --coverage --reporter junit --outputFile test-report.xml",
|
11
|
+
"build-preview": "node build/buildPreview.js",
|
12
|
+
"preview": "vite preview",
|
13
|
+
"build": "node build/build.js",
|
14
|
+
"lint": "eslint \"{src,tests,build}/**/*.{js,mjs,vue}\"",
|
15
|
+
"prepack": "node build/build.js",
|
16
|
+
"install-plugins": "cd plugins && npm i --omit peer --no-package-lock --force"
|
17
|
+
},
|
18
|
+
"repository": {
|
19
|
+
"type": "git",
|
20
|
+
"url": "https://github.com/virtualcitySYSTEMS/map-ui.git"
|
21
|
+
},
|
22
|
+
"files": [
|
23
|
+
"index.js",
|
24
|
+
"start.js",
|
25
|
+
"map.config.json",
|
26
|
+
"dist/",
|
27
|
+
"src/",
|
28
|
+
"plugins/",
|
29
|
+
"lib/",
|
30
|
+
"build/",
|
31
|
+
"config/",
|
32
|
+
"!plugins/node_modules/"
|
33
|
+
],
|
34
|
+
"dependencies": {
|
35
|
+
"@mdi/font": "^5.9.55",
|
36
|
+
"@vcsuite/check": "^1.1.2",
|
37
|
+
"@vcsuite/logger": "^1.0.1",
|
38
|
+
"@vcsuite/parsers": "^1.0.1",
|
39
|
+
"rxjs": "^6.6.6",
|
40
|
+
"uuid": "^8.3.2",
|
41
|
+
"vue-i18n": "^8.24.1"
|
42
|
+
},
|
43
|
+
"peerDependencies": {
|
44
|
+
"@vcmap/cesium": "~1.92.1",
|
45
|
+
"@vcmap/core": "^5.0.0-rc.10",
|
46
|
+
"@vcsuite/ui-components": "~0.1.13",
|
47
|
+
"@vue/composition-api": "~1.4.5",
|
48
|
+
"ol": "~6.13.0",
|
49
|
+
"vue": "~2.6.14",
|
50
|
+
"vuetify": "~2.6.3"
|
51
|
+
},
|
52
|
+
"devDependencies": {
|
53
|
+
"@vcmap/rollup-plugin-vcs-ol": "^1.0.1",
|
54
|
+
"@vcsuite/eslint-config": "^2.1.1",
|
55
|
+
"@vue/test-utils": "^1.3.0",
|
56
|
+
"c8": "^7.11.0",
|
57
|
+
"eslint": "^8.9.0",
|
58
|
+
"eslint-import-resolver-alias": "^1.1.2",
|
59
|
+
"jest-canvas-mock": "^2.3.1",
|
60
|
+
"jsdoc": "^3.6.7",
|
61
|
+
"jsdoc-plugin-typescript": "^2.0.6",
|
62
|
+
"jsdom": "^19.0.0",
|
63
|
+
"rollup-plugin-strip-pragma": "^1.0.0",
|
64
|
+
"sass": "1.32.13",
|
65
|
+
"typescript": "^4.2.4",
|
66
|
+
"unplugin-vue-components": "^0.17.15",
|
67
|
+
"vite": "^2.8.6",
|
68
|
+
"vite-plugin-vue2": "^1.9.3",
|
69
|
+
"vitest": "^0.6.1",
|
70
|
+
"vue-loader": "^16.6.0",
|
71
|
+
"vue-template-compiler": "^2.6.14"
|
72
|
+
},
|
73
|
+
"stylelint": {
|
74
|
+
"extends": "stylelint-config-standard",
|
75
|
+
"rules": {
|
76
|
+
"selector-pseudo-element-no-unknown": [
|
77
|
+
true,
|
78
|
+
{
|
79
|
+
"ignorePseudoElements": [
|
80
|
+
"v-deep"
|
81
|
+
]
|
82
|
+
}
|
83
|
+
]
|
84
|
+
}
|
85
|
+
},
|
86
|
+
"eslintConfig": {
|
87
|
+
"root": true,
|
88
|
+
"env": {
|
89
|
+
"node": true
|
90
|
+
},
|
91
|
+
"extends": [
|
92
|
+
"@vcsuite/eslint-config/vue"
|
93
|
+
],
|
94
|
+
"plugins": [
|
95
|
+
"jsdoc"
|
96
|
+
],
|
97
|
+
"settings": {
|
98
|
+
"import/resolver": {
|
99
|
+
"alias": {
|
100
|
+
"map": [
|
101
|
+
[
|
102
|
+
"@vcmap/ui",
|
103
|
+
"./index.js"
|
104
|
+
]
|
105
|
+
]
|
106
|
+
}
|
107
|
+
}
|
108
|
+
},
|
109
|
+
"rules": {
|
110
|
+
"jsdoc/check-tag-names": "off"
|
111
|
+
}
|
112
|
+
},
|
113
|
+
"browserslist": [
|
114
|
+
"last 2 Chrome versions",
|
115
|
+
"not Chrome < 97",
|
116
|
+
"last 2 Safari versions",
|
117
|
+
"not Safari < 15",
|
118
|
+
"last 2 iOS versions",
|
119
|
+
"not iOS < 15",
|
120
|
+
"last 2 Firefox versions",
|
121
|
+
"not Firefox < 91",
|
122
|
+
"last 2 Edge versions",
|
123
|
+
"not Edge < 97"
|
124
|
+
],
|
125
|
+
"engines": {
|
126
|
+
"node": "^16.14.0",
|
127
|
+
"npm": "^8.3.1"
|
128
|
+
},
|
129
|
+
"type": "module"
|
130
|
+
}
|
@@ -0,0 +1,193 @@
|
|
1
|
+
import { ref, reactive, watch } from '@vue/composition-api';
|
2
|
+
import { getLogger as getLoggerByName } from '@vcsuite/logger';
|
3
|
+
|
4
|
+
|
5
|
+
import { ButtonLocation, createToggleAction, WindowSlot } from '@vcmap/ui';
|
6
|
+
import packageJSON from './package.json';
|
7
|
+
import defaultConfig from './config.json';
|
8
|
+
import { conditionalTest, isValidEmail, isValidText } from './validation.js';
|
9
|
+
import pluginExampleComponent from './pluginExampleComponent.vue';
|
10
|
+
|
11
|
+
/**
|
12
|
+
* @returns {Logger}
|
13
|
+
*/
|
14
|
+
function getLogger() {
|
15
|
+
return getLoggerByName('@vcmap/pluginExample');
|
16
|
+
}
|
17
|
+
|
18
|
+
/**
|
19
|
+
* @typedef PluginExampleConfig
|
20
|
+
* @property {string} nonReactiveProp
|
21
|
+
* @property {string[]} selectOptions
|
22
|
+
* @property {string} initialTextInput
|
23
|
+
*/
|
24
|
+
|
25
|
+
/**
|
26
|
+
* @typedef PluginExampleState
|
27
|
+
* @property {string} selected
|
28
|
+
* @property {string} conditionalInput
|
29
|
+
* @property {string} initialTextInput
|
30
|
+
* @property {number} numberInput
|
31
|
+
* @property {boolean} checkboxInput
|
32
|
+
* @property {string} email
|
33
|
+
*/
|
34
|
+
|
35
|
+
/**
|
36
|
+
* @returns {PluginExampleConfig}
|
37
|
+
*/
|
38
|
+
export function getDefaultConfig() {
|
39
|
+
return defaultConfig;
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
*
|
44
|
+
* @param {PluginExampleConfig} config
|
45
|
+
* @returns {VcsPlugin}
|
46
|
+
*/
|
47
|
+
export default function (config) {
|
48
|
+
/**
|
49
|
+
* @type {PluginExampleConfig}
|
50
|
+
*/
|
51
|
+
const pluginConfig = {
|
52
|
+
// not reactive can be put without using reactive or ref
|
53
|
+
nonReactiveProp: 'nonReactive',
|
54
|
+
// no validation, ref to track config changes; use reactive on nested arrays or objects
|
55
|
+
selectOptions: ref([...config.selectOptions] || [...defaultConfig.selectOptions]),
|
56
|
+
// ref prop with getter setter --> validation
|
57
|
+
_initialTextInput: ref(defaultConfig.initialTextInput),
|
58
|
+
set initialTextInput(value) {
|
59
|
+
const validation = isValidText(value);
|
60
|
+
if (validation === true) {
|
61
|
+
this._initialTextInput.value = value;
|
62
|
+
} else {
|
63
|
+
getLogger().error('Error setting initialTextInput on plugin config:', validation);
|
64
|
+
}
|
65
|
+
},
|
66
|
+
get initialTextInput() { return this._initialTextInput; },
|
67
|
+
};
|
68
|
+
if (config.initialTextInput) {
|
69
|
+
pluginConfig.initialTextInput = config.initialTextInput;
|
70
|
+
}
|
71
|
+
|
72
|
+
/**
|
73
|
+
* @type {PluginExampleState}
|
74
|
+
*/
|
75
|
+
const pluginState = reactive({
|
76
|
+
selected: pluginConfig.selectOptions.value[0],
|
77
|
+
conditionalInput: '',
|
78
|
+
initialTextInput: pluginConfig.initialTextInput.value,
|
79
|
+
numberInput: 100.156,
|
80
|
+
checkboxInput: false,
|
81
|
+
email: '',
|
82
|
+
});
|
83
|
+
|
84
|
+
|
85
|
+
/**
|
86
|
+
* watcher to update state, when specific config properties are changed
|
87
|
+
* @see https://v3.vuejs.org/guide/reactivity-computed-watchers.html#watching-multiple-sources
|
88
|
+
*
|
89
|
+
* additional notes:
|
90
|
+
* - watching refs, changes are only triggered on resigning the value
|
91
|
+
* - if reactive objects or arrays shall be watched, you'll need to add option `{ deep: true }`
|
92
|
+
* @see https://v3.vuejs.org/guide/reactivity-computed-watchers.html#watching-reactive-objects
|
93
|
+
* in this case you may need a separate watcher, since watching multiple sources seems only to work for refs
|
94
|
+
* @returns {WatchStopHandle}
|
95
|
+
*/
|
96
|
+
const stopWatching = watch(
|
97
|
+
[pluginConfig.selectOptions, pluginConfig.initialTextInput],
|
98
|
+
([selectOptions, initialTextInput]) => {
|
99
|
+
if (!selectOptions.includes(pluginState.selected)) {
|
100
|
+
getLogger().error('invalid state', pluginState.selected);
|
101
|
+
pluginState.selected = selectOptions[0];
|
102
|
+
}
|
103
|
+
// XXX should initial states be overwritten on config change?
|
104
|
+
pluginState.initialTextInput = initialTextInput;
|
105
|
+
},
|
106
|
+
);
|
107
|
+
|
108
|
+
/**
|
109
|
+
* returns serializable state object
|
110
|
+
* @returns {PluginExampleState}
|
111
|
+
*/
|
112
|
+
function getSerializedState() {
|
113
|
+
// use destruction to get rid of reactive getter/ setter. be careful with nested props!
|
114
|
+
return { ...pluginState };
|
115
|
+
}
|
116
|
+
|
117
|
+
/**
|
118
|
+
* can be async
|
119
|
+
* @param {PluginExampleState} stateObject
|
120
|
+
*/
|
121
|
+
function setSerializedState(stateObject) {
|
122
|
+
/**
|
123
|
+
* string returns of the validation functions are treated as error
|
124
|
+
* @type {Object<string, true|string>}
|
125
|
+
*/
|
126
|
+
const validation = {
|
127
|
+
conditionalInput: conditionalTest(stateObject.conditionalInput, stateObject.selected),
|
128
|
+
initialTextInput: isValidText(stateObject.initialTextInput),
|
129
|
+
email: isValidEmail(stateObject.email),
|
130
|
+
};
|
131
|
+
Object.keys(validation).forEach((key) => {
|
132
|
+
if (validation[key] !== true) {
|
133
|
+
// XXX warning or error???
|
134
|
+
getLogger().warning(`Validation failed for state property "${key}":`, validation[key]);
|
135
|
+
// XXX should invalid props be assigned or not?
|
136
|
+
delete stateObject[key];
|
137
|
+
}
|
138
|
+
});
|
139
|
+
Object.assign(pluginState, stateObject);
|
140
|
+
}
|
141
|
+
|
142
|
+
return {
|
143
|
+
get name() { return packageJSON.name; },
|
144
|
+
get version() { return packageJSON.version; },
|
145
|
+
get vcMapVersion() { return packageJSON.vcMapVersion; },
|
146
|
+
config: pluginConfig,
|
147
|
+
state: pluginState,
|
148
|
+
getSerializedState,
|
149
|
+
setSerializedState,
|
150
|
+
onVcsAppMounted(app) {
|
151
|
+
const { action, destroy } = createToggleAction(
|
152
|
+
{
|
153
|
+
name: 'Plugin Example',
|
154
|
+
icon: '$vcsHealthCareIndustries',
|
155
|
+
title: 'Example Plugin Map Button Tooltip',
|
156
|
+
},
|
157
|
+
{
|
158
|
+
id: 'pluginExample',
|
159
|
+
component: pluginExampleComponent,
|
160
|
+
slot: WindowSlot.STATIC,
|
161
|
+
state: {
|
162
|
+
headerTitle: 'Plugin Example',
|
163
|
+
headerIcon: '$vcsCircle',
|
164
|
+
},
|
165
|
+
},
|
166
|
+
app.windowManager,
|
167
|
+
packageJSON.name,
|
168
|
+
);
|
169
|
+
app.navbarManager.add({
|
170
|
+
id: 'pluginExample',
|
171
|
+
location: ButtonLocation.TOOL,
|
172
|
+
action,
|
173
|
+
}, packageJSON.name);
|
174
|
+
this._destroyAction = destroy;
|
175
|
+
},
|
176
|
+
toJSON: async () => {
|
177
|
+
const configJson = {};
|
178
|
+
configJson.selectOptions = pluginConfig.selectOptions;
|
179
|
+
if (pluginConfig.initialTextInput !== defaultConfig.initialTextInput) {
|
180
|
+
configJson.initialTextInput = defaultConfig.initialTextInput;
|
181
|
+
}
|
182
|
+
return configJson;
|
183
|
+
},
|
184
|
+
destroy() {
|
185
|
+
// destroy watcher
|
186
|
+
stopWatching();
|
187
|
+
if (this._destroyAction) {
|
188
|
+
this._destroyAction();
|
189
|
+
this._destroyAction = null;
|
190
|
+
}
|
191
|
+
},
|
192
|
+
};
|
193
|
+
}
|