@ino-cesium/common 0.0.10 → 0.0.12
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/README.MD +0 -14
- package/dist/index.d.ts +60 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.MD
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -278,6 +278,13 @@ declare const calcTriangleArea: (vertexA: Cesium.Cartesian3, vertexB: Cesium.Car
|
|
|
278
278
|
* @returns {Cartesian3[]} - 地形高度点集
|
|
279
279
|
*/
|
|
280
280
|
declare const calcTerrainHeightFromPositions: (terrainProvider: Cesium.TerrainProvider, positions: Cesium.Cartesian3[]) => Promise<Cartographic[]>;
|
|
281
|
+
/**
|
|
282
|
+
* 计算场景高度
|
|
283
|
+
* @param {TerrainProvider} viewer
|
|
284
|
+
* @param {Cartesian3[]} positions - 点集
|
|
285
|
+
* @returns {Cartesian3[]} - 地形高度点集
|
|
286
|
+
*/
|
|
287
|
+
declare const calcSceneHeightFromPositions: (viewer: Cesium.Viewer, positions: Cesium.Cartesian3[]) => Promise<Cesium.Cartesian3[]>;
|
|
281
288
|
/**
|
|
282
289
|
* 计算抛物线点集,
|
|
283
290
|
* @param {Cartesian3} startPoint - 开始节点
|
|
@@ -615,5 +622,57 @@ declare const makeGridFromElevationExtrema: (maxPoint: Cartographic, minPoint: C
|
|
|
615
622
|
*/
|
|
616
623
|
declare const mekeGridPolygonAndHeight: (topLeft: number, topRight: number, bottomRight: number, bottomLeft: number, minHeight: number, maxHeight: number) => Cartesian3[];
|
|
617
624
|
|
|
618
|
-
|
|
625
|
+
/**
|
|
626
|
+
* 坐标转换工具库 - 实现了WGS84、GCJ02(火星坐标)和BD09(百度坐标)之间的相互转换
|
|
627
|
+
*/
|
|
628
|
+
/**
|
|
629
|
+
* 坐标点接口定义
|
|
630
|
+
*/
|
|
631
|
+
interface CoordinatePoint {
|
|
632
|
+
lng: number;
|
|
633
|
+
lat: number;
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* 坐标转换工具类
|
|
637
|
+
*/
|
|
638
|
+
declare class CoordinateTransformer {
|
|
639
|
+
/**
|
|
640
|
+
* WGS84坐标转换为GCJ02坐标
|
|
641
|
+
* @param point WGS84坐标点
|
|
642
|
+
* @returns GCJ02坐标点
|
|
643
|
+
*/
|
|
644
|
+
static wgs84ToGcj02(point: CoordinatePoint): CoordinatePoint;
|
|
645
|
+
/**
|
|
646
|
+
* GCJ02坐标转换为WGS84坐标
|
|
647
|
+
* @param point GCJ02坐标点
|
|
648
|
+
* @returns WGS84坐标点
|
|
649
|
+
*/
|
|
650
|
+
static gcj02ToWgs84(point: CoordinatePoint): CoordinatePoint;
|
|
651
|
+
/**
|
|
652
|
+
* GCJ02坐标转换为BD09坐标
|
|
653
|
+
* @param point GCJ02坐标点
|
|
654
|
+
* @returns BD09坐标点
|
|
655
|
+
*/
|
|
656
|
+
static gcj02ToBd09(point: CoordinatePoint): CoordinatePoint;
|
|
657
|
+
/**
|
|
658
|
+
* BD09坐标转换为GCJ02坐标
|
|
659
|
+
* @param point BD09坐标点
|
|
660
|
+
* @returns GCJ02坐标点
|
|
661
|
+
*/
|
|
662
|
+
static bd09ToGcj02(point: CoordinatePoint): CoordinatePoint;
|
|
663
|
+
/**
|
|
664
|
+
* BD09坐标转换为WGS84坐标
|
|
665
|
+
* @param point BD09坐标点
|
|
666
|
+
* @returns WGS84坐标点
|
|
667
|
+
*/
|
|
668
|
+
static bd09ToWgs84(point: CoordinatePoint): CoordinatePoint;
|
|
669
|
+
/**
|
|
670
|
+
* WGS84坐标转换为BD09坐标
|
|
671
|
+
* @param point WGS84坐标点
|
|
672
|
+
* @returns BD09坐标点
|
|
673
|
+
*/
|
|
674
|
+
static wgs84ToBd09(point: CoordinatePoint): CoordinatePoint;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
export { BaseMaterialProperty, BasePrimitive, types as Common, CoordinateTransformer, DefaultViewerOptions, FlyAttitude, Popup, RoamStatus, Tooltip, calcArea, calcCameraHeightFromZoom, calcGeodesicDistance, calcGeodesicDistances, calcLerpPosition, calcPoistionCenter, calcSceneHeightFromPositions, calcScreenPositionFromPosition, calcSpaceDistance, calcSpaceDistances, calcTerrainHeightFromPositions, calcTriangleArea, calcZoomFromCameraHeight, clacPositionsForParabola, createBottomStatusBar, createEagleEye, createOpenAnim, createRoamHandler, createSkyBox, createSkyBoxOnGround, flyToCameraView, flyToCesium3DTile, flyToDataSource, flyToFromSphere, flyToImagery, flyToLnglat, flyToPosition, getCameraView, getCesiumForAutoFitScale, initCesium, initCesiumEvent, makeGridFromElevationExtrema, makeGridToInstanceForBox, makeGridToInstanceForLine, makeLnglatToPosition, makeLnglatsToLineGeojson, makeLnglatsToPointGeojson, makeLnglatsToPolygonGeojson, makeLnglatsToPositions, makePositionsClose, makePositionsForAntiClockwise, makePositionsForClockwise, makePositionsToLnglats, makePositiontoLnglat, makeYawPitchRollToHeadingPitchRoll, mekeGridPolygonAndHeight, numberId, randomColor, randomPointToGeoJson, randomPolygonToGeoJson, randomPolylineToGeoJson, setCesiumForAutoFitScale, setGlobeOpatity, setViewToLnglat, twinkleModel };
|
|
619
678
|
export type { IOpenAnimOptions, IRoamEvent, IRoamHandler, IRoamItem, IRoamItemHPR, IRoaming };
|