Skip to content

@bvdmitri/web360 / VIEW_PRESETS

Variable: VIEW_PRESETS ​

const VIEW_PRESETS: Readonly<Record<ViewPreset, ViewLens>> = CORE_PRESETS

Defined in: web360/src/views.ts:49

The lens presets, from a flat lens to a tiny planet, each wider and further back than the last.

Remarks ​

Spread one over a view to apply it: { ...view, ...VIEW_PRESETS.ultra }. The tiny planet also looks straight down.

Released under the MIT License.