Methods
View

setViewport

Sets the viewport of the 2D Viewer.

Example



Usage

JS


Parameters

namedViewport

Name of the viewport to set, valid value is fit.

Type

Required

String

Yes

options

Options for the viewport.

Type

Required

Object

No

Properties

Name

Type

Required

Description

expandInPercentage

Number

No

Expansion applied to the viewport



Updated 12 Sep 2024
Did this page help you?