@poor-knight/cesium-utils 0.4.0 → 0.4.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.
@@ -30,10 +30,12 @@ declare class CustomWebMapTileServiceImageryProvider extends Cesium.WebMapTileSe
30
30
  private options;
31
31
  constructor(options: CustomWebMapTileServiceImageryProviderConstructorOptions);
32
32
  requestImage(x: number, y: number, level: number, request?: Cesium.Request | undefined): Promise<HTMLImageElement | ImageBitmap | HTMLCanvasElement> | undefined;
33
+ private pickSubdomain;
33
34
  }
34
35
 
35
36
  declare type CustomWebMapTileServiceImageryProviderConstructorOptions = Cesium.WebMapTileServiceImageryProvider.ConstructorOptions & {
36
37
  requestInterceptor?: (image: HTMLImageElement | ImageBitmap | HTMLCanvasElement) => HTMLImageElement | ImageBitmap | HTMLCanvasElement;
38
+ subdomains?: string[];
37
39
  };
38
40
 
39
41
  /**根据视角参数,调整摄像头 */
@@ -101,20 +103,31 @@ export declare class ShipLayer extends default_2<{
101
103
  key: string;
102
104
  zIndex: number;
103
105
  db: Cesium.CustomDataSource;
104
- constructor(key: string, zIndex: number);
106
+ private labelDataSource;
107
+ constructor(key: string, zIndex: number, opt?: {
108
+ clustering?: {
109
+ enabled?: boolean;
110
+ pixelRange?: number;
111
+ minimumClusterSize?: number;
112
+ };
113
+ });
105
114
  private isMounted;
106
115
  private _viewer;
107
116
  show(viewer: Cesium.Viewer): void;
108
117
  hide(): void;
109
118
  entityMap: Map<string, Cesium.Entity>;
119
+ contain(e: Cesium.Entity): boolean;
110
120
  /**生成entity, geojson的id优先和mmsi保持一致,没有mmsi的情况下,使用nanoid生成 */
111
121
  render(geojson: FeatureCollection<Point>): void;
122
+ /**获取id */
123
+ private getIdByFeature;
112
124
  /**渲染feature */
113
125
  renderFeature(feature: Feature<Point>): void;
114
126
  /**更新or新增feature */
115
127
  update(feature: Feature<Point>): void;
116
128
  private readonly IS_MOVING_THRESHOLD;
117
129
  private renderEntity;
130
+ private renderLabelEntity;
118
131
  private shadowEntityMap;
119
132
  private createShipPlane;
120
133
  /**显隐entity,回调返回显示隐藏的状态,不传Fn时默认显示所有 */