Debian Codegraph @

node/@xterm/addon-webgl/src/Constants.ts

raw
1 /**
2 * Copyright (c) 2017 The xterm.js authors. All rights reserved.
3 * @license MIT
4 */
5
6 import { isFirefox, isLegacyEdge } from 'common/Platform';
7
8 export const DIM_OPACITY = 0.5;
9 // The text baseline is set conditionally by browser. Using 'ideographic' for Firefox or Legacy Edge
10 // would result in truncated text (Issue 3353). Using 'bottom' for Chrome would result in slightly
11 // unaligned Powerline fonts (PR 3356#issuecomment-850928179).
12 export const TEXT_BASELINE: CanvasTextBaseline = isFirefox || isLegacyEdge ? 'bottom' : 'ideographic';