浏览代码

[types] - three types from versions after they split them to a different repo are not compatible with older versions

This doesn't make much difference in practice for usage, but it fixes issues where the three types are not compatible when the application using this package is on a newer version of three.

(I chose 128 just because that is the version that we've been using for quite a while with no problems, it may also simply be able to use a newer version if desired? We've also tested against three 130, though not as thoroughly as 128.)
Dave Buchhofer 3 年之前
父节点
当前提交
eb9faaa3dc
共有 3 个文件被更改,包括 13 次插入4 次删除
  1. 9 3
      package-lock.json
  2. 2 1
      package.json
  3. 2 0
      src/index.d.ts

+ 9 - 3
package-lock.json

@@ -4161,6 +4161,12 @@
       "integrity": "sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw==",
       "dev": true
     },
+    "@types/three": {
+      "version": "0.128.0",
+      "resolved": "https://registry.npmjs.org/@types/three/-/three-0.128.0.tgz",
+      "integrity": "sha512-Jwq5XYUkzAcPTo34hlGAQGUyAI0b2F3aCCFWG/v7ZhJBEG5HGcusMSr70GhDlT8Gs0f02QnSPZ2RCA1MrCOa/w==",
+      "dev": true
+    },
     "@types/yargs": {
       "version": "15.0.13",
       "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.13.tgz",
@@ -13438,9 +13444,9 @@
       "dev": true
     },
     "three": {
-      "version": "0.126.0",
-      "resolved": "https://registry.npmjs.org/three/-/three-0.126.0.tgz",
-      "integrity": "sha512-/MecvboUefStCkUfXLImoJxthN+FoLPcEP7pz1r1Dd9i8BPGGuj+S1sOPRvW4Z+ViZjP2oWWm1inNC/MT52ybA==",
+      "version": "0.134.0",
+      "resolved": "https://registry.npmjs.org/three/-/three-0.134.0.tgz",
+      "integrity": "sha512-LbBerg7GaSPjYtTOnu41AMp7tV6efUNR3p4Wk5NzkSsNTBuA5mDGOfwwZL1jhhVMLx9V20HolIUo0+U3AXehbg==",
       "dev": true
     },
     "throat": {

+ 2 - 1
package.json

@@ -40,6 +40,7 @@
   "devDependencies": {
     "@babel/core": "^7.13.8",
     "@babel/preset-env": "^7.13.8",
+    "@types/three": "^0.128.0",
     "babel-jest": "^25.5.1",
     "concurrently": "^5.3.0",
     "eslint": "^6.8.0",
@@ -49,7 +50,7 @@
     "jest-cli": "^25.5.4",
     "parcel-bundler": "^1.12.4",
     "static-server": "^2.2.1",
-    "three": ">=0.126.0",
+    "three": ">=0.128.0",
     "typescript": "^3.9.9"
   },
   "peerDependencies": {

+ 2 - 0
src/index.d.ts

@@ -10,6 +10,7 @@ import {
 	RANDOM_COLOR,
 } from './three/DebugTilesRenderer';
 import { TilesRenderer } from './three/TilesRenderer';
+import { TilesGroup } from './three/TilesGroup';
 import { B3DMLoader } from './three/B3DMLoader';
 import { I3DMLoader } from './three/I3DMLoader';
 import { PNTSLoader } from './three/PNTSLoader';
@@ -36,6 +37,7 @@ export {
 	TileBase,
 	Tileset,
 	TilesRendererBase,
+	TilesGroup,
 	B3DMLoaderBase,
 
 	LRUCache,