selectShapesAtPoint method
Implementation
@override
List<GShape> selectShapesAtPoint(Point p, {bool recursive = false}) {
final shapeBoundingBox = this.shapeBoundingBox;
if (shapeBoundingBox.containsPoint(p)) {
if (recursive) {
final p2 = p.decrement(shapeBoundingBox);
var subShapes =
elements.selectShapesAtPoint(p2, recursive: true, growable: false);
return [this, ...subShapes];
} else {
return [this];
}
} else {
return [];
}
}