@mapcatch/util 1.0.15-a → 2.0.0
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/catchUtil.min.esm.js +67981 -14008
- package/dist/catchUtil.min.js +2695 -55
- package/package.json +22 -3
- package/src/constants/annotation_color.js +7 -0
- package/src/constants/annotation_draw_style.js +228 -0
- package/src/constants/annotation_label_style.js +76 -0
- package/src/constants/annotation_style.js +118 -0
- package/src/constants/cameras.js +1 -1
- package/src/constants/crs.js +31473 -31473
- package/src/constants/error_codes.js +44 -0
- package/src/constants/height_colors.js +1 -0
- package/src/constants/index.js +9 -2
- package/src/constants/map_style.js +11 -0
- package/src/{event.js → event/event.js} +1 -14
- package/src/event/event_bus.js +5 -0
- package/src/event/index.js +2 -0
- package/src/gl-operations/constants.js +9 -11
- package/src/gl-operations/default_options.js +5 -5
- package/src/gl-operations/index.js +166 -239
- package/src/gl-operations/reglCommands/contours.js +20 -20
- package/src/gl-operations/reglCommands/default.js +34 -34
- package/src/gl-operations/reglCommands/hillshading.js +116 -116
- package/src/gl-operations/reglCommands/index.js +6 -6
- package/src/gl-operations/reglCommands/multiLayers.js +55 -55
- package/src/gl-operations/reglCommands/transitions.js +24 -24
- package/src/gl-operations/reglCommands/util.js +54 -54
- package/src/gl-operations/renderer.js +69 -69
- package/src/gl-operations/shaders/transform.js +2 -2
- package/src/gl-operations/shaders/util/rgbaToFloat.glsl +11 -11
- package/src/gl-operations/texture_manager.js +58 -58
- package/src/gl-operations/util.js +154 -154
- package/src/index.js +14 -2
- package/src/measure/index.js +198 -0
- package/src/measure/tile_cache.js +88 -0
- package/src/mvs/index.js +26 -0
- package/src/mvs/protos/index.js +12 -0
- package/src/mvs/protos/proto_10.js +155 -0
- package/src/observation_pretict.js +168 -0
- package/src/photo-parser/exif/gps_tags.js +33 -0
- package/src/photo-parser/exif/ifd1_tags.js +22 -0
- package/src/photo-parser/exif/index.js +130 -0
- package/src/photo-parser/exif/parse_image.js +290 -0
- package/src/photo-parser/exif/string_values.js +137 -0
- package/src/photo-parser/exif/tags.js +75 -0
- package/src/photo-parser/exif/tiff_tags.js +35 -0
- package/src/photo-parser/exif/util.js +103 -0
- package/src/photo-parser/image-size/detector.js +24 -0
- package/src/photo-parser/image-size/fromFile.js +55 -0
- package/src/photo-parser/image-size/index.js +2 -0
- package/src/photo-parser/image-size/lookup.js +37 -0
- package/src/photo-parser/image-size/types/bmp.js +10 -0
- package/src/photo-parser/image-size/types/cur.js +16 -0
- package/src/photo-parser/image-size/types/dds.js +10 -0
- package/src/photo-parser/image-size/types/gif.js +11 -0
- package/src/photo-parser/image-size/types/heif.js +35 -0
- package/src/photo-parser/image-size/types/icns.js +112 -0
- package/src/photo-parser/image-size/types/ico.js +74 -0
- package/src/photo-parser/image-size/types/index.js +43 -0
- package/src/photo-parser/image-size/types/j2c.js +11 -0
- package/src/photo-parser/image-size/types/jp2.js +22 -0
- package/src/photo-parser/image-size/types/jpg.js +157 -0
- package/src/photo-parser/image-size/types/ktx.js +18 -0
- package/src/photo-parser/image-size/types/png.js +36 -0
- package/src/photo-parser/image-size/types/pnm.js +74 -0
- package/src/photo-parser/image-size/types/psd.js +10 -0
- package/src/photo-parser/image-size/types/svg.js +100 -0
- package/src/photo-parser/image-size/types/tga.js +14 -0
- package/src/photo-parser/image-size/types/tiff.js +92 -0
- package/src/photo-parser/image-size/types/utils.js +83 -0
- package/src/photo-parser/image-size/types/webp.js +67 -0
- package/src/photo-parser/index.js +181 -0
- package/src/report/annotations_report.js +446 -0
- package/src/report/index.js +2 -0
- package/src/report/map_util.js +81 -0
- package/src/report/pdf_creator.js +247 -0
- package/src/report/report.js +583 -0
- package/src/transform.js +204 -0
- package/src/util.js +371 -75
- package/CHANGELOG.md +0 -60
- /package/src/constants/{colors.js → dsm_colors.js} +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
1: '意外退出',
|
|
3
|
+
1000: '重建失败,请解析日志查看原因',
|
|
4
|
+
1001: '用户取消',
|
|
5
|
+
1002: '坐标系统错误',
|
|
6
|
+
1003: '空三成果为空',
|
|
7
|
+
1004: '点云成果为空',
|
|
8
|
+
1005: '网格成果为空',
|
|
9
|
+
1006: '没有足够的下视图像生产2D成果',
|
|
10
|
+
1007: '分块错误',
|
|
11
|
+
1008: '分块参数错误',
|
|
12
|
+
2000: 'License错误',
|
|
13
|
+
2001: '枚举License失败',
|
|
14
|
+
2002: '未找到匹配的License',
|
|
15
|
+
2003: 'License过期',
|
|
16
|
+
2004: 'License不可用于此版本',
|
|
17
|
+
2005: 'License功能模块不匹配',
|
|
18
|
+
2006: '超过License最大支持图像数',
|
|
19
|
+
3000: '文件读写错误',
|
|
20
|
+
3001: 'JSON字段解析错误',
|
|
21
|
+
4000: 'GPU设备错误,检查GPU是否为英伟达以及驱动号是否满足要求',
|
|
22
|
+
0x00000040: '网络错误',
|
|
23
|
+
0x0000004A: '网络请求超时',
|
|
24
|
+
0x05000004: '找不到服务器',
|
|
25
|
+
0x13000051: '许可需要联网激活',
|
|
26
|
+
0x02000003: '连接失败,Virbox软件未安装或未联网',
|
|
27
|
+
0x51005001: '查询授权码状态请求发生异常',
|
|
28
|
+
0x51005002: '授权码兑换请求发生异常',
|
|
29
|
+
0x51005003: '授权码不存在',
|
|
30
|
+
0x51005004: '授权码许可扣费失败',
|
|
31
|
+
0x51005013: '不能绑定(许可已经过期)',
|
|
32
|
+
0x51005014: '不能绑定(授权码同时绑定设备数已达上限)',
|
|
33
|
+
0x51005015: '不能绑定(授权码累积绑定设备数已达上限)',
|
|
34
|
+
0x51005018: '授权码终端解绑失败,请联系软件供应商',
|
|
35
|
+
0x51005019: '服务端无法查找到绑定记录,请联系软件供应商',
|
|
36
|
+
0x51005021: '授权码许可无法绑定,原因是许可被锁定,请联系软件供应商解决',
|
|
37
|
+
0x51005025: '授权码不允许绑定',
|
|
38
|
+
0x51005033: '暂时无法激活许可,用户工具需要升级到最新版本',
|
|
39
|
+
0x51005034: '软件供应商回收了该设备的使用权,不能再绑定当前授权码,请联系软件供应商解决',
|
|
40
|
+
0x5100612F: '授权码不存在,请确认授权码是否正确',
|
|
41
|
+
0x51006130: '无效的硬件信息数据',
|
|
42
|
+
0x51006134: '授权码许可扣费失败,请联系软件供应商',
|
|
43
|
+
0x5100502C: '不能解绑(未绑定)'
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default ['rgb(0,18,238)', 'rgb(0,33,224)', 'rgb(0,48,207)', 'rgb(0,63,192)', 'rgb(0,78,177)', 'rgb(0,93,162)', 'rgb(0,108,147)', 'rgb(0,123,132)', 'rgb(0,137,118)', 'rgb(0,154,102)', 'rgb(0,170,86)', 'rgb(0,185,70)', 'rgb(0,200,55)', 'rgb(0,215,40)', 'rgb(0,230,25)', 'rgb(0,245,10)', 'rgb(7,255,0)', 'rgb(22,255,0)', 'rgb(35,255,0)', 'rgb(52,255,0)', 'rgb(67,255,0)', 'rgb(83,255,0)', 'rgb(98,255,0)', 'rgb(114,255,0)', 'rgb(127,255,0)', 'rgb(142,255,0)', 'rgb(159,255,0)', 'rgb(174,255,0)', 'rgb(190,255,0)', 'rgb(205,255,0)', 'rgb(220,255,0)', 'rgb(235,255,0)', 'rgb(250,255,0)', 'rgb(255,245,0)', 'rgb(255,230,0)', 'rgb(255,215,0)', 'rgb(255,199,0)', 'rgb(255,184,0)', 'rgb(255,167,0)', 'rgb(255,152,0)', 'rgb(255,138,0)', 'rgb(255,123,0)', 'rgb(255,108,0)', 'rgb(255,93,0)', 'rgb(255,78,0)', 'rgb(255,62,0)', 'rgb(255,47,0)', 'rgb(255,32,0)', 'rgb(255,15,0)', 'rgb(242,0,0)']
|
package/src/constants/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export {default as cameras} from './cameras'
|
|
2
2
|
export {default as layerGroups} from './layer_groups'
|
|
3
3
|
export {default as bmapTypes} from './bmap_types'
|
|
4
|
-
export {default as
|
|
4
|
+
export {default as dsmColors} from './dsm_colors'
|
|
5
5
|
export {default as defaultLayers} from './default_layers'
|
|
6
6
|
export {default as layerFolders} from './layer_folders'
|
|
7
7
|
export {default as layerIcons} from './layer_icons'
|
|
@@ -9,4 +9,11 @@ export {default as taskParams} from './task_params'
|
|
|
9
9
|
export {default as tools} from './tools'
|
|
10
10
|
export {default as measurementFields} from './measurement_fields'
|
|
11
11
|
export {default as crsTypes} from './crs_types'
|
|
12
|
-
export {default as crsList} from './crs'
|
|
12
|
+
export {default as crsList} from './crs'
|
|
13
|
+
export {default as errorMessages} from './error_codes'
|
|
14
|
+
export {default as heightColors} from './height_colors'
|
|
15
|
+
export {default as mapStyle} from './map_style'
|
|
16
|
+
export {default as annotationStyle} from './annotation_style'
|
|
17
|
+
export {default as annotationLabelStyle} from './annotation_label_style'
|
|
18
|
+
export {default as annotationDrawStyle} from './annotation_draw_style'
|
|
19
|
+
export {default as annotationColor} from './annotation_color'
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import {extend, endsWith} from '../util'
|
|
3
2
|
|
|
4
3
|
let clickPoint = null
|
|
5
4
|
|
|
@@ -17,18 +16,6 @@ function _removeEventListener (type, listener, listenerList) {
|
|
|
17
16
|
}
|
|
18
17
|
}
|
|
19
18
|
|
|
20
|
-
function extend (dest, ...sources) {
|
|
21
|
-
for (const src of sources) {
|
|
22
|
-
for (const k in src) {
|
|
23
|
-
dest[k] = src[k]
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return dest
|
|
27
|
-
}
|
|
28
|
-
function endsWith (string, suffix) {
|
|
29
|
-
return string.indexOf(suffix, string.length - suffix.length) !== -1
|
|
30
|
-
}
|
|
31
|
-
|
|
32
19
|
/**
|
|
33
20
|
* Methods mixed in to other classes for event capabilities.
|
|
34
21
|
*
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export const
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
8
|
-
export const
|
|
9
|
-
export const
|
|
10
|
-
export const RGB_REGEX = /^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/;
|
|
11
|
-
export const HEX_REGEX = /(?:#)[0-9a-f]{8}|(?:#)[0-9a-f]{6}|(?:#)[0-9a-f]{4}|(?:#)[0-9a-f]{3}/ig;
|
|
1
|
+
export const CLEAR_COLOR = [0, 0, 0, 0]
|
|
2
|
+
export const MAX_TEXTURE_DIMENSION = 1024
|
|
3
|
+
export const EARTH_SUN_DISTANCE = 149600000000
|
|
4
|
+
export const EARTH_CIRCUMFERENCE = 40075016.686
|
|
5
|
+
export const SUN_RADIUS = 695508000
|
|
6
|
+
export const DEG2RAD = 0.017453292519943295
|
|
7
|
+
export const SLOPEFACTOR = 0.0333334
|
|
8
|
+
export const RGB_REGEX = /^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/
|
|
9
|
+
export const HEX_REGEX = /(?:#)[0-9a-f]{8}|(?:#)[0-9a-f]{6}|(?:#)[0-9a-f]{4}|(?:#)[0-9a-f]{3}/ig
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const defaultOptions = {
|
|
2
2
|
tileFormat: 'float32',
|
|
3
3
|
tileSize: 256,
|
|
4
4
|
colorScale: [],
|
|
@@ -87,12 +87,12 @@
|
|
|
87
87
|
contourLabelDistance: 250,
|
|
88
88
|
contourHypso: false,
|
|
89
89
|
contourHypsoDomain: [0, 1000, 2000],
|
|
90
|
-
contourHypsoColors: [
|
|
90
|
+
contourHypsoColors: ['#486341', '#e5d9c9', '#dddddd'],
|
|
91
91
|
contourBathy: false,
|
|
92
92
|
contourBathyDomain: [-2000, 0],
|
|
93
|
-
contourBathyColors: [
|
|
93
|
+
contourBathyColors: ['#315d9b', '#d5f2ff'],
|
|
94
94
|
contourBathyShadowColor: '#4e5c66',
|
|
95
|
-
contourBathyHighlightColor: 'rgba(224, 242, 255, .5)'
|
|
96
|
-
}
|
|
95
|
+
contourBathyHighlightColor: 'rgba(224, 242, 255, .5)'
|
|
96
|
+
}
|
|
97
97
|
|
|
98
98
|
export default defaultOptions
|