()
| 57676 | } |
| 57677 | exports.default = parseToImageBitmap; |
| 57678 | function _parseToImageBitmap() { |
| 57679 | _parseToImageBitmap = (0, _asyncToGeneratorDefault.default)((0, _regeneratorDefault.default).mark(function _callee(arrayBuffer, options, url) { |
| 57680 | var blob, image, imagebitmapOptions; |
| 57681 | return (0, _regeneratorDefault.default).wrap(function _callee$(_context) { |
| 57682 | while(true)switch(_context.prev = _context.next){ |
| 57683 | case 0: |
| 57684 | if (!(0, _svgUtils.isSVG)(url)) { |
| 57685 | _context.next = 7; |
| 57686 | break; |
| 57687 | } |
| 57688 | _context.next = 3; |
| 57689 | return (0, _parseToImageDefault.default)(arrayBuffer, options, url); |
| 57690 | case 3: |
| 57691 | image = _context.sent; |
| 57692 | blob = image; |
| 57693 | _context.next = 8; |
| 57694 | break; |
| 57695 | case 7: |
| 57696 | blob = (0, _svgUtils.getBlob)(arrayBuffer, url); |
| 57697 | case 8: |
| 57698 | imagebitmapOptions = options && options.imagebitmap; |
| 57699 | _context.next = 11; |
| 57700 | return safeCreateImageBitmap(blob, imagebitmapOptions); |
| 57701 | case 11: |
| 57702 | return _context.abrupt("return", _context.sent); |
| 57703 | case 12: |
| 57704 | case "end": |
| 57705 | return _context.stop(); |
| 57706 | } |
| 57707 | }, _callee); |
| 57708 | })); |
| 57709 | return _parseToImageBitmap.apply(this, arguments); |
| 57710 | } |
| 57711 | function safeCreateImageBitmap(_x4) { |
| 57712 | return _safeCreateImageBitmap.apply(this, arguments); |
| 57713 | } |
nothing calls this directly
no test coverage detected