@metagl/sdk-plotting 0.0.1 → 0.0.2
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/lacdt.plotting.d.ts +30265 -0
- package/lacdt.plotting.js +474 -0
- package/package.json +14 -12
- package/resources/image/Height.png +0 -0
- package/resources/image/JPlace/capital.png +0 -0
- package/resources/image/JPlace/chengzhen.png +0 -0
- package/resources/image/JPlace/shenghui.png +0 -0
- package/resources/image/Move.png +0 -0
- package/resources/image/Scale.png +0 -0
- package/resources/image/arrow-down.png +0 -0
- package/resources/image/arrow-left.png +0 -0
- package/resources/image/arrow-right.png +0 -0
- package/resources/image/arrow-up.png +0 -0
- package/resources/image/arrow.png +0 -0
- package/resources/image/cm_gray.png +0 -0
- package/resources/image/cm_viridis.png +0 -0
- package/resources/image/excavate_bottom_min.jpg +0 -0
- package/resources/image/excavate_side_min.jpg +0 -0
- package/resources/image/eye.png +0 -0
- package/resources/image/facility.gif +0 -0
- package/resources/image/fire.png +0 -0
- package/resources/image/fountain2.png +0 -0
- package/resources/image/globe.jpg +0 -0
- package/resources/image/gpoint.svg +1 -0
- package/resources/image/redflag.png +0 -0
- package/resources/image/smoke.png +0 -0
- package/resources/image/tuodong.png +0 -0
- package/resources/image//346/227/213/350/275/254.png +0 -0
- package/resources/images/circular_particle.png +0 -0
- package/resources/images/cloud.png +0 -0
- package/resources/images/dash.png +0 -0
- package/resources/images/daylight/Daylight_Box_Back.jpg +0 -0
- package/resources/images/daylight/Daylight_Box_Bottom.jpg +0 -0
- package/resources/images/daylight/Daylight_Box_Front.jpg +0 -0
- package/resources/images/daylight/Daylight_Box_Left.jpg +0 -0
- package/resources/images/daylight/Daylight_Box_Right.jpg +0 -0
- package/resources/images/daylight/Daylight_Box_Top.jpg +0 -0
- package/resources/images/daylight/Daylight_Box_mx.jpg +0 -0
- package/resources/images/daylight/Daylight_Box_my.jpg +0 -0
- package/resources/images/daylight/Daylight_Box_mz.jpg +0 -0
- package/resources/images/daylight/Daylight_Box_px.jpg +0 -0
- package/resources/images/daylight/Daylight_Box_py.jpg +0 -0
- package/resources/images/daylight/Daylight_Box_pz.jpg +0 -0
- package/resources/images/earthclouds1k.jpg +0 -0
- package/resources/images/earthclouds1k.png +0 -0
- package/resources/images/night_1-2k.jpg +0 -0
- package/resources/images/scan.png +0 -0
- package/resources/images/smoke.png +0 -0
- package/resources/images/specialLine/ArrowOpacity.png +0 -0
- package/resources/images/specialLine/ArrowTransparent.png +0 -0
- package/resources/images/specialLine/DataTransLine.png +0 -0
- package/resources/images/specialLine/DotTransparent.png +0 -0
- package/resources/images/specialLine/LinkPulse.png +0 -0
- package/resources/images/specialLine/LinkTrail.png +0 -0
- package/resources/images/specialLine/Trail.png +0 -0
- package/resources/images/specialLine/Trail1.png +0 -0
- package/resources/images/specialLine/alpha.png +0 -0
- package/resources/images/starmap/starmap_2020_16k_mx.webp +0 -0
- package/resources/images/starmap/starmap_2020_16k_my.webp +0 -0
- package/resources/images/starmap/starmap_2020_16k_mz.webp +0 -0
- package/resources/images/starmap/starmap_2020_16k_px.webp +0 -0
- package/resources/images/starmap/starmap_2020_16k_py.webp +0 -0
- package/resources/images/starmap/starmap_2020_16k_pz.webp +0 -0
- package/resources/images/wx.png +0 -0
- package/resources/images/wx2.jpg +0 -0
- package/resources/readme.txt +1 -0
- package/resources/textures/grey.png +0 -0
- package/resources/textures/mesh.png +0 -0
- package/resources/textures/waterNormalsSmall.jpg +0 -0
- package/resources/thirdParty/html2canvas/0.5.0-beta4/html2canvas.js +3519 -0
- package/resources/thirdParty/html2canvas/0.5.0-beta4/html2canvas.min.js +8 -0
- package/resources/thirdParty/wangEditor/colorpicker.js +481 -0
- package/resources/thirdParty/wangEditor/wangEditor.js +50897 -0
- package/resources/thirdParty/wangEditor/wangeditor.css +945 -0
- package/resources/water/sea 50_1.json.json +578 -0
- package/resources/workers/satellite.worker.js +3175 -0
- package/types/Common/ArrayHelper.d.ts +8 -0
- package/types/Common/Guid.d.ts +4 -0
- package/types/Common/KeyValue.d.ts +5 -0
- package/types/Core/Common/Cesium/Core/xz_Color.d.ts +1545 -0
- package/types/Core/Common/Cesium/Core/xz_measureSize.d.ts +4 -0
- package/types/Core/Common/Cesium/Core/xz_writeTextToCanvas.d.ts +27 -0
- package/types/Core/Common/Cesium/ThirdParty/xz_measureText.d.ts +30 -0
- package/types/Core/Event.d.ts +72 -0
- package/types/Core/GvolLayer.d.ts +39 -0
- package/types/Core/GvolPoint.d.ts +206 -0
- package/types/Core/Music.d.ts +18 -0
- package/types/Core/Register.d.ts +36 -0
- package/types/Core/index.d.ts +46 -0
- package/types/Core/property-item-meta.d.ts +36 -0
- package/types/FixCesium/index.d.ts +0 -0
- package/types/Global/array.d.ts +21 -0
- package/types/Global/global.d.ts +9 -0
- package/types/Global/link.d.ts +32 -0
- package/types/Global/linq.d.ts +15 -0
- package/types/Global/math.d.ts +7 -0
- package/types/Global/number.d.ts +15 -0
- package/types/Global/object.d.ts +7 -0
- package/types/Global/regex.d.ts +6 -0
- package/types/Global/static.d.ts +6 -0
- package/types/Global/string.d.ts +14 -0
- package/types/LayerManager/DynamicLayer/DynamicLayer.d.ts +294 -0
- package/types/LayerManager/GpLayer/GpLayer.d.ts +56 -0
- package/types/LayerManager/GraphicLayer/GraphicLayer.d.ts +209 -0
- package/types/LayerManager/ImageLayer/BaiduImageryProvider.d.ts +33 -0
- package/types/LayerManager/LayerManager.d.ts +59 -0
- package/types/LayerManager/LayerTools.d.ts +3 -0
- package/types/LayerManager/MapBox/CesiumInstance.d.ts +78 -0
- package/types/LayerManager/MapBox/CesiumLayer.d.ts +54 -0
- package/types/LayerManager/MapBox/CesiumLayerOptions.d.ts +34 -0
- package/types/LayerManager/MapBox/MVTImageryProvider/mapboxVectorRender.d.ts +44 -0
- package/types/LayerManager/MapBox/MapboxPlaceName.d.ts +30 -0
- package/types/LayerManager/MapBox/index.d.ts +25 -0
- package/types/LayerManager/MapBox/shaders/colorscales.d.ts +123 -0
- package/types/LayerManager/MapBox/shaders/raster_frag.d.ts +2 -0
- package/types/LayerManager/MapBox/shaders/raster_rpg_frag.d.ts +2 -0
- package/types/LayerManager/MapBox/shaders/raster_rpg_vert.d.ts +2 -0
- package/types/LayerManager/MapBox/shaders/raster_vert.d.ts +2 -0
- package/types/LayerManager/MapBox/utils.d.ts +13 -0
- package/types/LayerManager/PlotLayer/PlotLayer.d.ts +77 -0
- package/types/LayerManager/SateLayer/Satellite.d.ts +98 -0
- package/types/LayerManager/SateLayer/SatelliteLayer.d.ts +46 -0
- package/types/LayerManager/SateLayer/SpaceDebris.d.ts +23 -0
- package/types/LayerManager/SateLayer/SpaceDebrisLayer.d.ts +40 -0
- package/types/LayerManager/TileLayer/TileLayer.d.ts +27 -0
- package/types/LayerManager/TileLayer/WMTSVectorProvider.d.ts +14 -0
- package/types/LayerManager/index.d.ts +21 -0
- package/types/Models/AnimationConfig.d.ts +29 -0
- package/types/Models/AnimationItem.d.ts +14 -0
- package/types/Models/FileNode.d.ts +24 -0
- package/types/Models/GeojsonPlotModel.d.ts +19 -0
- package/types/Models/GeojsonStyleBase.d.ts +104 -0
- package/types/Models/PlotItem.d.ts +17 -0
- package/types/Models/all.d.ts +268 -0
- package/types/PlottingTool/AnchorHelper.d.ts +50 -0
- package/types/PlottingTool/Animation/AnimationBase.d.ts +61 -0
- package/types/PlottingTool/Animation/AnimationGroup.d.ts +46 -0
- package/types/PlottingTool/Animation/AnimationManager.d.ts +72 -0
- package/types/PlottingTool/Animation/AnimationStartState.d.ts +5 -0
- package/types/PlottingTool/Animation/AnimationState.d.ts +5 -0
- package/types/PlottingTool/Animation/CalcTool.d.ts +6 -0
- package/types/PlottingTool/Animation/CssItems/AudioAnimation.d.ts +14 -0
- package/types/PlottingTool/Animation/CssItems/CssAnimationBase.d.ts +15 -0
- package/types/PlottingTool/Animation/CssItems/CssHideAnimation.d.ts +12 -0
- package/types/PlottingTool/Animation/CssItems/CssMaskAnimation.d.ts +18 -0
- package/types/PlottingTool/Animation/CssItems/CssMoveHorizonAnimation.d.ts +5 -0
- package/types/PlottingTool/Animation/CssItems/CssMoveVerticalAnimation.d.ts +5 -0
- package/types/PlottingTool/Animation/CssItems/CssNumberAnimation.d.ts +4 -0
- package/types/PlottingTool/Animation/CssItems/CssPropChangeAnimation.d.ts +13 -0
- package/types/PlottingTool/Animation/CssItems/CssShowAnimation.d.ts +12 -0
- package/types/PlottingTool/Animation/CssItems/CssShowDisplayAnimation.d.ts +10 -0
- package/types/PlottingTool/Animation/CssItems/CssValueAnimation.d.ts +27 -0
- package/types/PlottingTool/Animation/CssItems/SpeakManager.d.ts +12 -0
- package/types/PlottingTool/Animation/CssItems/SpeakTool.d.ts +12 -0
- package/types/PlottingTool/Animation/CssItems/SubtitleAnimation.d.ts +12 -0
- package/types/PlottingTool/Animation/CssItems/VideoAnimation.d.ts +12 -0
- package/types/PlottingTool/Animation/CssItems/XunFeiTool.d.ts +28 -0
- package/types/PlottingTool/Animation/Decorator.d.ts +11 -0
- package/types/PlottingTool/Animation/DefaultConfig.d.ts +5 -0
- package/types/PlottingTool/Animation/FillBehavior.d.ts +13 -0
- package/types/PlottingTool/Animation/GeojsonItems/GeojsonAnimation.d.ts +25 -0
- package/types/PlottingTool/Animation/GeojsonItems/GeojsonRepeatAnimation.d.ts +10 -0
- package/types/PlottingTool/Animation/GeojsonItems/GeojsonVisibleAnimation.d.ts +5 -0
- package/types/PlottingTool/Animation/IAnimation.d.ts +59 -0
- package/types/PlottingTool/Animation/Items/ArrowDirectAnimation.d.ts +11 -0
- package/types/PlottingTool/Animation/Items/AutoRotationAnimation.d.ts +16 -0
- package/types/PlottingTool/Animation/Items/CameraFlyAnimation.d.ts +15 -0
- package/types/PlottingTool/Animation/Items/CameraRoamAnimation.d.ts +29 -0
- package/types/PlottingTool/Animation/Items/CameraSetAnimation.d.ts +5 -0
- package/types/PlottingTool/Animation/Items/ColorAnimation.d.ts +6 -0
- package/types/PlottingTool/Animation/Items/DoubleArrowDirectAnimation.d.ts +10 -0
- package/types/PlottingTool/Animation/Items/FollowAnimation.d.ts +30 -0
- package/types/PlottingTool/Animation/Items/ForwardAnimation.d.ts +7 -0
- package/types/PlottingTool/Animation/Items/HideAnimation.d.ts +11 -0
- package/types/PlottingTool/Animation/Items/JBDirectAnimation.d.ts +20 -0
- package/types/PlottingTool/Animation/Items/ModelAnimation.d.ts +12 -0
- package/types/PlottingTool/Animation/Items/NumberAnimation.d.ts +12 -0
- package/types/PlottingTool/Animation/Items/PathAnimation.d.ts +44 -0
- package/types/PlottingTool/Animation/Items/PathMode.d.ts +18 -0
- package/types/PlottingTool/Animation/Items/PathShowAnimation.d.ts +25 -0
- package/types/PlottingTool/Animation/Items/PolygonMaskAnimation.d.ts +15 -0
- package/types/PlottingTool/Animation/Items/PopulationTimeAnimation.d.ts +7 -0
- package/types/PlottingTool/Animation/Items/RepeatAnimation.d.ts +13 -0
- package/types/PlottingTool/Animation/Items/ShowAnimation.d.ts +13 -0
- package/types/PlottingTool/Animation/Items/ShowTifAnimation.d.ts +10 -0
- package/types/PlottingTool/Animation/Items/SpiralAnimation.d.ts +30 -0
- package/types/PlottingTool/Animation/Items/StateChangeAnimation.d.ts +7 -0
- package/types/PlottingTool/Animation/Items/SurroundAnimation.d.ts +43 -0
- package/types/PlottingTool/Animation/Items/TargetFllowAniamtion.d.ts +20 -0
- package/types/PlottingTool/Animation/Items/ZoomToFlyAnimation.d.ts +16 -0
- package/types/PlottingTool/Animation/MaskBehavior.d.ts +13 -0
- package/types/PlottingTool/Animation/PageItems/PageShowAnimation.d.ts +10 -0
- package/types/PlottingTool/Animation/SingleAnimation.d.ts +32 -0
- package/types/PlottingTool/Arrow/EditorArrowBase.d.ts +10 -0
- package/types/PlottingTool/Arrow/EditorArrowLineBase.d.ts +10 -0
- package/types/PlottingTool/Arrow/EditorAssaultDirection.d.ts +4 -0
- package/types/PlottingTool/Arrow/EditorAttackArrow.d.ts +51 -0
- package/types/PlottingTool/Arrow/EditorDoubleArrow.d.ts +82 -0
- package/types/PlottingTool/Arrow/EditorFineArrow.d.ts +11 -0
- package/types/PlottingTool/Arrow/EditorGatheringPlace.d.ts +10 -0
- package/types/PlottingTool/Arrow/EditorSquadCombat.d.ts +9 -0
- package/types/PlottingTool/Arrow/EditorStraightLineArrow.d.ts +10 -0
- package/types/PlottingTool/Arrow/EditorTailedAttackArrow.d.ts +8 -0
- package/types/PlottingTool/Arrow/EditorTailedSquadCombat.d.ts +10 -0
- package/types/PlottingTool/Axis3Operator.d.ts +39 -0
- package/types/PlottingTool/Common/ICell.d.ts +9 -0
- package/types/PlottingTool/Common/IVectorTile.d.ts +16 -0
- package/types/PlottingTool/Common/PolygonHelper.d.ts +4 -0
- package/types/PlottingTool/Common/RenderGridTextV2.5.d.ts +36 -0
- package/types/PlottingTool/Common/geocode.d.ts +21 -0
- package/types/PlottingTool/Common.d.ts +26 -0
- package/types/PlottingTool/Cube/EditorCubeBase.d.ts +38 -0
- package/types/PlottingTool/Cube/EditorCubeBox.d.ts +20 -0
- package/types/PlottingTool/Cube/EditorCylinder.d.ts +25 -0
- package/types/PlottingTool/Cube/EditorEllipsoid.d.ts +20 -0
- package/types/PlottingTool/CurrentList.d.ts +14 -0
- package/types/PlottingTool/DataRgister.d.ts +6 -0
- package/types/PlottingTool/DataRgisterAudio.d.ts +5 -0
- package/types/PlottingTool/DataRgisterTif.d.ts +5 -0
- package/types/PlottingTool/DefaultPlottingAttribute.d.ts +1 -0
- package/types/PlottingTool/EditHelpLine.d.ts +8 -0
- package/types/PlottingTool/EditMode.d.ts +218 -0
- package/types/PlottingTool/GVEntityCollection.d.ts +11 -0
- package/types/PlottingTool/Graph.d.ts +340 -0
- package/types/PlottingTool/GraphFactory.d.ts +7 -0
- package/types/PlottingTool/GraphManager.d.ts +145 -0
- package/types/PlottingTool/GraphPropStorage.d.ts +10 -0
- package/types/PlottingTool/GraphProperty.d.ts +58 -0
- package/types/PlottingTool/GraphicRender/CesiumConeCommunicate.d.ts +40 -0
- package/types/PlottingTool/GraphicRender/CesiumRender.d.ts +31 -0
- package/types/PlottingTool/GraphicRender/Cloud/GxCloudItem.d.ts +82 -0
- package/types/PlottingTool/GraphicRender/DynamicProperty.d.ts +14 -0
- package/types/PlottingTool/GraphicRender/RenderPlotting.d.ts +20 -0
- package/types/PlottingTool/GraphicRender/radar/GxPrimitivePolyline.d.ts +29 -0
- package/types/PlottingTool/GraphicRender/radar/GxPrimitiveTriangles.d.ts +30 -0
- package/types/PlottingTool/GraphicRender/radar/GxRadarItem.d.ts +93 -0
- package/types/PlottingTool/GxClusterDataSource.d.ts +107 -0
- package/types/PlottingTool/HeightReferenceGraph.d.ts +7 -0
- package/types/PlottingTool/HeightReferencePrimtive.d.ts +8 -0
- package/types/PlottingTool/HtmlBox/BoxFactory.d.ts +4 -0
- package/types/PlottingTool/HtmlBox/CssProp.d.ts +61 -0
- package/types/PlottingTool/HtmlBox/HtmlBox.d.ts +6 -0
- package/types/PlottingTool/HtmlBox/HtmlBoxMulti.d.ts +38 -0
- package/types/PlottingTool/HtmlBox/WangEditor/fwbconfig.d.ts +3 -0
- package/types/PlottingTool/HtmlBox/WangEditor/parse-style-html.d.ts +7 -0
- package/types/PlottingTool/HtmlBox/WangEditor/render-style.d.ts +7 -0
- package/types/PlottingTool/HtmlBox/WangEditor/stroke-color-config.d.ts +1 -0
- package/types/PlottingTool/HtmlBox/WangEditor/style-to-html.d.ts +1 -0
- package/types/PlottingTool/HtmlBox/WangEditor/text-stroke-color.d.ts +13 -0
- package/types/PlottingTool/HtmlBox/WangEditor/text-stroke-width.d.ts +20 -0
- package/types/PlottingTool/HtmlBox/WangEditor/tools.d.ts +7 -0
- package/types/PlottingTool/HtmlBox/html-box-base.d.ts +34 -0
- package/types/PlottingTool/HtmlBox/html-css-prop.d.ts +3 -0
- package/types/PlottingTool/HtmlBox/new-rich-text.d.ts +6 -0
- package/types/PlottingTool/HtmlBox/pic-collection.d.ts +17 -0
- package/types/PlottingTool/HtmlBox/rich-text.d.ts +6 -0
- package/types/PlottingTool/HtmlBox/subtitle-box.d.ts +6 -0
- package/types/PlottingTool/HtmlBox/videoBox.d.ts +8 -0
- package/types/PlottingTool/Image/EditorHtml.d.ts +36 -0
- package/types/PlottingTool/Image/EditorImage.d.ts +10 -0
- package/types/PlottingTool/Image/EditorJBPointObject.d.ts +23 -0
- package/types/PlottingTool/Image/EditorRedFlag.d.ts +7 -0
- package/types/PlottingTool/Interface/LayerConfig.d.ts +22 -0
- package/types/PlottingTool/NoControlPrimitive/EditorGeometryMultiPolyBase.d.ts +17 -0
- package/types/PlottingTool/NoControlPrimitive/EditorGeometryMultiPolygon.d.ts +11 -0
- package/types/PlottingTool/NoControlPrimitive/EditorGeometryMultiPolyline.d.ts +14 -0
- package/types/PlottingTool/NoControlPrimitive/EditorGeometryPolygon.d.ts +41 -0
- package/types/PlottingTool/NoControlPrimitive/EditorGeometryPolyline.d.ts +28 -0
- package/types/PlottingTool/NoControlPrimitive/EditorGeometryWall.d.ts +18 -0
- package/types/PlottingTool/NoControlPrimitive/NoControlPrimitive.d.ts +26 -0
- package/types/PlottingTool/NoControlPrimitive/PercentPolyine.d.ts +17 -0
- package/types/PlottingTool/PlottingBaseNode.d.ts +40 -0
- package/types/PlottingTool/PlottingBehavior.d.ts +91 -0
- package/types/PlottingTool/PlottingCommon.d.ts +20 -0
- package/types/PlottingTool/Point/ConeCommunicateWave.d.ts +46 -0
- package/types/PlottingTool/Point/EditorBasePrimitive.d.ts +12 -0
- package/types/PlottingTool/Point/EditorCloud.d.ts +43 -0
- package/types/PlottingTool/Point/EditorCommunicateWave.d.ts +44 -0
- package/types/PlottingTool/Point/EditorJBPointScreen.d.ts +51 -0
- package/types/PlottingTool/Point/EditorModel.d.ts +59 -0
- package/types/PlottingTool/Point/EditorParticle.d.ts +37 -0
- package/types/PlottingTool/Point/EditorPin.d.ts +55 -0
- package/types/PlottingTool/Point/EditorPinCanvas.d.ts +94 -0
- package/types/PlottingTool/Point/EditorPinImage.d.ts +110 -0
- package/types/PlottingTool/Point/EditorPinMakiIcon.d.ts +13 -0
- package/types/PlottingTool/Point/EditorPinText.d.ts +14 -0
- package/types/PlottingTool/Point/EditorPlaneText.d.ts +79 -0
- package/types/PlottingTool/Point/EditorPoint.d.ts +28 -0
- package/types/PlottingTool/Point/EditorRadar.d.ts +80 -0
- package/types/PlottingTool/Point/EditorText.d.ts +93 -0
- package/types/PlottingTool/Point/EditorText_old.d.ts +58 -0
- package/types/PlottingTool/Point/PointJbStrokeSvgHelper.d.ts +28 -0
- package/types/PlottingTool/Point/PointJbSvgHelper.d.ts +31 -0
- package/types/PlottingTool/Point/UECamera.d.ts +49 -0
- package/types/PlottingTool/Polygon/EditorArrow1.d.ts +10 -0
- package/types/PlottingTool/Polygon/EditorCircle.d.ts +13 -0
- package/types/PlottingTool/Polygon/EditorEllipse.d.ts +12 -0
- package/types/PlottingTool/Polygon/EditorFrustum.d.ts +36 -0
- package/types/PlottingTool/Polygon/EditorPolygon.d.ts +102 -0
- package/types/PlottingTool/Polygon/EditorRectangle.d.ts +40 -0
- package/types/PlottingTool/Polygon/EditorRectangleExpand.d.ts +16 -0
- package/types/PlottingTool/Polygon/EditorSector.d.ts +16 -0
- package/types/PlottingTool/Polyline/EditorBezier1.d.ts +9 -0
- package/types/PlottingTool/Polyline/EditorBezier2.d.ts +9 -0
- package/types/PlottingTool/Polyline/EditorBezierN.d.ts +9 -0
- package/types/PlottingTool/Polyline/EditorBezierSpline.d.ts +9 -0
- package/types/PlottingTool/Polyline/EditorCircleArc.d.ts +10 -0
- package/types/PlottingTool/Polyline/EditorCurve.d.ts +7 -0
- package/types/PlottingTool/Polyline/EditorJBLine.d.ts +8 -0
- package/types/PlottingTool/Polyline/EditorPointArc.d.ts +21 -0
- package/types/PlottingTool/Polyline/EditorPointLine.d.ts +12 -0
- package/types/PlottingTool/Polyline/EditorPointSpline.d.ts +8 -0
- package/types/PlottingTool/Polyline/EditorPolyline.d.ts +109 -0
- package/types/PlottingTool/Polyline/EditorRoutePolyline.d.ts +16 -0
- package/types/PlottingTool/Polyline/plotsList.d.ts +6 -0
- package/types/PlottingTool/RegexHelper.d.ts +10 -0
- package/types/PlottingTool/Text/EditorAreaText.d.ts +44 -0
- package/types/PlottingTool/Text/EditorRouteText.d.ts +64 -0
- package/types/PlottingTool/Text/MedianLine.d.ts +22 -0
- package/types/PlottingTool/VideoElement/EditorVideo.d.ts +9 -0
- package/types/PlottingTool/drawToolExt/DrawAreaTextToolEx.d.ts +19 -0
- package/types/PlottingTool/drawToolExt/DrawBillboardToolEx.d.ts +21 -0
- package/types/PlottingTool/drawToolExt/DrawCtrlPointToolEx.d.ts +20 -0
- package/types/PlottingTool/drawToolExt/DrawHtmlToolEx.d.ts +31 -0
- package/types/PlottingTool/drawToolExt/DrawLineToolEx.d.ts +20 -0
- package/types/PlottingTool/drawToolExt/DrawMedianPointToolEx.d.ts +15 -0
- package/types/PlottingTool/drawToolExt/DrawModelToolEx.d.ts +21 -0
- package/types/PlottingTool/drawToolExt/DrawPointToolEx.d.ts +21 -0
- package/types/PlottingTool/drawToolExt/DrawPolygonToolEx.d.ts +20 -0
- package/types/PlottingTool/drawToolExt/DrawRouteTextToolEx.d.ts +16 -0
- package/types/PlottingTool/drawToolExt/DrawTextToolEx.d.ts +21 -0
- package/types/PlottingTool/drawToolExt/DrawToolManager.d.ts +60 -0
- package/types/PlottingTool/drawToolExt/HitPointToolEx.d.ts +10 -0
- package/types/PlottingTool/drawToolExt/HitRectToolEx.d.ts +10 -0
- package/types/PlottingTool/drawToolExt/base/List.d.ts +22 -0
- package/types/PlottingTool/drawToolExt/calcuteShape.d.ts +3 -0
- package/types/PlottingTool/drawToolExt/entity/MaxRecTest.d.ts +21 -0
- package/types/PlottingTool/drawToolExt/entity/XZAreaTextEntity.d.ts +36 -0
- package/types/PlottingTool/drawToolExt/entity/XZBaseEntity.d.ts +17 -0
- package/types/PlottingTool/drawToolExt/entity/XZBillboardEntity.d.ts +17 -0
- package/types/PlottingTool/drawToolExt/entity/XZCtrlPointEntity.d.ts +16 -0
- package/types/PlottingTool/drawToolExt/entity/XZHtmlEntity.d.ts +15 -0
- package/types/PlottingTool/drawToolExt/entity/XZLineEntity.d.ts +20 -0
- package/types/PlottingTool/drawToolExt/entity/XZMedianPointEntity.d.ts +16 -0
- package/types/PlottingTool/drawToolExt/entity/XZModelEntity.d.ts +17 -0
- package/types/PlottingTool/drawToolExt/entity/XZPointEntity.d.ts +16 -0
- package/types/PlottingTool/drawToolExt/entity/XZPolygonEntity.d.ts +19 -0
- package/types/PlottingTool/drawToolExt/entity/XZRouteTextEntity.d.ts +16 -0
- package/types/PlottingTool/drawToolExt/entity/XZTextEntity.d.ts +16 -0
- package/types/PlottingTool/drawToolExt/interface/IBase.d.ts +23 -0
- package/types/PlottingTool/drawToolExt/interface/ICesium.d.ts +99 -0
- package/types/PlottingTool/drawToolExt/interface/IData.d.ts +56 -0
- package/types/PlottingTool/drawToolExt/interface/IEntity.d.ts +80 -0
- package/types/PlottingTool/drawToolExt/interface/IStyle.d.ts +127 -0
- package/types/PlottingTool/drawToolExt/interface/ITool.d.ts +31 -0
- package/types/PlottingTool/drawToolExt/interface/geojson.d.ts +192 -0
- package/types/PlottingTool/drawToolExt/styles/XZAreaTextStyle.d.ts +14 -0
- package/types/PlottingTool/drawToolExt/styles/XZBaseStyle.d.ts +6 -0
- package/types/PlottingTool/drawToolExt/styles/XZBillboardStyle.d.ts +9 -0
- package/types/PlottingTool/drawToolExt/styles/XZHtmlStyle.d.ts +71 -0
- package/types/PlottingTool/drawToolExt/styles/XZLineStyle.d.ts +12 -0
- package/types/PlottingTool/drawToolExt/styles/XZModelStyle.d.ts +9 -0
- package/types/PlottingTool/drawToolExt/styles/XZPointStyle.d.ts +12 -0
- package/types/PlottingTool/drawToolExt/styles/XZPolygonStyle.d.ts +8 -0
- package/types/PlottingTool/drawToolExt/styles/XZRouteTextStyle.d.ts +11 -0
- package/types/PlottingTool/drawToolExt/styles/XZTextStyle.d.ts +14 -0
- package/types/PlottingTool/geojson/EditorGeojsonMultiPolyBase.d.ts +33 -0
- package/types/PlottingTool/geojson/EditorGeojsonMultiPolygon.d.ts +28 -0
- package/types/PlottingTool/geojson/EditorGeojsonMultiPolyline.d.ts +21 -0
- package/types/PlottingTool/geojson/EditorGeojsonPolygon.d.ts +13 -0
- package/types/PlottingTool/geojson/EditorGeojsonPolyline.d.ts +13 -0
- package/types/PlottingTool/geojson/GeojsonPercentPolyine.d.ts +18 -0
- package/types/PlottingTool/geojson/parsePolygon.d.ts +25 -0
- package/types/PlottingTool/shareGraph.d.ts +16 -0
- package/types/Scene/Analyzation/Measure.d.ts +120 -0
- package/types/Scene/EventSource/ContextSizeChanged.d.ts +13 -0
- package/types/Scene/GraticuleLayer/Graticule.d.ts +15 -0
- package/types/Scene/Sea/RenderSeaPolygon.d.ts +9 -0
- package/types/SceneObjects/CustomPrimitive/SharedTexturePool.d.ts +13 -0
- package/types/SceneObjects/CustomPrimitive/extrudePolyline.d.ts +1 -0
- package/types/SceneObjects/RenderObject/BindedCylinder.d.ts +40 -0
- package/types/SceneObjects/RenderObject/Bubble.d.ts +125 -0
- package/types/SceneObjects/RenderObject/CesiumBillboard.d.ts +20 -0
- package/types/SceneObjects/RenderObject/CesiumCylinder.d.ts +30 -0
- package/types/SceneObjects/RenderObject/CesiumEllipse.d.ts +29 -0
- package/types/SceneObjects/RenderObject/CesiumEllipsoid.d.ts +29 -0
- package/types/SceneObjects/RenderObject/CesiumLabel.d.ts +29 -0
- package/types/SceneObjects/RenderObject/CesiumLabelBillboard.d.ts +39 -0
- package/types/SceneObjects/RenderObject/CesiumLabelRect.d.ts +33 -0
- package/types/SceneObjects/RenderObject/CesiumModel.d.ts +20 -0
- package/types/SceneObjects/RenderObject/CesiumOblique.d.ts +33 -0
- package/types/SceneObjects/RenderObject/CesiumPoint.d.ts +22 -0
- package/types/SceneObjects/RenderObject/CesiumPolygon.d.ts +24 -0
- package/types/SceneObjects/RenderObject/CesiumPolyline.d.ts +24 -0
- package/types/SceneObjects/RenderObject/CesiumPopover.d.ts +30 -0
- package/types/SceneObjects/RenderObject/CesiumRectangle.d.ts +34 -0
- package/types/SceneObjects/RenderObject/CesiumSphere.d.ts +29 -0
- package/types/SceneObjects/RenderObject/CesiumVolumePolyline.d.ts +32 -0
- package/types/SceneObjects/RenderObject/CesiumWall.d.ts +29 -0
- package/types/SceneObjects/RenderObject/CircularRender.d.ts +24 -0
- package/types/SceneObjects/RenderObject/CustomLabelRender.d.ts +23 -0
- package/types/SceneObjects/RenderObject/CylinderSensor.d.ts +47 -0
- package/types/SceneObjects/RenderObject/DashBoardEffect.d.ts +39 -0
- package/types/SceneObjects/RenderObject/DynamicItem/DynamicItemFlame.d.ts +42 -0
- package/types/SceneObjects/RenderObject/DynamicItem/DynamicItemPath.d.ts +182 -0
- package/types/SceneObjects/RenderObject/DynamicItem/DynamicItemState.d.ts +7 -0
- package/types/SceneObjects/RenderObject/DynamicItem/DynamicItemStyle.d.ts +182 -0
- package/types/SceneObjects/RenderObject/DynamicItem/DynamicTimePositions.d.ts +102 -0
- package/types/SceneObjects/RenderObject/DynamicItem/HistoryTrack.d.ts +159 -0
- package/types/SceneObjects/RenderObject/DynamicItem/WarningTarget.d.ts +36 -0
- package/types/SceneObjects/RenderObject/DynamicRippleEffect.d.ts +23 -0
- package/types/SceneObjects/RenderObject/Flag.d.ts +43 -0
- package/types/SceneObjects/RenderObject/GradientSector.d.ts +46 -0
- package/types/SceneObjects/RenderObject/Graphics/GraphicGroup.d.ts +113 -0
- package/types/SceneObjects/RenderObject/RenderObject.d.ts +37 -0
- package/types/SceneObjects/RenderObject/RenderUtils.d.ts +35 -0
- package/types/SceneObjects/RenderObject/ScanEffect.d.ts +40 -0
- package/types/SceneObjects/RenderObject/SectorSensor.d.ts +42 -0
- package/types/SceneObjects/RenderObject/SensorRender.d.ts +15 -0
- package/types/SceneObjects/RenderObject/SpreadEffect.d.ts +47 -0
- package/types/SceneObjects/RenderObject/WaterEffect.d.ts +31 -0
- package/types/SceneObjects/RenderObject/WeatherParticle.d.ts +30 -0
- package/types/SceneObjects/ViewshedAnalysis.d.ts +98 -0
- package/types/SceneObjects/_shared/Destroyable.d.ts +9 -0
- package/types/SceneObjects/_shared/ResourceHandler.d.ts +14 -0
- package/types/SceneObjects/_shared/destroyObject.d.ts +18 -0
- package/types/Service/SceneOptions/Graticule.d.ts +15 -0
- package/types/Service/action.service.d.ts +92 -0
- package/types/Service/advance-html.service.d.ts +12 -0
- package/types/Service/animation.service.d.ts +84 -0
- package/types/Service/cesium.service.d.ts +85 -0
- package/types/Service/cluster.service.d.ts +7 -0
- package/types/Service/config.service.d.ts +24 -0
- package/types/Service/drawServices/VectorRender/renderModels.d.ts +13 -0
- package/types/Service/drawbigfile.service.d.ts +24 -0
- package/types/Service/fwbconfig.d.ts +3 -0
- package/types/Service/geojson-plot.service.d.ts +21 -0
- package/types/Service/html-draw.service.d.ts +134 -0
- package/types/Service/http.service.d.ts +15 -0
- package/types/Service/layers.service.d.ts +34 -0
- package/types/Service/logicService/point.service.d.ts +60 -0
- package/types/Service/message.service.d.ts +4 -0
- package/types/Service/music.service.d.ts +23 -0
- package/types/Service/parse-style-html.d.ts +7 -0
- package/types/Service/plot.service.d.ts +115 -0
- package/types/Service/property.service.d.ts +52 -0
- package/types/Service/render-style.d.ts +7 -0
- package/types/Service/richTextEdit.service.d.ts +35 -0
- package/types/Service/sceneServices/BigFileManager.d.ts +12 -0
- package/types/Service/sceneServices/CesiumManager.d.ts +18 -0
- package/types/Service/sceneServices/EagleManager.d.ts +35 -0
- package/types/Service/sceneServices/HtmlDrawManager.d.ts +12 -0
- package/types/Service/sceneServices/ImageEffectManager.d.ts +19 -0
- package/types/Service/sceneServices/LayerManage.d.ts +61 -0
- package/types/Service/sceneServices/MusicManager.d.ts +10 -0
- package/types/Service/sceneServices/PageAnimationManager.d.ts +39 -0
- package/types/Service/sceneServices/SubtitleManager.d.ts +6 -0
- package/types/Service/sceneServices/TerrainManager.d.ts +11 -0
- package/types/Service/sceneServices/sceneManager.d.ts +71 -0
- package/types/Service/sceneServices/snap.d.ts +33 -0
- package/types/Service/service.manager.d.ts +174 -0
- package/types/Service/stroke-color-config.d.ts +1 -0
- package/types/Service/style-to-html.d.ts +1 -0
- package/types/Service/terrain.service.d.ts +11 -0
- package/types/Service/text-stroke-color.d.ts +13 -0
- package/types/Service/text-stroke-width.d.ts +20 -0
- package/types/Service/tools.d.ts +7 -0
- package/types/Utils/Calculate.d.ts +212 -0
- package/types/Utils/Check.d.ts +98 -0
- package/types/Utils/DateHelper.d.ts +30 -0
- package/types/Utils/GxMath.d.ts +102 -0
- package/types/Utils/GxVector3.d.ts +7 -0
- package/types/Utils/HtmlUtil.d.ts +12 -0
- package/types/Utils/MilsymbolHelper.d.ts +20 -0
- package/types/Utils/TokenHelper.d.ts +36 -0
- package/types/Utils/Util.d.ts +204 -0
- package/types/Utils/d3Clock.d.ts +11 -0
- package/types/Utils/index.d.ts +17 -0
- package/types/Utils/pinyin.static.d.ts +375 -0
- package/types/Utils/pinyin.tool.d.ts +5 -0
- package/types/Utils/pinyin_all.d.ts +20 -0
- package/types/Utils/ready.d.ts +3 -0
- package/types/Utils/tools.d.ts +31 -0
- package/types/index.d.ts +98 -0
- package/types/index.html +35 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { CesiumLayer } from './CesiumLayer';
|
|
2
|
+
import { CesiumLayerOptions } from './CesiumLayerOptions';
|
|
3
|
+
/**
|
|
4
|
+
* 使用cesium来展示图层,cesium的viewer实例需要自己创建然后传入
|
|
5
|
+
* @param viewer Cesium的viewer实例
|
|
6
|
+
* @returns 返回CesiumInstance
|
|
7
|
+
*/
|
|
8
|
+
export declare function useCesium(viewer: Cesium.Viewer): CesiumInstance | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Cesium的封装类,提供了一些简化的图层操作,适用Cesium版本xxxxx
|
|
11
|
+
*/
|
|
12
|
+
export declare class CesiumInstance {
|
|
13
|
+
/**
|
|
14
|
+
* Cesium的原始viewer实例,需要自行传入
|
|
15
|
+
*/
|
|
16
|
+
_viewer: Cesium.Viewer;
|
|
17
|
+
/**
|
|
18
|
+
* 当前的图层,包括隐藏的图层,key是图层的名称,value是cesium图层封装类
|
|
19
|
+
*/
|
|
20
|
+
cesiumLayerMap: {
|
|
21
|
+
[index: string]: CesiumLayer;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* 创建Cesium封装类,需要传入Cesium.Viewer实例
|
|
25
|
+
* @param viewer Cesium的Viewer实例
|
|
26
|
+
*/
|
|
27
|
+
constructor(viewer: Cesium.Viewer);
|
|
28
|
+
/**
|
|
29
|
+
* 当前所有的图层封装类列表
|
|
30
|
+
*/
|
|
31
|
+
get cesiumLayers(): CesiumLayer[];
|
|
32
|
+
/**
|
|
33
|
+
* 当前显示的图层封装类列表
|
|
34
|
+
*/
|
|
35
|
+
get curCesiumLayer(): CesiumLayer[];
|
|
36
|
+
/**
|
|
37
|
+
* 添加图层
|
|
38
|
+
* @param option 图层的相关配置
|
|
39
|
+
* @returns 创建后的图层封装类
|
|
40
|
+
*/
|
|
41
|
+
addLayer(option: CesiumLayerOptions): CesiumLayer;
|
|
42
|
+
/**
|
|
43
|
+
* 根据名称获取图层封装类
|
|
44
|
+
* @param name 图层名称
|
|
45
|
+
* @returns 图层封装类
|
|
46
|
+
*/
|
|
47
|
+
getLayerByName(name: string): CesiumLayer | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* 根据名称移除图层
|
|
50
|
+
* @param name 图层名称
|
|
51
|
+
* @returns 删除结果
|
|
52
|
+
*/
|
|
53
|
+
removeLayerByName(name: string): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* 根据名称显示图层
|
|
56
|
+
* @param name 图层名称
|
|
57
|
+
*/
|
|
58
|
+
showLayerByName(name: string): void;
|
|
59
|
+
/**
|
|
60
|
+
* 根据名称隐藏图层
|
|
61
|
+
* @param name 图层名称
|
|
62
|
+
*/
|
|
63
|
+
hideLayerByName(name: string): void;
|
|
64
|
+
/**
|
|
65
|
+
* 添加地形
|
|
66
|
+
* @param param
|
|
67
|
+
*/
|
|
68
|
+
setTerrain(param: any): void;
|
|
69
|
+
/**
|
|
70
|
+
* 清除地形
|
|
71
|
+
*/
|
|
72
|
+
clearTerrain(): void;
|
|
73
|
+
}
|
|
74
|
+
declare const _default: {
|
|
75
|
+
CesiumInstance: typeof CesiumInstance;
|
|
76
|
+
useCesium: typeof useCesium;
|
|
77
|
+
};
|
|
78
|
+
export default _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { CesiumInstance } from "./CesiumInstance";
|
|
2
|
+
import { CesiumLayerOptions } from "./CesiumLayerOptions";
|
|
3
|
+
/**
|
|
4
|
+
* 封装了Cesium图层相关的方法,方便对图层进行操作
|
|
5
|
+
*/
|
|
6
|
+
export declare class CesiumLayer {
|
|
7
|
+
/**
|
|
8
|
+
* Cesium的原始Cesium.UrlTemplateImageryProvider对象
|
|
9
|
+
*/
|
|
10
|
+
_provider: Cesium.UrlTemplateImageryProvider;
|
|
11
|
+
/**
|
|
12
|
+
* cesium封装类
|
|
13
|
+
*/
|
|
14
|
+
private _cesiumIns;
|
|
15
|
+
/**
|
|
16
|
+
* 图层名称
|
|
17
|
+
*/
|
|
18
|
+
name: string;
|
|
19
|
+
private _index;
|
|
20
|
+
/**
|
|
21
|
+
* Cesium中的原始Cesium.ImageryLayer对象
|
|
22
|
+
*/
|
|
23
|
+
_layer: Cesium.ImageryLayer;
|
|
24
|
+
/**
|
|
25
|
+
* 创建Cesium图层封装类,
|
|
26
|
+
* @param option cesium图层配置
|
|
27
|
+
* @param _cesiumIns cesium封装类实例
|
|
28
|
+
*/
|
|
29
|
+
constructor(option: CesiumLayerOptions, _cesiumIns: CesiumInstance);
|
|
30
|
+
/**
|
|
31
|
+
* 图层的显示状态,
|
|
32
|
+
*/
|
|
33
|
+
get show(): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* 直接赋值可控制图层的显示或者隐藏
|
|
36
|
+
*/
|
|
37
|
+
set show(value: boolean);
|
|
38
|
+
/**
|
|
39
|
+
* 图层的层级,值越大层级越高,
|
|
40
|
+
*/
|
|
41
|
+
get index(): number;
|
|
42
|
+
/**
|
|
43
|
+
* 直接赋值可控制图层的层级,由于cesium的限制,index的值不可大于实际的图层数量
|
|
44
|
+
*/
|
|
45
|
+
set index(value: number);
|
|
46
|
+
/**
|
|
47
|
+
* 图层的透明度,值的范围为0-1
|
|
48
|
+
*/
|
|
49
|
+
get opacity(): number;
|
|
50
|
+
/**
|
|
51
|
+
* 直接赋值可控制图层的透明度
|
|
52
|
+
*/
|
|
53
|
+
set opacity(value: number);
|
|
54
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface CesiumLayerOptions {
|
|
2
|
+
/**
|
|
3
|
+
* 图层名称
|
|
4
|
+
*/
|
|
5
|
+
name: string;
|
|
6
|
+
/**
|
|
7
|
+
* 投影坐标系,目前支持EPSG:3857
|
|
8
|
+
*/
|
|
9
|
+
projection: string;
|
|
10
|
+
/**
|
|
11
|
+
* 最小的缩放层级
|
|
12
|
+
*/
|
|
13
|
+
minimumLevel: number;
|
|
14
|
+
/**
|
|
15
|
+
* 最大缩放层级
|
|
16
|
+
*/
|
|
17
|
+
maximumLevel: number;
|
|
18
|
+
/**
|
|
19
|
+
* 跨域设置
|
|
20
|
+
*/
|
|
21
|
+
crossOrigin: 'anonymous';
|
|
22
|
+
/**
|
|
23
|
+
* 初始后是否显示
|
|
24
|
+
*/
|
|
25
|
+
visible: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* 层级
|
|
28
|
+
*/
|
|
29
|
+
index: number;
|
|
30
|
+
/**
|
|
31
|
+
* 子域名
|
|
32
|
+
*/
|
|
33
|
+
subdomains: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Subject, Subscription } from "rxjs";
|
|
2
|
+
export declare class mapboxVectorRender {
|
|
3
|
+
private labelCollectionMap;
|
|
4
|
+
private labelCollection;
|
|
5
|
+
labelMap: Map<string, Cesium.Billboard>;
|
|
6
|
+
private iconMap;
|
|
7
|
+
private layerMap;
|
|
8
|
+
clearAll(): void;
|
|
9
|
+
addBillboard(text: string, options: any): any;
|
|
10
|
+
layerPlaceMap: Map<string, Cesium.Billboard>;
|
|
11
|
+
isCollsionWithRect(b1: any, b2: any): boolean;
|
|
12
|
+
_refineChildrenTiles(ttl: any, targetLevel: any, res: Array<any>): void;
|
|
13
|
+
visibility: boolean;
|
|
14
|
+
layer: any;
|
|
15
|
+
viewer: Cesium.Viewer;
|
|
16
|
+
loadSubscription$: Subscription;
|
|
17
|
+
unloadSubscription$: Subscription;
|
|
18
|
+
constructor(viewer: Cesium.Viewer, loadSubject: Subject<any>, unloadSubject: Subject<any>, layerMap: any);
|
|
19
|
+
updateListener: any;
|
|
20
|
+
convertToSameLevel(tilesToRender: any): any[];
|
|
21
|
+
getChildrenByLevel(tilesChildren: any, maxLevel: any): any;
|
|
22
|
+
hasIntersection(arr1: any, arr2: any): boolean;
|
|
23
|
+
guid(): string;
|
|
24
|
+
getLayerStyle(layer: any): any;
|
|
25
|
+
getDifference(arr1: any, arr2: any): any[];
|
|
26
|
+
getCenter(item: any): any;
|
|
27
|
+
}
|
|
28
|
+
export declare class SymbolStyle {
|
|
29
|
+
textFont: string;
|
|
30
|
+
textSize: number;
|
|
31
|
+
textOffsetX: number;
|
|
32
|
+
textOffsetY: number;
|
|
33
|
+
textColor: string;
|
|
34
|
+
textAnchor: string;
|
|
35
|
+
textAnchorTemp: any;
|
|
36
|
+
textJustify: string;
|
|
37
|
+
outlineWidth: number;
|
|
38
|
+
outlineColor: string;
|
|
39
|
+
textWeight: string;
|
|
40
|
+
textPadding: number;
|
|
41
|
+
textField: string;
|
|
42
|
+
iconImage: string;
|
|
43
|
+
iconColor: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { mapboxVectorRender } from "./MVTImageryProvider/mapboxVectorRender";
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
export declare class MapboxPlaceName {
|
|
4
|
+
/**
|
|
5
|
+
* Cesium的原始viewer实例,需要自行传入
|
|
6
|
+
*/
|
|
7
|
+
_viewer: Cesium.Viewer;
|
|
8
|
+
style: any;
|
|
9
|
+
/**
|
|
10
|
+
* 创建Cesium封装类,需要传入Cesium.Viewer实例
|
|
11
|
+
* @param viewer Cesium的Viewer实例
|
|
12
|
+
*/
|
|
13
|
+
constructor(viewer: Cesium.Viewer, style: any);
|
|
14
|
+
loavectors: Subject<any>;
|
|
15
|
+
unloavectors: Subject<unknown>;
|
|
16
|
+
mvtProvider: any;
|
|
17
|
+
mapboxVectorRender: mapboxVectorRender;
|
|
18
|
+
initSubject(layerMap: any): void;
|
|
19
|
+
vectorLayer: Cesium.ImageryLayer | undefined;
|
|
20
|
+
loadPbf(): void;
|
|
21
|
+
handleLayers({ layers }: {
|
|
22
|
+
layers: any;
|
|
23
|
+
}): void;
|
|
24
|
+
loadCustomLayers(): Promise<void>;
|
|
25
|
+
clearAll(): void;
|
|
26
|
+
}
|
|
27
|
+
declare const _default: {
|
|
28
|
+
MapboxPlaceName: typeof MapboxPlaceName;
|
|
29
|
+
};
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TokenHelper } from "@metagl/sdk-core";
|
|
2
|
+
type tiffOptions = {
|
|
3
|
+
data: any;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
clampLow?: boolean;
|
|
7
|
+
clampHigh?: boolean;
|
|
8
|
+
domain?: [number, number];
|
|
9
|
+
colorScale?: string;
|
|
10
|
+
bound: any;
|
|
11
|
+
};
|
|
12
|
+
export declare function useMapbox(map: any): MapboxInstance;
|
|
13
|
+
export declare class MapboxInstance {
|
|
14
|
+
map: any;
|
|
15
|
+
constructor(instance: any);
|
|
16
|
+
addLayer(option: any): any;
|
|
17
|
+
addGeoTiffData(options: tiffOptions): any;
|
|
18
|
+
addGeoTiffRGBData(options: tiffOptions): string;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: {
|
|
21
|
+
useMapbox: typeof useMapbox;
|
|
22
|
+
addColorScale: any;
|
|
23
|
+
TokenHelper: typeof TokenHelper;
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
export declare const colorscales: {
|
|
2
|
+
viridis: Uint8Array<ArrayBuffer>;
|
|
3
|
+
inferno: Uint8Array<ArrayBuffer>;
|
|
4
|
+
turbo: Uint8Array<ArrayBuffer>;
|
|
5
|
+
rainbow: {
|
|
6
|
+
colors: string[];
|
|
7
|
+
positions: number[];
|
|
8
|
+
};
|
|
9
|
+
jet: {
|
|
10
|
+
colors: string[];
|
|
11
|
+
positions: number[];
|
|
12
|
+
};
|
|
13
|
+
hsv: {
|
|
14
|
+
colors: string[];
|
|
15
|
+
positions: number[];
|
|
16
|
+
};
|
|
17
|
+
hot: {
|
|
18
|
+
colors: string[];
|
|
19
|
+
positions: number[];
|
|
20
|
+
};
|
|
21
|
+
cool: {
|
|
22
|
+
colors: string[];
|
|
23
|
+
positions: number[];
|
|
24
|
+
};
|
|
25
|
+
spring: {
|
|
26
|
+
colors: string[];
|
|
27
|
+
positions: number[];
|
|
28
|
+
};
|
|
29
|
+
summer: {
|
|
30
|
+
colors: string[];
|
|
31
|
+
positions: number[];
|
|
32
|
+
};
|
|
33
|
+
autumn: {
|
|
34
|
+
colors: string[];
|
|
35
|
+
positions: number[];
|
|
36
|
+
};
|
|
37
|
+
winter: {
|
|
38
|
+
colors: string[];
|
|
39
|
+
positions: number[];
|
|
40
|
+
};
|
|
41
|
+
bone: {
|
|
42
|
+
colors: string[];
|
|
43
|
+
positions: number[];
|
|
44
|
+
};
|
|
45
|
+
copper: {
|
|
46
|
+
colors: string[];
|
|
47
|
+
positions: number[];
|
|
48
|
+
};
|
|
49
|
+
greys: {
|
|
50
|
+
colors: string[];
|
|
51
|
+
positions: number[];
|
|
52
|
+
};
|
|
53
|
+
ylgnbu: {
|
|
54
|
+
colors: string[];
|
|
55
|
+
positions: number[];
|
|
56
|
+
};
|
|
57
|
+
greens: {
|
|
58
|
+
colors: string[];
|
|
59
|
+
positions: number[];
|
|
60
|
+
};
|
|
61
|
+
ylorrd: {
|
|
62
|
+
colors: string[];
|
|
63
|
+
positions: number[];
|
|
64
|
+
};
|
|
65
|
+
bluered: {
|
|
66
|
+
colors: string[];
|
|
67
|
+
positions: number[];
|
|
68
|
+
};
|
|
69
|
+
rdbu: {
|
|
70
|
+
colors: string[];
|
|
71
|
+
positions: number[];
|
|
72
|
+
};
|
|
73
|
+
picnic: {
|
|
74
|
+
colors: string[];
|
|
75
|
+
positions: number[];
|
|
76
|
+
};
|
|
77
|
+
portland: {
|
|
78
|
+
colors: string[];
|
|
79
|
+
positions: number[];
|
|
80
|
+
};
|
|
81
|
+
blackbody: {
|
|
82
|
+
colors: string[];
|
|
83
|
+
positions: number[];
|
|
84
|
+
};
|
|
85
|
+
earth: {
|
|
86
|
+
colors: string[];
|
|
87
|
+
positions: number[];
|
|
88
|
+
};
|
|
89
|
+
electric: {
|
|
90
|
+
colors: string[];
|
|
91
|
+
positions: number[];
|
|
92
|
+
};
|
|
93
|
+
magma: Uint8Array<ArrayBuffer>;
|
|
94
|
+
plasma: Uint8Array<ArrayBuffer>;
|
|
95
|
+
redblue: {
|
|
96
|
+
colors: string[];
|
|
97
|
+
positions: number[];
|
|
98
|
+
};
|
|
99
|
+
coolwarm: {
|
|
100
|
+
colors: string[];
|
|
101
|
+
positions: number[];
|
|
102
|
+
};
|
|
103
|
+
diverging_1: {
|
|
104
|
+
colors: string[];
|
|
105
|
+
positions: number[];
|
|
106
|
+
};
|
|
107
|
+
diverging_2: {
|
|
108
|
+
colors: string[];
|
|
109
|
+
positions: number[];
|
|
110
|
+
};
|
|
111
|
+
blackwhite: {
|
|
112
|
+
colors: string[];
|
|
113
|
+
positions: number[];
|
|
114
|
+
};
|
|
115
|
+
twilight: {
|
|
116
|
+
colors: string[];
|
|
117
|
+
positions: number[];
|
|
118
|
+
};
|
|
119
|
+
twilight_shifted: {
|
|
120
|
+
colors: string[];
|
|
121
|
+
positions: number[];
|
|
122
|
+
};
|
|
123
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: "precision mediump float;\nuniform sampler2D u_textureData;\nuniform sampler2D u_textureScale;\nuniform vec2 u_textureSize;\nuniform vec2 u_domain;\nuniform vec2 u_display_range;\nuniform bool u_apply_display_range;\nuniform float u_noDataValue;\nuniform bool u_clampLow;\nuniform bool u_clampHigh;\nvarying vec2 v_texCoord;\n\nbool isnan( float val ) {\n return ( val < 0.0 || 0.0 < val || val == 0.0 ) ? false : true;\n}\n\nvoid main() {\n vec2 onePixel = vec2(1.0, 1.0) / u_textureSize;\n float value = texture2D(u_textureData, v_texCoord)[0];\n if(value < -3.402823466e+38) // Check for possible NaN value\n gl_FragColor = vec4(0.0, 0, 0, 0.0);\n else if (value == u_noDataValue || isnan(value))\n gl_FragColor = vec4(0.0, 0, 0, 0.0);\n else if (u_apply_display_range && (value < u_display_range[0] || value >= u_display_range[1]))\n gl_FragColor = vec4(0.0, 0, 0, 0.0);\n else if ((!u_clampLow && value < u_domain[0]) || (!u_clampHigh && value > u_domain[1]))\n gl_FragColor = vec4(0, 0, 0, 0);\n else {\n float normalisedValue = (value - u_domain[0]) / (u_domain[1] - u_domain[0]);\n gl_FragColor = texture2D(u_textureScale, vec2(normalisedValue, 0));\n }\n}";
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: "precision mediump float;\nuniform vec2 u_rminmax;\n \nuniform vec2 u_gminmax;\n\nuniform vec2 u_bminmax;\n\nuniform float u_opacity;\n\nuniform sampler2D u_texture;\n\nuniform float u_noDataValue;\n\nvarying vec2 v_texCoord;\n\nvoid main() {\n vec3 rgb = texture2D(u_texture,vec2(v_texCoord.x,v_texCoord.y)).rgb;\n if(rgb == vec3(u_noDataValue)) {\n gl_FragColor = vec4(0.0, 0, 0, 0.0);\n } else {\n gl_FragColor = vec4(rgb.r / (u_rminmax.y -u_rminmax.x), rgb.g /(u_gminmax.y -u_gminmax.x), rgb.b/ (u_bminmax.y - u_bminmax.x), u_opacity);\n }\n \n}";
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: "precision highp float;\nuniform mat4 u_ModelMatrix;\n\nuniform mat4 u_Mvp;\n\nattribute vec3 a_Position;\nattribute vec2 a_Uv;\nvarying vec2 v_texCoord;\n#define TILE_SIZE 512.0\n#define PI 3.1415926536\n#define WORLD_SCALE TILE_SIZE / (PI * 2.0)\n\n#define COORDINATE_SYSTEM_LNGLAT 1.0 // mapbox\n#define COORDINATE_SYSTEM_LNGLAT_OFFSET 2.0 // mapbox offset\n#define COORDINATE_SYSTEM_VECTOR_TILE 3.0\n#define COORDINATE_SYSTEM_IDENTITY 4.0\n#define COORDINATE_SYSTEM_P20 5.0 // amap\n#define COORDINATE_SYSTEM_P20_OFFSET 6.0 // amap offset\n#define COORDINATE_SYSTEM_METER_OFFSET 7.0\n\n#define COORDINATE_SYSTEM_P20_2 8.0 // amap2.0\n\nuniform mat4 u_ViewMatrix;\n\nuniform mat4 u_ProjectionMatrix;\n\nuniform mat4 u_ViewProjectionMatrix;\n\nuniform float u_Zoom;\n\nuniform float u_ZoomScale;\n\n\nuniform float u_CoordinateSystem;\n\nuniform vec2 u_ViewportCenter;\n\nuniform vec4 u_ViewportCenterProjection;\n\nuniform vec3 u_PixelsPerDegree;\n\nuniform vec3 u_PixelsPerDegree2;\n\nuniform vec3 u_PixelsPerMeter;\n\n\nuniform vec2 u_ViewportSize;\n\nuniform float u_DevicePixelRatio;\n\nuniform float u_FocalDistance;\n\nuniform vec3 u_CameraPosition;\n\n\n\n\n// web mercator coords -> world coords\nvec2 project_mercator(vec2 lnglat) {\n float x = lnglat.x;\n return vec2(\n radians(x) + PI,\n PI - log(tan(PI * 0.25 + radians(lnglat.y) * 0.5))\n );\n}\n\nfloat project_scale(float meters) {\n return meters * u_PixelsPerMeter.z;\n}\n\n\n// offset coords -> world coords\nvec4 project_offset(vec4 offset) {\n float dy = offset.y;\n dy = clamp(dy, -1., 1.);\n vec3 pixels_per_unit = u_PixelsPerDegree + u_PixelsPerDegree2 * dy;\n return vec4(offset.xyz * pixels_per_unit, offset.w);\n}\n\nvec3 project_normal(vec3 normal) {\n vec4 normal_modelspace = u_ModelMatrix * vec4(normal, 0.0);\n return normalize(normal_modelspace.xyz * u_PixelsPerMeter);\n}\n\nvec3 project_offset_normal(vec3 vector) {\n if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01\n || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n // normals generated by the polygon tesselator are in lnglat offsets instead of meters\n return normalize(vector * u_PixelsPerDegree);\n }\n return project_normal(vector);\n}\n// || u_CoordinateSystem < COORDINATE_SYSTEM_P20_OFFSET + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_P20_OFFSET - 0.01\n// reverse Y\nvec3 reverse_offset_normal(vec3 vector) {\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 ||u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET ) {\n return vector * vec3(1.0, -1.0, 1.0);\n }\n\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.0\n return vector;\n }\n return vector;\n}\n\nvec4 project_mvt_offset_position(vec4 position) {\n float a = COORDINATE_SYSTEM_LNGLAT_OFFSET;\n float b = COORDINATE_SYSTEM_P20_OFFSET;\n float c = COORDINATE_SYSTEM_LNGLAT;\n if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n return project_offset(vec4(0.0, 0.0, position.z, position.w));\n }\n if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01) {\n return vec4(\n project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale,\n project_scale(position.z),\n position.w\n );\n }\n return position;\n}\n\nvec4 project_position(vec4 position) {\n float a = COORDINATE_SYSTEM_LNGLAT_OFFSET;\n float b = COORDINATE_SYSTEM_P20_OFFSET;\n float c = COORDINATE_SYSTEM_LNGLAT;\n if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET\n || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n float X = position.x - u_ViewportCenter.x;\n float Y = position.y - u_ViewportCenter.y;\n return project_offset(vec4(X, Y, position.z, position.w));\n }\n if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01) {\n return vec4(\n project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale,\n project_scale(position.z),\n position.w\n );\n }\n\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20) {\n return vec4(\n (project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale - vec2(215440491., 106744817.)) * vec2(1., -1.),\n project_scale(position.z),\n position.w\n );\n }\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n // return vec4(\n // (position.xy * WORLD_SCALE * u_ZoomScale) * vec2(1., -1.), \n // project_scale(position.z), \n // position.w);\n\n return vec4(\n position.xy, \n project_scale(position.z), \n position.w);\n }\n return position;\n\n // TODO: \u74E6\u7247\u5750\u6807\u7CFB & \u5E38\u89C4\u4E16\u754C\u5750\u6807\u7CFB\n}\nvec2 project_pixel_size_to_clipspace(vec2 pixels) {\n vec2 offset = pixels / u_ViewportSize * u_DevicePixelRatio * 2.0;\n return offset * u_FocalDistance;\n}\n\nfloat project_pixel_allmap(float pixel) {\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n return pixel * pow(2.0, u_Zoom);\n }\n return pixel * u_FocalDistance ;\n}\n\n// \u9002\u914D\u7EB9\u7406\u8D34\u56FE\u7684\u7B49\u50CF\u7D20\u5927\u5C0F\nfloat project_pixel_texture(float pixel) {\n // mapbox zoom > 12\n if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n return pixel * pow(0.5, u_Zoom) * u_FocalDistance ;\n }\n\n // amap2 zoom > 12\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom))* u_FocalDistance ;\n }\n\n // amap zoom > 12\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n return pixel * pow(0.5, u_Zoom)* u_FocalDistance ;\n }\n \n // amap zoom < 12\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20) {\n return pixel * pow(2.0, (20.0 - u_Zoom))* u_FocalDistance ;\n }\n return pixel * 2.0 * u_FocalDistance;;\n}\n\n// \u5728\u4E0D\u8BBA\u4EC0\u4E48\u5E95\u56FE\u4E0B\u9700\u8981\u7EDF\u4E00\u5904\u7406\u7684\u65F6\u5019\u4F7F\u7528\nfloat project_float_pixel(float pixel) {\n if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n // mapbox P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1\n return pixel * pow(2.0, (19.0 - u_Zoom)) * u_FocalDistance ;\n }\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n // amap P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1\n return pixel * pow(2.0, (19.0 - u_Zoom));\n }\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n // amap2 P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3\n return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom))* u_FocalDistance ;\n }\n return pixel * u_FocalDistance;\n}\n\nfloat project_pixel(float pixel) {\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n // amap P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1\n return pixel * pow(2.0, (19.0 - u_Zoom)) * u_FocalDistance ;\n }\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n // amap2 P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3\n return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)) * u_FocalDistance ;\n }\n return pixel * u_FocalDistance;\n}\nvec2 project_pixel(vec2 pixel) {\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1\n return pixel * pow(2.0, (19.0 - u_Zoom)) * u_FocalDistance ;\n }\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3\n return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)) * u_FocalDistance ;\n }\n return pixel * -1. * u_FocalDistance;\n}\nvec3 project_pixel(vec3 pixel) {\n if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) {\n // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1\n return pixel * pow(2.0, (19.0 - u_Zoom)) * u_FocalDistance ;\n }\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) {\n // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3\n return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)) * u_FocalDistance ;\n }\n return pixel * -1. * u_FocalDistance;\n}\n\nvec4 project_common_position_to_clipspace(vec4 position, mat4 viewProjectionMatrix, vec4 center) {\n if (u_CoordinateSystem == COORDINATE_SYSTEM_METER_OFFSET ||\n u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n // Needs to be divided with project_uCommonUnitsPerMeter\n position.w *= u_PixelsPerMeter.z;\n }\n\n return viewProjectionMatrix * position + center;\n}\n\n// Projects from common space coordinates to clip space\nvec4 project_common_position_to_clipspace(vec4 position) {\n return project_common_position_to_clipspace(\n position,\n u_ViewProjectionMatrix,\n u_ViewportCenterProjection\n );\n}\n\nvec4 unproject_clipspace_to_position(vec4 clipspacePos, mat4 u_InverseViewProjectionMatrix) {\n vec4 pos = u_InverseViewProjectionMatrix * (clipspacePos - u_ViewportCenterProjection);\n\n if (u_CoordinateSystem == COORDINATE_SYSTEM_METER_OFFSET ||\n u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) {\n // Needs to be divided with project_uCommonUnitsPerMeter\n pos.w = pos.w / u_PixelsPerMeter.z;\n }\n return pos;\n}\n\n\nbool isEqual( float a, float b) {\n return a< b + 0.001 && a > b - 0.001;\n}\nvoid main() {\n v_texCoord = a_Uv;\n vec4 project_pos = project_position(vec4(a_Position, 1.0));\n\n if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x\n gl_Position = u_Mvp * (vec4(project_pos.xy,0., 1.0));\n } else {\n gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy,0., 1.0));\n }\n}";
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: "attribute vec2 a_position;\nattribute vec2 a_texCoord;\nuniform mat3 u_matrix;\nuniform vec2 u_resolution;\nvarying vec2 v_texCoord;\nvoid main() {\n vec2 position = (u_matrix * vec3(a_position, 1)).xy;\n vec2 zeroToOne = position / u_resolution;\n vec2 zeroToTwo = zeroToOne * 2.0;\n vec2 clipSpace = zeroToTwo - 1.0;\n gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);\n v_texCoord = a_texCoord;\n}";
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const getBoundsByLngLat: (mercator: Array<4>) => 4[][];
|
|
2
|
+
export declare const createProgram: (gl: WebGLRenderingContext, vertexShaderSource: string, fragmentShaderSource: string) => void | WebGLProgram;
|
|
3
|
+
export declare function hasOwnProperty(obj: object, prop: string): any;
|
|
4
|
+
export declare function renderColorScaleToCanvas(canvas: HTMLCanvasElement, csDef: any): void;
|
|
5
|
+
export declare function createDataset(gl: WebGLRenderingContext, id: string | null, data: any, width: number, height: number): {
|
|
6
|
+
textureData: any;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
data: any;
|
|
10
|
+
id: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function setRectangle(gl: WebGLRenderingContext, x: number, y: number, width: number, height: number): void;
|
|
13
|
+
export declare function defaultFor(arg: any, val: any): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Event } from '../../Core/Event';
|
|
2
|
+
import Graph from "../../PlottingTool/Graph";
|
|
3
|
+
import Leaf from "../../Scene/SceneTree/Leaf";
|
|
4
|
+
/**
|
|
5
|
+
* 注意:该类将于后续逐渐弃用。统一并入到GraphicLayer当中。
|
|
6
|
+
* ————————————————————————————————————————————————————
|
|
7
|
+
* @类别 无需创建,引擎初始化时自动创建</br>
|
|
8
|
+
* @描述 标绘对象图层,存储所有通过手动标绘创建的对象
|
|
9
|
+
*
|
|
10
|
+
* ```
|
|
11
|
+
* 示例代码
|
|
12
|
+
* let engine = new lacdt.Engine('GvolContainer');
|
|
13
|
+
* let points = {
|
|
14
|
+
* gvolObject:{
|
|
15
|
+
* 'gvolType': 'EditorPoint,
|
|
16
|
+
* "properties": {
|
|
17
|
+
* "pixelSize":20, //大小
|
|
18
|
+
* "color": '#FF0000', //颜色
|
|
19
|
+
* "outlineShow":true, //是否显示外边框
|
|
20
|
+
* "outlineWidth":2,
|
|
21
|
+
* "outlineColor":'#FFFFFF',
|
|
22
|
+
* "LabelName": "水体"
|
|
23
|
+
* },
|
|
24
|
+
* 'geometry':{
|
|
25
|
+
* 'coordinates':[86,30]
|
|
26
|
+
* }
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
29
|
+
* engine.graphicLayer.add(points,'point001','Point');
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare class PlotLayer extends Event {
|
|
33
|
+
private _serviceManager;
|
|
34
|
+
constructor(engine: any);
|
|
35
|
+
/**
|
|
36
|
+
* 基于参数的绘制 - 点、线、面集合
|
|
37
|
+
* @param plot 参数
|
|
38
|
+
*/
|
|
39
|
+
add(plot: any): any;
|
|
40
|
+
/**
|
|
41
|
+
* 获取标绘对象的参数文件, json对象
|
|
42
|
+
* @param plot
|
|
43
|
+
* @returns
|
|
44
|
+
*/
|
|
45
|
+
getPlotJson(plot: Leaf | Graph | Array<Leaf>): any;
|
|
46
|
+
/**
|
|
47
|
+
* 基于参数的绘制 - geojson格式(非手动点击模式)
|
|
48
|
+
* @param geojsonObj
|
|
49
|
+
* @param objName
|
|
50
|
+
* @param isVectorData
|
|
51
|
+
*/
|
|
52
|
+
addGeojson(geojsonObj: any, objName: string, isVectorData?: boolean): any[];
|
|
53
|
+
/**
|
|
54
|
+
* 未分组标绘对象集合
|
|
55
|
+
* @returns
|
|
56
|
+
*/
|
|
57
|
+
get items(): Graph[];
|
|
58
|
+
/**
|
|
59
|
+
* 叶子集合
|
|
60
|
+
*/
|
|
61
|
+
get Leafs(): any;
|
|
62
|
+
/**
|
|
63
|
+
* 获取Leaf
|
|
64
|
+
* @param gvolGuid
|
|
65
|
+
* @returns
|
|
66
|
+
*/
|
|
67
|
+
getLeaf(gvolGuid: any): any;
|
|
68
|
+
/**
|
|
69
|
+
* 删除标绘对象
|
|
70
|
+
* @param graph
|
|
71
|
+
*/
|
|
72
|
+
remove(plot: Leaf | Graph): void;
|
|
73
|
+
/**
|
|
74
|
+
* 删除所有标绘对象
|
|
75
|
+
*/
|
|
76
|
+
removeAll(): void;
|
|
77
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as satellite from "satellite.js";
|
|
2
|
+
/**
|
|
3
|
+
* 卫星
|
|
4
|
+
*/
|
|
5
|
+
export declare class Satellite {
|
|
6
|
+
_label: any;
|
|
7
|
+
_labelColor: any;
|
|
8
|
+
_orbitColor: any;
|
|
9
|
+
_orbitWidth: any;
|
|
10
|
+
_sensorColor: any;
|
|
11
|
+
_icon: any;
|
|
12
|
+
_model: any;
|
|
13
|
+
id: any;
|
|
14
|
+
name: any;
|
|
15
|
+
tleLine1: any;
|
|
16
|
+
tleLine2: any;
|
|
17
|
+
satrec: any;
|
|
18
|
+
totalSeconds: number;
|
|
19
|
+
stepSeconds: any;
|
|
20
|
+
dystep: any;
|
|
21
|
+
leadTime: number;
|
|
22
|
+
trailTime: any;
|
|
23
|
+
curPos: any;
|
|
24
|
+
_sateEntity: any;
|
|
25
|
+
defaultOptions: {
|
|
26
|
+
labelColor: string;
|
|
27
|
+
orbitColor: string;
|
|
28
|
+
orbitWidth: number;
|
|
29
|
+
sensorColor: string;
|
|
30
|
+
icon: string;
|
|
31
|
+
model: string;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @param tle 卫星轨道两根数(包含卫星名称)
|
|
36
|
+
* @param options 卫星参数
|
|
37
|
+
*/
|
|
38
|
+
constructor(tle: string, options: any);
|
|
39
|
+
set orbitColor(val: any);
|
|
40
|
+
get orbitColor(): any;
|
|
41
|
+
set orbitWidth(val: any);
|
|
42
|
+
get orbitWidth(): any;
|
|
43
|
+
set label(val: any);
|
|
44
|
+
get label(): any;
|
|
45
|
+
set labelColor(val: any);
|
|
46
|
+
get labelColor(): any;
|
|
47
|
+
set sensorColor(val: any);
|
|
48
|
+
get sensorColor(): any;
|
|
49
|
+
set icon(val: any);
|
|
50
|
+
get icon(): any;
|
|
51
|
+
set model(val: any);
|
|
52
|
+
get model(): any;
|
|
53
|
+
getPositionEci(time: any): boolean | satellite.EciVec3<number>;
|
|
54
|
+
_getPositionProperty(): Cesium.SampledPositionProperty;
|
|
55
|
+
cartesian2lnglat(viewer: any, cartesian3: any): {
|
|
56
|
+
lng: number;
|
|
57
|
+
lat: number;
|
|
58
|
+
alt: any;
|
|
59
|
+
};
|
|
60
|
+
createSatelliteEntity(): {
|
|
61
|
+
id: any;
|
|
62
|
+
name: any;
|
|
63
|
+
description: any;
|
|
64
|
+
availability: Cesium.TimeIntervalCollection;
|
|
65
|
+
position: Cesium.SampledPositionProperty;
|
|
66
|
+
path: Cesium.PathGraphics;
|
|
67
|
+
billboard: Cesium.BillboardGraphics;
|
|
68
|
+
model: {
|
|
69
|
+
show: boolean;
|
|
70
|
+
uri: string;
|
|
71
|
+
minimumPixelSize: number;
|
|
72
|
+
distanceDisplayCondition: Cesium.DistanceDisplayCondition;
|
|
73
|
+
};
|
|
74
|
+
label: {
|
|
75
|
+
text: any;
|
|
76
|
+
font: string;
|
|
77
|
+
showBackground: boolean;
|
|
78
|
+
outlineWidth: number;
|
|
79
|
+
verticalOrigin: Cesium.VerticalOrigin;
|
|
80
|
+
horizontalOrigin: Cesium.VerticalOrigin;
|
|
81
|
+
pixelOffset: Cesium.Cartesian2;
|
|
82
|
+
fillColor: Cesium.Color;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
getCylinderLength(viewer: any, satelliteEntity: any): Cesium.CallbackProperty;
|
|
86
|
+
/**
|
|
87
|
+
* 启用卫星部件
|
|
88
|
+
* @param type 卫星部件
|
|
89
|
+
*/
|
|
90
|
+
enableComponent(type: any): void;
|
|
91
|
+
/**
|
|
92
|
+
* 禁用卫星部件
|
|
93
|
+
* @param type 卫星部件
|
|
94
|
+
*/
|
|
95
|
+
disableComponent(type: any): void;
|
|
96
|
+
setComponentvisibility(type: any, value: any): void;
|
|
97
|
+
extend(dest: Object, ...sources: Array<Object>): Object;
|
|
98
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 卫星图层
|
|
3
|
+
*/
|
|
4
|
+
export declare class SatelliteLayer {
|
|
5
|
+
viewer: any;
|
|
6
|
+
satelliteList: any;
|
|
7
|
+
constructor(viewer: any);
|
|
8
|
+
/**
|
|
9
|
+
* 添加卫星
|
|
10
|
+
* @param satellite 卫星
|
|
11
|
+
*/
|
|
12
|
+
add(satellite: any): void;
|
|
13
|
+
/**
|
|
14
|
+
* 移除卫星
|
|
15
|
+
* @param satellite 卫星
|
|
16
|
+
*/
|
|
17
|
+
remove(satellite: any): void;
|
|
18
|
+
/**
|
|
19
|
+
* 清除卫星列表
|
|
20
|
+
*/
|
|
21
|
+
clear(): void;
|
|
22
|
+
/**
|
|
23
|
+
* 获取卫星列表
|
|
24
|
+
* @returns 卫星列表
|
|
25
|
+
*/
|
|
26
|
+
getSatelliteList(): any;
|
|
27
|
+
/**
|
|
28
|
+
* 通过名称获取卫星
|
|
29
|
+
* @param name 卫星名称
|
|
30
|
+
* @returns 卫星
|
|
31
|
+
*/
|
|
32
|
+
getSatelliteByName(name: any): any;
|
|
33
|
+
/**
|
|
34
|
+
* 改变速度
|
|
35
|
+
* @param factor 倍率
|
|
36
|
+
*/
|
|
37
|
+
multiplierChange(factor: any): void;
|
|
38
|
+
/**
|
|
39
|
+
* 暂停
|
|
40
|
+
*/
|
|
41
|
+
pause(): void;
|
|
42
|
+
/**
|
|
43
|
+
* 播放
|
|
44
|
+
*/
|
|
45
|
+
play(): void;
|
|
46
|
+
}
|