onHighlightNode method

void onHighlightNode(
  1. int? id,
  2. Map<String, dynamic> params
)

Implementation

void onHighlightNode(int? id, Map<String, dynamic> params) {
  _highlightElement?.debugHideHighlight();

  int nodeId = params['nodeId'];
  Element? element = elementManager.getEventTargetByTargetId<Element>(nodeId);

  if (element != null) {
    element.debugHighlight();
    _highlightElement = element;
  }
  sendToFrontend(id, null);
}