@ino-cesium/draw 0.0.14 → 0.0.15
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/index.d.ts +13 -13
- package/package.json +5 -6
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ declare class MeasurePrimitive extends BasePrimitive<any> {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* 绘制事件类型
|
|
23
23
|
*/
|
|
24
24
|
declare enum DrawEventType {
|
|
25
25
|
/**
|
|
@@ -44,13 +44,13 @@ declare enum DrawEventType {
|
|
|
44
44
|
DRAW_RIGHT_CLICK = "drawRightClick"
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* 绘制事件处理函数类型
|
|
48
48
|
* @param type 事件类型
|
|
49
49
|
* @param data 事件数据
|
|
50
50
|
*/
|
|
51
51
|
type DrawEvent = (type: string, data: any) => void;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* 绘制处理器事件接口
|
|
54
54
|
*/
|
|
55
55
|
interface IDrawHandlerEvent {
|
|
56
56
|
/**
|
|
@@ -92,7 +92,7 @@ interface IDrawHandlerEvent {
|
|
|
92
92
|
drawRemove?: (drawData: IDrawAttrInfo) => void;
|
|
93
93
|
}
|
|
94
94
|
/**
|
|
95
|
-
*
|
|
95
|
+
* 绘制属性信息接口
|
|
96
96
|
*/
|
|
97
97
|
interface IDrawAttrInfo {
|
|
98
98
|
/**
|
|
@@ -161,13 +161,13 @@ interface IDrawAttrInfo {
|
|
|
161
161
|
measureResult?: IMeasureResult[];
|
|
162
162
|
}
|
|
163
163
|
/**
|
|
164
|
-
*
|
|
164
|
+
* 事件动作类型
|
|
165
165
|
*/
|
|
166
166
|
type IEventActions = {
|
|
167
167
|
[key in DrawEventType]: (data: IEventData) => void;
|
|
168
168
|
};
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
170
|
+
* 事件数据接口
|
|
171
171
|
*/
|
|
172
172
|
interface IEventData {
|
|
173
173
|
/**
|
|
@@ -184,7 +184,7 @@ interface IEventData {
|
|
|
184
184
|
windowPosition: Cesium.Cartesian2;
|
|
185
185
|
}
|
|
186
186
|
/**
|
|
187
|
-
*
|
|
187
|
+
* 绘制处理器接口
|
|
188
188
|
*/
|
|
189
189
|
interface IDrawHandler {
|
|
190
190
|
/**
|
|
@@ -217,7 +217,7 @@ interface IDrawHandler {
|
|
|
217
217
|
Event: IDrawHandlerEvent;
|
|
218
218
|
}
|
|
219
219
|
/**
|
|
220
|
-
*
|
|
220
|
+
* 绘制选项接口
|
|
221
221
|
*/
|
|
222
222
|
interface IDrawOptions {
|
|
223
223
|
/**
|
|
@@ -254,7 +254,7 @@ interface IDrawOptions {
|
|
|
254
254
|
drawStyle?: Common.DeepPartial<IDrawStyle>;
|
|
255
255
|
}
|
|
256
256
|
/**
|
|
257
|
-
*
|
|
257
|
+
* 测量选项接口
|
|
258
258
|
*/
|
|
259
259
|
interface IMeasureOptions extends IDrawOptions {
|
|
260
260
|
/**
|
|
@@ -271,7 +271,7 @@ interface IMeasureOptions extends IDrawOptions {
|
|
|
271
271
|
measureLabel?: boolean;
|
|
272
272
|
}
|
|
273
273
|
/**
|
|
274
|
-
*
|
|
274
|
+
* 绘制编辑事件接口
|
|
275
275
|
*/
|
|
276
276
|
interface IDrawEditEvent {
|
|
277
277
|
/**
|
|
@@ -296,7 +296,7 @@ interface IDrawEditEvent {
|
|
|
296
296
|
drawDelete: (pointPrimitive: Cesium.PointPrimitive) => void;
|
|
297
297
|
}
|
|
298
298
|
/**
|
|
299
|
-
*
|
|
299
|
+
* 测量结果接口
|
|
300
300
|
*/
|
|
301
301
|
interface IMeasureResult {
|
|
302
302
|
/**
|
|
@@ -321,11 +321,11 @@ interface IMeasureResult {
|
|
|
321
321
|
prefixText?: string;
|
|
322
322
|
}
|
|
323
323
|
/**
|
|
324
|
-
*
|
|
324
|
+
* 绘制形状类型
|
|
325
325
|
*/
|
|
326
326
|
type DrawShape = 'polyline' | 'polygon' | 'point' | 'circle' | 'rectangle' | 'vertical-line' | 'vertical-surface-line';
|
|
327
327
|
/**
|
|
328
|
-
*
|
|
328
|
+
* 绘制样式接口
|
|
329
329
|
*/
|
|
330
330
|
interface IDrawStyle {
|
|
331
331
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ino-cesium/draw",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.15",
|
|
5
5
|
"author": "koino",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"cesium",
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"ino-cesium-draw"
|
|
10
10
|
],
|
|
11
11
|
"exports": {
|
|
12
|
-
".": "./
|
|
12
|
+
".": "./src/index.ts"
|
|
13
13
|
},
|
|
14
14
|
"typesVersions": {
|
|
15
15
|
"*": {
|
|
16
16
|
"*": [
|
|
17
17
|
"./src/*",
|
|
18
|
-
"./dist
|
|
18
|
+
"./dist/index.d.ts"
|
|
19
19
|
]
|
|
20
20
|
}
|
|
21
21
|
},
|
|
@@ -32,10 +32,9 @@
|
|
|
32
32
|
"html2canvas": "^1.4.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"
|
|
36
|
-
"
|
|
35
|
+
"html2canvas": "^1.4.1",
|
|
36
|
+
"@ino-cesium/common": "0.0.15"
|
|
37
37
|
},
|
|
38
|
-
"types": "./dist/index.d.ts",
|
|
39
38
|
"scripts": {
|
|
40
39
|
"build": "rimraf dist && rollup -c",
|
|
41
40
|
"clean": "rimraf dist",
|