lythreeframe 1.0.9 → 1.0.10
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/dist/bundle.cjs.js
CHANGED
|
@@ -1002,8 +1002,8 @@ class LYAssetManager {
|
|
|
1002
1002
|
});
|
|
1003
1003
|
});
|
|
1004
1004
|
}
|
|
1005
|
-
loadGltfFromBuffer(data, onLoadFinished) {
|
|
1006
|
-
this.gltfLoader.parse(data,
|
|
1005
|
+
loadGltfFromBuffer(data, path, onLoadFinished) {
|
|
1006
|
+
this.gltfLoader.parse(data, path, onLoadFinished);
|
|
1007
1007
|
}
|
|
1008
1008
|
loadFile(filepath = '', onLoadFinished) {
|
|
1009
1009
|
const loader = new three.FileLoader();
|
package/dist/bundle.esm.js
CHANGED
|
@@ -1000,8 +1000,8 @@ class LYAssetManager {
|
|
|
1000
1000
|
});
|
|
1001
1001
|
});
|
|
1002
1002
|
}
|
|
1003
|
-
loadGltfFromBuffer(data, onLoadFinished) {
|
|
1004
|
-
this.gltfLoader.parse(data,
|
|
1003
|
+
loadGltfFromBuffer(data, path, onLoadFinished) {
|
|
1004
|
+
this.gltfLoader.parse(data, path, onLoadFinished);
|
|
1005
1005
|
}
|
|
1006
1006
|
loadFile(filepath = '', onLoadFinished) {
|
|
1007
1007
|
const loader = new FileLoader();
|
|
@@ -16,7 +16,7 @@ export declare class LYAssetManager {
|
|
|
16
16
|
private collectResourcesAndReferences;
|
|
17
17
|
checkMeshResource(mesh: Mesh): void;
|
|
18
18
|
loadMultiGLTFAsGroup(tasks: LYLoadTask[], onProgress?: ((url: string, loaded: number, total: number) => void) | null, onAllFinished?: (() => void) | null): void;
|
|
19
|
-
loadGltfFromBuffer(data: ArrayBuffer | string, onLoadFinished: (gltf: GLTF) => void): void;
|
|
19
|
+
loadGltfFromBuffer(data: ArrayBuffer | string, path: string, onLoadFinished: (gltf: GLTF) => void): void;
|
|
20
20
|
loadFile(filepath: string | undefined, onLoadFinished: (data: any) => void): void;
|
|
21
21
|
addAsset(asset: BufferGeometry | Material | Texture, referenceCount?: number): void;
|
|
22
22
|
releaseAsset(asset: BufferGeometry | Material | Texture): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lythreeframe",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "Three.js 封装",
|
|
5
5
|
"main": "dist/bundle.cjs.js",
|
|
6
6
|
"module": "dist/bundle.esm.js",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
23
23
|
"@types/three": "^0.173.0",
|
|
24
|
-
"gsap": "3.12.2",
|
|
24
|
+
"gsap": "^3.12.2",
|
|
25
25
|
"rollup": "^4.35.0",
|
|
26
|
-
"three": "0.173.0",
|
|
26
|
+
"three": "^0.173.0",
|
|
27
27
|
"tslib": "^2.8.1",
|
|
28
28
|
"typescript": "^5.8.2"
|
|
29
29
|
},
|