protected isHit(
context: IInputModeContext,
location: Point,
port: IPort
): boolean {
// get the ellipse bounds
const bounds = this.getBounds(context, port)
// use a convenience function to check if the location is inside the ellipse
return GeometryUtilities.ellipseContains(
bounds,
location,
context.hitTestRadius
)
}