Interface SceneGraph

interface SceneGraph {
    animations: {
        actions: {
            [action: string]: AnimationAction | null;
        };
        names: string[];
    };
    materials: {
        [name: string]: MaterialConfig;
    };
    objects: {
        [name: string]: {
            morphTargets?: {
                [target: string]: number;
            };
            position?: Vector3Tuple;
            rotation?: Vector3Tuple;
            scale?: Vector3Tuple;
            visible?: boolean;
        };
    };
}

Properties

animations: {
    actions: {
        [action: string]: AnimationAction | null;
    };
    names: string[];
}

Type declaration

  • actions: {
        [action: string]: AnimationAction | null;
    }
    • [action: string]: AnimationAction | null
  • names: string[]
materials: {
    [name: string]: MaterialConfig;
}

Type declaration

objects: {
    [name: string]: {
        morphTargets?: {
            [target: string]: number;
        };
        position?: Vector3Tuple;
        rotation?: Vector3Tuple;
        scale?: Vector3Tuple;
        visible?: boolean;
    };
}

Type declaration

  • [name: string]: {
        morphTargets?: {
            [target: string]: number;
        };
        position?: Vector3Tuple;
        rotation?: Vector3Tuple;
        scale?: Vector3Tuple;
        visible?: boolean;
    }
    • Optional morphTargets?: {
          [target: string]: number;
      }
      • [target: string]: number
    • Optional position?: Vector3Tuple
    • Optional rotation?: Vector3Tuple
    • Optional scale?: Vector3Tuple
    • Optional visible?: boolean

Generated using TypeDoc