Defines how ViewportLimiter should limit the suggested viewport.
Remarks
This policy defines how viewport limits should be treated if the current viewport is not within the limits.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.view.ViewportLimitingPolicy
Constants
If the current viewport lies outside the bounds the ViewportLimiter allows for changes towards the bounds but forbids changes away from them.
Remarks
In case the viewport happens to be outside the limits all following viewport changes will be forced to move the viewport in the direction of the limits.
While the viewport will not comply to the limits right away this policy avoids the visible "jump" which can happen with the STRICT policy.
Static Methods
Converts the argument to ViewportLimitingPolicy.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- value - ViewportLimitingPolicy
- The value to convert to ViewportLimitingPolicy.
Returns
- ↪ViewportLimitingPolicy
- Either
value
if it is already a ViewportLimitingPolicy or an appropriate converted value.