@gis_victory/gismap 2.0.81 → 2.0.82

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/dist/index.d.ts CHANGED
@@ -313,6 +313,15 @@ enable: () => void;
313
313
  disable: () => void;
314
314
  reset: () => void;
315
315
  } | undefined;
316
+ readonly maskManager: {
317
+ add: (options: MaskOptions) => MaskManager;
318
+ addLine: (style?: any) => void;
319
+ remove: () => void;
320
+ updateData: (data: any) => void;
321
+ setVisible: (visible: boolean) => void;
322
+ getLayerId: () => string;
323
+ getLineLayerId: () => string;
324
+ } | undefined;
316
325
  readonly templateManager: {
317
326
  initialize: (templateItems: TemplateItem[]) => void;
318
327
  getTemplate: (templateId: string) => TemplateItem | undefined;
@@ -6460,6 +6469,7 @@ export declare class MapContext {
6460
6469
  private _drawManager?;
6461
6470
  private _measureManager?;
6462
6471
  private _queryLayerManager?;
6472
+ private _maskManager?;
6463
6473
  constructor(config: MapContextConfig);
6464
6474
  /**
6465
6475
  * 图层服务
@@ -6505,6 +6515,10 @@ export declare class MapContext {
6505
6515
  * 获取查询图层管理器
6506
6516
  */
6507
6517
  get queryLayerManager(): QueryLayerManager | undefined;
6518
+ /**
6519
+ * 获取遮罩管理器
6520
+ */
6521
+ get maskManager(): MaskManager | undefined;
6508
6522
  /**
6509
6523
  * 获取模板管理器
6510
6524
  */
@@ -7206,6 +7220,59 @@ declare interface MarkerState_2 {
7206
7220
  metadata?: Record<string, any>;
7207
7221
  }
7208
7222
 
7223
+ declare class MaskManager {
7224
+ private adapter;
7225
+ private layerId;
7226
+ private lineLayerId;
7227
+ constructor(adapter: VectorTileAdapter, layerId?: string);
7228
+ /**
7229
+ * 添加遮罩图层
7230
+ * @param options 遮罩配置
7231
+ */
7232
+ add(options: MaskOptions): this;
7233
+ /**
7234
+ * 添加遮罩边界线
7235
+ * @param style 样式配置
7236
+ */
7237
+ addLine(style?: any): void;
7238
+ /**
7239
+ * 移除遮罩
7240
+ */
7241
+ remove(): void;
7242
+ /**
7243
+ * 更新遮罩数据
7244
+ * @param data 新的GeoJSON数据
7245
+ */
7246
+ updateData(data: any): void;
7247
+ /**
7248
+ * 设置遮罩可见性
7249
+ * @param visible 是否可见
7250
+ */
7251
+ setVisible(visible: boolean): void;
7252
+ /**
7253
+ * 获取遮罩图层ID
7254
+ */
7255
+ getLayerId(): string;
7256
+ /**
7257
+ * 获取遮罩边界线图层ID
7258
+ */
7259
+ getLineLayerId(): string;
7260
+ }
7261
+
7262
+ /**
7263
+ * 遮罩管理器配置
7264
+ */
7265
+ declare interface MaskOptions {
7266
+ /** 遮罩图层ID */
7267
+ layerId?: string;
7268
+ /** 数据源URL或GeoJSON数据 */
7269
+ data: string | any;
7270
+ /** 样式配置 */
7271
+ style?: any;
7272
+ /** 插入到指定图层之前 */
7273
+ beforeId?: string;
7274
+ }
7275
+
7209
7276
  /** 测量完成回调 */
7210
7277
  declare type MeasureCallback = (result: MeasureResult) => void;
7211
7278