mirage2d 1.1.72 → 1.1.74
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/Layer/XMap.d.ts +1 -0
- package/dist/Layer/graphicLayer/ImageCanvasLayer.d.ts +5 -0
- package/dist/Layer/tileLayer/GeoImageLayer.d.ts +1 -1
- package/dist/base/baseGraphicLayer.d.ts +11 -1
- package/dist/extend/Control/drawText.d.ts +10 -0
- package/dist/extend/Control/index.d.ts +1 -1
- package/dist/mirage2d.cjs.js +53 -53
- package/dist/mirage2d.umd.js +53 -53
- package/package.json +1 -1
- package/dist/extend/Control/drawGrid.d.ts +0 -12
package/dist/Layer/XMap.d.ts
CHANGED
|
@@ -142,6 +142,7 @@ export declare class MirageMap extends baseMap {
|
|
|
142
142
|
* @return {*}
|
|
143
143
|
*/
|
|
144
144
|
displayFeatureInfo(evt: any): void;
|
|
145
|
+
exportMapSelector(querySelector?: string, errinfo?: Function): void;
|
|
145
146
|
exportMap(type: string, errinfo?: Function): void;
|
|
146
147
|
exportMapPdf(): void;
|
|
147
148
|
destroy(): void;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { IImageCanvasLayerOption } from "../../base/baseOptionType";
|
|
2
2
|
import { baseLayer } from "../../base/baseLayer";
|
|
3
3
|
import Scale from "ol-ext/control/Scale";
|
|
4
|
+
import { drawTextControl } from '../../extend/Control/drawText';
|
|
4
5
|
export declare class ImageCanvasLayer extends baseLayer {
|
|
5
6
|
scale: Scale;
|
|
6
7
|
ppi: number;
|
|
7
8
|
layerOption: IImageCanvasLayerOption;
|
|
9
|
+
drawText: drawTextControl;
|
|
8
10
|
constructor(layerid: any, options: IImageCanvasLayerOption);
|
|
9
11
|
setScale(value: number): void;
|
|
12
|
+
setText(htmlstr: string): void;
|
|
13
|
+
setElementStyle(key: string, val: string | number | undefined | null): void;
|
|
10
14
|
appendTo(map: any): void;
|
|
15
|
+
setMouseLock(val?: boolean): void;
|
|
11
16
|
}
|
|
@@ -27,5 +27,5 @@ export declare class GeoImageLayer extends baseTileLayer {
|
|
|
27
27
|
* @description: 结束编辑
|
|
28
28
|
*/
|
|
29
29
|
endEdit(): void;
|
|
30
|
-
appendTo(map: any,
|
|
30
|
+
appendTo(map: any, mSelectTransform: SelectTransform, mGraphicLayer: any): void;
|
|
31
31
|
}
|
|
@@ -3,6 +3,7 @@ import VectorSource from "ol/source/Vector";
|
|
|
3
3
|
import { IFeatureAttribute, IGraphicLayerOption, IlevelColor, ITooltipInfo } from "./baseOptionType";
|
|
4
4
|
import { Geometry } from "ol/geom";
|
|
5
5
|
import Feature from "ol/Feature";
|
|
6
|
+
import { SelectTransform } from "../extend/interaction/SelectTransform";
|
|
6
7
|
export declare class baseGraphicLayer extends baseLayer {
|
|
7
8
|
private _graphicLayerSelect;
|
|
8
9
|
selectFeature: Feature<Geometry>;
|
|
@@ -13,6 +14,7 @@ export declare class baseGraphicLayer extends baseLayer {
|
|
|
13
14
|
private _draw;
|
|
14
15
|
private _tipPoint;
|
|
15
16
|
option: IGraphicLayerOption;
|
|
17
|
+
private mSelectTransform;
|
|
16
18
|
constructor(layerid: string, Options?: IGraphicLayerOption);
|
|
17
19
|
initSelect(): void;
|
|
18
20
|
startMove(): void;
|
|
@@ -146,8 +148,16 @@ export declare class baseGraphicLayer extends baseLayer {
|
|
|
146
148
|
*/
|
|
147
149
|
startDraw(option: any): void;
|
|
148
150
|
changeGraphicData(option: any, drawFeature: any): void;
|
|
149
|
-
appendTo(map: any): void;
|
|
151
|
+
appendTo(map: any, mSelectTransform: SelectTransform): void;
|
|
150
152
|
toGeoJSON(): import("geojson").FeatureCollection<import("geojson").Geometry, {
|
|
151
153
|
[name: string]: any;
|
|
152
154
|
}>;
|
|
155
|
+
/**
|
|
156
|
+
* @description: 启动旋转缩放
|
|
157
|
+
*/
|
|
158
|
+
startTransform(): void;
|
|
159
|
+
/**
|
|
160
|
+
* @description: 结束旋转缩放
|
|
161
|
+
*/
|
|
162
|
+
endTransform(): void;
|
|
153
163
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Control } from 'ol/control';
|
|
2
|
+
export declare class drawTextControl extends Control {
|
|
3
|
+
private _mouseposition;
|
|
4
|
+
constructor(opt_options: any);
|
|
5
|
+
show(): void;
|
|
6
|
+
getElement(): HTMLDivElement;
|
|
7
|
+
hide(): void;
|
|
8
|
+
updateHtml(html: string): void;
|
|
9
|
+
updateElementStyle(key: string, val: string | number | undefined | null): void;
|
|
10
|
+
}
|