isHovered property

bool get isHovered

Is this vertex under focus now

当前节点是否有鼠标浮入

Implementation

bool get isHovered {
  if (this.g == null) return false;
  var g = this.g as Graph;
  // 排他
  if (g.hoverVertex != null && g.hoverVertex != this) return false;
  return g.options!.vertexShape.hoverTest(this);
}