| 1549 | } |
| 1550 | |
| 1551 | Path getPath() const override { |
| 1552 | if (points.size() < 2) { |
| 1553 | return {}; |
| 1554 | } |
| 1555 | |
| 1556 | Path path = {}; |
| 1557 | path.moveTo(points[0]); |
| 1558 | for (size_t i = 1; i < points.size(); ++i) { |
| 1559 | path.lineTo(points[i]); |
| 1560 | } |
| 1561 | path.close(); |
| 1562 | return path; |
| 1563 | } |
| 1564 | |
| 1565 | Rect getBounds() const override { |
| 1566 | if (points.size() < 2) { |