Interface that is implemented for elements that can determine whether they might be visible in a given clipping rectangle.
Inheritance Hierarchy
IVisibilityTestable
Related Programming Samples
- 09 Item Visibility
- Adjust the visibility check to parts of the node visualization that lie outside of the node bounds
Type Details
- yFiles module
- view
See Also
Methods
Determines whether an element might intersect the visible region for a given context.
Remarks
Conservative implementations can always return
true
.Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- context - ICanvasContext
- The context to determine the visibility for.
- rectangle - Rect
- The visible region clip.
Returns
- ↪boolean
false
if and only if it is safe not to render the element because it would not affect the given clipping region.
Constants
An implementation of a IVisibilityTestable that always yields true
.
An implementation of a IVisibilityTestable that always yields false
.