# Interface MovePanoOptions

点位移动参数

interface MovePanoOptions {
duration?:
| string
| number
| ((distance: number, speed: number) => number)
| null;
effect?: MovePanoEffect;
effectEasing?: EasingFunction;
fov?: number;
latitude?: number;
longitude?: number;
moveCancelCallback?: () => void;
moveEndCallback?: (state: State) => void;
moveStartCallback?: (toState: State) => void;
panoIndex?: number;
workCode?: string;
}

#### Hierarchy

- Partial<Omit<State, "offset" | "distance" | "mode">>
  - MovePanoOptions

- Defined in lib/five/types/movePanoOptions.ts:8

##### Index

### Properties

duration?
effect?
effectEasing?
fov?
latitude?
longitude?
moveCancelCallback?
moveEndCallback?
moveStartCallback?
panoIndex?
workCode?

## Properties

### `Optional` duration

duration?:
| string
| number
| ((distance: number, speed: number) => number)
| null

运动耗时

#### Description

- `数字或者字符串类型` 直接当作运动耗时
- `函数类型` 传入 距离和速度（速度为five初始化设置） 返回运动耗时
- `不传或者null` 通过距离和速度（速度为five初始化设置）

- Defined in lib/five/types/movePanoOptions.ts:22

### `Optional` effect

effect?: MovePanoEffect

动画模式

- Defined in lib/five/types/movePanoOptions.ts:12

### `Optional` effectEasing

effectEasing?: EasingFunction

走点图片过度策略

- Defined in lib/five/types/movePanoOptions.ts:14

### `Optional` fov

fov?: number

相机可视角度（垂直）

Inherited from Pose.fov

- Defined in lib/five/types/pose.ts:12

### `Optional` latitude

latitude?: number

相机俯仰角

Inherited from Pose.latitude

- Defined in lib/five/types/pose.ts:10

### `Optional` longitude

longitude?: number

相机偏航角

Inherited from Pose.longitude

- Defined in lib/five/types/pose.ts:8

### `Optional` moveCancelCallback

moveCancelCallback?: () => void

运动被取消回调

#### Description

这个有一些情况会导致

- 移动过程中切换模态
- 移动过程中 five 被析构
- 移动过程点击切换到另一个点位

- Defined in lib/five/types/movePanoOptions.ts:35

### `Optional` moveEndCallback

moveEndCallback?: (state: State) => void

运动结束回调

- Defined in lib/five/types/movePanoOptions.ts:26

### `Optional` moveStartCallback

moveStartCallback?: (toState: State) => void

运动开始回调

- Defined in lib/five/types/movePanoOptions.ts:24

### `Optional` panoIndex

panoIndex?: number

观察点序号

Inherited from State.panoIndex

- Defined in lib/five/types/state.ts:18

### `Optional` workCode

workCode?: string

workCode

Inherited from State.workCode

- Defined in lib/five/types/state.ts:16