poly-extrude 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/.eslintignore +12 -0
- package/.eslintrc.js +34 -0
- package/.vscode/settings.json +3 -0
- package/LICENSE +21 -0
- package/babel.config.js +12 -0
- package/dist/poly-extrude.js +1317 -0
- package/dist/poly-extrude.js.map +1 -0
- package/dist/poly-extrude.min.js +4 -0
- package/dist/poly-extrude.mjs +1305 -0
- package/index.js +3 -0
- package/package.json +42 -0
- package/pnpm-lock.yaml +3054 -0
- package/rollup.config.js +108 -0
- package/src/polygon.js +148 -0
- package/src/polyline.js +190 -0
- package/src/util.js +205 -0
- package/test/buildings.html +77 -0
- package/test/data/a.png +0 -0
- package/test/data/building-texture-dark.jpg +0 -0
- package/test/data/building.geojson +1118 -0
- package/test/data/buildings-ny.geojson +2845 -0
- package/test/data/buildings.geojson +1 -0
- package/test/data/free-line.geojson +1 -0
- package/test/data/line.geojson +1 -0
- package/test/data/polygon.geojson +1 -0
- package/test/data/simple-hole.geojson +1 -0
- package/test/data/simple-line.geojson +45 -0
- package/test/data/simple.geojson +1 -0
- package/test/data/street.geojson +1 -0
- package/test/data//345/244/252/346/271/226.geojson +8 -0
- package/test/data//350/210/237/345/261/261/345/270/202.geojson +1 -0
- package/test/data//350/213/217/345/267/236.geojson +1 -0
- package/test/data//351/204/261/351/230/263/346/271/226.geojson +1 -0
- package/test/line-draw.html +100 -0
- package/test/line-uv.html +69 -0
- package/test/line.html +56 -0
- package/test/multi-polygon.html +53 -0
- package/test/ny-building.html +67 -0
- package/test/simple.html +61 -0
- package/test/street.html +52 -0
- package/test/util.js +131 -0
- package/test/uv.html +77 -0
package/.eslintignore
ADDED
package/.eslintrc.js
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
module.exports = {
|
2
|
+
"env": {
|
3
|
+
"browser": true,
|
4
|
+
"es6": true,
|
5
|
+
"node": true
|
6
|
+
},
|
7
|
+
"extends": "standard",
|
8
|
+
"globals": {
|
9
|
+
"Atomics": "readonly",
|
10
|
+
"SharedArrayBuffer": "readonly",
|
11
|
+
"AMap": true,
|
12
|
+
"mapboxgl": true,
|
13
|
+
"TMap": true
|
14
|
+
},
|
15
|
+
"parserOptions": {
|
16
|
+
"ecmaVersion": 2018,
|
17
|
+
"sourceType": "module"
|
18
|
+
},
|
19
|
+
"rules": {
|
20
|
+
"no-console": "off",
|
21
|
+
"no-inner-declarations": "off",
|
22
|
+
"semi": ["error", "always"],
|
23
|
+
"indent": 0,
|
24
|
+
"padded-blocks": 0,
|
25
|
+
"space-before-function-paren": 0,
|
26
|
+
"no-var": 1,
|
27
|
+
"dot-notation": 0,
|
28
|
+
"one-var": 0,
|
29
|
+
"new-cap": 0,
|
30
|
+
"quote-props": 0,
|
31
|
+
"camelcase": 0,
|
32
|
+
"wrap-iife": 0
|
33
|
+
}
|
34
|
+
};
|
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2022 hu de yi
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
package/babel.config.js
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
// const path = require('path');
|
2
|
+
module.exports = {
|
3
|
+
presets: [
|
4
|
+
['@babel/preset-env', {
|
5
|
+
'loose': true, 'modules': false
|
6
|
+
}]
|
7
|
+
]
|
8
|
+
// include: [
|
9
|
+
// path.resolve(__dirname, './node_modules/geometry-extrude'),
|
10
|
+
// path.resolve(__dirname, './node_modules/deyihu-geometry-extrude')
|
11
|
+
// ]
|
12
|
+
};
|