(xyz, pixelUnprojectionMatrix)
| 79753 | 0 |
| 79754 | ]; |
| 79755 | function screenToCommonSpace(xyz, pixelUnprojectionMatrix) { |
| 79756 | var _xyz = (0, _slicedToArrayDefault.default)(xyz, 3), x = _xyz[0], y = _xyz[1], z = _xyz[2]; |
| 79757 | var coord = (0, _webMercator.pixelsToWorld)([ |
| 79758 | x, |
| 79759 | y, |
| 79760 | z |
| 79761 | ], pixelUnprojectionMatrix); |
| 79762 | if (Number.isFinite(z)) return coord; |
| 79763 | return [ |
| 79764 | coord[0], |
| 79765 | coord[1], |
| 79766 | 0 |
| 79767 | ]; |
| 79768 | } |
| 79769 | function getViewportCenterPosition(_ref) { |
| 79770 | var viewport = _ref.viewport, center = _ref.center; |
| 79771 | return new (0, _mathGl.Matrix4)(viewport.viewProjectionMatrix).invert().transform(center); |
no outgoing calls
no test coverage detected