(e3, t3, i3, s3, r2, o2, a2, h2, l2, c2)
| 7743 | return t3 << 8; |
| 7744 | default: |
| 7745 | return i3 ? this._config.colors.background.rgba : this._config.colors.foreground.rgba; |
| 7746 | } |
| 7747 | } |
| 7748 | _getMinimumContrastColor(e3, t3, i3, s3, r2, o2, a2, h2, l2, c2) { |
| 7749 | if (1 === this._config.minimumContrastRatio || c2) return; |
| 7750 | const d2 = this._getContrastCache(l2), _2 = d2.getColor(e3, s3); |
| 7751 | if (void 0 !== _2) return _2 || void 0; |
| 7752 | const u2 = this._resolveBackgroundRgba(t3, i3, a2), g2 = this._resolveForegroundRgba(r2, o2, a2, h2), v2 = n.rgba.ensureContrastRatio(u2, g2, this._config.minimumContrastRatio / (l2 ? 2 : 1)); |
| 7753 | if (!v2) return void d2.setColor(e3, s3, null); |
| 7754 | const f2 = n.channels.toColor(v2 >> 24 & 255, v2 >> 16 & 255, v2 >> 8 & 255); |
| 7755 | return d2.setColor(e3, s3, f2), f2; |
| 7756 | } |
no test coverage detected