@mapcatch/util 1.0.10-a → 1.0.10
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/.eslintrc.js +53 -0
- package/.prettierrc +4 -0
- package/debug/app.js +22 -0
- package/debug/index.html +52 -0
- package/debug/libs/vue.global.js +16159 -0
- package/debug/my_icon.png +0 -0
- package/docs/Catolog.md +24 -0
- package/docs/Constant.md +92 -0
- package/docs/Event.md +90 -0
- package/docs/Util.md +345 -0
- package/package.json +1 -1
- package/vite.config.js +52 -0
- package/dist/catchUtil.min.esm.js +0 -16617
- package/dist/catchUtil.min.js +0 -282
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
node: true,
|
|
5
|
+
browser: true,
|
|
6
|
+
},
|
|
7
|
+
extends: ['eslint:recommended'],
|
|
8
|
+
parser: 'babel-eslint',
|
|
9
|
+
rules: {
|
|
10
|
+
'no-extra-semi': 'error',
|
|
11
|
+
'no-console': ['error', { allow: ['warn', 'error'] }],
|
|
12
|
+
quotes: [
|
|
13
|
+
'error',
|
|
14
|
+
'single',
|
|
15
|
+
{
|
|
16
|
+
avoidEscape: true,
|
|
17
|
+
allowTemplateLiterals: true,
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
semi: ['error', 'never'],
|
|
21
|
+
indent: [
|
|
22
|
+
'error',
|
|
23
|
+
2,
|
|
24
|
+
{
|
|
25
|
+
SwitchCase: 1,
|
|
26
|
+
flatTernaryExpressions: true,
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
'comma-dangle': ['error', 'never'],
|
|
30
|
+
'no-multi-spaces': [
|
|
31
|
+
'error',
|
|
32
|
+
{
|
|
33
|
+
ignoreEOLComments: true,
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
'space-infix-ops': 'error',
|
|
37
|
+
'space-unary-ops': [
|
|
38
|
+
'error',
|
|
39
|
+
{
|
|
40
|
+
words: true,
|
|
41
|
+
nonwords: false,
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
'space-before-function-paren': 'error',
|
|
45
|
+
},
|
|
46
|
+
globals: {
|
|
47
|
+
echarts: true,
|
|
48
|
+
},
|
|
49
|
+
parserOptions: {
|
|
50
|
+
ecmaVersion: 7,
|
|
51
|
+
sourceType: 'module',
|
|
52
|
+
},
|
|
53
|
+
}
|
package/.prettierrc
ADDED
package/debug/app.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as util from '../src/index.js'
|
|
2
|
+
|
|
3
|
+
Vue.createApp({
|
|
4
|
+
methods: {
|
|
5
|
+
coustom() {
|
|
6
|
+
},
|
|
7
|
+
coustom2() {
|
|
8
|
+
},
|
|
9
|
+
async parsePhoto(e) {
|
|
10
|
+
let file = e.target.files[0]
|
|
11
|
+
let exif = await util.getPhotoMeta(file)
|
|
12
|
+
console.log(exif)
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
mounted() {
|
|
16
|
+
|
|
17
|
+
},
|
|
18
|
+
data() {
|
|
19
|
+
return {
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}).mount('#app')
|
package/debug/index.html
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset=utf-8 />
|
|
5
|
+
<title>Catch3d-js</title>
|
|
6
|
+
|
|
7
|
+
<style>
|
|
8
|
+
body {
|
|
9
|
+
position: absolute;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
margin:0;
|
|
13
|
+
padding:0;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
}
|
|
16
|
+
#map {
|
|
17
|
+
position: absolute;
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
background-color: #000000;
|
|
21
|
+
}
|
|
22
|
+
.btn{
|
|
23
|
+
position: absolute;
|
|
24
|
+
z-index: 5;
|
|
25
|
+
top: 20px;
|
|
26
|
+
left: 220px;
|
|
27
|
+
}
|
|
28
|
+
.btn2{
|
|
29
|
+
position: absolute;
|
|
30
|
+
z-index: 5;
|
|
31
|
+
top: 20px;
|
|
32
|
+
left: 320px;
|
|
33
|
+
}
|
|
34
|
+
.btn3{
|
|
35
|
+
position: absolute;
|
|
36
|
+
z-index: 5;
|
|
37
|
+
top: 20px;
|
|
38
|
+
left: 20px;
|
|
39
|
+
}
|
|
40
|
+
</style>
|
|
41
|
+
<script src="./libs/vue.global.js"></script>
|
|
42
|
+
</head>
|
|
43
|
+
<body>
|
|
44
|
+
<div id="app">
|
|
45
|
+
<div id='map'></div>
|
|
46
|
+
<button class="btn" @click="coustom">测试1</button>
|
|
47
|
+
<button class="btn2" @click="coustom2">测试2</button>
|
|
48
|
+
<input class="btn3" type="file" @change="parsePhoto">
|
|
49
|
+
</div>
|
|
50
|
+
<script type='module' src="./app.js"></script>
|
|
51
|
+
</body>
|
|
52
|
+
</html>
|