| 21 | } |
| 22 | |
| 23 | BBox xg::shape::Marker::CalculateBox(canvas::CanvasContext &context) const { |
| 24 | BBox bbox; |
| 25 | if (symbol_ == "rect") { |
| 26 | bbox.minX = point_.x - size_.width / 2; |
| 27 | bbox.maxX = point_.x + size_.width / 2; |
| 28 | bbox.minY = point_.y - size_.height / 2; |
| 29 | bbox.maxY = point_.y + size_.height / 2; |
| 30 | } else { |
| 31 | bbox.minX = point_.x - radius_; |
| 32 | bbox.maxX = point_.x + radius_; |
| 33 | bbox.minY = point_.y - radius_; |
| 34 | bbox.maxY = point_.y + radius_; |
| 35 | } |
| 36 | bbox.x = point_.x; |
| 37 | bbox.y = point_.y; |
| 38 | return bbox; |
| 39 | } |
nothing calls this directly
no outgoing calls
no test coverage detected