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-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.styles.IShapeGeometry
See Also
Considering the Actual Item Geometry,
IVisibilityTestable,
IShapeGeometry,
Separating Style and Renderer,
Customizing Predefined Styles
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.
Static Methods
Creates an implementation of the interface IShapeGeometry from the given definition.
Remarks
The given object must contain exactly the abstract members of the IShapeGeometry interface. No member may be omitted and no additional members can be added. While additional custom members can later be added directly on the instance, this is discouraged.
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.
Returns
- ↪IShapeGeometry
- An instance of the IShapeGeometry interface based on the given definition.