Interface that describes the geometry of a shape which has an interior and an exterior.
Inheritance Hierarchy
IShapeGeometry
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
Methods
Returns the intersection for the given line with this shape's geometry.
Returns the outline of the shape or null
.
Remarks
If
null
is returned, callers may assume the canonical outline as result. For nodes, this is the node's layout.Returns
- ↪GeneralPath?
- The outline or
null
if no outline can be provided.
Constants
A void implementation of the IShapeGeometry interface that does nothing and behaves like an empty geometry.
Static Methods
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- getIntersection - function(Point, Point):Point
Returns the intersection for the given line with this shape's geometry.
This property holds the implementation for getIntersection.
- isInside - function(Point):boolean
Checks whether the given coordinate is deemed to lie within the shape's geometric bounds.
This property holds the implementation for isInside.
- getOutline - function():GeneralPath
Returns the outline of the shape or
null
.This property holds the implementation for getOutline.