| 122669 | return align === "center" ? w6 / 2 : align === "right" ? w6 : 0; |
| 122670 | } |
| 122671 | function imageYOffset(baseline, h11) { |
| 122672 | return baseline === "middle" ? h11 / 2 : baseline === "bottom" ? h11 : 0; |
| 122673 | } |
| 122674 | function attr$4(emit8, item, renderer) { |
| 122675 | const img = getImage(item, renderer), w7 = imageWidth(item, img), h12 = imageHeight(item, img), x34 = (item.x || 0) - imageXOffset(item.align, w7), y33 = (item.y || 0) - imageYOffset(item.baseline, h12), i = !img.src && img.toDataURL ? img.toDataURL() : img.src || ""; |
| 122676 | emit8("href", i, metadata["xmlns:xlink"], "xlink:href"); |