deeptwins-engine-3d 0.0.42
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 +21 -0
- package/README.md +39 -0
- package/dist/assets/Build/DeepTwins/Image/line.png +0 -0
- package/dist/assets/Build/DeepTwins/Image/qingtian/backav9.jpg +0 -0
- package/dist/assets/Build/DeepTwins/Image/qingtian/bottomav9.jpg +0 -0
- package/dist/assets/Build/DeepTwins/Image/qingtian/frontav9.jpg +0 -0
- package/dist/assets/Build/DeepTwins/Image/qingtian/leftav9.jpg +0 -0
- package/dist/assets/Build/DeepTwins/Image/qingtian/rightav9.jpg +0 -0
- package/dist/assets/Build/DeepTwins/Image/qingtian/topav9.jpg +0 -0
- package/dist/assets/Build/DeepTwins/Image/video-mask.png +0 -0
- package/dist/assets/Build/DeepTwins/Image/wall.png +0 -0
- package/dist/assets/Build/DeepTwins/Image/wanxia/SunSetBack.png +0 -0
- package/dist/assets/Build/DeepTwins/Image/wanxia/SunSetDown.png +0 -0
- package/dist/assets/Build/DeepTwins/Image/wanxia/SunSetFront.png +0 -0
- package/dist/assets/Build/DeepTwins/Image/wanxia/SunSetLeft.png +0 -0
- package/dist/assets/Build/DeepTwins/Image/wanxia/SunSetRight.png +0 -0
- package/dist/assets/Build/DeepTwins/Image/wanxia/SunSetUp.png +0 -0
- package/dist/assets/Build/DeepTwins/YunJing/yunjing-for-cesium.js +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/dist/assets/Build/Map3d/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/dist/assets/Build/Map3d/Assets/Images/bing_maps_credit.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Images/cesium_credit.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Images/google_earth_credit.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Images/ion-credit.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/dist/assets/Build/Map3d/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/airfield.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/airport.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/america-football.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/art-gallery.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/bakery.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/bank.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/bar.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/baseball.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/basketball.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/beer.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/bicycle.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/building.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/bus.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/cafe.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/camera.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/campsite.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/car.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/cemetery.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/cesium.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/chemist.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/cinema.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/circle-stroked.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/circle.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/city.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/clothing-store.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/college.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/commercial.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/cricket.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/cross.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/dam.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/danger.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/disability.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/dog-park.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/embassy.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/entrance.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/farm.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/fast-food.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/ferry.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/fire-station.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/fuel.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/garden.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/gift.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/golf.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/grocery.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/hairdresser.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/harbor.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/heart.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/heliport.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/hospital.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/ice-cream.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/industrial.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/land-use.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/laundry.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/library.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/lighthouse.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/lodging.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/logging.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/london-underground.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/marker-stroked.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/marker.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/minefield.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/mobilephone.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/monument.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/museum.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/music.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/oil-well.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/park.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/park2.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/parking-garage.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/parking.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/pharmacy.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/pitch.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/place-of-worship.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/playground.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/police.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/polling-place.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/post.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/prison.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/rail-above.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/rail-light.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/rail-metro.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/rail-underground.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/rail.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/religious-christian.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/religious-jewish.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/religious-muslim.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/restaurant.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/roadblock.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/rocket.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/school.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/scooter.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/shop.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/skiing.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/soccer.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/square-stroked.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/square.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/star-stroked.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/star.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/suitcase.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/swimming.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/telephone.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/tennis.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/theatre.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/toilets.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/town-hall.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/town.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/triangle.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/village.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/warehouse.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/waste-basket.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/water.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/wetland.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/maki/zoo.png +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/moonSmall.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/pin.svg +1 -0
- package/dist/assets/Build/Map3d/Assets/Textures/waterNormals.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/dist/assets/Build/Map3d/Assets/approximateTerrainHeights.json +1 -0
- package/dist/assets/Build/Map3d/Cesium.js +16071 -0
- package/dist/assets/Build/Map3d/ThirdParty/Workers/package.json +1 -0
- package/dist/assets/Build/Map3d/ThirdParty/Workers/pako_deflate.min.js +1 -0
- package/dist/assets/Build/Map3d/ThirdParty/Workers/pako_inflate.min.js +1 -0
- package/dist/assets/Build/Map3d/ThirdParty/Workers/z-worker-pako.js +1 -0
- package/dist/assets/Build/Map3d/ThirdParty/basis_transcoder.wasm +0 -0
- package/dist/assets/Build/Map3d/ThirdParty/draco_decoder.wasm +0 -0
- package/dist/assets/Build/Map3d/ThirdParty/google-earth-dbroot-parser.js +1 -0
- package/dist/assets/Build/Map3d/Widgets/Animation/Animation.css +127 -0
- package/dist/assets/Build/Map3d/Widgets/Animation/lighter.css +70 -0
- package/dist/assets/Build/Map3d/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -0
- package/dist/assets/Build/Map3d/Widgets/BaseLayerPicker/lighter.css +22 -0
- package/dist/assets/Build/Map3d/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -0
- package/dist/assets/Build/Map3d/Widgets/CesiumInspector/CesiumInspector.css +113 -0
- package/dist/assets/Build/Map3d/Widgets/CesiumWidget/CesiumWidget.css +119 -0
- package/dist/assets/Build/Map3d/Widgets/CesiumWidget/lighter.css +14 -0
- package/dist/assets/Build/Map3d/Widgets/FullscreenButton/FullscreenButton.css +8 -0
- package/dist/assets/Build/Map3d/Widgets/Geocoder/Geocoder.css +70 -0
- package/dist/assets/Build/Map3d/Widgets/Geocoder/lighter.css +17 -0
- package/dist/assets/Build/Map3d/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
- package/dist/assets/Build/Map3d/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
- package/dist/assets/Build/Map3d/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
- package/dist/assets/Build/Map3d/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
- package/dist/assets/Build/Map3d/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
- package/dist/assets/Build/Map3d/Widgets/Images/NavigationHelp/Touch.svg +120 -0
- package/dist/assets/Build/Map3d/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
- package/dist/assets/Build/Map3d/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
- package/dist/assets/Build/Map3d/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
- package/dist/assets/Build/Map3d/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
- package/dist/assets/Build/Map3d/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/TimelineIcons.png +0 -0
- package/dist/assets/Build/Map3d/Widgets/Images/info-loading.gif +0 -0
- package/dist/assets/Build/Map3d/Widgets/InfoBox/InfoBox.css +92 -0
- package/dist/assets/Build/Map3d/Widgets/InfoBox/InfoBoxDescription.css +178 -0
- package/dist/assets/Build/Map3d/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -0
- package/dist/assets/Build/Map3d/Widgets/NavigationHelpButton/lighter.css +38 -0
- package/dist/assets/Build/Map3d/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
- package/dist/assets/Build/Map3d/Widgets/ProjectionPicker/ProjectionPicker.css +38 -0
- package/dist/assets/Build/Map3d/Widgets/SceneModePicker/SceneModePicker.css +56 -0
- package/dist/assets/Build/Map3d/Widgets/SelectionIndicator/SelectionIndicator.css +20 -0
- package/dist/assets/Build/Map3d/Widgets/Timeline/Timeline.css +103 -0
- package/dist/assets/Build/Map3d/Widgets/Timeline/lighter.css +23 -0
- package/dist/assets/Build/Map3d/Widgets/VRButton/VRButton.css +8 -0
- package/dist/assets/Build/Map3d/Widgets/Viewer/Viewer.css +107 -0
- package/dist/assets/Build/Map3d/Widgets/VoxelInspector/VoxelInspector.css +16 -0
- package/dist/assets/Build/Map3d/Widgets/lighter.css +237 -0
- package/dist/assets/Build/Map3d/Widgets/lighterShared.css +46 -0
- package/dist/assets/Build/Map3d/Widgets/shared.css +103 -0
- package/dist/assets/Build/Map3d/Widgets/widgets.css +1342 -0
- package/dist/assets/Build/Map3d/Workers/chunk-26PPBGHW.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-2H32TJK3.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-3DLZAS7T.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-4RP6ACF6.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-55B3WQ6I.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-6CSMIMD7.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-A4R6HP5H.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-AUO2K2B5.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-BAH467HD.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-BC3RBQRQ.js +28 -0
- package/dist/assets/Build/Map3d/Workers/chunk-CZ6DDD6J.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-D32DZSEC.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-DG7B7W65.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-DLCTHPIV.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-E25VRLIZ.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-E2NX4UJ2.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-EP544XEE.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-EQTQGYI2.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-FMJWH3RL.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-FSU6RZ6S.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-FZEJ65E6.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-GKS4EDRQ.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-GMF7KJHC.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-HZQ2LRMY.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-I2ICH2LD.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-I4G5DYCC.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-IIT3SHXK.js +28 -0
- package/dist/assets/Build/Map3d/Workers/chunk-JBPQP6LH.js +66 -0
- package/dist/assets/Build/Map3d/Workers/chunk-JPOF5MJM.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-K4QHJFYW.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-MDIGQ5JT.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-MNEOPOLK.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-NLPIV6OK.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-NOHRD3OR.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-NYFH7JC3.js +27 -0
- package/dist/assets/Build/Map3d/Workers/chunk-NZWLV2A4.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-OWZATOOT.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-R6A52HT4.js +27 -0
- package/dist/assets/Build/Map3d/Workers/chunk-R6YRFJ3K.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-RCLU4DVL.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-REP6L7BH.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-SOSKHJVT.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-SPFUTSGC.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-TRWH7IZP.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-TTK4OD75.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-VSCNOKDU.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-WDSHVSF7.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-WV3AQKZG.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-XDITHZHZ.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-XLESIVYV.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-YGC52UMX.js +26 -0
- package/dist/assets/Build/Map3d/Workers/chunk-ZRPUDUIP.js +26 -0
- package/dist/assets/Build/Map3d/Workers/combineGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createBoxGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createBoxOutlineGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createCircleGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createCircleOutlineGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createCoplanarPolygonGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createCoplanarPolygonOutlineGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createCorridorGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createCorridorOutlineGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createCylinderGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createCylinderOutlineGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createEllipseGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createEllipseOutlineGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createEllipsoidGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createEllipsoidOutlineGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createFrustumGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createFrustumOutlineGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createGroundPolylineGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createPlaneGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createPlaneOutlineGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createPolygonGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createPolygonOutlineGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createPolylineGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createPolylineVolumeGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createPolylineVolumeOutlineGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createRectangleGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createRectangleOutlineGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createSimplePolylineGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createSphereGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createSphereOutlineGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createTaskProcessorWorker.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createVectorTileClampedPolylines.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createVectorTileGeometries.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createVectorTilePoints.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createVectorTilePolygons.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createVectorTilePolylines.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createVerticesFromHeightmap.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createVerticesFromQuantizedTerrainMesh.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createWallGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/createWallOutlineGeometry.js +26 -0
- package/dist/assets/Build/Map3d/Workers/decodeDraco.js +26 -0
- package/dist/assets/Build/Map3d/Workers/decodeGoogleEarthEnterprisePacket.js +26 -0
- package/dist/assets/Build/Map3d/Workers/decodeI3S.js +26 -0
- package/dist/assets/Build/Map3d/Workers/transcodeKTX2.js +56 -0
- package/dist/assets/Build/Map3d/Workers/transferTypedArrayTest.js +26 -0
- package/dist/assets/Build/Map3d/Workers/upsampleQuantizedTerrainMesh.js +26 -0
- package/dist/assets/Build/Map3d/index.cjs +16071 -0
- package/dist/assets/Build/Map3d/index.js +16071 -0
- package/dist/cameraControl/ModelRoamHistory.d.ts +28 -0
- package/dist/cameraControl/ModelRoamHistory.js +290 -0
- package/dist/cameraControl/ModelRoamRealTime.d.ts +136 -0
- package/dist/cameraControl/ModelRoamRealTime.js +668 -0
- package/dist/cameraControl/ModelRoamRunTime.d.ts +32 -0
- package/dist/cameraControl/ModelRoamRunTime.js +244 -0
- package/dist/cameraControl/Roam.d.ts +19 -0
- package/dist/cameraControl/Roam.js +414 -0
- package/dist/cameraControl/Rotate.d.ts +11 -0
- package/dist/cameraControl/Rotate.js +110 -0
- package/dist/cameraControl/RotateInPlace.d.ts +11 -0
- package/dist/cameraControl/RotateInPlace.js +96 -0
- package/dist/constant.d.ts +409 -0
- package/dist/constant.js +805 -0
- package/dist/deepTwins/index.d.ts +17 -0
- package/dist/deepTwins/index.js +118 -0
- package/dist/drawer/base.d.ts +51 -0
- package/dist/drawer/base.js +179 -0
- package/dist/drawer/index.d.ts +62 -0
- package/dist/drawer/index.js +350 -0
- package/dist/drawer/painter.d.ts +41 -0
- package/dist/drawer/painter.js +115 -0
- package/dist/drawer/shape/Ellipse.d.ts +10 -0
- package/dist/drawer/shape/Ellipse.js +62 -0
- package/dist/drawer/shape/Point.d.ts +12 -0
- package/dist/drawer/shape/Point.js +59 -0
- package/dist/drawer/shape/Polygon.d.ts +10 -0
- package/dist/drawer/shape/Polygon.js +87 -0
- package/dist/drawer/shape/Polyline.d.ts +11 -0
- package/dist/drawer/shape/Polyline.js +54 -0
- package/dist/drawer/shape/Rectangle.d.ts +10 -0
- package/dist/drawer/shape/Rectangle.js +85 -0
- package/dist/drawer/typings.d.ts +106 -0
- package/dist/drawer/typings.js +1 -0
- package/dist/global.less +3 -0
- package/dist/graphicLayer/BaseEntity.d.ts +12 -0
- package/dist/graphicLayer/BaseEntity.js +45 -0
- package/dist/graphicLayer/BaseLayer.d.ts +29 -0
- package/dist/graphicLayer/BaseLayer.js +340 -0
- package/dist/graphicLayer/BasePointPrimitive.d.ts +10 -0
- package/dist/graphicLayer/BasePointPrimitive.js +41 -0
- package/dist/graphicLayer/BasePrimitive.d.ts +12 -0
- package/dist/graphicLayer/BasePrimitive.js +50 -0
- package/dist/graphicLayer/BasePrimitiveInstance.d.ts +10 -0
- package/dist/graphicLayer/BasePrimitiveInstance.js +37 -0
- package/dist/graphicLayer/BaseSource.d.ts +33 -0
- package/dist/graphicLayer/BaseSource.js +599 -0
- package/dist/graphicLayer/BillboardEntity.d.ts +7 -0
- package/dist/graphicLayer/BillboardEntity.js +109 -0
- package/dist/graphicLayer/BillboardPrimitive.d.ts +7 -0
- package/dist/graphicLayer/BillboardPrimitive.js +95 -0
- package/dist/graphicLayer/BoxEntity.d.ts +7 -0
- package/dist/graphicLayer/BoxEntity.js +102 -0
- package/dist/graphicLayer/BoxPrimitive.d.ts +5 -0
- package/dist/graphicLayer/BoxPrimitive.js +43 -0
- package/dist/graphicLayer/BoxPrimitiveInstance.d.ts +7 -0
- package/dist/graphicLayer/BoxPrimitiveInstance.js +97 -0
- package/dist/graphicLayer/EllipseEntity.d.ts +7 -0
- package/dist/graphicLayer/EllipseEntity.js +113 -0
- package/dist/graphicLayer/EllipsePrimitive.d.ts +5 -0
- package/dist/graphicLayer/EllipsePrimitive.js +42 -0
- package/dist/graphicLayer/EllipsePrimitiveInstance.d.ts +7 -0
- package/dist/graphicLayer/EllipsePrimitiveInstance.js +105 -0
- package/dist/graphicLayer/EllipsoidEntity.d.ts +7 -0
- package/dist/graphicLayer/EllipsoidEntity.js +121 -0
- package/dist/graphicLayer/EllipsoidPrimitive.d.ts +5 -0
- package/dist/graphicLayer/EllipsoidPrimitive.js +43 -0
- package/dist/graphicLayer/EllipsoidPrimitiveInstance.d.ts +7 -0
- package/dist/graphicLayer/EllipsoidPrimitiveInstance.js +117 -0
- package/dist/graphicLayer/GraphicLayerCollection.d.ts +31 -0
- package/dist/graphicLayer/GraphicLayerCollection.js +387 -0
- package/dist/graphicLayer/HtmlEntity.d.ts +19 -0
- package/dist/graphicLayer/HtmlEntity.js +179 -0
- package/dist/graphicLayer/LabelEntity.d.ts +7 -0
- package/dist/graphicLayer/LabelEntity.js +113 -0
- package/dist/graphicLayer/LabelPrimitive.d.ts +7 -0
- package/dist/graphicLayer/LabelPrimitive.js +104 -0
- package/dist/graphicLayer/ModelEntity.d.ts +7 -0
- package/dist/graphicLayer/ModelEntity.js +125 -0
- package/dist/graphicLayer/ModelPrimitive.d.ts +5 -0
- package/dist/graphicLayer/ModelPrimitive.js +46 -0
- package/dist/graphicLayer/ModelPrimitiveInstance.d.ts +7 -0
- package/dist/graphicLayer/ModelPrimitiveInstance.js +96 -0
- package/dist/graphicLayer/PointEntity.d.ts +7 -0
- package/dist/graphicLayer/PointEntity.js +97 -0
- package/dist/graphicLayer/PointPrimitive.d.ts +7 -0
- package/dist/graphicLayer/PointPrimitive.js +83 -0
- package/dist/graphicLayer/PolygonEntity.d.ts +7 -0
- package/dist/graphicLayer/PolygonEntity.js +106 -0
- package/dist/graphicLayer/PolygonPrimitive.d.ts +5 -0
- package/dist/graphicLayer/PolygonPrimitive.js +42 -0
- package/dist/graphicLayer/PolygonPrimitiveInstance.d.ts +7 -0
- package/dist/graphicLayer/PolygonPrimitiveInstance.js +103 -0
- package/dist/graphicLayer/PolylineEntity.d.ts +7 -0
- package/dist/graphicLayer/PolylineEntity.js +99 -0
- package/dist/graphicLayer/PolylinePrimitive.d.ts +5 -0
- package/dist/graphicLayer/PolylinePrimitive.js +48 -0
- package/dist/graphicLayer/PolylinePrimitiveInstance.d.ts +7 -0
- package/dist/graphicLayer/PolylinePrimitiveInstance.js +93 -0
- package/dist/graphicLayer/PolylineVolumeEntity.d.ts +7 -0
- package/dist/graphicLayer/PolylineVolumeEntity.js +107 -0
- package/dist/graphicLayer/PolylineVolumePrimitive.d.ts +5 -0
- package/dist/graphicLayer/PolylineVolumePrimitive.js +42 -0
- package/dist/graphicLayer/PolylineVolumePrimitiveInstance.d.ts +7 -0
- package/dist/graphicLayer/PolylineVolumePrimitiveInstance.js +101 -0
- package/dist/graphicLayer/WallEntity.d.ts +7 -0
- package/dist/graphicLayer/WallEntity.js +99 -0
- package/dist/graphicLayer/WallPrimitive.d.ts +5 -0
- package/dist/graphicLayer/WallPrimitive.js +42 -0
- package/dist/graphicLayer/WallPrimitiveInstance.d.ts +7 -0
- package/dist/graphicLayer/WallPrimitiveInstance.js +95 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.js +108 -0
- package/dist/map/Event.d.ts +12 -0
- package/dist/map/Event.js +284 -0
- package/dist/map/GroundSkyBox.d.ts +20 -0
- package/dist/map/GroundSkyBox.js +166 -0
- package/dist/map/Map.d.ts +66 -0
- package/dist/map/Map.js +658 -0
- package/dist/map/Property.d.ts +6 -0
- package/dist/map/Property.js +35 -0
- package/dist/material/CircleWaveMaterialProperty.d.ts +17 -0
- package/dist/material/CircleWaveMaterialProperty.js +108 -0
- package/dist/material/DynamicWallMaterialProperty.d.ts +45 -0
- package/dist/material/DynamicWallMaterialProperty.js +162 -0
- package/dist/material/ImageMaterial.d.ts +4 -0
- package/dist/material/ImageMaterial.js +35 -0
- package/dist/material/ImageMaterialProperty.d.ts +4 -0
- package/dist/material/ImageMaterialProperty.js +34 -0
- package/dist/material/PolylineTrailLinkMaterialProperty.d.ts +19 -0
- package/dist/material/PolylineTrailLinkMaterialProperty.js +102 -0
- package/dist/material/WeatherEffects.d.ts +16 -0
- package/dist/material/WeatherEffects.js +159 -0
- package/dist/measure/AreaMeasure.d.ts +19 -0
- package/dist/measure/AreaMeasure.js +97 -0
- package/dist/measure/AreaSurfaceMeasure.d.ts +30 -0
- package/dist/measure/AreaSurfaceMeasure.js +151 -0
- package/dist/measure/DistanceMeasure.d.ts +19 -0
- package/dist/measure/DistanceMeasure.js +91 -0
- package/dist/measure/DistanceSurfaceMeasure.d.ts +37 -0
- package/dist/measure/DistanceSurfaceMeasure.js +122 -0
- package/dist/measure/Measure.d.ts +111 -0
- package/dist/measure/Measure.js +177 -0
- package/dist/measure/index.d.ts +5 -0
- package/dist/measure/index.js +5 -0
- package/dist/measure/utils.d.ts +23 -0
- package/dist/measure/utils.js +58 -0
- package/dist/property/PositionProperty.d.ts +8 -0
- package/dist/property/PositionProperty.js +56 -0
- package/dist/tileLayer/ArcGisLayer.d.ts +5 -0
- package/dist/tileLayer/ArcGisLayer.js +41 -0
- package/dist/tileLayer/ImageryLayer.d.ts +6 -0
- package/dist/tileLayer/ImageryLayer.js +44 -0
- package/dist/tileLayer/RasterLayer.d.ts +4 -0
- package/dist/tileLayer/RasterLayer.js +23 -0
- package/dist/tileLayer/WmsLayer.d.ts +6 -0
- package/dist/tileLayer/WmsLayer.js +26 -0
- package/dist/tileLayer/WmtsLayer.d.ts +4 -0
- package/dist/tileLayer/WmtsLayer.js +23 -0
- package/dist/tool/PrimitiveCluster.d.ts +37 -0
- package/dist/tool/PrimitiveCluster.js +705 -0
- package/dist/tool/TimerInterval.d.ts +10 -0
- package/dist/tool/TimerInterval.js +58 -0
- package/dist/tool/cesiumExtends/Subscriber/index.d.ts +66 -0
- package/dist/tool/cesiumExtends/Subscriber/index.js +246 -0
- package/dist/tool/common.d.ts +36 -0
- package/dist/tool/common.js +388 -0
- package/dist/tool/heatmap.js +631 -0
- package/dist/tool/utils.d.ts +30 -0
- package/dist/tool/utils.js +235 -0
- package/dist/toolTip/index.d.ts +13 -0
- package/dist/toolTip/index.js +73 -0
- package/dist/toolTip/index.less +24 -0
- package/dist/videoFusion/BaseVideo.d.ts +23 -0
- package/dist/videoFusion/BaseVideo.js +255 -0
- package/dist/videoFusion/VideoProject.d.ts +12 -0
- package/dist/videoFusion/VideoProject.js +230 -0
- package/dist/videoFusion/VideoTexture.d.ts +5 -0
- package/dist/videoFusion/VideoTexture.js +70 -0
- package/dist/visualization/Airspace.d.ts +11 -0
- package/dist/visualization/Airspace.js +87 -0
- package/dist/visualization/BaseFrustum.d.ts +12 -0
- package/dist/visualization/BaseFrustum.js +82 -0
- package/dist/visualization/BaseHeatmap.d.ts +23 -0
- package/dist/visualization/BaseHeatmap.js +214 -0
- package/dist/visualization/Frustum.d.ts +5 -0
- package/dist/visualization/Frustum.js +132 -0
- package/dist/visualization/FrustumWithCamera.d.ts +5 -0
- package/dist/visualization/FrustumWithCamera.js +131 -0
- package/dist/visualization/Heatmap2d.d.ts +7 -0
- package/dist/visualization/Heatmap2d.js +79 -0
- package/dist/visualization/Heatmap3d.d.ts +8 -0
- package/dist/visualization/Heatmap3d.js +127 -0
- package/dist/visualization/PointCluster.d.ts +17 -0
- package/dist/visualization/PointCluster.js +181 -0
- package/package.json +103 -0
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
9
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
|
+
import { Color, defaultValue, JulianDate } from 'deeptwins-cesium';
|
|
11
|
+
import Subscriber from "../tool/cesiumExtends/Subscriber";
|
|
12
|
+
import ToolTip from "../toolTip/index";
|
|
13
|
+
import Painter from "./painter";
|
|
14
|
+
import Ellipse from "./shape/Ellipse";
|
|
15
|
+
import Point from "./shape/Point";
|
|
16
|
+
import Polygon from "./shape/Polygon";
|
|
17
|
+
import Polyline from "./shape/Polyline";
|
|
18
|
+
import Rectangle from "./shape/Rectangle";
|
|
19
|
+
import { cartesian3ToLngLatAlt } from "../tool/utils";
|
|
20
|
+
export * from "./typings";
|
|
21
|
+
export var defaultOptions = {
|
|
22
|
+
terrain: false,
|
|
23
|
+
model: false,
|
|
24
|
+
operateType: {
|
|
25
|
+
START: 'LEFT_CLICK',
|
|
26
|
+
MOVING: 'MOUSE_MOVE',
|
|
27
|
+
CANCEL: 'RIGHT_CLICK',
|
|
28
|
+
END: 'LEFT_DOUBLE_CLICK'
|
|
29
|
+
},
|
|
30
|
+
/**
|
|
31
|
+
* 图形勾画时的Entity样式
|
|
32
|
+
*/
|
|
33
|
+
dynamicGraphicsOptions: {
|
|
34
|
+
polyline: {
|
|
35
|
+
clampToGround: true,
|
|
36
|
+
width: 2,
|
|
37
|
+
material: Color.BLUE
|
|
38
|
+
},
|
|
39
|
+
polygon: {
|
|
40
|
+
outlineColor: Color.BLUE,
|
|
41
|
+
outlineWidth: 2,
|
|
42
|
+
material: Color.BLUE.withAlpha(0.5)
|
|
43
|
+
},
|
|
44
|
+
point: {
|
|
45
|
+
// HeightReference: HeightReference.CLAMP_TO_GROUND,
|
|
46
|
+
color: Color.BLUE,
|
|
47
|
+
pixelSize: 8,
|
|
48
|
+
outlineColor: Color.WHITE,
|
|
49
|
+
outlineWidth: 1
|
|
50
|
+
},
|
|
51
|
+
rectangle: {
|
|
52
|
+
material: Color.BLUE.withAlpha(0.5)
|
|
53
|
+
},
|
|
54
|
+
ellipse: {
|
|
55
|
+
material: Color.BLUE.withAlpha(0.5),
|
|
56
|
+
outline: true
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
sameStyle: true,
|
|
60
|
+
tips: {
|
|
61
|
+
init: '点击绘制',
|
|
62
|
+
start: '左键添加点,右键移除点,双击结束绘制',
|
|
63
|
+
end: ''
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
var Drawer = /*#__PURE__*/function () {
|
|
67
|
+
function Drawer(viewer, options) {
|
|
68
|
+
var _options$sameStyle;
|
|
69
|
+
_classCallCheck(this, Drawer);
|
|
70
|
+
_defineProperty(this, "_viewer", void 0);
|
|
71
|
+
_defineProperty(this, "_type", void 0);
|
|
72
|
+
_defineProperty(this, "_terrain", void 0);
|
|
73
|
+
_defineProperty(this, "_model", void 0);
|
|
74
|
+
_defineProperty(this, "_subscriber", void 0);
|
|
75
|
+
_defineProperty(this, "_status", void 0);
|
|
76
|
+
_defineProperty(this, "_painter", void 0);
|
|
77
|
+
_defineProperty(this, "_events", []);
|
|
78
|
+
_defineProperty(this, "_typeClass", void 0);
|
|
79
|
+
_defineProperty(this, "_option", void 0);
|
|
80
|
+
_defineProperty(this, "$Instance", void 0);
|
|
81
|
+
_defineProperty(this, "$AddedInstance", []);
|
|
82
|
+
_defineProperty(this, "_dropPoint", void 0);
|
|
83
|
+
_defineProperty(this, "_moving", void 0);
|
|
84
|
+
_defineProperty(this, "_cancel", void 0);
|
|
85
|
+
_defineProperty(this, "_playOff", void 0);
|
|
86
|
+
/**
|
|
87
|
+
* @desc 操作方式
|
|
88
|
+
*/
|
|
89
|
+
_defineProperty(this, "_operateType", void 0);
|
|
90
|
+
_defineProperty(this, "_oneInstance", void 0);
|
|
91
|
+
_defineProperty(this, "_once", void 0);
|
|
92
|
+
/**
|
|
93
|
+
* @desc 动作回调
|
|
94
|
+
*/
|
|
95
|
+
_defineProperty(this, "_action", void 0);
|
|
96
|
+
_defineProperty(this, "_sameStyle", void 0);
|
|
97
|
+
_defineProperty(this, "mouseTooltip", void 0);
|
|
98
|
+
_defineProperty(this, "_tips", void 0);
|
|
99
|
+
this._option = defaultValue(options, {});
|
|
100
|
+
if (!viewer) throw new Error('请输入Viewer对象!');
|
|
101
|
+
|
|
102
|
+
// 设置操作方式
|
|
103
|
+
this._operateType = _objectSpread(_objectSpread({}, defaultOptions.operateType), options === null || options === void 0 ? void 0 : options.operateType);
|
|
104
|
+
this._viewer = viewer;
|
|
105
|
+
this._terrain = defaultValue(this._option.terrain, defaultOptions.terrain);
|
|
106
|
+
this._model = defaultValue(this._option.model, defaultOptions.model);
|
|
107
|
+
this._action = this._option.action;
|
|
108
|
+
this._sameStyle = (_options$sameStyle = options === null || options === void 0 ? void 0 : options.sameStyle) !== null && _options$sameStyle !== void 0 ? _options$sameStyle : true;
|
|
109
|
+
this._tips = _objectSpread(_objectSpread({}, defaultOptions.tips), options === null || options === void 0 ? void 0 : options.tips);
|
|
110
|
+
if (this._terrain && !this._viewer.scene.pickPositionSupported) {
|
|
111
|
+
console.warn('浏览器不支持 pickPosition属性,无法在有地形的情况下正确选点');
|
|
112
|
+
this._terrain = false;
|
|
113
|
+
}
|
|
114
|
+
this._subscriber = new Subscriber(this._viewer);
|
|
115
|
+
this.mouseTooltip = new ToolTip(viewer);
|
|
116
|
+
this.mouseTooltip.show(false);
|
|
117
|
+
this._status = 'INIT';
|
|
118
|
+
// 为了防止产生侵入性bug,请在使用前确认相关事件是否可用,不再默认移除原生事件
|
|
119
|
+
// Object.keys(this._option.keyboard).forEach(key =>
|
|
120
|
+
// Subscriber.removeNative(this._viewer, this._option.keyboard[key])
|
|
121
|
+
// )
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @param finalOptions
|
|
126
|
+
* @param dynamicOptions
|
|
127
|
+
*/
|
|
128
|
+
_createClass(Drawer, [{
|
|
129
|
+
key: "status",
|
|
130
|
+
get: function get() {
|
|
131
|
+
return this._status;
|
|
132
|
+
}
|
|
133
|
+
}, {
|
|
134
|
+
key: "operateType",
|
|
135
|
+
get: function get() {
|
|
136
|
+
return this._operateType;
|
|
137
|
+
}
|
|
138
|
+
}, {
|
|
139
|
+
key: "isDestroyed",
|
|
140
|
+
get: function get() {
|
|
141
|
+
return this._status === 'DESTROY';
|
|
142
|
+
}
|
|
143
|
+
}, {
|
|
144
|
+
key: "_initPainter",
|
|
145
|
+
value: function _initPainter(options) {
|
|
146
|
+
var painterOptions = {
|
|
147
|
+
viewer: this._viewer,
|
|
148
|
+
type: this._type,
|
|
149
|
+
terrain: this._terrain,
|
|
150
|
+
model: this._model
|
|
151
|
+
};
|
|
152
|
+
this._painter = new Painter(painterOptions);
|
|
153
|
+
if (this._type === 'polygon') {
|
|
154
|
+
this._typeClass = new Polygon(this._painter, options);
|
|
155
|
+
} else if (this._type === 'polyline') {
|
|
156
|
+
this._typeClass = new Polyline(this._painter, options);
|
|
157
|
+
} else if (this._type === 'point') {
|
|
158
|
+
this._typeClass = new Point(this._painter, options);
|
|
159
|
+
} else if (this._type === 'ellipse') {
|
|
160
|
+
this._typeClass = new Ellipse(this._painter, options);
|
|
161
|
+
} else if (this._type === 'rectangle') {
|
|
162
|
+
this._typeClass = new Rectangle(this._painter, options);
|
|
163
|
+
}
|
|
164
|
+
this._dropPoint = this._typeClass.dropPoint.bind(this._typeClass);
|
|
165
|
+
this._moving = this._typeClass.moving.bind(this._typeClass);
|
|
166
|
+
this._cancel = this._typeClass.cancel.bind(this._typeClass);
|
|
167
|
+
this._playOff = this._typeClass.playOff.bind(this._typeClass);
|
|
168
|
+
}
|
|
169
|
+
}, {
|
|
170
|
+
key: "_updateTips",
|
|
171
|
+
value: function _updateTips() {
|
|
172
|
+
if (!this._painter) return;
|
|
173
|
+
if (this._status === 'INIT' || this._status === 'DESTROY') {
|
|
174
|
+
this.mouseTooltip.show(false);
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
if (this._status === 'PAUSE') {
|
|
178
|
+
this.mouseTooltip.setOptions({
|
|
179
|
+
text: this._tips.end
|
|
180
|
+
});
|
|
181
|
+
if (this._once) this.mouseTooltip.show(false);
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
if (this._painter._breakPointEntities.length === 0) {
|
|
185
|
+
this.mouseTooltip.setOptions({
|
|
186
|
+
text: this._tips.init
|
|
187
|
+
});
|
|
188
|
+
this.mouseTooltip.show(true);
|
|
189
|
+
} else {
|
|
190
|
+
this.mouseTooltip.setOptions({
|
|
191
|
+
text: this._tips.start
|
|
192
|
+
});
|
|
193
|
+
this.mouseTooltip.show(true);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @desc 绘制函数,
|
|
199
|
+
* @param config 绘制配置,可以通过定义options直接改写结果而不再填第二个参数
|
|
200
|
+
* @param overrideFunc Entity 重写函数,用于重写绘制结果,如果 overrideFunc返回一个Entity,则将该Entity添加到Viewer中,否则结束函数无操作
|
|
201
|
+
* @returns
|
|
202
|
+
*/
|
|
203
|
+
}, {
|
|
204
|
+
key: "start",
|
|
205
|
+
value: function start(config) {
|
|
206
|
+
var _this = this;
|
|
207
|
+
var overrideFunc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (action, entity) {
|
|
208
|
+
return entity;
|
|
209
|
+
};
|
|
210
|
+
config = defaultValue(config, {});
|
|
211
|
+
this._once = defaultValue(config.once, true);
|
|
212
|
+
this._oneInstance = defaultValue(config.oneInstance, false);
|
|
213
|
+
if (!this._isSupport(config.type)) {
|
|
214
|
+
throw new Error("the type '".concat(config.type, "' is not support"));
|
|
215
|
+
}
|
|
216
|
+
this._type = config.type;
|
|
217
|
+
var defaultOpts = defaultOptions.dynamicGraphicsOptions[this._type];
|
|
218
|
+
this._initPainter({
|
|
219
|
+
finalOptions: _objectSpread(_objectSpread({}, defaultOpts), config.finalOptions),
|
|
220
|
+
dynamicOptions: _objectSpread(_objectSpread({}, defaultOpts), config.dynamicOptions),
|
|
221
|
+
sameStyle: this._sameStyle,
|
|
222
|
+
complete: config.complete,
|
|
223
|
+
onPointsChange: config.onPointsChange
|
|
224
|
+
});
|
|
225
|
+
if (this._status === 'START') return;
|
|
226
|
+
this._status = 'START';
|
|
227
|
+
this._viewer.canvas.style.cursor = 'crosshair';
|
|
228
|
+
this._updateTips();
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @desc 是否开始绘制
|
|
232
|
+
*/
|
|
233
|
+
var isStartDraw = false;
|
|
234
|
+
|
|
235
|
+
// 开始事件
|
|
236
|
+
var startId = this._subscriber.addExternal(function (move) {
|
|
237
|
+
if (_this._oneInstance && _this.$Instance) {
|
|
238
|
+
_this._viewer.entities.remove(_this.$Instance);
|
|
239
|
+
_this.$AddedInstance = [];
|
|
240
|
+
}
|
|
241
|
+
_this._dropPoint(move);
|
|
242
|
+
if (_this._action) _this._action(_this._operateType.START, move);
|
|
243
|
+
|
|
244
|
+
// 如果是点,则此时执行点的结束绘制操作
|
|
245
|
+
if (_this._type === 'point') {
|
|
246
|
+
var _this$$Instance;
|
|
247
|
+
_this._typeClass.result = _this._viewer.addGraphicEntityToLayer(_this._typeClass.result.position, {
|
|
248
|
+
type: _this._type,
|
|
249
|
+
id: _this._typeClass.result.id,
|
|
250
|
+
entity: _this._typeClass.result
|
|
251
|
+
});
|
|
252
|
+
_this._complete(overrideFunc);
|
|
253
|
+
isStartDraw = false;
|
|
254
|
+
var positions = (_this$$Instance = _this.$Instance) === null || _this$$Instance === void 0 || (_this$$Instance = _this$$Instance.position) === null || _this$$Instance === void 0 ? void 0 : _this$$Instance.getValue(new JulianDate());
|
|
255
|
+
if (config.complete && _this.$Instance && positions) {
|
|
256
|
+
var point = cartesian3ToLngLatAlt(positions);
|
|
257
|
+
config.complete(_this.$Instance, positions, [point]);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
_this._updateTips();
|
|
261
|
+
// 100ms后才能继续,避免热键冲突
|
|
262
|
+
setTimeout(function () {
|
|
263
|
+
isStartDraw = true;
|
|
264
|
+
}, 100);
|
|
265
|
+
}, this._operateType.START);
|
|
266
|
+
|
|
267
|
+
// 移动事件
|
|
268
|
+
var moveId = this._subscriber.addExternal(function (move) {
|
|
269
|
+
_this._viewer.canvas.style.cursor = 'crosshair';
|
|
270
|
+
if (!isStartDraw) return;
|
|
271
|
+
_this._moving(move);
|
|
272
|
+
|
|
273
|
+
// ActionCallback
|
|
274
|
+
if (_this._action) _this._action(_this._operateType.MOVING, move);
|
|
275
|
+
}, this._operateType.MOVING);
|
|
276
|
+
|
|
277
|
+
// Redraw the shape so it's not dynamic and remove the dynamic shape.
|
|
278
|
+
var cancelId = this._subscriber.addExternal(function (move) {
|
|
279
|
+
if (!isStartDraw) return;
|
|
280
|
+
_this._cancel(move);
|
|
281
|
+
_this._updateTips();
|
|
282
|
+
|
|
283
|
+
// ActionCallback
|
|
284
|
+
if (_this._action) _this._action(_this._operateType.CANCEL, move);
|
|
285
|
+
}, this._operateType.CANCEL);
|
|
286
|
+
|
|
287
|
+
// Redraw the shape so it's not dynamic and remove the dynamic shape.
|
|
288
|
+
var endId = this._subscriber.addExternal(function (move) {
|
|
289
|
+
if (!isStartDraw) return;
|
|
290
|
+
|
|
291
|
+
// 结束绘制,确定实体
|
|
292
|
+
_this._playOff(move);
|
|
293
|
+
|
|
294
|
+
// ActionCallback
|
|
295
|
+
if (_this._action) _this._action(_this._operateType.END, move);
|
|
296
|
+
if (_this._type === 'point') return;
|
|
297
|
+
_this._complete(overrideFunc);
|
|
298
|
+
_this._updateTips();
|
|
299
|
+
isStartDraw = false;
|
|
300
|
+
}, this._operateType.END);
|
|
301
|
+
this._events = [startId, moveId, cancelId, endId];
|
|
302
|
+
}
|
|
303
|
+
}, {
|
|
304
|
+
key: "_complete",
|
|
305
|
+
value: function _complete(override) {
|
|
306
|
+
// 如果是线和面,则此时将实例添加到Viewer中
|
|
307
|
+
if (this._once) this.pause();
|
|
308
|
+
this.$Instance = override.call(this, this._operateType.END, this._typeClass.result);
|
|
309
|
+
this.$AddedInstance.push(this.$Instance);
|
|
310
|
+
this._viewer.canvas.style.cursor = 'default';
|
|
311
|
+
}
|
|
312
|
+
}, {
|
|
313
|
+
key: "_isSupport",
|
|
314
|
+
value: function _isSupport(type) {
|
|
315
|
+
return ['polygon', 'polyline', 'point', 'ellipse', 'rectangle'].includes(type);
|
|
316
|
+
}
|
|
317
|
+
}, {
|
|
318
|
+
key: "reset",
|
|
319
|
+
value: function reset() {
|
|
320
|
+
var _this$_painter;
|
|
321
|
+
this.pause();
|
|
322
|
+
this._status = 'INIT';
|
|
323
|
+
(_this$_painter = this._painter) === null || _this$_painter === void 0 || _this$_painter.clear();
|
|
324
|
+
this.$AddedInstance.map(function (layer) {
|
|
325
|
+
layer.remove();
|
|
326
|
+
});
|
|
327
|
+
this.$AddedInstance = [];
|
|
328
|
+
this._viewer.scene.requestRender();
|
|
329
|
+
}
|
|
330
|
+
}, {
|
|
331
|
+
key: "pause",
|
|
332
|
+
value: function pause() {
|
|
333
|
+
this._status = 'PAUSE';
|
|
334
|
+
this._updateTips();
|
|
335
|
+
this._subscriber.removeExternal(this._events);
|
|
336
|
+
this._events = [];
|
|
337
|
+
this._viewer.canvas.style.cursor = 'default';
|
|
338
|
+
}
|
|
339
|
+
}, {
|
|
340
|
+
key: "destroy",
|
|
341
|
+
value: function destroy() {
|
|
342
|
+
this.reset();
|
|
343
|
+
this.mouseTooltip.destroy();
|
|
344
|
+
this._subscriber.destroy();
|
|
345
|
+
this._status = 'DESTROY';
|
|
346
|
+
}
|
|
347
|
+
}]);
|
|
348
|
+
return Drawer;
|
|
349
|
+
}();
|
|
350
|
+
export { Drawer as default };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Cartesian2, Cartesian3, Entity, PointGraphics, Viewer } from 'deeptwins-cesium';
|
|
2
|
+
interface DrawOption {
|
|
3
|
+
viewer: Viewer;
|
|
4
|
+
type: any;
|
|
5
|
+
terrain?: boolean;
|
|
6
|
+
model?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @desc 画笔工具
|
|
10
|
+
*/
|
|
11
|
+
export default class Painter {
|
|
12
|
+
_viewer: any;
|
|
13
|
+
_type: any;
|
|
14
|
+
_terrain: boolean | undefined;
|
|
15
|
+
_model?: boolean;
|
|
16
|
+
_activeShapePoints: Cartesian3[];
|
|
17
|
+
_dynamicShapeEntity: Entity | undefined;
|
|
18
|
+
_breakPointEntities: Entity[];
|
|
19
|
+
_addedEntitys: Entity[];
|
|
20
|
+
constructor(options: DrawOption);
|
|
21
|
+
/**
|
|
22
|
+
* 将entity添加到视图
|
|
23
|
+
* @param {Entity | Entity.ConstructorOptions} entity entity实体或者构造参数
|
|
24
|
+
* @returns {Entity} entity
|
|
25
|
+
*/
|
|
26
|
+
addView(entity: Entity | Entity.ConstructorOptions): Entity;
|
|
27
|
+
/**
|
|
28
|
+
* 移除entity
|
|
29
|
+
* @param {Entity} entity entity实体
|
|
30
|
+
* @returns {boolean} 是否移除成功
|
|
31
|
+
*/
|
|
32
|
+
removeEntity(entity: Entity): boolean;
|
|
33
|
+
createPoint(worldPosition: Cartesian3, options?: PointGraphics.ConstructorOptions): Entity;
|
|
34
|
+
pickCartesian3(position: Cartesian2): Cartesian3 | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* 重置绘画结果,清空间断点和动态图形
|
|
37
|
+
*/
|
|
38
|
+
reset(): void;
|
|
39
|
+
clear(): void;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
9
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
|
+
import { Entity } from 'deeptwins-cesium';
|
|
11
|
+
import { defaultOptions } from "./index";
|
|
12
|
+
/**
|
|
13
|
+
* @desc 画笔工具
|
|
14
|
+
*/
|
|
15
|
+
var Painter = /*#__PURE__*/function () {
|
|
16
|
+
function Painter(options) {
|
|
17
|
+
_classCallCheck(this, Painter);
|
|
18
|
+
_defineProperty(this, "_viewer", void 0);
|
|
19
|
+
_defineProperty(this, "_type", void 0);
|
|
20
|
+
_defineProperty(this, "_terrain", void 0);
|
|
21
|
+
_defineProperty(this, "_model", void 0);
|
|
22
|
+
_defineProperty(this, "_activeShapePoints", []);
|
|
23
|
+
_defineProperty(this, "_dynamicShapeEntity", void 0);
|
|
24
|
+
_defineProperty(this, "_breakPointEntities", []);
|
|
25
|
+
_defineProperty(this, "_addedEntitys", []);
|
|
26
|
+
this._viewer = options.viewer;
|
|
27
|
+
this._type = options.type;
|
|
28
|
+
this._terrain = options.terrain;
|
|
29
|
+
this._model = options.model;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 将entity添加到视图
|
|
34
|
+
* @param {Entity | Entity.ConstructorOptions} entity entity实体或者构造参数
|
|
35
|
+
* @returns {Entity} entity
|
|
36
|
+
*/
|
|
37
|
+
_createClass(Painter, [{
|
|
38
|
+
key: "addView",
|
|
39
|
+
value: function addView(entity) {
|
|
40
|
+
var newEntity = this._viewer.entities.add(entity);
|
|
41
|
+
this._viewer.scene.requestRender();
|
|
42
|
+
this._addedEntitys.push(newEntity);
|
|
43
|
+
return newEntity;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* 移除entity
|
|
48
|
+
* @param {Entity} entity entity实体
|
|
49
|
+
* @returns {boolean} 是否移除成功
|
|
50
|
+
*/
|
|
51
|
+
}, {
|
|
52
|
+
key: "removeEntity",
|
|
53
|
+
value: function removeEntity(entity) {
|
|
54
|
+
this._addedEntitys = this._addedEntitys.filter(function (item) {
|
|
55
|
+
return item !== entity;
|
|
56
|
+
});
|
|
57
|
+
var bool = this._viewer.entities.remove(entity);
|
|
58
|
+
this._viewer.scene.requestRender();
|
|
59
|
+
return bool;
|
|
60
|
+
}
|
|
61
|
+
}, {
|
|
62
|
+
key: "createPoint",
|
|
63
|
+
value: function createPoint(worldPosition, options) {
|
|
64
|
+
var _defaultOptions$dynam;
|
|
65
|
+
return new Entity({
|
|
66
|
+
position: worldPosition,
|
|
67
|
+
point: _objectSpread(_objectSpread({}, (_defaultOptions$dynam = defaultOptions.dynamicGraphicsOptions) === null || _defaultOptions$dynam === void 0 ? void 0 : _defaultOptions$dynam.point), options)
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
key: "pickCartesian3",
|
|
72
|
+
value: function pickCartesian3(position) {
|
|
73
|
+
// We use `viewer.scene.pickPosition` here instead of `viewer.camera.pickEllipsoid` so that
|
|
74
|
+
// we get the correct point when mousing over terrain.
|
|
75
|
+
if (this._model) {
|
|
76
|
+
return this._viewer.scene.pickPosition(position);
|
|
77
|
+
}
|
|
78
|
+
if (this._terrain) {
|
|
79
|
+
var ray = this._viewer.camera.getPickRay(position);
|
|
80
|
+
if (ray) return this._viewer.scene.globe.pick(ray, this._viewer.scene);
|
|
81
|
+
} else {
|
|
82
|
+
return this._viewer.camera.pickEllipsoid(position);
|
|
83
|
+
}
|
|
84
|
+
return undefined;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* 重置绘画结果,清空间断点和动态图形
|
|
89
|
+
*/
|
|
90
|
+
}, {
|
|
91
|
+
key: "reset",
|
|
92
|
+
value: function reset() {
|
|
93
|
+
if (this._dynamicShapeEntity) {
|
|
94
|
+
this._viewer.entities.remove(this._dynamicShapeEntity);
|
|
95
|
+
this._dynamicShapeEntity = undefined;
|
|
96
|
+
}
|
|
97
|
+
while (this._breakPointEntities.length) {
|
|
98
|
+
var entity = this._breakPointEntities.pop();
|
|
99
|
+
if (entity) this._viewer.entities.remove(entity);
|
|
100
|
+
}
|
|
101
|
+
this._activeShapePoints = [];
|
|
102
|
+
}
|
|
103
|
+
}, {
|
|
104
|
+
key: "clear",
|
|
105
|
+
value: function clear() {
|
|
106
|
+
this.reset();
|
|
107
|
+
while (this._addedEntitys.length) {
|
|
108
|
+
var entity = this._addedEntitys.pop();
|
|
109
|
+
if (entity) this._viewer.entities.remove(entity);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}]);
|
|
113
|
+
return Painter;
|
|
114
|
+
}();
|
|
115
|
+
export { Painter as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CallbackProperty, Entity } from 'deeptwins-cesium';
|
|
2
|
+
import BasicGraphics from '../base';
|
|
3
|
+
import { Cartesian3 } from 'deeptwins-cesium';
|
|
4
|
+
import type { LifeCycle } from '../base';
|
|
5
|
+
export default class Ellipse extends BasicGraphics implements LifeCycle {
|
|
6
|
+
dropPoint(move: any): void;
|
|
7
|
+
playOff(): Entity;
|
|
8
|
+
cancel(): void;
|
|
9
|
+
createShape(hierarchy: Cartesian3[] | CallbackProperty, isDynamic?: boolean): Entity;
|
|
10
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
8
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
11
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
14
|
+
import { CallbackProperty, ClassificationType, Entity, JulianDate } from 'deeptwins-cesium';
|
|
15
|
+
import BasicGraphics from "../base";
|
|
16
|
+
import { Cartesian3 } from 'deeptwins-cesium';
|
|
17
|
+
var Ellipse = /*#__PURE__*/function (_BasicGraphics) {
|
|
18
|
+
_inherits(Ellipse, _BasicGraphics);
|
|
19
|
+
var _super = _createSuper(Ellipse);
|
|
20
|
+
function Ellipse() {
|
|
21
|
+
_classCallCheck(this, Ellipse);
|
|
22
|
+
return _super.apply(this, arguments);
|
|
23
|
+
}
|
|
24
|
+
_createClass(Ellipse, [{
|
|
25
|
+
key: "dropPoint",
|
|
26
|
+
value: function dropPoint(move) {
|
|
27
|
+
this._dropPoint(move, this.createShape.bind(this));
|
|
28
|
+
}
|
|
29
|
+
}, {
|
|
30
|
+
key: "playOff",
|
|
31
|
+
value: function playOff() {
|
|
32
|
+
return this._playOff(this.createShape.bind(this));
|
|
33
|
+
}
|
|
34
|
+
}, {
|
|
35
|
+
key: "cancel",
|
|
36
|
+
value: function cancel() {
|
|
37
|
+
this._cancel(this.createShape.bind(this));
|
|
38
|
+
}
|
|
39
|
+
}, {
|
|
40
|
+
key: "createShape",
|
|
41
|
+
value: function createShape(hierarchy) {
|
|
42
|
+
var isDynamic = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
43
|
+
var target = Array.isArray(hierarchy) ? hierarchy : hierarchy.getValue(JulianDate.now());
|
|
44
|
+
var radiusFuc = new CallbackProperty(function () {
|
|
45
|
+
var distance = Cartesian3.distance(target[0], target[target.length - 1]);
|
|
46
|
+
return distance || 1;
|
|
47
|
+
}, false);
|
|
48
|
+
var ellipse = Object.assign({}, isDynamic && !this.sameStyle ? this.dynamicOptions : this.finalOptions, {
|
|
49
|
+
semiMinorAxis: radiusFuc,
|
|
50
|
+
semiMajorAxis: radiusFuc,
|
|
51
|
+
classificationType: this.painter._model ? ClassificationType.CESIUM_3D_TILE : undefined
|
|
52
|
+
});
|
|
53
|
+
var position = this.painter._activeShapePoints[0];
|
|
54
|
+
return new Entity({
|
|
55
|
+
position: position,
|
|
56
|
+
ellipse: ellipse
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}]);
|
|
60
|
+
return Ellipse;
|
|
61
|
+
}(BasicGraphics);
|
|
62
|
+
export { Ellipse as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Entity } from 'deeptwins-cesium';
|
|
2
|
+
import BasicGraphics from '../base';
|
|
3
|
+
import type { Cartesian3 } from 'deeptwins-cesium';
|
|
4
|
+
import type { EventArgs } from '../../tool/cesiumExtends/Subscriber';
|
|
5
|
+
import type { LifeCycle } from '../base';
|
|
6
|
+
export default class Point extends BasicGraphics implements LifeCycle {
|
|
7
|
+
dropPoint(event: EventArgs): void;
|
|
8
|
+
moving(): void;
|
|
9
|
+
playOff(): Entity;
|
|
10
|
+
cancel(): void;
|
|
11
|
+
createDynamicShape(position: Cartesian3): Entity;
|
|
12
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
8
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
11
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
14
|
+
import { defined, Entity } from 'deeptwins-cesium';
|
|
15
|
+
import BasicGraphics from "../base";
|
|
16
|
+
var Point = /*#__PURE__*/function (_BasicGraphics) {
|
|
17
|
+
_inherits(Point, _BasicGraphics);
|
|
18
|
+
var _super = _createSuper(Point);
|
|
19
|
+
function Point() {
|
|
20
|
+
_classCallCheck(this, Point);
|
|
21
|
+
return _super.apply(this, arguments);
|
|
22
|
+
}
|
|
23
|
+
_createClass(Point, [{
|
|
24
|
+
key: "dropPoint",
|
|
25
|
+
value: function dropPoint(event) {
|
|
26
|
+
if (!event.position) return;
|
|
27
|
+
var earthPosition = this.painter.pickCartesian3(event.position);
|
|
28
|
+
if (earthPosition && defined(earthPosition)) this.result = this.createDynamicShape(earthPosition);
|
|
29
|
+
}
|
|
30
|
+
}, {
|
|
31
|
+
key: "moving",
|
|
32
|
+
value: function moving() {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
}, {
|
|
36
|
+
key: "playOff",
|
|
37
|
+
value: function playOff() {
|
|
38
|
+
this.painter.reset();
|
|
39
|
+
return this.result;
|
|
40
|
+
}
|
|
41
|
+
}, {
|
|
42
|
+
key: "cancel",
|
|
43
|
+
value: function cancel() {
|
|
44
|
+
this.painter.reset();
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
}, {
|
|
48
|
+
key: "createDynamicShape",
|
|
49
|
+
value: function createDynamicShape(position) {
|
|
50
|
+
var point = Object.assign({}, this.finalOptions);
|
|
51
|
+
return new Entity({
|
|
52
|
+
position: position,
|
|
53
|
+
point: point
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}]);
|
|
57
|
+
return Point;
|
|
58
|
+
}(BasicGraphics);
|
|
59
|
+
export { Point as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CallbackProperty, Entity } from 'deeptwins-cesium';
|
|
2
|
+
import BasicGraphics from '../base';
|
|
3
|
+
import type { Cartesian3 } from 'deeptwins-cesium';
|
|
4
|
+
import type { LifeCycle } from '../base';
|
|
5
|
+
export default class Polygon extends BasicGraphics implements LifeCycle {
|
|
6
|
+
dropPoint(event: any): void;
|
|
7
|
+
playOff(): Entity;
|
|
8
|
+
cancel(): void;
|
|
9
|
+
createShape(hierarchy: Cartesian3[] | CallbackProperty, isDynamic?: boolean): Entity;
|
|
10
|
+
}
|