(y, h, angle)
| 220 | } |
| 221 | |
| 222 | function yForAngle(y, h, angle) { |
| 223 | if (angle === 90 || angle === 270) { |
| 224 | y -= (h / 2); |
| 225 | } else if (angle > 270 || angle < 90) { |
| 226 | y -= h; |
| 227 | } |
| 228 | return y; |
| 229 | } |
| 230 | |
| 231 | function drawPointLabelBox(ctx, opts, item) { |
| 232 | const {left, top, right, bottom} = item; |
no outgoing calls
no test coverage detected