mirage2d 1.2.36 → 1.2.38

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.
@@ -240,6 +240,11 @@ export interface IGraphicOption {
240
240
  popupOption?: {
241
241
  offset: Array<number>;
242
242
  };
243
+ enabledRightMenu?: boolean;
244
+ enabledPopup?: boolean;
245
+ enabledTooltip?: boolean;
246
+ showLayerContextmenu?: boolean;
247
+ contextmenu?: Array<IContextmenu>;
243
248
  style?: any;
244
249
  }
245
250
  export interface IImageStyle {
@@ -6,6 +6,7 @@ export declare class baseGraphic extends Feature {
6
6
  protected option: IGraphicOption;
7
7
  protected Proj: proj;
8
8
  constructor(options: IGraphicOption);
9
+ protected _setFeatureContextmenu(contextmenu: any): void;
9
10
  setAttribute(attribute: IFeatureAttribute | any): void;
10
11
  toGeoJSON(): import("geojson").Geometry | import("geojson").GeometryCollection<import("geojson").Geometry>;
11
12
  bindPopup(popupInfo: string, option?: {
@@ -16,6 +17,9 @@ export declare class baseGraphic extends Feature {
16
17
  }): void;
17
18
  isPopupBind(): boolean;
18
19
  isTooltipBind(): boolean;
20
+ bindContextmenu(menu?: any): void;
21
+ unbindContextmenu(): void;
22
+ appendContextmenu(menu: any): void;
19
23
  openPopup(popupInfo?: Array<ITooltipInfo> | string, popupOption?: IGraphicLayerOption["popupOption"]): void;
20
24
  closePopup(): void;
21
25
  openTooltip(tooltipInfo: string, tooltipOption?: IGraphicLayerOption["popupOption"]): void;