@jdultra/threedtiles 11.1.13 → 12.0.1

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * An occlusion culling service that helps to only refine tiles that are visible.
3
3
  * This occlusion culling has a cost but allows downloading much less data.
4
- * For models that have a lot of geometry that is often hidden from the camera by walls, this can greatly improve the frame-rate.
4
+ * For models that have a lot of geometry that is often hidden from the camera by walls, this can improve the frame-rate.
5
5
  * @class
6
6
  */
7
7
  export class OcclusionCullingService {
package/package.json CHANGED
@@ -1,66 +1,44 @@
1
- {
2
- "name": "@jdultra/threedtiles",
3
- "version": "11.1.13",
4
- "description": "An OGC 3DTiles viewer for Three.js",
5
- "main": "dist/threedtiles.min.js",
6
- "types": "dist/entry.d.ts",
7
- "files": [
8
- "dist/**/*",
9
- "README.md",
10
- "LICENSE"
11
- ],
12
- "scripts": {
13
- "build:types": "tsc --declaration --emitDeclarationOnly --allowJs --outDir dist",
14
- "build": "webpack --config webpack.prod.config.js && npm run build:types",
15
- "build-dev": "webpack --config webpack.dev.config.js",
16
- "watch": "webpack --watch --config webpack.dev.config.js",
17
- "dev": "webpack-dev-server --config webpack.dev.config.js",
18
- "generate-docs": "jsdoc --configure jsdoc.json --verbose"
19
- },
20
- "repository": {
21
- "type": "git",
22
- "url": "https://github.com/ebeaufay/threedtiles"
23
- },
24
- "keywords": [
25
- "OGC",
26
- "3D",
27
- "3DTiles",
28
- "Tiles",
29
- "Three.js",
30
- "Three"
31
- ],
32
- "author": "Emeric Beaufays",
33
- "license": "MIT",
34
- "peerDependencies": {
35
- "three": "0.170.0"
36
-
37
- },
38
- "dependencies": {
39
- "js-utils-z": "^1.2.1",
40
- "path-browserify": "^1.0.1",
41
- "proj4": "^2.10.0",
42
- "regenerator-runtime": "^0.13.11",
43
- "uuid": "^8.3.2",
44
- "meshoptimizer": "^0.20.0"
45
- },
46
- "devDependencies": {
47
- "@babel/core": "^7.21.4",
48
- "@babel/plugin-syntax-dynamic-import": "^7.8.3",
49
- "@babel/plugin-syntax-import-meta": "^7.10.4",
50
- "@babel/preset-env": "^7.21.4",
51
- "@types/three": "^0.167.1",
52
- "babel-loader": "^9.1.2",
53
- "copy-webpack-plugin": "^6.3.2",
54
- "core-js": "^3.27.1",
55
- "html-loader": "^1.3.2",
56
- "html-webpack-plugin": "^4.5.0",
57
- "mini-css-extract-plugin": "^1.6.2",
58
- "typescript": "^5.4.5",
59
- "webpack": "^5.79.0",
60
- "webpack-cli": "^5.0.1",
61
- "webpack-dev-server": "^4.13.2",
62
- "webpack-glsl-loader": "^1.0.1",
63
- "webpack-node-externals": "^3.0.0",
64
- "whatwg-fetch": "^3.5.0"
65
- }
66
- }
1
+ {
2
+ "name": "@jdultra/threedtiles",
3
+ "version": "12.0.1",
4
+ "author": "Emeric Beaufays",
5
+ "description": "An OGC 3DTiles viewer for Three.js",
6
+ "main": "dist/threedtiles.cjs.js",
7
+ "module": "dist/threedtiles.es.js",
8
+ "unpkg": "dist/threedtiles.umd.js",
9
+ "types": "dist/entry.d.ts",
10
+ "license": "MIT",
11
+ "files": [
12
+ "dist/**/*",
13
+ "README.md",
14
+ "LICENSE"
15
+ ],
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/ebeaufay/threedtiles"
19
+ },
20
+ "type": "module",
21
+ "scripts": {
22
+ "build": "vite build --config vite.prod.config.js && npm run build:types",
23
+ "build:types": "tsc --declaration --emitDeclarationOnly --allowJs --outDir dist",
24
+ "generate-docs": "jsdoc --configure jsdoc.json --verbose",
25
+ "dev": "vite"
26
+ },
27
+ "peerDependencies": {
28
+ "three": "0.170.0"
29
+ },
30
+ "dependencies": {
31
+ "js-utils-z": "^1.2.1",
32
+ "meshoptimizer": "^0.20.0",
33
+ "path-browserify": "^1.0.1",
34
+ "three": "0.170.0",
35
+ "uuid": "^8.3.2"
36
+ },
37
+ "devDependencies": {
38
+ "@rollup/plugin-terser": "^0.4.4",
39
+ "typescript": "^5.6.3",
40
+ "vite": "^5.4.10",
41
+ "vite-plugin-static-copy": "^2.0.0",
42
+ "@types/three": "^0.169.0"
43
+ }
44
+ }
package/dist/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
package/dist/index.html DELETED
@@ -1 +0,0 @@
1
- <!doctype html><html><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,user-scalable=no,minimum-scale=1,maximum-scale=1"><title>Three 3DTiles viewer sample</title><style>.slidecontainer{width:100%}.slider{-webkit-appearance:none;width:100%;height:15px;border-radius:5px;background:#d3d3d3;outline:0;opacity:.7;-webkit-transition:.2s;transition:opacity .2s}.slider:hover{opacity:1}.slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:25px;height:25px;border-radius:50%;background:#0439aa;cursor:pointer}.slider::-moz-range-thumb{width:25px;height:25px;border-radius:50%;background:#04aa6d;cursor:pointer}</style></head><body><div id="screen"></div><div style="position:absolute;z-index:999;right:0;top:0;width:12%;height:100%;background-color:#acacacd2;display:flex;flex-direction:column;flex-wrap:wrap"><div style="z-index:1000;margin:10%"><input type="range" min="0.01" max="4.0" value="1.0" , step="0.01" class="slider" id="lodMultiplier"><p style="color:#0439aa">detail multiplier: <span id="multiplierValue">1.0</span></p></div><div style="z-index:1000;margin:10%"><input type="range" min="0.5" max="1.5" value="1.0" , step="0.01" class="slider" id="distanceBias"><p style="color:#0439aa">distance bias: <span id="distanceBiasValue">1.0</span></p></div><div style="z-index:1000;margin:10%"><input type="range" min="10" max="200" value="200" , step="1" class="slider" id="targetFPS"><p style="color:#0439aa">target fps: <span id="targetFPSValue">200</span></p></div><div style="z-index:1000;margin:10%" id="loadingStrategyWrapper"><input type="range" min="0" max="1" value="0" , step="1" class="slider" style="width:25%;float:right;pointer-events:none" id="loadingStrategy"><p style="color:#0439aa">Strategy: <span id="loadingStrategyValue">INCREMENTAL</span></p></div><div style="z-index:1000;margin:10%"><input type="checkbox" id="autorotate"> <span style="color:#0439aa">Auto Rotate</span></div><div style="z-index:1000;margin:10%"><div>Tiles To Load <span style="color:#0439aa" id="tilesToLoadValue">0</span></div><div>Tiles Rendered <span style="color:#0439aa" id="tilesRenderedValue">0</span></div><div>max LOD <span style="color:#0439aa" id="maxLODValue">0</span></div><div>percentage loaded <span style="color:#0439aa" id="percentageValue">0</span></div></div></div><script src="threedtiles.min.js"></script></body></html>