three-scene
Version:
3D 场景
44 lines (41 loc) • 653 B
TypeScript
import * as THREE from 'three'
import type { Cruise as Options } from './options'
/**
* 按键映射
*/
export interface KeyMap {
/**
* 按键
*/
key: string[]
/**
* 描述文本
*/
text: string
}
export type StatusBackOptions = Pick<Options, 'enabled' | 'runing'>
/**
* 过渡回调配置参数
*/
export interface AnimateBackOptions {
/**
* 坐标
*/
position: THREE.Vector3
/**
* 朝向坐标(相机焦点)
*/
lookAt: THREE.Vector3
/**
* 点位曲线
*/
curve: THREE.CatmullRomCurve3
/**
* 当前过度进度
*/
progress: number
/**
* 激活状态
*/
enabled: boolean
}