(item, area)
| 164 | } |
| 165 | |
| 166 | function isNotOverlapped(item, area) { |
| 167 | if (!area) { |
| 168 | return true; |
| 169 | } |
| 170 | const {left, top, right, bottom} = item; |
| 171 | const apexesInArea = _isPointInArea({x: left, y: top}, area) || _isPointInArea({x: left, y: bottom}, area) || |
| 172 | _isPointInArea({x: right, y: top}, area) || _isPointInArea({x: right, y: bottom}, area); |
| 173 | return !apexesInArea; |
| 174 | } |
| 175 | |
| 176 | function buildPointLabelItems(scale, labelSizes, padding) { |
| 177 | const items = []; |
no test coverage detected