showLabel method
Implementation
Quality? showLabel(Point mouse) {
if (_labels == null) return null;
//print('--- showLabels ---');
var point = _getMousePointInCanvas(mouse);
var labels = _labels.value ?? [];
var target = nearestRectangle(labels, point) as Label?;
if (target == null) {
_hideLabel();
} else if (target.containsPoint(point)) {
_pointerLabel = _selectedLabel = target;
showHintAtRectangle(target.label, _getElementRectangleInCanvas(target));
} else {
_hideLabel();
}
return Quality.high;
}