@ino-cesium/common 0.0.6 → 0.0.8
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 +18 -1
- package/dist/index.d.ts +7 -5
- package/dist/index.js +1 -1
- package/package.json +3 -2
package/README.MD
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
-
# ino-cesium 公共方法
|
|
1
|
+
# @ino-cesium/common 公共方法
|
|
2
2
|
|
|
3
3
|
公共方法
|
|
4
|
+
|
|
5
|
+
* 全局事件初始化
|
|
6
|
+
```javascript
|
|
7
|
+
initCesiumEvent(viewer, {
|
|
8
|
+
LEFT_POSITION: (e) => {
|
|
9
|
+
},
|
|
10
|
+
LEFT_CLICK: (e) => {
|
|
11
|
+
},
|
|
12
|
+
PICK_FEATURE: (pickModel,e) => {
|
|
13
|
+
},
|
|
14
|
+
MOVE_PICK_FEATURE: (pickModel, e) => {
|
|
15
|
+
},
|
|
16
|
+
})
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
package/dist/index.d.ts
CHANGED
|
@@ -80,10 +80,7 @@ declare const initCesium: (eleId: string, options?: Viewer.ConstructorOptions &
|
|
|
80
80
|
* @param viewer
|
|
81
81
|
*/
|
|
82
82
|
declare const changeGlobeOpatity: (value: number, viewer: Viewer) => void;
|
|
83
|
-
|
|
84
|
-
*修改地上 / 地下模式
|
|
85
|
-
*/
|
|
86
|
-
declare const changeUndergroundModel: (isUnderground: boolean, viewer: Viewer) => void;
|
|
83
|
+
declare const DefaultViewerOptions: Viewer.ConstructorOptions;
|
|
87
84
|
|
|
88
85
|
/**
|
|
89
86
|
* 设置中心点
|
|
@@ -384,6 +381,11 @@ declare const makeLnglatsToLineGeojson: (lnglats: Cesium.Cartographic[]) => GeoJ
|
|
|
384
381
|
* @returns GeoJSON.FeatureCollection
|
|
385
382
|
*/
|
|
386
383
|
declare const makeLnglatsToPolygonGeojson: (lnglats: Cesium.Cartographic[]) => GeoJSON.FeatureCollection;
|
|
384
|
+
/**
|
|
385
|
+
* 把yawPitchRoll转为headingPitchRoll
|
|
386
|
+
* 航空中的参数和cesium中的参数有区别 角度转弧度
|
|
387
|
+
* @param yawPitchRoll
|
|
388
|
+
*/
|
|
387
389
|
declare const makeYawPitchRollToHeadingPitchRoll: (yawPitchRoll: IYawPitchRoll) => {
|
|
388
390
|
heading: number;
|
|
389
391
|
pitch: number;
|
|
@@ -570,5 +572,5 @@ interface IOpenAnimOptions {
|
|
|
570
572
|
};
|
|
571
573
|
}
|
|
572
574
|
|
|
573
|
-
export { BaseMaterialProperty, BasePrimitive, types as Common, FlyAttitude, Popup, RoamStatus, Tooltip, calcArea, calcCameraHeightFromZoom, calcGeodesicDistance, calcGeodesicDistances, calcLerpPosition, calcPoistionCenter, calcSpaceDistance, calcSpaceDistances, calcTerrainHeightFromPositions, calcTriangleArea, calcZoomFromCameraHeight, changeGlobeOpatity,
|
|
575
|
+
export { BaseMaterialProperty, BasePrimitive, types as Common, DefaultViewerOptions, FlyAttitude, Popup, RoamStatus, Tooltip, calcArea, calcCameraHeightFromZoom, calcGeodesicDistance, calcGeodesicDistances, calcLerpPosition, calcPoistionCenter, calcSpaceDistance, calcSpaceDistances, calcTerrainHeightFromPositions, calcTriangleArea, calcZoomFromCameraHeight, changeGlobeOpatity, clacPositionsForParabola, createBottomStatusBar, createEagleEye, createOpenAnim, createRoamHandler, createSkyBox, createSkyBoxOnGround, flyToCameraView, flyToCesium3DTile, flyToDataSource, flyToFromSphere, flyToImagery, flyToLnglat, flyToPosition, getCameraView, initCesium, initCesiumEvent, makeLnglatToPosition, makeLnglatsToLineGeojson, makeLnglatsToPointGeojson, makeLnglatsToPolygonGeojson, makeLnglatsToPositions, makePositionsClose, makePositionsForAntiClockwise, makePositionsForClockwise, makePositionsToLnglats, makePositiontoLnglat, makeYawPitchRollToHeadingPitchRoll, numberId, randomColor, randomPointToGeoJson, randomPolygonToGeoJson, randomPolylineToGeoJson, setViewToLnglat, twinkleModel };
|
|
574
576
|
export type { IOpenAnimOptions, IRoamEvent, IRoamHandler, IRoamItem, IRoamItemHPR, IRoaming };
|