Interface that is implemented for elements that can provide rendering bounds in the world coordinate system.
Inheritance Hierarchy
IBoundsProvider
Related Programming Samples
- 10 Render Boundaries
- Adjust the node boundaries to parts of the node visualization that lie outside of the node bounds
Type Details
- yFiles module
- view
See Also
IVisualCreator,
CanvasComponent,
IObjectRenderer<Object>,
IRenderTreeElement,
Custom Decoration Renderer,
IBoundsProvider,
Separating Style and Renderer,
Creating a Custom Arrow
Methods
Returns a tight rectangular area where the whole rendering would fit into.
Remarks
If calculating the bounds is too expensive or the rendering is not bound to a certain area, this method may return INFINITE. If nothing is rendered, this method should return an empty rectangle, where either or both the width and height is non-positive or EMPTY.
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 calculate the bounds for
Returns
Constants
An implementation that returns an IBoundsProvider that yields EMPTY bounds.
An implementation that returns an IBoundsProvider that yields INFINITE bounds.
Static Methods
Creates an instance that returns the given rectangle as the bounds.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- bounds - IRectangle
- The rectangle to be used as the bounds.
Returns
- ↪IBoundsProvider
- An IBoundsProvider that returns the given
bounds
.