@xterm/addon-webgl 0.20.0-beta.1 → 0.20.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xterm/addon-webgl",
3
- "version": "0.20.0-beta.1",
3
+ "version": "0.20.0-beta.11",
4
4
  "author": {
5
5
  "name": "The xterm.js authors",
6
6
  "url": "https://xtermjs.org/"
@@ -23,8 +23,8 @@
23
23
  "prepublishOnly": "npm run package",
24
24
  "start": "node ../../demo/start"
25
25
  },
26
- "commit": "4237d82923548a550c4c22941b12f319bd477b8a",
26
+ "commit": "d42f2b54ff73472153d35a5b280230c7364e7678",
27
27
  "peerDependencies": {
28
- "@xterm/xterm": "^6.1.0-beta.1"
28
+ "@xterm/xterm": "^6.1.0-beta.12"
29
29
  }
30
30
  }
@@ -5,7 +5,7 @@
5
5
 
6
6
  import { IColorContrastCache } from 'browser/Types';
7
7
  import { DIM_OPACITY, TEXT_BASELINE } from './Constants';
8
- import { tryDrawCustomChar } from './CustomGlyphs';
8
+ import { tryDrawCustomGlyph } from './customGlyphs/CustomGlyphRasterizer';
9
9
  import { computeNextVariantOffset, treatGlyphAsBackgroundColor, isPowerlineGlyph, isRestrictedPowerlineGlyph, throwIfFalsy } from 'browser/renderer/shared/RendererUtils';
10
10
  import { IBoundingBox, ICharAtlasConfig, IRasterizedGlyph, ITextureAtlas } from './Types';
11
11
  import { NULL_COLOR, channels, color, rgba } from 'common/Color';
@@ -514,7 +514,7 @@ export class TextureAtlas implements ITextureAtlas {
514
514
  // Draw custom characters if applicable
515
515
  let customGlyph = false;
516
516
  if (this._config.customGlyphs !== false) {
517
- customGlyph = tryDrawCustomChar(this._tmpCtx, chars, padding, padding, this._config.deviceCellWidth, this._config.deviceCellHeight, this._config.fontSize, this._config.devicePixelRatio);
517
+ customGlyph = tryDrawCustomGlyph(this._tmpCtx, chars, padding, padding, this._config.deviceCellWidth, this._config.deviceCellHeight, this._config.fontSize, this._config.devicePixelRatio, backgroundColor.css);
518
518
  }
519
519
 
520
520
  // Whether to clear pixels based on a threshold difference between the glyph color and the