Determines the policy whether and how Visuals are cached when they are removed temporarily from the CanvasComponent's visual tree.
Remarks
Visuals are temporarily removed when they are moved outside the visual part of the canvas (the viewport) and re-added when they enter the viewport again. Caching prevents the need to re-build the visuals from scratch.
In order to be cached a dispose visual callback has to be registered during creation.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.view.VisualCachingPolicy
See Also
Constants
Visuals will always be cached.
Remarks
The cached reference will be kept until the corresponding ICanvasObject is removed.
Disables caching of Visuals completely.
Static Methods
Converts the argument to VisualCachingPolicy.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- value - VisualCachingPolicy
- The value to convert to VisualCachingPolicy.
Returns
- ↪VisualCachingPolicy
- Either
value
if it is already a VisualCachingPolicy or an appropriate converted value.