gis-common 4.1.7 → 4.1.8

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.
@@ -1,23 +1,23 @@
1
- declare const _default: {
2
- LOGIN_EXPIRED: string;
3
- CROSS_ERROR: string;
4
- UNEXIST_RESOURCE: string;
5
- TIMEOUT: string;
6
- INTERNAL_ERROR: string;
7
- NETWORK_ERROR: string;
8
- PROCESS_FAIL: string;
9
- AUTH_VERIFY_ERROR: string;
10
- NO_DATA_FOUND: string;
11
- DUPLICATE_INSTANCE: string;
12
- COORDINATE_ERROR: string;
13
- JSON_PARSE_ERROR: string;
14
- JSON_VALUE_ERROR: string;
15
- PARAMETER_ERROR: string;
16
- PARAMETER_ERROR_ARRAY: string;
17
- PARAMETER_ERROR_STRING: string;
18
- PARAMETER_ERROR_FUNCTION: string;
19
- PARAMETER_ERROR_OBJECT: string;
20
- PARAMETER_ERROR_LACK: string;
21
- STRING_CHECK_LOSS: string;
22
- };
23
- export default _default;
1
+ declare enum ErrorType {
2
+ LOGIN_EXPIRED = "\u767B\u5F55\u4FE1\u606F\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55",
3
+ CROSS_ERROR = "\u8DE8\u57DF\u8BBF\u95EE",
4
+ UNEXIST_RESOURCE = "\u8D44\u6E90\u4E0D\u5B58\u5728",
5
+ TIMEOUT = "\u8BF7\u6C42\u8D85\u65F6",
6
+ INTERNAL_ERROR = "\u5185\u90E8\u9519\u8BEF",
7
+ NETWORK_ERROR = "\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u662F\u5426\u5DF2\u8FDE\u63A5",
8
+ PROCESS_FAIL = "\u5904\u7406\u5931\u8D25",
9
+ AUTH_VERIFY_ERROR = "\u6743\u9650\u9A8C\u8BC1\u5931\u8D25",
10
+ NO_DATA_FOUND = "\u672A\u627E\u5230\u6570\u636E",
11
+ DUPLICATE_INSTANCE = "\u5B9E\u4F8B\u4E3A\u5355\u4F8B\u6A21\u5F0F\uFF0C\u4E0D\u5141\u8BB8\u91CD\u590D\u6784\u5EFA",
12
+ COORDINATE_ERROR = "\u5750\u6807\u9A8C\u8BC1\u5931\u8D25",
13
+ JSON_PARSE_ERROR = "JSON\u89E3\u6790\u5931\u8D25\uFF0C\u683C\u5F0F\u6709\u8BEF",
14
+ JSON_VALUE_ERROR = "JSON\u65E0\u6B64\u952E",
15
+ PARAMETER_ERROR = "\u9A8C\u8BC1\u6570\u636E\u7C7B\u578B\u5931\u8D25",
16
+ PARAMETER_ERROR_ARRAY = "\u683C\u5F0F\u7C7B\u578B\u9A8C\u8BC1\u5931\u8D25\uFF1A\u5FC5\u987B\u662F\u6570\u7EC4",
17
+ PARAMETER_ERROR_STRING = "\u683C\u5F0F\u7C7B\u578B\u9A8C\u8BC1\u5931\u8D25\uFF1A\u5FC5\u987B\u662F\u5B57\u7B26",
18
+ PARAMETER_ERROR_FUNCTION = "\u683C\u5F0F\u7C7B\u578B\u9A8C\u8BC1\u5931\u8D25\uFF1A\u5FC5\u987B\u662F\u51FD\u6570",
19
+ PARAMETER_ERROR_OBJECT = "\u683C\u5F0F\u7C7B\u578B\u9A8C\u8BC1\u5931\u8D25\uFF1A\u5FC5\u987B\u662F\u5BF9\u8C61",
20
+ PARAMETER_ERROR_LACK = "\u53C2\u6570\u7F3A\u5931",
21
+ STRING_CHECK_LOSS = "\u5B57\u7B26\u7F3A\u5C11\u5173\u952E\u5B57"
22
+ }
23
+ export default ErrorType;
@@ -1,24 +1,24 @@
1
- declare const _default: {
2
- MAP_RENDER: string;
3
- MAP_READY: string;
4
- MOUSE_CLICK: string;
5
- MOUSE_DOUBLE_CLICK: string;
6
- MOUSE_MOVE: string;
7
- MOUSE_IN: string;
8
- MOUSE_OUT: string;
9
- MOUSE_RIGHT_CLICK: string;
10
- KEY_DOWN: string;
11
- KEY_UP: string;
12
- DRAW_ACTIVE: string;
13
- DRAW_MOVE: string;
14
- DRAW_COMPLETE: string;
15
- MQTT_CONNECT: string;
16
- MQTT_ERROR: string;
17
- MQTT_MESSAGE: string;
18
- MQTT_CLOSE: string;
19
- WEB_SOCKET_CONNECT: string;
20
- WEB_SOCKET_ERROR: string;
21
- WEB_SOCKET_MESSAGE: string;
22
- WEB_SOCKET_CLOSE: string;
23
- };
24
- export default _default;
1
+ declare enum EventType {
2
+ MAP_RENDER = "mapRender",
3
+ MAP_READY = "mapReady",
4
+ MOUSE_CLICK = "click",
5
+ MOUSE_DOUBLE_CLICK = "dblclick",
6
+ MOUSE_MOVE = "mousemove",
7
+ MOUSE_IN = "mousein",
8
+ MOUSE_OUT = "mouseout",
9
+ MOUSE_RIGHT_CLICK = "mouseRightClick",
10
+ KEY_DOWN = "keyDown",
11
+ KEY_UP = "keyUp",
12
+ DRAW_ACTIVE = "drawActive",
13
+ DRAW_MOVE = "drawMove",
14
+ DRAW_COMPLETE = "drawComplete",
15
+ MQTT_CONNECT = "mqttConnect",
16
+ MQTT_ERROR = "mqttError",
17
+ MQTT_MESSAGE = "mqttMessage",
18
+ MQTT_CLOSE = "mqttClose",
19
+ WEB_SOCKET_CONNECT = "webSocketConnect",
20
+ WEB_SOCKET_ERROR = "webSocketError",
21
+ WEB_SOCKET_MESSAGE = "webSocketMessage",
22
+ WEB_SOCKET_CLOSE = "webSocketClose"
23
+ }
24
+ export default EventType;
@@ -1,21 +1,21 @@
1
- export declare const GraphicType: {
2
- POINT: string;
3
- POLYLINE: string;
4
- POLYGON: string;
5
- BILLBOARD: string;
6
- CYLINDER: string;
7
- ELLIPSOID: string;
8
- LABEL: string;
9
- MODEL: string;
10
- WALL: string;
11
- };
12
- export declare const MeasureMode: {
13
- DISTANCE: string;
14
- AREA: string;
15
- HEIGHT: string;
16
- };
17
- export declare const ObjectState: {
18
- ADD: string;
19
- REMOVE: string;
20
- INIT: string;
21
- };
1
+ export declare enum GraphicType {
2
+ POINT = "point",
3
+ POLYLINE = "polyline",
4
+ POLYGON = "polygon",
5
+ BILLBOARD = "billboard",
6
+ CYLINDER = "cylinder",
7
+ ELLIPSOID = "ellipsoid",
8
+ LABEL = "label",
9
+ MODEL = "model",
10
+ WALL = "wall"
11
+ }
12
+ export declare enum MeasureMode {
13
+ DISTANCE = "distance",
14
+ AREA = "area",
15
+ HEIGHT = "height"
16
+ }
17
+ export declare enum ObjectState {
18
+ ADD = "add",
19
+ REMOVE = "remove",
20
+ INIT = "init"
21
+ }
@@ -1,10 +1,10 @@
1
- declare const _default: {
2
- SUPER_MAP_IMAGES: string;
3
- SUPER_MAP_DATA: string;
4
- ARC_GIS_MAP_IMAGES: string;
5
- ARC_GIS_MAP_DATA: string;
6
- OSGB_LAYER: string;
7
- S3M_GROUP: string;
8
- TERRAIN_LAYER: string;
9
- };
10
- export default _default;
1
+ declare enum LayerType {
2
+ SUPER_MAP_IMAGES = "SuperMapImages",
3
+ SUPER_MAP_DATA = "SuperMapData",
4
+ ARC_GIS_MAP_IMAGES = "ArcGisMapImages",
5
+ ARC_GIS_MAP_DATA = "ArcGisMapData",
6
+ OSGB_LAYER = "OSGBLayer",
7
+ S3M_GROUP = "S3MGroup",
8
+ TERRAIN_LAYER = "TerrainFileLayer"
9
+ }
10
+ export default LayerType;
@@ -1,7 +1,6 @@
1
1
  import { Coordinate } from '../types';
2
2
  export default class CanvasDrawer {
3
3
  private context;
4
- static emptyImageUrl: string;
5
4
  constructor(el: HTMLElement | null);
6
5
  /**
7
6
  * 绘制线条