# Interface PanoEvent

全景图切换事件

interface PanoEvent {
defaultPrevented: boolean;
error: Error | null;
options: MovePanoOptions;
pano: Pano;
prevPano: Pano;
progress: number;
state: State;
timeStamp: number;
type: string;
userAction: boolean;
preventDefault(): void;
}

#### Hierarchy (View Summary)

- StateEvent
  - PanoEvent

- Defined in lib/five/utils/event.ts:49

##### Index

### Properties

defaultPrevented
error
options
pano
prevPano
progress
state
timeStamp
type
userAction

### Methods

preventDefault

## Properties

### `Readonly` defaultPrevented

defaultPrevented: boolean

是否已调用过 preventDefault

Inherited from StateEvent.defaultPrevented

- Defined in lib/five/utils/event.ts:23

### error

error: Error | null

切换过程中发生的错误

- Defined in lib/five/utils/event.ts:59

### options

options: MovePanoOptions

切换时传入的选项

- Defined in lib/five/utils/event.ts:57

### pano

pano: Pano

新的全景图

- Defined in lib/five/utils/event.ts:53

### prevPano

prevPano: Pano

切换前的全景图

- Defined in lib/five/utils/event.ts:51

### progress

progress: number

切换动画进度（0-1）

- Defined in lib/five/utils/event.ts:55

### state

state: State

当前的 Five 状态

Inherited from StateEvent.state

- Defined in lib/five/utils/event.ts:43

### timeStamp

timeStamp: number

事件触发时的时间戳

Inherited from StateEvent.timeStamp

- Defined in lib/five/utils/event.ts:19

### type

type: string

事件类型名称

Inherited from StateEvent.type

- Defined in lib/five/utils/event.ts:17

### userAction

userAction: boolean

是否由用户交互触发

Inherited from StateEvent.userAction

- Defined in lib/five/utils/event.ts:45

## Methods

### preventDefault

- preventDefault(): void

  阻止事件的默认行为

  #### Returns void

  Inherited from StateEvent.preventDefault

  - Defined in lib/five/utils/event.ts:21