| 133038 | // Generates a 4-bit vector representing the location of a point relative to |
| 133039 | // the small circle's bounding box. |
| 133040 | function code1(lambda, phi) { |
| 133041 | var r = smallRadius ? radius : (0, _mathJs.pi) - radius, code = 0; |
| 133042 | if (lambda < -r) code |= 1; // left |
| 133043 | else if (lambda > r) code |= 2; // right |
| 133044 | if (phi < -r) code |= 4; // below |
| 133045 | else if (phi > r) code |= 8; // above |
| 133046 | return code; |
| 133047 | } |
| 133048 | return (0, _indexJsDefault.default)(visible, clipLine, interpolate, smallRadius ? [ |
| 133049 | 0, |
| 133050 | -radius |