@mapcatch/util 2.0.5-b → 2.0.6
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 +4 -4
- package/dist/catchUtil.min.js +1 -1
- package/package.json +1 -21
- package/src/constants/crs.js +42098 -42098
- package/src/event/event.js +4 -5
- package/src/gl-operations/constants.js +9 -9
- package/src/gl-operations/default_options.js +97 -97
- package/src/gl-operations/index.js +532 -532
- package/src/gl-operations/reglCommands/contours.js +27 -27
- package/src/gl-operations/reglCommands/default.js +45 -45
- package/src/gl-operations/reglCommands/hillshading.js +340 -340
- package/src/gl-operations/reglCommands/index.js +6 -6
- package/src/gl-operations/reglCommands/multiLayers.js +303 -303
- package/src/gl-operations/reglCommands/transitions.js +111 -111
- package/src/gl-operations/reglCommands/util.js +71 -71
- package/src/gl-operations/renderer.js +209 -209
- package/src/gl-operations/shaders/fragment/convertDem.js +25 -25
- package/src/gl-operations/shaders/fragment/convolutionSmooth.js +54 -54
- package/src/gl-operations/shaders/fragment/diffCalc.js +33 -33
- package/src/gl-operations/shaders/fragment/drawResult.js +46 -46
- package/src/gl-operations/shaders/fragment/hillshading/hsAdvAmbientShadows.js +78 -78
- package/src/gl-operations/shaders/fragment/hillshading/hsAdvDirect.js +59 -59
- package/src/gl-operations/shaders/fragment/hillshading/hsAdvFinalBaselayer.js +30 -30
- package/src/gl-operations/shaders/fragment/hillshading/hsAdvFinalColorscale.js +60 -60
- package/src/gl-operations/shaders/fragment/hillshading/hsAdvMergeAndScaleTiles.js +26 -26
- package/src/gl-operations/shaders/fragment/hillshading/hsAdvNormals.js +25 -25
- package/src/gl-operations/shaders/fragment/hillshading/hsAdvSmooth.js +53 -53
- package/src/gl-operations/shaders/fragment/hillshading/hsAdvSoftShadows.js +80 -80
- package/src/gl-operations/shaders/fragment/hillshading/hsPregen.js +54 -54
- package/src/gl-operations/shaders/fragment/interpolateColor.js +65 -65
- package/src/gl-operations/shaders/fragment/interpolateColorOnly.js +49 -49
- package/src/gl-operations/shaders/fragment/interpolateValue.js +136 -136
- package/src/gl-operations/shaders/fragment/multiAnalyze1Calc.js +35 -35
- package/src/gl-operations/shaders/fragment/multiAnalyze2Calc.js +45 -45
- package/src/gl-operations/shaders/fragment/multiAnalyze3Calc.js +53 -53
- package/src/gl-operations/shaders/fragment/multiAnalyze4Calc.js +61 -61
- package/src/gl-operations/shaders/fragment/multiAnalyze5Calc.js +69 -69
- package/src/gl-operations/shaders/fragment/multiAnalyze6Calc.js +77 -77
- package/src/gl-operations/shaders/fragment/single.js +93 -93
- package/src/gl-operations/shaders/transform.js +21 -21
- package/src/gl-operations/shaders/util/computeColor.glsl +85 -85
- package/src/gl-operations/shaders/util/getTexelValue.glsl +10 -10
- package/src/gl-operations/shaders/util/isCloseEnough.glsl +9 -9
- package/src/gl-operations/shaders/util/rgbaToFloat.glsl +17 -17
- package/src/gl-operations/shaders/vertex/double.js +16 -16
- package/src/gl-operations/shaders/vertex/multi3.js +19 -19
- package/src/gl-operations/shaders/vertex/multi4.js +22 -22
- package/src/gl-operations/shaders/vertex/multi5.js +25 -25
- package/src/gl-operations/shaders/vertex/multi6.js +28 -28
- package/src/gl-operations/shaders/vertex/single.js +13 -13
- package/src/gl-operations/shaders/vertex/singleNotTransformed.js +11 -11
- package/src/gl-operations/texture_manager.js +141 -141
- package/src/gl-operations/util.js +336 -336
- package/README.md +0 -44
package/README.md
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# catchUtil
|
|
2
|
-
Mapcatch系列产品的公共函数、js工具以及相关的配置信息。
|
|
3
|
-
|
|
4
|
-
## 使用方法
|
|
5
|
-
|
|
6
|
-
### cdn引入
|
|
7
|
-
```html
|
|
8
|
-
<script src="//unpkg.com/@mapcatch/util@latest/dist/catchUtil.min.js"></script>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
// 解析jpg中的exif信息
|
|
12
|
-
catchUtil.getPhotoTags(file).then(info => {
|
|
13
|
-
console.log(info)
|
|
14
|
-
})
|
|
15
|
-
// 生成随机Id
|
|
16
|
-
catchUtil.generateId()
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
### 通过npm安装
|
|
22
|
-
```
|
|
23
|
-
npm install @mapcatch/util
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
```js
|
|
27
|
-
import {getPhotoTags, generateId} from '@mapcatch/util'
|
|
28
|
-
|
|
29
|
-
// 解析jpg中的exif信息
|
|
30
|
-
getPhotoTags(file).then(info => {
|
|
31
|
-
console.log(info)
|
|
32
|
-
})
|
|
33
|
-
// 生成随机Id
|
|
34
|
-
generateId()
|
|
35
|
-
```
|
|
36
|
-
## 文档
|
|
37
|
-
更多文档查看[在线文档](./docs/Catolog.md)
|
|
38
|
-
|
|
39
|
-
## 开发
|
|
40
|
-
```bash
|
|
41
|
-
yarn
|
|
42
|
-
|
|
43
|
-
yarn build
|
|
44
|
-
```
|