lythreeframe 2.0.1 → 2.0.3

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.
@@ -16,12 +16,12 @@ export declare class AssetManager {
16
16
  protected readonly gltfLoader: GLTFLoader;
17
17
  protected readonly loadingManager: LoadingManager;
18
18
  protected app: ThreeJsApp;
19
- constructor(app: ThreeJsApp);
19
+ private dracoPath;
20
+ constructor(app: ThreeJsApp, dracoPath: string);
20
21
  get LoadingManager(): LoadingManager;
21
22
  get KTX2Loader(): KTX2Loader | null;
22
23
  init(): Promise<void>;
23
- setupKTX2Loader(transcoderPath: string): Promise<void>;
24
- setupDracoLoader(dracoPath: string): void;
24
+ setupDracoLoader(): void;
25
25
  convertThreeObjectToLYObject(parentLYComponent: SceneComponent, threejsObject: Object3D): SceneComponent | null;
26
26
  collectResourcesAndReferences(object: Object3D): void;
27
27
  checkMeshResource(mesh: Mesh): void;
@@ -13,6 +13,7 @@ export interface AppClass {
13
13
  viewportClass: typeof Viewport;
14
14
  }
15
15
  export interface AppParam {
16
+ dracoPath: string;
16
17
  cameraParam?: CameraParam;
17
18
  postProcessParam?: PostProcessParam;
18
19
  worldParam?: WorldParam;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lythreeframe",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "Three.js 封装",
5
5
  "main": "dist/bundle.cjs.js",
6
6
  "module": "dist/bundle.esm.js",