leiting-bim 2.1.52 → 2.1.55
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/leiting-bim.es.js +1 -25503
- package/leiting-bim.umd.js +8 -8
- package/leitingbim.css +1 -1
- package/package.json +1 -1
- package/plugins/cesium-core/dist/components/HtmlOverlayLabelPool.d.ts +152 -152
- package/plugins/cesium-core/dist/components/MarkerEvent.d.ts +38 -38
- package/plugins/cesium-core/dist/components/Material/MaterialManager.d.ts +49 -49
- package/plugins/cesium-core/dist/components/Material/help/PolylineFlowMaterialProperty.d.ts +10 -10
- package/plugins/cesium-core/dist/components/Material/help/dynamicImgMaterial.d.ts +16 -16
- package/plugins/cesium-core/dist/components/Material/index.d.ts +3 -3
- package/plugins/cesium-core/dist/components/TooltipManager.d.ts +11 -11
- package/plugins/cesium-core/dist/components/draw/DrawTool.d.ts +10 -10
- package/plugins/cesium-core/dist/components/draw/handlers/CircleDrawer.d.ts +16 -16
- package/plugins/cesium-core/dist/components/draw/handlers/LineDrawer.d.ts +14 -14
- package/plugins/cesium-core/dist/components/draw/handlers/PointDrawer.d.ts +12 -12
- package/plugins/cesium-core/dist/components/draw/handlers/PolygonDrawer.d.ts +14 -14
- package/plugins/cesium-core/dist/components/draw/handlers/RectangleDrawer.d.ts +13 -13
- package/plugins/cesium-core/dist/components/draw/types.d.ts +29 -29
- package/plugins/cesium-core/dist/components/entity/EntityLayer.d.ts +65 -65
- package/plugins/cesium-core/dist/components/gltf/GLTFManage.d.ts +141 -141
- package/plugins/cesium-core/dist/components/gltf/index.d.ts +1 -1
- package/plugins/cesium-core/dist/components/measurement/MeasurementTool.d.ts +34 -34
- package/plugins/cesium-core/dist/components/measurement/handlers/CoordinateMeasure.d.ts +16 -16
- package/plugins/cesium-core/dist/components/measurement/handlers/TerrainHeightMeasure.d.ts +18 -18
- package/plugins/cesium-core/dist/components/measurement/handlers/VerticalMeasure.d.ts +23 -23
- package/plugins/cesium-core/dist/components/measurement/index.d.ts +13 -13
- package/plugins/cesium-core/dist/components/measurement/types.d.ts +42 -42
- package/plugins/cesium-core/dist/components/primitive/PrimitiveManager.d.ts +50 -50
- package/plugins/cesium-core/dist/components/roaming/CameraRoamTool.d.ts +27 -27
- package/plugins/cesium-core/dist/components/roaming/PathRoamTool.d.ts +23 -23
- package/plugins/cesium-core/dist/components/roaming/index.d.ts +3 -3
- package/plugins/cesium-core/dist/components/roaming/types.d.ts +66 -66
- package/plugins/cesium-core/dist/components/utils/convertGeoJsonToEntityData.d.ts +1 -1
- package/plugins/cesium-core/dist/components/utils/uuid.d.ts +1 -1
- package/plugins/cesium-core/dist/index.d.ts +12 -12
- package/plugins/cesium-core/package.json +27 -27
- package/plugins/cesium-vue/dist/HtmlOverlayLabelPool-B1gUt-p1.js +339 -0
- package/plugins/cesium-vue/dist/HtmlOverlayLabelPool-B1gUt-p1.js.map +1 -0
- package/plugins/cesium-vue/dist/components/basic-audio.js.map +1 -1
- package/plugins/cesium-vue/dist/components/basic-video.js.map +1 -1
- package/plugins/cesium-vue/dist/components/card-carousel.js.map +1 -1
- package/plugins/cesium-vue/dist/components/card-content.js +1 -1
- package/plugins/cesium-vue/dist/components/card-content.js.map +1 -1
- package/plugins/cesium-vue/dist/components/card-page.js.map +1 -1
- package/plugins/cesium-vue/dist/components/carousel-img.js.map +1 -1
- package/plugins/cesium-vue/dist/components/echarts-pro.js +1 -1
- package/plugins/cesium-vue/dist/components/marker-bubble.js.map +1 -1
- package/plugins/cesium-vue/dist/components/marker-default.js.map +1 -1
- package/plugins/cesium-vue/dist/components/marker-html.js.map +1 -1
- package/plugins/cesium-vue/dist/components/marker-manage.js +1324 -457
- package/plugins/cesium-vue/dist/components/marker-manage.js.map +1 -1
- package/plugins/cesium-vue/dist/components/marker-text.js.map +1 -1
- package/plugins/cesium-vue/dist/components/measurement.js +2943 -116
- package/plugins/cesium-vue/dist/components/measurement.js.map +1 -1
- package/plugins/cesium-vue/dist/components/position-picker.js.map +1 -1
- package/plugins/cesium-vue/dist/index-CUs_hd1V.js.map +1 -1
- package/plugins/cesium-vue/dist/index-Kdqw0FJN.js +45856 -0
- package/plugins/cesium-vue/dist/index-Kdqw0FJN.js.map +1 -0
- package/plugins/cesium-vue/dist/index.js +1 -1
- package/plugins/cesium-vue/dist/index.js.map +1 -1
|
@@ -1,141 +1,141 @@
|
|
|
1
|
-
export declare enum EditMode {
|
|
2
|
-
Rotate = "rotate",
|
|
3
|
-
Move = "move",
|
|
4
|
-
Scale = "scale",
|
|
5
|
-
MoveHeight = "moveHeight",
|
|
6
|
-
Empty = ""
|
|
7
|
-
}
|
|
8
|
-
export declare enum GLTFManageEventKey {
|
|
9
|
-
Scale = "addScale",
|
|
10
|
-
Rotate = "rotate",
|
|
11
|
-
Translation = "translation",
|
|
12
|
-
Remove = "removeById",
|
|
13
|
-
Add = "add"
|
|
14
|
-
}
|
|
15
|
-
export declare class GLTFManage {
|
|
16
|
-
primitives: Map<string, any>;
|
|
17
|
-
eventListener: Map<string, Object[]>;
|
|
18
|
-
Cesium: any;
|
|
19
|
-
viewer: any;
|
|
20
|
-
handler: any;
|
|
21
|
-
rotationRing: any;
|
|
22
|
-
translationSquare: any;
|
|
23
|
-
heightArrow: any;
|
|
24
|
-
editMode: EditMode;
|
|
25
|
-
dragEndCallbackMap: Map<string, any>;
|
|
26
|
-
constructor(options: {
|
|
27
|
-
Cesium: any;
|
|
28
|
-
viewer: any;
|
|
29
|
-
});
|
|
30
|
-
/**
|
|
31
|
-
* @description: 初始化模型
|
|
32
|
-
* @param {Array<any>} models 模型数据列表
|
|
33
|
-
* @return {*}
|
|
34
|
-
*/
|
|
35
|
-
init(models: Array<any>, show?: boolean): void;
|
|
36
|
-
get(id: string): any;
|
|
37
|
-
/**
|
|
38
|
-
* @description: 添加模型
|
|
39
|
-
* @param {*} info 模型信息
|
|
40
|
-
* @return {*}
|
|
41
|
-
*/
|
|
42
|
-
add(info: any, show?: boolean): void;
|
|
43
|
-
flyTo(id: string): void;
|
|
44
|
-
/**
|
|
45
|
-
* @description: 根据模型的 ID 移除模型
|
|
46
|
-
* @param {string} id 模型的 ID
|
|
47
|
-
* @return {*}
|
|
48
|
-
*/
|
|
49
|
-
removeById(id: string): void;
|
|
50
|
-
show(id: string): void;
|
|
51
|
-
hide(id: string): void;
|
|
52
|
-
/**
|
|
53
|
-
* @description: 修改模型的缩放因子
|
|
54
|
-
* @param {*} info 模型信息
|
|
55
|
-
* @param {number} num 缩放因子
|
|
56
|
-
* @return {*}
|
|
57
|
-
*/
|
|
58
|
-
addScale(info: any, num?: number): void;
|
|
59
|
-
/**
|
|
60
|
-
* @description: 修改模型的缩放因子
|
|
61
|
-
* @param {*} info 模型信息
|
|
62
|
-
* @param {number} num 缩放因子
|
|
63
|
-
* @return {*}
|
|
64
|
-
*/
|
|
65
|
-
setScale(id: any, scale?: number): void;
|
|
66
|
-
setEditMode(mode: EditMode): void;
|
|
67
|
-
lockCamera(): void;
|
|
68
|
-
unlockCamera(): void;
|
|
69
|
-
toCartographic(cartesian: any): {
|
|
70
|
-
longitude: any;
|
|
71
|
-
latitude: any;
|
|
72
|
-
};
|
|
73
|
-
calculateHeading(from: any, to: any): number;
|
|
74
|
-
/**
|
|
75
|
-
* @description: 获取模型的 Heading, Pitch, Roll
|
|
76
|
-
* @param {any} modelMatrix 模型的变换矩阵
|
|
77
|
-
* @return {*}
|
|
78
|
-
*/
|
|
79
|
-
getModelHeadingPitchRoll(modelMatrix: any): any;
|
|
80
|
-
/**
|
|
81
|
-
* @description: 添加事件监听
|
|
82
|
-
* @param {string} key
|
|
83
|
-
* @param {Function} f
|
|
84
|
-
* @param {any} options
|
|
85
|
-
* @return {*}
|
|
86
|
-
*/
|
|
87
|
-
addEventListener(key: string, f: Function, options?: any): {
|
|
88
|
-
f: Function;
|
|
89
|
-
options: any;
|
|
90
|
-
};
|
|
91
|
-
/**
|
|
92
|
-
* @description: 移除事件监听
|
|
93
|
-
* @param {string} key
|
|
94
|
-
* @param {any} instantiation
|
|
95
|
-
* @return {*}
|
|
96
|
-
*/
|
|
97
|
-
removeEventListener(key: string, instantiation: any): void;
|
|
98
|
-
/**
|
|
99
|
-
* @description: 执行监听
|
|
100
|
-
* @param {*} key
|
|
101
|
-
* @param {any} parameter
|
|
102
|
-
* @return {*}
|
|
103
|
-
*/
|
|
104
|
-
runEventListener(key: string, parameter: any): boolean;
|
|
105
|
-
/**
|
|
106
|
-
* @description: 初始化拖拽模型编辑功能(平移)
|
|
107
|
-
* @return {*}
|
|
108
|
-
*/
|
|
109
|
-
initEditBox(getEditState: Function): void;
|
|
110
|
-
createRotationRing(model: any): void;
|
|
111
|
-
createTranslationSquare(model: any): void;
|
|
112
|
-
createHeightArrow(model: any): void;
|
|
113
|
-
translate(geometry: any, offset: any): void;
|
|
114
|
-
removeTool(): void;
|
|
115
|
-
updatedTool(newModelMatrix: any): void;
|
|
116
|
-
/**
|
|
117
|
-
* @description: 平移模型
|
|
118
|
-
* @param {*} draggedModel
|
|
119
|
-
* @param {*} startModelMatrix
|
|
120
|
-
* @param {*} movement
|
|
121
|
-
* @return {*}
|
|
122
|
-
*/
|
|
123
|
-
moveModel(draggedModel: any, startModelMatrix: any, movement: any): void;
|
|
124
|
-
/**
|
|
125
|
-
* @description: 平移模型高度
|
|
126
|
-
* @param {*} draggedModel
|
|
127
|
-
* @param {*} startModelMatrix
|
|
128
|
-
* @param {*} movement
|
|
129
|
-
* @return {*}
|
|
130
|
-
*/
|
|
131
|
-
moveModelHeight(draggedModel: any, startModelMatrix: any, movement: any, startMousePosition: any): void;
|
|
132
|
-
/**
|
|
133
|
-
* @description: 旋转模型
|
|
134
|
-
* @param {*} draggedModel
|
|
135
|
-
* @param {*} startModelMatrix
|
|
136
|
-
* @param {*} angleDelta
|
|
137
|
-
* @return {*}
|
|
138
|
-
*/
|
|
139
|
-
rotateModel(draggedModel: any, startModelMatrix: any, angleDelta: number): void;
|
|
140
|
-
cleanup(): void;
|
|
141
|
-
}
|
|
1
|
+
export declare enum EditMode {
|
|
2
|
+
Rotate = "rotate",
|
|
3
|
+
Move = "move",
|
|
4
|
+
Scale = "scale",
|
|
5
|
+
MoveHeight = "moveHeight",
|
|
6
|
+
Empty = ""
|
|
7
|
+
}
|
|
8
|
+
export declare enum GLTFManageEventKey {
|
|
9
|
+
Scale = "addScale",
|
|
10
|
+
Rotate = "rotate",
|
|
11
|
+
Translation = "translation",
|
|
12
|
+
Remove = "removeById",
|
|
13
|
+
Add = "add"
|
|
14
|
+
}
|
|
15
|
+
export declare class GLTFManage {
|
|
16
|
+
primitives: Map<string, any>;
|
|
17
|
+
eventListener: Map<string, Object[]>;
|
|
18
|
+
Cesium: any;
|
|
19
|
+
viewer: any;
|
|
20
|
+
handler: any;
|
|
21
|
+
rotationRing: any;
|
|
22
|
+
translationSquare: any;
|
|
23
|
+
heightArrow: any;
|
|
24
|
+
editMode: EditMode;
|
|
25
|
+
dragEndCallbackMap: Map<string, any>;
|
|
26
|
+
constructor(options: {
|
|
27
|
+
Cesium: any;
|
|
28
|
+
viewer: any;
|
|
29
|
+
});
|
|
30
|
+
/**
|
|
31
|
+
* @description: 初始化模型
|
|
32
|
+
* @param {Array<any>} models 模型数据列表
|
|
33
|
+
* @return {*}
|
|
34
|
+
*/
|
|
35
|
+
init(models: Array<any>, show?: boolean): void;
|
|
36
|
+
get(id: string): any;
|
|
37
|
+
/**
|
|
38
|
+
* @description: 添加模型
|
|
39
|
+
* @param {*} info 模型信息
|
|
40
|
+
* @return {*}
|
|
41
|
+
*/
|
|
42
|
+
add(info: any, show?: boolean): void;
|
|
43
|
+
flyTo(id: string): void;
|
|
44
|
+
/**
|
|
45
|
+
* @description: 根据模型的 ID 移除模型
|
|
46
|
+
* @param {string} id 模型的 ID
|
|
47
|
+
* @return {*}
|
|
48
|
+
*/
|
|
49
|
+
removeById(id: string): void;
|
|
50
|
+
show(id: string): void;
|
|
51
|
+
hide(id: string): void;
|
|
52
|
+
/**
|
|
53
|
+
* @description: 修改模型的缩放因子
|
|
54
|
+
* @param {*} info 模型信息
|
|
55
|
+
* @param {number} num 缩放因子
|
|
56
|
+
* @return {*}
|
|
57
|
+
*/
|
|
58
|
+
addScale(info: any, num?: number): void;
|
|
59
|
+
/**
|
|
60
|
+
* @description: 修改模型的缩放因子
|
|
61
|
+
* @param {*} info 模型信息
|
|
62
|
+
* @param {number} num 缩放因子
|
|
63
|
+
* @return {*}
|
|
64
|
+
*/
|
|
65
|
+
setScale(id: any, scale?: number): void;
|
|
66
|
+
setEditMode(mode: EditMode): void;
|
|
67
|
+
lockCamera(): void;
|
|
68
|
+
unlockCamera(): void;
|
|
69
|
+
toCartographic(cartesian: any): {
|
|
70
|
+
longitude: any;
|
|
71
|
+
latitude: any;
|
|
72
|
+
};
|
|
73
|
+
calculateHeading(from: any, to: any): number;
|
|
74
|
+
/**
|
|
75
|
+
* @description: 获取模型的 Heading, Pitch, Roll
|
|
76
|
+
* @param {any} modelMatrix 模型的变换矩阵
|
|
77
|
+
* @return {*}
|
|
78
|
+
*/
|
|
79
|
+
getModelHeadingPitchRoll(modelMatrix: any): any;
|
|
80
|
+
/**
|
|
81
|
+
* @description: 添加事件监听
|
|
82
|
+
* @param {string} key
|
|
83
|
+
* @param {Function} f
|
|
84
|
+
* @param {any} options
|
|
85
|
+
* @return {*}
|
|
86
|
+
*/
|
|
87
|
+
addEventListener(key: string, f: Function, options?: any): {
|
|
88
|
+
f: Function;
|
|
89
|
+
options: any;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* @description: 移除事件监听
|
|
93
|
+
* @param {string} key
|
|
94
|
+
* @param {any} instantiation
|
|
95
|
+
* @return {*}
|
|
96
|
+
*/
|
|
97
|
+
removeEventListener(key: string, instantiation: any): void;
|
|
98
|
+
/**
|
|
99
|
+
* @description: 执行监听
|
|
100
|
+
* @param {*} key
|
|
101
|
+
* @param {any} parameter
|
|
102
|
+
* @return {*}
|
|
103
|
+
*/
|
|
104
|
+
runEventListener(key: string, parameter: any): boolean;
|
|
105
|
+
/**
|
|
106
|
+
* @description: 初始化拖拽模型编辑功能(平移)
|
|
107
|
+
* @return {*}
|
|
108
|
+
*/
|
|
109
|
+
initEditBox(getEditState: Function): void;
|
|
110
|
+
createRotationRing(model: any): void;
|
|
111
|
+
createTranslationSquare(model: any): void;
|
|
112
|
+
createHeightArrow(model: any): void;
|
|
113
|
+
translate(geometry: any, offset: any): void;
|
|
114
|
+
removeTool(): void;
|
|
115
|
+
updatedTool(newModelMatrix: any): void;
|
|
116
|
+
/**
|
|
117
|
+
* @description: 平移模型
|
|
118
|
+
* @param {*} draggedModel
|
|
119
|
+
* @param {*} startModelMatrix
|
|
120
|
+
* @param {*} movement
|
|
121
|
+
* @return {*}
|
|
122
|
+
*/
|
|
123
|
+
moveModel(draggedModel: any, startModelMatrix: any, movement: any): void;
|
|
124
|
+
/**
|
|
125
|
+
* @description: 平移模型高度
|
|
126
|
+
* @param {*} draggedModel
|
|
127
|
+
* @param {*} startModelMatrix
|
|
128
|
+
* @param {*} movement
|
|
129
|
+
* @return {*}
|
|
130
|
+
*/
|
|
131
|
+
moveModelHeight(draggedModel: any, startModelMatrix: any, movement: any, startMousePosition: any): void;
|
|
132
|
+
/**
|
|
133
|
+
* @description: 旋转模型
|
|
134
|
+
* @param {*} draggedModel
|
|
135
|
+
* @param {*} startModelMatrix
|
|
136
|
+
* @param {*} angleDelta
|
|
137
|
+
* @return {*}
|
|
138
|
+
*/
|
|
139
|
+
rotateModel(draggedModel: any, startModelMatrix: any, angleDelta: number): void;
|
|
140
|
+
cleanup(): void;
|
|
141
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './GLTFManage';
|
|
1
|
+
export * from './GLTFManage';
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { MeasurementOptions, MeasurementType, MeasurementsConfig } from './types';
|
|
2
|
-
export declare class MeasurementTool {
|
|
3
|
-
private Cesium;
|
|
4
|
-
private viewer;
|
|
5
|
-
private actives;
|
|
6
|
-
private measurements;
|
|
7
|
-
private htmlLabelPool;
|
|
8
|
-
private recordHandlers;
|
|
9
|
-
private specifiedClear;
|
|
10
|
-
private deleteLabelPool;
|
|
11
|
-
private deleteLabelIds;
|
|
12
|
-
constructor({ Cesium, viewer }: {
|
|
13
|
-
Cesium: any;
|
|
14
|
-
viewer: any;
|
|
15
|
-
});
|
|
16
|
-
measure(type: MeasurementType, options: MeasurementOptions): void;
|
|
17
|
-
clear(): void;
|
|
18
|
-
cancel(): void;
|
|
19
|
-
disableDefaultSelection({ disableLeftClick, disableDoubleClick }?: {
|
|
20
|
-
disableLeftClick?: boolean | undefined;
|
|
21
|
-
disableDoubleClick?: boolean | undefined;
|
|
22
|
-
}): void;
|
|
23
|
-
clearAll(): void;
|
|
24
|
-
getMeasurementsConfig(): MeasurementsConfig;
|
|
25
|
-
setMeasurementsConfig(config: MeasurementsConfig): void;
|
|
26
|
-
private _serializeMetrics;
|
|
27
|
-
private _toCartesian;
|
|
28
|
-
private _removeRecordVisual;
|
|
29
|
-
toggleSpecifiedClear(containerId?: string): void;
|
|
30
|
-
deleteMeasurement(recordId: string): void;
|
|
31
|
-
private _showDeleteLabels;
|
|
32
|
-
private _removeAllDeleteLabels;
|
|
33
|
-
private _computeRecordCenter;
|
|
34
|
-
}
|
|
1
|
+
import { MeasurementOptions, MeasurementType, MeasurementsConfig } from './types';
|
|
2
|
+
export declare class MeasurementTool {
|
|
3
|
+
private Cesium;
|
|
4
|
+
private viewer;
|
|
5
|
+
private actives;
|
|
6
|
+
private measurements;
|
|
7
|
+
private htmlLabelPool;
|
|
8
|
+
private recordHandlers;
|
|
9
|
+
private specifiedClear;
|
|
10
|
+
private deleteLabelPool;
|
|
11
|
+
private deleteLabelIds;
|
|
12
|
+
constructor({ Cesium, viewer }: {
|
|
13
|
+
Cesium: any;
|
|
14
|
+
viewer: any;
|
|
15
|
+
});
|
|
16
|
+
measure(type: MeasurementType, options: MeasurementOptions): void;
|
|
17
|
+
clear(): void;
|
|
18
|
+
cancel(): void;
|
|
19
|
+
disableDefaultSelection({ disableLeftClick, disableDoubleClick }?: {
|
|
20
|
+
disableLeftClick?: boolean | undefined;
|
|
21
|
+
disableDoubleClick?: boolean | undefined;
|
|
22
|
+
}): void;
|
|
23
|
+
clearAll(): void;
|
|
24
|
+
getMeasurementsConfig(): MeasurementsConfig;
|
|
25
|
+
setMeasurementsConfig(config: MeasurementsConfig): void;
|
|
26
|
+
private _serializeMetrics;
|
|
27
|
+
private _toCartesian;
|
|
28
|
+
private _removeRecordVisual;
|
|
29
|
+
toggleSpecifiedClear(containerId?: string): void;
|
|
30
|
+
deleteMeasurement(recordId: string): void;
|
|
31
|
+
private _showDeleteLabels;
|
|
32
|
+
private _removeAllDeleteLabels;
|
|
33
|
+
private _computeRecordCenter;
|
|
34
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { IMeasure, MeasurementOptions, MeasurementRecord } from '../types';
|
|
2
|
-
import { HtmlOverlayLabelPool } from '../../HtmlOverlayLabelPool';
|
|
3
|
-
export default class CoordinateMeasure implements IMeasure {
|
|
4
|
-
private Cesium;
|
|
5
|
-
private viewer;
|
|
6
|
-
private handler;
|
|
7
|
-
private entity;
|
|
8
|
-
private labelEntity;
|
|
9
|
-
private htmlLabelPool;
|
|
10
|
-
private htmlLabelId;
|
|
11
|
-
constructor(Cesium: any, viewer: any);
|
|
12
|
-
start(options: MeasurementOptions): void;
|
|
13
|
-
stop(): void;
|
|
14
|
-
clear(): void;
|
|
15
|
-
rehydrate(record: MeasurementRecord, htmlLabelPool?: HtmlOverlayLabelPool): void;
|
|
16
|
-
}
|
|
1
|
+
import { IMeasure, MeasurementOptions, MeasurementRecord } from '../types';
|
|
2
|
+
import { HtmlOverlayLabelPool } from '../../HtmlOverlayLabelPool';
|
|
3
|
+
export default class CoordinateMeasure implements IMeasure {
|
|
4
|
+
private Cesium;
|
|
5
|
+
private viewer;
|
|
6
|
+
private handler;
|
|
7
|
+
private entity;
|
|
8
|
+
private labelEntity;
|
|
9
|
+
private htmlLabelPool;
|
|
10
|
+
private htmlLabelId;
|
|
11
|
+
constructor(Cesium: any, viewer: any);
|
|
12
|
+
start(options: MeasurementOptions): void;
|
|
13
|
+
stop(): void;
|
|
14
|
+
clear(): void;
|
|
15
|
+
rehydrate(record: MeasurementRecord, htmlLabelPool?: HtmlOverlayLabelPool): void;
|
|
16
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { IMeasure, MeasurementOptions, MeasurementRecord } from '../types';
|
|
2
|
-
import { HtmlOverlayLabelPool } from '../../HtmlOverlayLabelPool';
|
|
3
|
-
export default class TerrainHeightMeasure implements IMeasure {
|
|
4
|
-
private Cesium;
|
|
5
|
-
private viewer;
|
|
6
|
-
private handler;
|
|
7
|
-
private labelEntity;
|
|
8
|
-
private htmlLabelPool;
|
|
9
|
-
private htmlLabelId;
|
|
10
|
-
private topPoint;
|
|
11
|
-
private zeroPoint;
|
|
12
|
-
private lineEntity;
|
|
13
|
-
constructor(Cesium: any, viewer: any);
|
|
14
|
-
start(options: MeasurementOptions): void;
|
|
15
|
-
stop(): void;
|
|
16
|
-
clear(): void;
|
|
17
|
-
rehydrate(record: MeasurementRecord, htmlLabelPool?: HtmlOverlayLabelPool): void;
|
|
18
|
-
}
|
|
1
|
+
import { IMeasure, MeasurementOptions, MeasurementRecord } from '../types';
|
|
2
|
+
import { HtmlOverlayLabelPool } from '../../HtmlOverlayLabelPool';
|
|
3
|
+
export default class TerrainHeightMeasure implements IMeasure {
|
|
4
|
+
private Cesium;
|
|
5
|
+
private viewer;
|
|
6
|
+
private handler;
|
|
7
|
+
private labelEntity;
|
|
8
|
+
private htmlLabelPool;
|
|
9
|
+
private htmlLabelId;
|
|
10
|
+
private topPoint;
|
|
11
|
+
private zeroPoint;
|
|
12
|
+
private lineEntity;
|
|
13
|
+
constructor(Cesium: any, viewer: any);
|
|
14
|
+
start(options: MeasurementOptions): void;
|
|
15
|
+
stop(): void;
|
|
16
|
+
clear(): void;
|
|
17
|
+
rehydrate(record: MeasurementRecord, htmlLabelPool?: HtmlOverlayLabelPool): void;
|
|
18
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { IMeasure, MeasurementOptions, MeasurementRecord } from '../types';
|
|
2
|
-
import { HtmlOverlayLabelPool } from '../../HtmlOverlayLabelPool';
|
|
3
|
-
export default class VerticalMeasure implements IMeasure {
|
|
4
|
-
private Cesium;
|
|
5
|
-
private viewer;
|
|
6
|
-
private handler;
|
|
7
|
-
private entity;
|
|
8
|
-
private labelEntity;
|
|
9
|
-
private positions;
|
|
10
|
-
private htmlLabelPool;
|
|
11
|
-
private htmlLabelId;
|
|
12
|
-
private previewLabelId;
|
|
13
|
-
private baseCarto;
|
|
14
|
-
private baseUp;
|
|
15
|
-
private tempPoints;
|
|
16
|
-
private previewPointEntity;
|
|
17
|
-
private previewEntity;
|
|
18
|
-
constructor(Cesium: any, viewer: any);
|
|
19
|
-
start(options: MeasurementOptions): void;
|
|
20
|
-
stop(): void;
|
|
21
|
-
clear(): void;
|
|
22
|
-
rehydrate(record: MeasurementRecord, htmlLabelPool?: HtmlOverlayLabelPool): void;
|
|
23
|
-
}
|
|
1
|
+
import { IMeasure, MeasurementOptions, MeasurementRecord } from '../types';
|
|
2
|
+
import { HtmlOverlayLabelPool } from '../../HtmlOverlayLabelPool';
|
|
3
|
+
export default class VerticalMeasure implements IMeasure {
|
|
4
|
+
private Cesium;
|
|
5
|
+
private viewer;
|
|
6
|
+
private handler;
|
|
7
|
+
private entity;
|
|
8
|
+
private labelEntity;
|
|
9
|
+
private positions;
|
|
10
|
+
private htmlLabelPool;
|
|
11
|
+
private htmlLabelId;
|
|
12
|
+
private previewLabelId;
|
|
13
|
+
private baseCarto;
|
|
14
|
+
private baseUp;
|
|
15
|
+
private tempPoints;
|
|
16
|
+
private previewPointEntity;
|
|
17
|
+
private previewEntity;
|
|
18
|
+
constructor(Cesium: any, viewer: any);
|
|
19
|
+
start(options: MeasurementOptions): void;
|
|
20
|
+
stop(): void;
|
|
21
|
+
clear(): void;
|
|
22
|
+
rehydrate(record: MeasurementRecord, htmlLabelPool?: HtmlOverlayLabelPool): void;
|
|
23
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { MeasurementTool } from './MeasurementTool';
|
|
2
|
-
export { default as HorizontalMeasure } from './handlers/HorizontalMeasure';
|
|
3
|
-
export { default as VerticalMeasure } from './handlers/VerticalMeasure';
|
|
4
|
-
export { default as TriangleMeasure } from './handlers/TriangleMeasure';
|
|
5
|
-
export { default as SpaceMeasure } from './handlers/SpaceMeasure';
|
|
6
|
-
export { default as AreaMeasure } from './handlers/AreaMeasure';
|
|
7
|
-
export { default as CircleMeasure } from './handlers/CircleMeasure';
|
|
8
|
-
export { default as PolylineDistanceMeasure } from './handlers/PolylineDistanceMeasure';
|
|
9
|
-
export { default as TerrainHeightMeasure } from './handlers/TerrainHeightMeasure';
|
|
10
|
-
export { default as CoordinateMeasure } from './handlers/CoordinateMeasure';
|
|
11
|
-
export { default as RectangleMeasure } from './handlers/RectangleMeasure';
|
|
12
|
-
export { default as RegularPolygonMeasure } from './handlers/RegularPolygonMeasure';
|
|
13
|
-
export * from './types';
|
|
1
|
+
export { MeasurementTool } from './MeasurementTool';
|
|
2
|
+
export { default as HorizontalMeasure } from './handlers/HorizontalMeasure';
|
|
3
|
+
export { default as VerticalMeasure } from './handlers/VerticalMeasure';
|
|
4
|
+
export { default as TriangleMeasure } from './handlers/TriangleMeasure';
|
|
5
|
+
export { default as SpaceMeasure } from './handlers/SpaceMeasure';
|
|
6
|
+
export { default as AreaMeasure } from './handlers/AreaMeasure';
|
|
7
|
+
export { default as CircleMeasure } from './handlers/CircleMeasure';
|
|
8
|
+
export { default as PolylineDistanceMeasure } from './handlers/PolylineDistanceMeasure';
|
|
9
|
+
export { default as TerrainHeightMeasure } from './handlers/TerrainHeightMeasure';
|
|
10
|
+
export { default as CoordinateMeasure } from './handlers/CoordinateMeasure';
|
|
11
|
+
export { default as RectangleMeasure } from './handlers/RectangleMeasure';
|
|
12
|
+
export { default as RegularPolygonMeasure } from './handlers/RegularPolygonMeasure';
|
|
13
|
+
export * from './types';
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
export type MeasurementType = 'horizontal' | 'vertical' | 'triangle' | 'space' | 'area' | 'circle' | 'polyline' | 'terrainHeight' | 'coordinate' | 'rectangle' | 'regularPolygon';
|
|
2
|
-
export interface MeasurementOptions {
|
|
3
|
-
color?: any;
|
|
4
|
-
lineColor?: any;
|
|
5
|
-
dashLineColor?: any;
|
|
6
|
-
pointColor?: any;
|
|
7
|
-
width?: number;
|
|
8
|
-
step?: number;
|
|
9
|
-
sides?: number;
|
|
10
|
-
labelText?: {
|
|
11
|
-
radius?: string;
|
|
12
|
-
area?: string;
|
|
13
|
-
circumference?: string;
|
|
14
|
-
lng?: string;
|
|
15
|
-
lat?: string;
|
|
16
|
-
height?: string;
|
|
17
|
-
width?: string;
|
|
18
|
-
heightLabel?: string;
|
|
19
|
-
sides?: string;
|
|
20
|
-
side?: string;
|
|
21
|
-
angle?: string;
|
|
22
|
-
};
|
|
23
|
-
overlayContainerId?: string;
|
|
24
|
-
angleMarkerRatio?: number;
|
|
25
|
-
onComplete?: (result: any) => void;
|
|
26
|
-
}
|
|
27
|
-
export interface IMeasure {
|
|
28
|
-
start(options: MeasurementOptions): void;
|
|
29
|
-
stop(): void;
|
|
30
|
-
clear(): void;
|
|
31
|
-
rehydrate?(record: MeasurementRecord, htmlLabelPool?: any): void;
|
|
32
|
-
}
|
|
33
|
-
export interface MeasurementRecord {
|
|
34
|
-
id: string;
|
|
35
|
-
type: MeasurementType;
|
|
36
|
-
options?: MeasurementOptions;
|
|
37
|
-
positions?: Array<[number, number, number]>;
|
|
38
|
-
data?: any;
|
|
39
|
-
}
|
|
40
|
-
export interface MeasurementsConfig {
|
|
41
|
-
measurements: MeasurementRecord[];
|
|
42
|
-
}
|
|
1
|
+
export type MeasurementType = 'horizontal' | 'vertical' | 'triangle' | 'space' | 'area' | 'circle' | 'polyline' | 'terrainHeight' | 'coordinate' | 'rectangle' | 'regularPolygon';
|
|
2
|
+
export interface MeasurementOptions {
|
|
3
|
+
color?: any;
|
|
4
|
+
lineColor?: any;
|
|
5
|
+
dashLineColor?: any;
|
|
6
|
+
pointColor?: any;
|
|
7
|
+
width?: number;
|
|
8
|
+
step?: number;
|
|
9
|
+
sides?: number;
|
|
10
|
+
labelText?: {
|
|
11
|
+
radius?: string;
|
|
12
|
+
area?: string;
|
|
13
|
+
circumference?: string;
|
|
14
|
+
lng?: string;
|
|
15
|
+
lat?: string;
|
|
16
|
+
height?: string;
|
|
17
|
+
width?: string;
|
|
18
|
+
heightLabel?: string;
|
|
19
|
+
sides?: string;
|
|
20
|
+
side?: string;
|
|
21
|
+
angle?: string;
|
|
22
|
+
};
|
|
23
|
+
overlayContainerId?: string;
|
|
24
|
+
angleMarkerRatio?: number;
|
|
25
|
+
onComplete?: (result: any) => void;
|
|
26
|
+
}
|
|
27
|
+
export interface IMeasure {
|
|
28
|
+
start(options: MeasurementOptions): void;
|
|
29
|
+
stop(): void;
|
|
30
|
+
clear(): void;
|
|
31
|
+
rehydrate?(record: MeasurementRecord, htmlLabelPool?: any): void;
|
|
32
|
+
}
|
|
33
|
+
export interface MeasurementRecord {
|
|
34
|
+
id: string;
|
|
35
|
+
type: MeasurementType;
|
|
36
|
+
options?: MeasurementOptions;
|
|
37
|
+
positions?: Array<[number, number, number]>;
|
|
38
|
+
data?: any;
|
|
39
|
+
}
|
|
40
|
+
export interface MeasurementsConfig {
|
|
41
|
+
measurements: MeasurementRecord[];
|
|
42
|
+
}
|