Skip to content

@bvdmitri/web360 / clampView

Function: clampView() ​

clampView(view): View

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

The view held to its limits, its pan wrapped into (-180, 180]. Throws a RangeError for a part that is not a finite number.

Parameters ​

view ​

View

Returns ​

View

Released under the MIT License.