ino-cesium 0.0.16-beta.4 → 0.0.17-beta.1
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 +275 -181
- package/dist/ino-cesium-full.js +8 -8
- package/dist/ino-cesium.d.ts +87 -9
- package/dist/ino-cesium.js +1 -1
- package/package.json +9 -9
package/dist/ino-cesium.d.ts
CHANGED
|
@@ -161,6 +161,35 @@ declare function flyToCesium3DTile(tileset: Cesium.Cesium3DTileset, viewer: Cesi
|
|
|
161
161
|
* @param viewer
|
|
162
162
|
*/
|
|
163
163
|
declare function flyToFromSphere(sphere: number[], viewer: Cesium.Viewer): void;
|
|
164
|
+
/**
|
|
165
|
+
* 控制Cesium地图视图飞向指定的地理区域
|
|
166
|
+
* @param {number} west - 西边界经度(度)
|
|
167
|
+
* @param {number} south - 南边界纬度(度)
|
|
168
|
+
* @param {number} east - 东边界经度(度)
|
|
169
|
+
* @param {number} north - 北边界纬度(度)
|
|
170
|
+
* @param {Cesium.Viewer} viewer - Cesium地图查看器实例
|
|
171
|
+
*/
|
|
172
|
+
declare const flyToRectangleBounds: (west: number, south: number, east: number, north: number, viewer: Cesium.Viewer) => void;
|
|
173
|
+
declare const flyToNorth: (viewer: Cesium.Viewer) => void;
|
|
174
|
+
declare function getScreenCenterPoint(viewer: Cesium.Viewer): Cesium.Cartesian3;
|
|
175
|
+
/**
|
|
176
|
+
* 绕点飞行
|
|
177
|
+
*/
|
|
178
|
+
declare const flyByRotatePoint: (viewer: Cesium.Viewer) => {
|
|
179
|
+
/**
|
|
180
|
+
* 不传入positions,为当前屏幕中心点
|
|
181
|
+
* direction: true: 顺时针旋转,false: 逆时针旋转
|
|
182
|
+
*/
|
|
183
|
+
start: (position?: Cesium.Cartesian3, direction?: boolean) => void;
|
|
184
|
+
end: () => void;
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* 相机原地旋转
|
|
188
|
+
*/
|
|
189
|
+
declare const flyByRotateOut: (viewer: Cesium.Viewer) => {
|
|
190
|
+
start: (direction?: boolean) => void;
|
|
191
|
+
end: () => void;
|
|
192
|
+
};
|
|
164
193
|
/**
|
|
165
194
|
* 闪烁模型
|
|
166
195
|
* @param model
|
|
@@ -511,6 +540,11 @@ declare const calcCameraHeightFromZoom: (zoom: number) => number;
|
|
|
511
540
|
* @returns Cartesian3[]
|
|
512
541
|
*/
|
|
513
542
|
declare const calcLerpPosition: (positions: Cesium.Cartesian3[], number: number) => Cesium.Cartesian3[];
|
|
543
|
+
/**
|
|
544
|
+
* 根据一组笛卡尔坐标计算包围球
|
|
545
|
+
* @param positions 笛卡尔坐标组
|
|
546
|
+
*/
|
|
547
|
+
declare const calcBoundingSphereFromPositions: (positions: Cesium.Cartesian3[]) => Cesium.BoundingSphere;
|
|
514
548
|
|
|
515
549
|
declare abstract class BasePrimitive<T> {
|
|
516
550
|
protected _primitive: CusPrimitive;
|
|
@@ -529,7 +563,6 @@ declare abstract class BasePrimitive<T> {
|
|
|
529
563
|
then(onFulfilled?: any): Promise<T>;
|
|
530
564
|
catch(onRejected?: any): Promise<T>;
|
|
531
565
|
abstract getPrimitive(): CusPrimitive;
|
|
532
|
-
abstract calcShapePositions(positions: Cesium.Cartesian3[]): void;
|
|
533
566
|
isDestroyed(): boolean;
|
|
534
567
|
destroy(): void;
|
|
535
568
|
setShapePositions(positions: Cesium.Cartesian3[]): void;
|
|
@@ -943,10 +976,10 @@ declare const loadModel: () => void;
|
|
|
943
976
|
declare const loads3m: () => void;
|
|
944
977
|
|
|
945
978
|
declare const loadI3s: (lOptions: ILoadI3sOptions) => Promise<{
|
|
946
|
-
|
|
979
|
+
i3sProvider: Cesium.I3SDataProvider;
|
|
947
980
|
setHeightOffset: (heightOffset: number) => void;
|
|
948
981
|
remove: () => void;
|
|
949
|
-
flyTo: () => void;
|
|
982
|
+
flyTo: (cameraHeight: number) => void;
|
|
950
983
|
}>;
|
|
951
984
|
interface ILoadI3sOptions {
|
|
952
985
|
viewer: Cesium.Viewer;
|
|
@@ -1323,6 +1356,10 @@ interface IDrawHandler {
|
|
|
1323
1356
|
* 移除所有方法
|
|
1324
1357
|
*/
|
|
1325
1358
|
removeAll: () => void;
|
|
1359
|
+
/**
|
|
1360
|
+
* 移除正在绘制或编辑的操作
|
|
1361
|
+
*/
|
|
1362
|
+
removeEditing: () => void;
|
|
1326
1363
|
/**
|
|
1327
1364
|
* 更新测量单位方法
|
|
1328
1365
|
* @param drawData 绘制属性信息
|
|
@@ -1338,11 +1375,23 @@ interface IDrawHandler {
|
|
|
1338
1375
|
* 事件处理器
|
|
1339
1376
|
*/
|
|
1340
1377
|
Event: IDrawHandlerEvent;
|
|
1378
|
+
/**
|
|
1379
|
+
* 回显某个绘制数据
|
|
1380
|
+
*/
|
|
1381
|
+
reShowDrawData: (reShowOptions: IReShowOptions) => void;
|
|
1382
|
+
/**
|
|
1383
|
+
* 回显多个绘制数据
|
|
1384
|
+
*/
|
|
1385
|
+
reShowDrawDatas: (reShowOptions: IReShowOptions[]) => void;
|
|
1341
1386
|
}
|
|
1342
1387
|
/**
|
|
1343
1388
|
* 绘制选项接口
|
|
1344
1389
|
*/
|
|
1345
1390
|
interface IDrawOptions {
|
|
1391
|
+
/**
|
|
1392
|
+
* 绘制id, 如果为空则自动生成
|
|
1393
|
+
*/
|
|
1394
|
+
id?: string;
|
|
1346
1395
|
/**
|
|
1347
1396
|
* 绘制形状
|
|
1348
1397
|
*/
|
|
@@ -1376,6 +1425,34 @@ interface IDrawOptions {
|
|
|
1376
1425
|
*/
|
|
1377
1426
|
drawStyle?: DeepPartial<IDrawStyle>;
|
|
1378
1427
|
}
|
|
1428
|
+
interface IReShowOptions {
|
|
1429
|
+
id: string;
|
|
1430
|
+
positions: Cesium.Cartesian3[];
|
|
1431
|
+
/**
|
|
1432
|
+
* 绘制形状
|
|
1433
|
+
*/
|
|
1434
|
+
shape: DrawShape;
|
|
1435
|
+
/**
|
|
1436
|
+
* 是否可编辑
|
|
1437
|
+
*/
|
|
1438
|
+
edit?: boolean;
|
|
1439
|
+
/**
|
|
1440
|
+
* 是否测量
|
|
1441
|
+
*/
|
|
1442
|
+
measure?: boolean;
|
|
1443
|
+
/**
|
|
1444
|
+
* 测量单位数组
|
|
1445
|
+
*/
|
|
1446
|
+
measureUnit?: string[];
|
|
1447
|
+
/**
|
|
1448
|
+
* 是否显示测量标签
|
|
1449
|
+
*/
|
|
1450
|
+
measureLabel?: boolean;
|
|
1451
|
+
/**
|
|
1452
|
+
* 是否贴地
|
|
1453
|
+
*/
|
|
1454
|
+
clampToGround?: boolean;
|
|
1455
|
+
}
|
|
1379
1456
|
/**
|
|
1380
1457
|
* 测量选项接口
|
|
1381
1458
|
*/
|
|
@@ -1446,7 +1523,7 @@ interface IMeasureResult {
|
|
|
1446
1523
|
/**
|
|
1447
1524
|
* 绘制形状类型
|
|
1448
1525
|
*/
|
|
1449
|
-
type DrawShape = 'polyline' | 'polyline-arrow' | 'polygon' | 'point' | 'circle' | 'rectangle' | 'vertical-line' | 'vertical-surface-line' | 'curve' | 'curve-arrow';
|
|
1526
|
+
type DrawShape = 'polyline' | 'polyline-arrow' | 'polygon' | 'point' | 'circle' | 'rectangle' | 'vertical-line' | 'vertical-surface-line' | 'curve' | 'curve-arrow' | 'sector' | 'db-arrow' | string;
|
|
1450
1527
|
/**
|
|
1451
1528
|
* 绘制样式接口
|
|
1452
1529
|
*/
|
|
@@ -1522,9 +1599,10 @@ type types$3_IEventActions = IEventActions;
|
|
|
1522
1599
|
type types$3_IEventData = IEventData;
|
|
1523
1600
|
type types$3_IMeasureOptions = IMeasureOptions;
|
|
1524
1601
|
type types$3_IMeasureResult = IMeasureResult;
|
|
1602
|
+
type types$3_IReShowOptions = IReShowOptions;
|
|
1525
1603
|
declare namespace types$3 {
|
|
1526
1604
|
export { types$3_DrawEventType as DrawEventType };
|
|
1527
|
-
export type { types$3_DrawEvent as DrawEvent, types$3_DrawShape as DrawShape, types$3_IDrawAttrInfo as IDrawAttrInfo, types$3_IDrawEditEvent as IDrawEditEvent, types$3_IDrawHandler as IDrawHandler, types$3_IDrawHandlerEvent as IDrawHandlerEvent, types$3_IDrawOptions as IDrawOptions, types$3_IDrawStyle as IDrawStyle, types$3_IEventActions as IEventActions, types$3_IEventData as IEventData, types$3_IMeasureOptions as IMeasureOptions, types$3_IMeasureResult as IMeasureResult };
|
|
1605
|
+
export type { types$3_DrawEvent as DrawEvent, types$3_DrawShape as DrawShape, types$3_IDrawAttrInfo as IDrawAttrInfo, types$3_IDrawEditEvent as IDrawEditEvent, types$3_IDrawHandler as IDrawHandler, types$3_IDrawHandlerEvent as IDrawHandlerEvent, types$3_IDrawOptions as IDrawOptions, types$3_IDrawStyle as IDrawStyle, types$3_IEventActions as IEventActions, types$3_IEventData as IEventData, types$3_IMeasureOptions as IMeasureOptions, types$3_IMeasureResult as IMeasureResult, types$3_IReShowOptions as IReShowOptions };
|
|
1528
1606
|
}
|
|
1529
1607
|
|
|
1530
1608
|
declare const DrawStyle: IDrawStyle;
|
|
@@ -2336,7 +2414,7 @@ declare class RadereScanPrimitive extends BasePrimitive<any> {
|
|
|
2336
2414
|
private options;
|
|
2337
2415
|
constructor(options: IRaderScanPrimitiveOptions);
|
|
2338
2416
|
getGeometry(): Cesium.CircleGeometry;
|
|
2339
|
-
getPrimitive(): Cesium.
|
|
2417
|
+
getPrimitive(): Cesium.Primitive | Cesium.GroundPrimitive | Cesium.PointPrimitiveCollection | Cesium.GroundPolylinePrimitive | Cesium.LabelCollection | Cesium.PrimitiveCollection | undefined;
|
|
2340
2418
|
setAppearance(appearance?: Cesium.Appearance): void;
|
|
2341
2419
|
}
|
|
2342
2420
|
|
|
@@ -2466,7 +2544,7 @@ declare class CircleAperturePrimitive extends BasePrimitive<any> {
|
|
|
2466
2544
|
private options;
|
|
2467
2545
|
constructor(options: ICircleAperturePrimitiveOptions);
|
|
2468
2546
|
getGeometry(): Cesium.CircleGeometry;
|
|
2469
|
-
getPrimitive(): Cesium.
|
|
2547
|
+
getPrimitive(): Cesium.Primitive | Cesium.GroundPrimitive | Cesium.PointPrimitiveCollection | Cesium.GroundPolylinePrimitive | Cesium.LabelCollection | Cesium.PrimitiveCollection | undefined;
|
|
2470
2548
|
setAppearance(appearance?: Cesium.Appearance): void;
|
|
2471
2549
|
}
|
|
2472
2550
|
|
|
@@ -2652,5 +2730,5 @@ declare const createProfileAnalysis: (viewer: Cesium.Viewer) => IProFile<IProFil
|
|
|
2652
2730
|
*/
|
|
2653
2731
|
declare const createModelProfileAnalysis: (viewer: Viewer) => IProFile<IModelProFileOptions>;
|
|
2654
2732
|
|
|
2655
|
-
export { types as Analysis, BaseMaterialProperty, BasePrimitive, CircleApertureMaterialProperty, CircleAperturePrimitive, CircleRaderFanMaterialProperty, CircleRaderWaveMaterialProperty, CircleWaveMaterialProperty, types$4 as Common, CoordinateTransformer, DefaultViewerOptions, types$3 as Draw, DrawEventType, DrawStyle, EllipsoidElectricMaterialProperty, EllipsoidScanMaterialProperty, FlyAttitude, GridPrimitives, GroundPolygonPrimitives, GroundPolylinePrimitives, LightWallMaterialProperty, types$2 as Material, PointClusterPrimitives, PointPrimitives, PolylineFlowMaterialProperty, PolylineTrailMaterialProperty, Popup, types$1 as Primitives, RadereScanPrimitive, RoamStatus, Tooltip, TransformsFor3dtiles, ZapsMaterialProperty, addDrawActions, calcArea, calcCameraHeightFromZoom, calcGeodesicDistance, calcGeodesicDistances, calcLerpPosition, calcPoistionCenter, calcSceneHeightFromPositions, calcSpaceDistance, calcSpaceDistances, calcTerrainHeightFromPositions, calcTriangleArea, calcZoomFromCameraHeight, clacPositionsForParabola, createBloomTargetStage, createBottomStatusBar, createCircleApertureMaterial, createCircleRaderFanMaterial, createCircleWaveMaterial, createClipPlaneAnalysis, createClipPolygonAnalysis, createDrawHandler, createDroneAnimCustomShader, createEagleEye, createEllipsoidElectricMaterial, createEllipsoidScanMaterial, createFillAndDigAnalysis, createFloodAnalysis, createFogStage, createHeightFogStage, createHighLightStage, createLightBandCustomShader, createLightWallMaterial, createLightningStage, createModelProfileAnalysis, createOpenAnim, createOutLineEffect, createOutlineStage, createPoylineFlowMaterial, createProfileAnalysis, createRaderWaveMaterial, createRainCoverStage, createRainStage, createRoamHandler, createScanRadarMaterial, createSkyBox, createSkyBoxOnGround, createSkylineStage, createSnowCoverStage, createSnowStage, createTrailMaterial, createZapsMaterial, flyToCameraView, flyToCesium3DTile, flyToDataSource, flyToFromSphere, flyToImagery, flyToLnglat, flyToPosition, getAllFeaturesFrom3dTiles, getAllTilesFrom3dTiles, getCameraView, getCesiumForAutoFitScale, getInoCesiumBaseUrl, initCesium, initCesiumEvent, load3dTiles, loadI3s, loadModel, loadTerrain, loadTerrainFromCesium, loadTianDiTu, loads3m, makeGridFromElevationExtrema, makeGridToInstanceForBox, makeGridToInstanceForLine, makeLnglatToPosition, makeLnglatsToLineGeojson, makeLnglatsToPointGeojson, makeLnglatsToPolygonGeojson, makeLnglatsToPositions, makePositionsClose, makePositionsForAntiClockwise, makePositionsForClockwise, makePositionsToLnglats, makePositiontoLnglat, makeYawPitchRollToHeadingPitchRoll, mekeGridPolygonAndHeight, numberId, randomColor, randomPointToGeoJson, randomPolygonToGeoJson, randomPolylineToGeoJson, removeTerrain, setCesiumForAutoFitScale, setGlobeOpatity, setHeightOffsetFor3dTiles, setInoCesiumBaseUrl, setViewToLnglat, twinkleModel };
|
|
2656
|
-
export type { DeepPartial, DrawEvent, DrawShape, IBaseAnalysis, IBillboard, ICamearView, ICesiumEventListener, ICircleApertureMaterialOptions, ICircleAperturePrimitiveOptions, ICircleRaderFanMaterialOptions, ICircleRaderWaveMaterialOptions, ICircleWaveMaterialOptions, IClipPlane, IClipPlaneOPtions, IClipPolygon, IClipPolygonItem, IClipPolygonPtions, ICorridorMaterialOptions, IDrawAttrInfo, IDrawEditEvent, IDrawHandler, IDrawHandlerEvent, IDrawOptions, IDrawStyle, IDroneAnimOptions, IEllipsoidElectricMaterialOptions, IEllipsoidScanMaterialOptions, IEventActions, IEventData, IFillDig, IFillDigItem, IFillDigOptions, IFlood, IFloodItem, IFloodOptions, IFogStageOptions, IGroundPolygonPrimitivesOptions, IGroundPolylinePrimitivesOptions, IHeightFogStageOptions, IHighLightStageOptions, ILabel, ILightBandStageOptions, ILightWallMaterialOptions, ILightningStageOptions, ILoadTerrainOptions, ILoadTiandituOptions, IMeasureOptions, IMeasureResult, IModelProFileOptions, IOpenAnimOptions, IPoint, IPointPrimitivesOptions, IPolylineFlowMaterialOptions, IPolylineTrailMaterialOptions, IProFile, IProFileItem, IProFileItemData, IProFileOptions, IRadarScanMaterialOptions, IRaderScanPrimitiveOptions, IRainCoverStage, IRainStageOptions, IRoamEvent, IRoamHandler, IRoamItem, IRoamItemHPR, IRoaming, ISetViewByLngLatOptions, ISetViewByPositionOptions, ISkyBoxOnGroundOptions, ISkyBoxOptions, ISkyBoxSources, ISnowCoverStageOptions, ISnowStageOptions, IYawPitchRoll, IZapsMaterialOptions, Icluster };
|
|
2733
|
+
export { types as Analysis, BaseMaterialProperty, BasePrimitive, CircleApertureMaterialProperty, CircleAperturePrimitive, CircleRaderFanMaterialProperty, CircleRaderWaveMaterialProperty, CircleWaveMaterialProperty, types$4 as Common, CoordinateTransformer, DefaultViewerOptions, types$3 as Draw, DrawEventType, DrawStyle, EllipsoidElectricMaterialProperty, EllipsoidScanMaterialProperty, FlyAttitude, GridPrimitives, GroundPolygonPrimitives, GroundPolylinePrimitives, LightWallMaterialProperty, types$2 as Material, PointClusterPrimitives, PointPrimitives, PolylineFlowMaterialProperty, PolylineTrailMaterialProperty, Popup, types$1 as Primitives, RadereScanPrimitive, RoamStatus, Tooltip, TransformsFor3dtiles, ZapsMaterialProperty, addDrawActions, calcArea, calcBoundingSphereFromPositions, calcCameraHeightFromZoom, calcGeodesicDistance, calcGeodesicDistances, calcLerpPosition, calcPoistionCenter, calcSceneHeightFromPositions, calcSpaceDistance, calcSpaceDistances, calcTerrainHeightFromPositions, calcTriangleArea, calcZoomFromCameraHeight, clacPositionsForParabola, createBloomTargetStage, createBottomStatusBar, createCircleApertureMaterial, createCircleRaderFanMaterial, createCircleWaveMaterial, createClipPlaneAnalysis, createClipPolygonAnalysis, createDrawHandler, createDroneAnimCustomShader, createEagleEye, createEllipsoidElectricMaterial, createEllipsoidScanMaterial, createFillAndDigAnalysis, createFloodAnalysis, createFogStage, createHeightFogStage, createHighLightStage, createLightBandCustomShader, createLightWallMaterial, createLightningStage, createModelProfileAnalysis, createOpenAnim, createOutLineEffect, createOutlineStage, createPoylineFlowMaterial, createProfileAnalysis, createRaderWaveMaterial, createRainCoverStage, createRainStage, createRoamHandler, createScanRadarMaterial, createSkyBox, createSkyBoxOnGround, createSkylineStage, createSnowCoverStage, createSnowStage, createTrailMaterial, createZapsMaterial, flyByRotateOut, flyByRotatePoint, flyToCameraView, flyToCesium3DTile, flyToDataSource, flyToFromSphere, flyToImagery, flyToLnglat, flyToNorth, flyToPosition, flyToRectangleBounds, getAllFeaturesFrom3dTiles, getAllTilesFrom3dTiles, getCameraView, getCesiumForAutoFitScale, getInoCesiumBaseUrl, getScreenCenterPoint, initCesium, initCesiumEvent, load3dTiles, loadI3s, loadModel, loadTerrain, loadTerrainFromCesium, loadTianDiTu, loads3m, makeGridFromElevationExtrema, makeGridToInstanceForBox, makeGridToInstanceForLine, makeLnglatToPosition, makeLnglatsToLineGeojson, makeLnglatsToPointGeojson, makeLnglatsToPolygonGeojson, makeLnglatsToPositions, makePositionsClose, makePositionsForAntiClockwise, makePositionsForClockwise, makePositionsToLnglats, makePositiontoLnglat, makeYawPitchRollToHeadingPitchRoll, mekeGridPolygonAndHeight, numberId, randomColor, randomPointToGeoJson, randomPolygonToGeoJson, randomPolylineToGeoJson, removeTerrain, setCesiumForAutoFitScale, setGlobeOpatity, setHeightOffsetFor3dTiles, setInoCesiumBaseUrl, setViewToLnglat, twinkleModel };
|
|
2734
|
+
export type { DeepPartial, DrawEvent, DrawShape, IBaseAnalysis, IBillboard, ICamearView, ICesiumEventListener, ICircleApertureMaterialOptions, ICircleAperturePrimitiveOptions, ICircleRaderFanMaterialOptions, ICircleRaderWaveMaterialOptions, ICircleWaveMaterialOptions, IClipPlane, IClipPlaneOPtions, IClipPolygon, IClipPolygonItem, IClipPolygonPtions, ICorridorMaterialOptions, IDrawAttrInfo, IDrawEditEvent, IDrawHandler, IDrawHandlerEvent, IDrawOptions, IDrawStyle, IDroneAnimOptions, IEllipsoidElectricMaterialOptions, IEllipsoidScanMaterialOptions, IEventActions, IEventData, IFillDig, IFillDigItem, IFillDigOptions, IFlood, IFloodItem, IFloodOptions, IFogStageOptions, IGroundPolygonPrimitivesOptions, IGroundPolylinePrimitivesOptions, IHeightFogStageOptions, IHighLightStageOptions, ILabel, ILightBandStageOptions, ILightWallMaterialOptions, ILightningStageOptions, ILoadTerrainOptions, ILoadTiandituOptions, IMeasureOptions, IMeasureResult, IModelProFileOptions, IOpenAnimOptions, IPoint, IPointPrimitivesOptions, IPolylineFlowMaterialOptions, IPolylineTrailMaterialOptions, IProFile, IProFileItem, IProFileItemData, IProFileOptions, IRadarScanMaterialOptions, IRaderScanPrimitiveOptions, IRainCoverStage, IRainStageOptions, IReShowOptions, IRoamEvent, IRoamHandler, IRoamItem, IRoamItemHPR, IRoaming, ISetViewByLngLatOptions, ISetViewByPositionOptions, ISkyBoxOnGroundOptions, ISkyBoxOptions, ISkyBoxSources, ISnowCoverStageOptions, ISnowStageOptions, IYawPitchRoll, IZapsMaterialOptions, Icluster };
|