# Class Work

- Defined in lib/five/work/work.ts:145
- Defined in lib/five/work/work.ts:181

##### Index

### Constructors

constructor

### Properties

allowHosts
baseURL
expire
initial
issuer
jsonp
model?
name
observerBox
observers
options
projectId?
raw
shortPath
transform
workCode
parse

### Methods

getURL
toJSON
verifyURL

## Constructors

### constructor

- new Work(obj: any, options: ParseOptions): Work

  #### Parameters

  - obj: any
  - options: ParseOptions

  #### Returns Work

  - Defined in lib/five/work/work.ts:215

## Properties

### allowHosts

allowHosts: readonly string[]

允许访问的安全域名

- Defined in lib/five/work/work.ts:157

### baseURL

baseURL: string

根地址

- Defined in lib/five/work/work.ts:166

### expire

expire: Date

过期时间

- Defined in lib/five/work/work.ts:160

### initial

initial: WorkInitial

初始化参数

- Defined in lib/five/work/work.ts:169

### issuer

issuer: string

数据签发人

- Defined in lib/five/work/work.ts:148

### jsonp

jsonp: boolean

- Defined in lib/five/work/work.ts:183

### `Optional` model

model?: WorkModel

模型参数

- Defined in lib/five/work/work.ts:175

### name

name: string

名称

- Defined in lib/five/work/work.ts:163

### observerBox

observerBox: Box3 = ...

- Defined in lib/five/work/work.ts:187

### observers

observers: readonly WorkObserver[]

全景点位信息

- Defined in lib/five/work/work.ts:178

### options

options: { transform: Matrix4 }

控制参数

#### Type Declaration

- ##### transform: Matrix4

  位姿修正

  #### Deprecated

  通过 work.transform 替换

#### Deprecated

通过 work.transform 替换

- Defined in lib/five/work/work.ts:193

### `Optional` projectId

projectId?: string

内部项目 id

- Defined in lib/five/work/work.ts:154

### raw

raw: { works: string[] }

原始数据

#### Deprecated

通过 work.toJSON 替换

- Defined in lib/five/work/work.ts:205

### shortPath

shortPath: boolean

- Defined in lib/five/work/work.ts:185

### transform

transform: Matrix4

相对位姿

- Defined in lib/five/work/work.ts:172

### workCode

workCode: string

编号

- Defined in lib/five/work/work.ts:151

### `Static` parse

parse: (obj: any, options?: ParseOptions) => Work = parseWork

解析 Work 数据

#### Type Declaration

- - (obj: any, options?: ParseOptions): Work

  - 解析 Work 数据

    #### Parameters

    - obj: any

      work 数据，从如数开发者平台获取

    - `Optional` options: ParseOptions

      配置参数， 可以在此二次设置 baseURL 等参数

    #### Returns Work

    - 签署过的 Work 数据结构

#### Param: obj

work 数据，从如数开发者平台获取

#### Param: options

配置参数， 可以在此二次设置 baseURL 等参数

#### Returns

- 签署过的 Work 数据结构

- Defined in lib/five/work/work.ts:213

## Methods

### getURL

- getURL(source: string): string

  #### Parameters

  - source: string

  #### Returns string

  - Defined in lib/five/work/work.ts:295

### toJSON

- toJSON(): any

  #### Returns any

  - Defined in lib/five/work/work.ts:324

### verifyURL

- verifyURL(source: string): boolean

  #### Parameters

  - source: string

  #### Returns boolean

  - Defined in lib/five/work/work.ts:320