mirage2d 1.1.77 → 1.1.79

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.
@@ -159,5 +159,15 @@ export declare class MirageMap extends baseMap {
159
159
  exportMapSelector(querySelector?: string, callbackBase64?: Function, errinfo?: Function): void;
160
160
  exportMap(type: string, errinfo?: Function): void;
161
161
  exportMapPdf(): void;
162
+ /**
163
+ * @description: 开关选择器状态
164
+ * @param {boolean} val
165
+ */
166
+ setSelectState(val: boolean): void;
167
+ /**
168
+ * @description: 设置鼠标状态
169
+ * @param {string} val
170
+ */
171
+ setMapCursor(val: string): void;
162
172
  destroy(): void;
163
173
  }
@@ -2,6 +2,7 @@ import * as turf from "@turf/turf";
2
2
  import { Feature } from "ol";
3
3
  import { Geometry } from "ol/geom";
4
4
  import * as olExtent from 'ol/extent';
5
+ import { GraphicLayer } from "src/Layer";
5
6
  export declare class SpatialAnalysis {
6
7
  static sector(origin: any, radius: any, antBearing: any, rotation: any): Feature<Geometry>;
7
8
  /**
@@ -163,30 +164,31 @@ export declare class SpatialAnalysis {
163
164
  static lineIntersect(_line1: Feature<Geometry>, _line2: Feature<Geometry>): Feature<Geometry>[];
164
165
  static lineSplit(_line1: Feature<Geometry>, _feature: Feature<Geometry>): Feature<Geometry>;
165
166
  /**
166
- * 自相交打断
167
+ * 线线是否相交打断
167
168
  * @param {*} _line1
169
+ * @param {*} _line2
168
170
  * @returns
169
171
  */
170
- static linekinks(_line1: Feature<Geometry>): {
171
- isIntersect: boolean;
172
- datalist: any;
173
- };
172
+ static lineCrossesSplit(layer: GraphicLayer, lineList: Array<Feature<Geometry>>, callback: Function): void;
174
173
  /**
175
- * 线线是否相交打断
176
- * @param {*} _line1
177
- * @param {*} _line2
174
+ * 转为geoJson格式
175
+ * @param {Feature<Geometry>} Feature
178
176
  * @returns
179
177
  */
180
- static lineCrossesSplit(_line1: Feature<Geometry>, _line2: Feature<Geometry>): {
181
- isIntersect: boolean;
182
- datalist: any;
183
- };
184
178
  static featureToJson(Feature: Feature<Geometry>): import("geojson").Feature<import("geojson").Geometry, {
185
179
  [name: string]: any;
186
180
  }>;
187
- static featureTo4326(Feature: Feature<Geometry>): import("geojson").Feature<import("geojson").Geometry, {
188
- [name: string]: any;
189
- }>;
181
+ /**
182
+ * 转为geoJson格式
183
+ * @param {Feature<Geometry>} Feature
184
+ * @return {GeoJSONFeature} "EPSG:4326" Object.
185
+ */
186
+ static featureTo4326(Feature: Feature<Geometry>): Object;
187
+ /**
188
+ * 转为geoJson数组格式
189
+ * @param {Feature<Geometry>[]} Feature
190
+ * @return {GeoJSONFeature} "EPSG:4326" Object.
191
+ */
190
192
  static featuresTo4326(Feature: Feature<Geometry>[]): import("geojson").FeatureCollection<import("geojson").Geometry, {
191
193
  [name: string]: any;
192
194
  }>;
@@ -17,6 +17,7 @@ export declare class baseGraphicLayer extends baseLayer {
17
17
  private mSelectTransform;
18
18
  constructor(layerid: string, Options?: IGraphicLayerOption);
19
19
  initSelect(): void;
20
+ setSelectState(val?: boolean): void;
20
21
  startMove(): void;
21
22
  endMove(): void;
22
23
  startEdit(): void;
@@ -85,6 +85,7 @@ export interface IGraphicLayerOption extends ILayerOption {
85
85
  };
86
86
  hashEdit?: boolean;
87
87
  hashMove?: boolean;
88
+ hashSelect?: boolean;
88
89
  }
89
90
  export interface IImageCanvasLayerOption extends ILayerOption {
90
91
  line1Style?: string;