@xterm/addon-webgl 0.20.0-beta.10 → 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.10",
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": "b4f4946ccaec77fdf60cb81f2566e2c6188e6237",
26
+ "commit": "d42f2b54ff73472153d35a5b280230c7364e7678",
27
27
  "peerDependencies": {
28
- "@xterm/xterm": "^6.1.0-beta.11"
28
+ "@xterm/xterm": "^6.1.0-beta.12"
29
29
  }
30
30
  }
@@ -426,9 +426,7 @@ function drawPathFunctionCharacter(
426
426
  devicePixelRatio: number,
427
427
  strokeWidth?: number
428
428
  ): void {
429
- ctx.strokeStyle = ctx.fillStyle;
430
429
  ctx.beginPath();
431
- ctx.lineWidth = devicePixelRatio * (strokeWidth ?? 1);
432
430
  let actualInstructions: string;
433
431
  if (typeof charDefinition === 'function') {
434
432
  const xp = .15;
@@ -454,7 +452,13 @@ function drawPathFunctionCharacter(
454
452
  }
455
453
  f(ctx, translateArgs(args, deviceCellWidth, deviceCellHeight, xOffset, yOffset, true, devicePixelRatio));
456
454
  }
457
- ctx.stroke();
455
+ if (strokeWidth !== undefined) {
456
+ ctx.strokeStyle = ctx.fillStyle;
457
+ ctx.lineWidth = devicePixelRatio * strokeWidth;
458
+ ctx.stroke();
459
+ } else {
460
+ ctx.fill();
461
+ }
458
462
  ctx.closePath();
459
463
  }
460
464