three-base 2.0.86 → 2.0.87

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "three-base",
3
- "version": "2.0.86",
3
+ "version": "2.0.87",
4
4
  "description": "three 3d three-base",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
package/threeLoader.d.ts CHANGED
@@ -7,6 +7,7 @@ import { STLLoader } from "three/examples/jsm/loaders/STLLoader";
7
7
  import { USDZLoader } from "three/examples/jsm/loaders/USDZLoader";
8
8
  declare class ThreeLoader extends EventDispatcher {
9
9
  constructor();
10
+ uuid: string;
10
11
  anisotropy: number;
11
12
  setAnisotropy(v: number): void;
12
13
  textureMap: Map<string, Texture>;
package/threeLoader.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * @Author: xiaosihan
3
3
  * @Date: 2022-04-07 16:42:26
4
4
  * @Last Modified by: xiaosihan
5
- * @Last Modified time: 2023-02-07 11:11:48
5
+ * @Last Modified time: 2024-09-11 11:43:31
6
6
  */
7
7
  import { CanvasTexture, DefaultLoadingManager, EventDispatcher, Mesh, MeshStandardMaterial, RepeatWrapping, TextureLoader, VideoTexture, } from "three";
8
8
  import { DRACOLoader } from "three/examples/jsm/loaders/DRACOLoader";
@@ -24,6 +24,7 @@ import dracoDecoderJS from "./lib/draco/draco_decoder.js?url";
24
24
  import axios from "axios";
25
25
  import dracoDecoderWASM from "./lib/draco/draco_decoder.wasm?url";
26
26
  import threeUtils from "./threeUtils";
27
+ import { generateUUID } from "three/src/math/MathUtils";
27
28
  // 加载器
28
29
  class ThreeLoader extends EventDispatcher {
29
30
  constructor() {
@@ -57,6 +58,7 @@ class ThreeLoader extends EventDispatcher {
57
58
  return new_url;
58
59
  });
59
60
  }
61
+ uuid = generateUUID();
60
62
  // 各向异性
61
63
  anisotropy = 16;
62
64
  // 设置各向异性 由渲染器来调用并设置
package/threeLoader.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * @Author: xiaosihan
3
3
  * @Date: 2022-04-07 16:42:26
4
4
  * @Last Modified by: xiaosihan
5
- * @Last Modified time: 2023-02-07 11:11:48
5
+ * @Last Modified time: 2024-09-11 11:43:31
6
6
  */
7
7
 
8
8
  import {
@@ -38,6 +38,7 @@ import dracoDecoderJS from "./lib/draco/draco_decoder.js?url";
38
38
  import axios from "axios";
39
39
  import dracoDecoderWASM from "./lib/draco/draco_decoder.wasm?url";
40
40
  import threeUtils from "./threeUtils";
41
+ import { generateUUID } from "three/src/math/MathUtils";
41
42
 
42
43
  // 加载器
43
44
  class ThreeLoader extends EventDispatcher {
@@ -83,6 +84,8 @@ class ThreeLoader extends EventDispatcher {
83
84
  });
84
85
  }
85
86
 
87
+ uuid = generateUUID();
88
+
86
89
  // 各向异性
87
90
  anisotropy = 16;
88
91