mirage2d 1.1.79 → 1.1.81
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/tileLayer/GeoImageLayer.d.ts +8 -3
- package/dist/Tools/SpatialAnalysis.d.ts +2 -1
- package/dist/base/MapEventType.d.ts +2 -1
- package/dist/base/baseTileLayer.d.ts +1 -1
- package/dist/graphic/baseGraphic.d.ts +34 -0
- package/dist/mirage2d.cjs.js +37 -37
- package/dist/mirage2d.umd.js +37 -37
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { baseTileLayer } from "../../base/baseTileLayer";
|
|
|
2
2
|
import { IGeoImageLayerOption } from "../../base/baseOptionType";
|
|
3
3
|
import { PolygonGraphic } from "../../graphic/Polygon";
|
|
4
4
|
import { SelectTransform } from "../../extend/interaction/SelectTransform";
|
|
5
|
+
import { GraphicLayer } from "../graphicLayer/GraphicLayer";
|
|
5
6
|
/**
|
|
6
7
|
* @classdesc
|
|
7
8
|
* xyz影像数据类
|
|
@@ -10,7 +11,7 @@ import { SelectTransform } from "../../extend/interaction/SelectTransform";
|
|
|
10
11
|
*/
|
|
11
12
|
export declare class GeoImageLayer extends baseTileLayer {
|
|
12
13
|
option: IGeoImageLayerOption;
|
|
13
|
-
GraphicLayer:
|
|
14
|
+
GraphicLayer: GraphicLayer;
|
|
14
15
|
graphic: PolygonGraphic;
|
|
15
16
|
mSelectTransform: SelectTransform;
|
|
16
17
|
constructor(layerid: any, options: IGeoImageLayerOption);
|
|
@@ -22,10 +23,14 @@ export declare class GeoImageLayer extends baseTileLayer {
|
|
|
22
23
|
/**
|
|
23
24
|
* @description: 开始编辑
|
|
24
25
|
*/
|
|
25
|
-
startEdit(): void;
|
|
26
|
+
startEdit(mGraphicLayer: GraphicLayer, mSelectTransform: SelectTransform): void;
|
|
26
27
|
/**
|
|
27
28
|
* @description: 结束编辑
|
|
28
29
|
*/
|
|
29
30
|
endEdit(): void;
|
|
30
|
-
|
|
31
|
+
/**
|
|
32
|
+
* @description: 设置矢量图层
|
|
33
|
+
*/
|
|
34
|
+
private setGraphic;
|
|
35
|
+
getGraphic(): PolygonGraphic;
|
|
31
36
|
}
|
|
@@ -170,6 +170,7 @@ export declare class SpatialAnalysis {
|
|
|
170
170
|
* @returns
|
|
171
171
|
*/
|
|
172
172
|
static lineCrossesSplit(layer: GraphicLayer, lineList: Array<Feature<Geometry>>, callback: Function): void;
|
|
173
|
+
static lineErase(layer: GraphicLayer, coordinate: number[], bufferExtent: number, lineList: Array<Feature<Geometry>>, callback: Function): void;
|
|
173
174
|
/**
|
|
174
175
|
* 转为geoJson格式
|
|
175
176
|
* @param {Feature<Geometry>} Feature
|
|
@@ -183,7 +184,7 @@ export declare class SpatialAnalysis {
|
|
|
183
184
|
* @param {Feature<Geometry>} Feature
|
|
184
185
|
* @return {GeoJSONFeature} "EPSG:4326" Object.
|
|
185
186
|
*/
|
|
186
|
-
static featureTo4326(Feature: Feature<Geometry>):
|
|
187
|
+
static featureTo4326(Feature: Feature<Geometry>): any;
|
|
187
188
|
/**
|
|
188
189
|
* 转为geoJson数组格式
|
|
189
190
|
* @param {Feature<Geometry>[]} Feature
|
|
@@ -17,7 +17,7 @@ export declare abstract class baseTileLayer extends baseLayer {
|
|
|
17
17
|
option: ITileLayerOption;
|
|
18
18
|
constructor(layerid: string, Options: ITileLayerOption);
|
|
19
19
|
setOpacity(opacity: number): void;
|
|
20
|
-
appendTo(map: MirageMap
|
|
20
|
+
appendTo(map: MirageMap): void;
|
|
21
21
|
addFilter(option?: {
|
|
22
22
|
feature: Feature;
|
|
23
23
|
wrapX?: boolean;
|
|
@@ -61,7 +61,41 @@ export declare class baseGraphic extends Feature {
|
|
|
61
61
|
})
|
|
62
62
|
*/
|
|
63
63
|
setTextStyle(textStyleOption: ITextOption): void;
|
|
64
|
+
/**
|
|
65
|
+
* 设置三角点样式
|
|
66
|
+
* @param ImageStyleOption
|
|
67
|
+
* @example
|
|
68
|
+
* setTrianglePointStyle({
|
|
69
|
+
scale: 1, //比例
|
|
70
|
+
radius: 5, //大小
|
|
71
|
+
fill: {
|
|
72
|
+
color: "rgba(255, 0, 0,1)", // 填充色
|
|
73
|
+
},
|
|
74
|
+
stroke: {
|
|
75
|
+
color: "rgba(255, 255, 0,1)", // 边框色
|
|
76
|
+
width: 1, //宽度
|
|
77
|
+
|
|
78
|
+
},
|
|
79
|
+
})
|
|
80
|
+
*/
|
|
64
81
|
setTrianglePointStyle(ImageStyleOption: IImageStyle): void;
|
|
82
|
+
/**
|
|
83
|
+
* 设置圆点样式
|
|
84
|
+
* @param ImageStyleOption
|
|
85
|
+
* @example
|
|
86
|
+
* setCirclePointStyle({
|
|
87
|
+
scale: 1, //比例
|
|
88
|
+
radius: 5, //大小
|
|
89
|
+
fill: {
|
|
90
|
+
color: "rgba(255, 0, 0,1)", // 填充色
|
|
91
|
+
},
|
|
92
|
+
stroke: {
|
|
93
|
+
color: "rgba(255, 255, 0,1)", // 边框色
|
|
94
|
+
width: 1, //宽度
|
|
95
|
+
|
|
96
|
+
},
|
|
97
|
+
})
|
|
98
|
+
*/
|
|
65
99
|
setCirclePointStyle(ImageStyleOption: IImageStyle): void;
|
|
66
100
|
/**
|
|
67
101
|
* 设置边框简单模式样式
|