import { ModelType } from "../utils/loader/types"; import { Model } from './index'; import { AnimationClip } from "three"; export interface ICurveParameter { points: THREE.Vector3[]; duration: number; completeCallback?: () => void; loop?: boolean; initPlay?: boolean; } export interface ICreateBack { model: THREE.Object3D; mixer?: THREE.AnimationMixer; } export interface ICreateParameter { name: string; url: string | THREE.Object3D; modelType: ModelType; decoderPath?: string; loadProgress?: (progress: number) => void; complete?: (model: Model, animations?: AnimationClip[]) => void; indexdb?: boolean; }