xterm-addon-webgl
Advanced tools
Comparing version 0.12.0-beta.36 to 0.12.0-beta.37
{ | ||
"name": "xterm-addon-webgl", | ||
"version": "0.12.0-beta.36", | ||
"version": "0.12.0-beta.37", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "The xterm.js authors", |
@@ -16,3 +16,3 @@ /** | ||
import { tryDrawCustomChar } from 'browser/renderer/CustomGlyphs'; | ||
import { isPowerlineGlyph } from 'browser/renderer/RendererUtils'; | ||
import { excludeFromContrastRatioDemands, isPowerlineGlyph } from 'browser/renderer/RendererUtils'; | ||
@@ -221,4 +221,4 @@ // For debugging purposes, it can be useful to set this to a really tiny value, | ||
private _getForegroundCss(bg: number, bgColorMode: number, bgColor: number, fg: number, fgColorMode: number, fgColor: number, inverse: boolean, bold: boolean, isPowerLineGlyph: boolean): string { | ||
const minimumContrastCss = this._getMinimumContrastCss(bg, bgColorMode, bgColor, fg, fgColorMode, fgColor, inverse, bold, isPowerLineGlyph); | ||
private _getForegroundCss(bg: number, bgColorMode: number, bgColor: number, fg: number, fgColorMode: number, fgColor: number, inverse: boolean, bold: boolean, excludeFromContrastRatioDemands: boolean): string { | ||
const minimumContrastCss = this._getMinimumContrastCss(bg, bgColorMode, bgColor, fg, fgColorMode, fgColor, inverse, bold, excludeFromContrastRatioDemands); | ||
if (minimumContrastCss) { | ||
@@ -287,4 +287,4 @@ return minimumContrastCss; | ||
private _getMinimumContrastCss(bg: number, bgColorMode: number, bgColor: number, fg: number, fgColorMode: number, fgColor: number, inverse: boolean, bold: boolean, isPowerLineGlyph: boolean): string | undefined { | ||
if (this._config.minimumContrastRatio === 1 || isPowerLineGlyph) { | ||
private _getMinimumContrastCss(bg: number, bgColorMode: number, bgColor: number, fg: number, fgColorMode: number, fgColor: number, inverse: boolean, bold: boolean, excludeFromContrastRatioDemands: boolean): string | undefined { | ||
if (this._config.minimumContrastRatio === 1 || excludeFromContrastRatioDemands) { | ||
return undefined; | ||
@@ -378,3 +378,3 @@ } | ||
const powerLineGlyph = chars.length === 1 && isPowerlineGlyph(chars.charCodeAt(0)); | ||
this._tmpCtx.fillStyle = this._getForegroundCss(bg, bgColorMode, bgColor, fg, fgColorMode, fgColor, inverse, bold, powerLineGlyph); | ||
this._tmpCtx.fillStyle = this._getForegroundCss(bg, bgColorMode, bgColor, fg, fgColorMode, fgColor, inverse, bold, excludeFromContrastRatioDemands(chars.charCodeAt(0))); | ||
@@ -381,0 +381,0 @@ // Apply alpha to dim the character |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
478647
3040