(e3, t3, i3, s3)
| 7686 | } |
| 7687 | _getColorFromAnsiIndex(e3) { |
| 7688 | if (e3 >= this._config.colors.ansi.length) throw new Error("No color found for idx " + e3); |
| 7689 | return this._config.colors.ansi[e3]; |
| 7690 | } |
| 7691 | _getBackgroundColor(e3, t3, i3, s3) { |
| 7692 | if (this._config.allowTransparency) return n.NULL_COLOR; |
| 7693 | let r2; |
| 7694 | switch (e3) { |
| 7695 | case 16777216: |
| 7696 | case 33554432: |
| 7697 | r2 = this._getColorFromAnsiIndex(t3); |
| 7698 | break; |
| 7699 | case 50331648: |
| 7700 | const e4 = c.AttributeData.toColorRGB(t3); |
| 7701 | r2 = n.channels.toColor(e4[0], e4[1], e4[2]); |
| 7702 | break; |
| 7703 | default: |
| 7704 | r2 = i3 ? n.color.opaque(this._config.colors.foreground) : this._config.colors.background; |
| 7705 | } |
| 7706 | return r2; |
| 7707 | } |
no test coverage detected