mirage2d 1.2.37 → 1.2.39
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.
|
@@ -367,6 +367,14 @@ export declare class baseGraphicLayer extends baseLayer {
|
|
|
367
367
|
* @param {boolean} isincludes 默认false 判断相等 当true时判断包含
|
|
368
368
|
*/
|
|
369
369
|
displayFeatures(json: any, isshow: any, isincludes?: boolean): void;
|
|
370
|
+
/**
|
|
371
|
+
* @description:显示被隐藏的要素
|
|
372
|
+
*/
|
|
373
|
+
showFeatures(): void;
|
|
374
|
+
/**
|
|
375
|
+
* @description:隐藏所有要素
|
|
376
|
+
*/
|
|
377
|
+
hideFeatures(): void;
|
|
370
378
|
/**
|
|
371
379
|
* 绘制图形
|
|
372
380
|
* @param {object} option 属性结合
|
|
@@ -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;
|