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/index.js
ADDED
package/package.json
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
{
|
2
|
+
"name": "poly-extrude",
|
3
|
+
"version": "0.0.1",
|
4
|
+
"description": "",
|
5
|
+
"main": "dist/poly-extrude.js",
|
6
|
+
"module": "dist/poly-extrude.mjs",
|
7
|
+
"scripts": {
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
9
|
+
"lint": "eslint src/**/*.js",
|
10
|
+
"build": "npm run lint && cross-env NODE_ENV=dev rollup -c"
|
11
|
+
},
|
12
|
+
"repository": {
|
13
|
+
"type": "git",
|
14
|
+
"url": "git+https://github.com/deyihu/poly-extrude.git"
|
15
|
+
},
|
16
|
+
"author": "",
|
17
|
+
"license": "ISC",
|
18
|
+
"bugs": {
|
19
|
+
"url": "https://github.com/deyihu/poly-extrude/issues"
|
20
|
+
},
|
21
|
+
"homepage": "https://github.com/deyihu/poly-extrude#readme",
|
22
|
+
"devDependencies": {
|
23
|
+
"@babel/core": "^7.17.5",
|
24
|
+
"@babel/preset-env": "^7.16.11",
|
25
|
+
"@rollup/plugin-babel": "^5.3.0",
|
26
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
27
|
+
"@rollup/plugin-json": "^4.1.0",
|
28
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
29
|
+
"cross-env": "^5.1.4",
|
30
|
+
"eslint": "^6.2.2",
|
31
|
+
"eslint-config-standard": "^14.1.0",
|
32
|
+
"eslint-plugin-import": "^2.18.2",
|
33
|
+
"eslint-plugin-node": "^10.0.0",
|
34
|
+
"eslint-plugin-promise": "^4.2.1",
|
35
|
+
"eslint-plugin-standard": "^4.0.1",
|
36
|
+
"rollup": "^2.64.0",
|
37
|
+
"rollup-plugin-terser": "^7.0.2"
|
38
|
+
},
|
39
|
+
"dependencies": {
|
40
|
+
"earcut": "^2.2.3"
|
41
|
+
}
|
42
|
+
}
|