@jdultra/threedtiles 9.0.0 → 9.0.2

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.
Files changed (2) hide show
  1. package/README.md +10 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ [![Version](https://img.shields.io/npm/v/@jdultra/threedtiles?style=flat&colorA=000000&colorB=000000)](https://npmjs.com/package/@jdultra/threedtiles)
2
+ [![Downloads](https://img.shields.io/npm/dt/@jdultra/threedtiles.svg?style=flat&colorA=000000&colorB=000000)](https://npmjs.com/package/@jdultra/threedtiles)
3
+
1
4
  # T H R E E D T I L E S : http://www.jdultra.com/
2
5
 
3
6
 
@@ -14,12 +17,12 @@ The fastest 3DTiles viewer for three.js
14
17
 
15
18
  [Instanced Tileset (pilot a swarm of highly detailed spaceships)](https://www.jdultra.com/instanced/index.html)
16
19
 
17
- NPM dependency: "@jdultra/threedtiles": "^8.0.0"
20
+ NPM dependency: "@jdultra/threedtiles": "^9.0.1"
18
21
 
19
22
  Adding a tileset to a scene is as easy as :
20
23
 
21
24
  ```
22
- import { OGC3DTile } from "./tileset/OGC3DTile";
25
+ import { OGC3DTile } from '@jdultra/threedtiles';
23
26
 
24
27
  ...
25
28
 
@@ -166,7 +169,7 @@ The TileLoader takes an optional object as argument:
166
169
  @param {renderer} [options.renderer] - The renderer, this is required for KTX2 support.
167
170
 
168
171
  ```
169
- import { TileLoader } from "@jdultra/threedtiles/src/tileset/TileLoader";
172
+ import { TileLoader } from '@jdultra/threedtiles';
170
173
 
171
174
  const tileLoader = new TileLoader({
172
175
  renderer: renderer,
@@ -213,6 +216,8 @@ It will be most beneficial on interior scenes where most of the data is occluded
213
216
 
214
217
  First, instantiate an OcclusionCullingService:
215
218
  ```
219
+ import { OcclusionCullingService } from '@jdultra/threedtiles';
220
+
216
221
  const occlusionCullingService = new OcclusionCullingService();
217
222
  ```
218
223
 
@@ -252,6 +257,8 @@ Each Tileset is independent in terms of it's position, orientation and level of
252
257
  higher performance when displaying the same Tileset many times.
253
258
 
254
259
  ```
260
+ import { InstancedOGC3DTile, InstancedTileLoader } from '@jdultra/threedtiles';
261
+
255
262
  // First create the InstancedTileLoader that will manage caching
256
263
  const instancedTileLoader = new InstancedTileLoader(
257
264
  scene,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jdultra/threedtiles",
3
- "version": "9.0.0",
3
+ "version": "9.0.2",
4
4
  "description": "An OGC 3DTiles viewer for Three.js",
5
5
  "main": "dist/threedtiles.min.js",
6
6
  "files": [
@@ -34,7 +34,7 @@
34
34
  "path-browserify": "^1.0.1",
35
35
  "regenerator-runtime": "^0.13.11",
36
36
  "set-interval-async": "^2.0.3",
37
- "three": "^0.148.0",
37
+ "three": "^0.141.0",
38
38
  "uuid": "^8.3.2"
39
39
  },
40
40
  "devDependencies": {