@xterm/addon-webgl 0.20.0-beta.20 → 0.20.0-beta.21
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/lib/addon-webgl.js +1 -1
- package/lib/addon-webgl.js.map +1 -1
- package/lib/addon-webgl.mjs +15 -15
- package/lib/addon-webgl.mjs.map +3 -3
- package/package.json +3 -3
- package/src/customGlyphs/CustomGlyphDefinitions.ts +106 -1
- package/src/customGlyphs/CustomGlyphRasterizer.ts +11 -3
- package/typings/addon-webgl.d.ts +7 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xterm/addon-webgl",
|
|
3
|
-
"version": "0.20.0-beta.
|
|
3
|
+
"version": "0.20.0-beta.21",
|
|
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": "
|
|
26
|
+
"commit": "c04806fc92bea3b2402071905b157df8cf9a92ea",
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@xterm/xterm": "^6.1.0-beta.
|
|
28
|
+
"@xterm/xterm": "^6.1.0-beta.22"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -3,10 +3,35 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { CustomGlyphDefinitionType, CustomGlyphScaleType, CustomGlyphVectorType, type CustomGlyphCharacterDefinition, type CustomGlyphPathDrawFunctionDefinition } from './Types';
|
|
6
|
+
import { CustomGlyphDefinitionType, CustomGlyphScaleType, CustomGlyphVectorType, type CustomGlyphCharacterDefinition, type CustomGlyphDefinitionPart, type CustomGlyphPathDrawFunctionDefinition } from './Types';
|
|
7
7
|
|
|
8
8
|
/* eslint-disable max-len */
|
|
9
9
|
|
|
10
|
+
namespace GitBranchSymbolsParts {
|
|
11
|
+
// Lines
|
|
12
|
+
export const LINE_H: CustomGlyphDefinitionPart = Object.freeze({ type: CustomGlyphDefinitionType.PATH_FUNCTION, data: Shapes.LEFT_TO_RIGHT, strokeWidth: 1 });
|
|
13
|
+
export const LINE_V: CustomGlyphDefinitionPart = Object.freeze({ type: CustomGlyphDefinitionType.PATH_FUNCTION, data: Shapes.TOP_TO_BOTTOM, strokeWidth: 1 });
|
|
14
|
+
|
|
15
|
+
// Fading lines
|
|
16
|
+
export const FADE_RIGHT: CustomGlyphDefinitionPart = Object.freeze({ type: CustomGlyphDefinitionType.PATH_FUNCTION, data: 'M0,.5 L.28,.5 M.32,.5 L.52,.5 M.60,.5 L.72,.5 M.84,.5 L.90,.5', strokeWidth: 1 });
|
|
17
|
+
export const FADE_LEFT: CustomGlyphDefinitionPart = Object.freeze({ type: CustomGlyphDefinitionType.PATH_FUNCTION, data: 'M.10,.5 L.16,.5 M.28,.5 L.40,.5 M.48,.5 L.68,.5 M.72,.5 L1,.5', strokeWidth: 1 });
|
|
18
|
+
export const FADE_DOWN: CustomGlyphDefinitionPart = Object.freeze({ type: CustomGlyphDefinitionType.PATH_FUNCTION, data: 'M.5,0 L.5,.28 M.5,.32 L.5,.52 M.5,.60 L.5,.72 M.5,.84 L.5,.90', strokeWidth: 1 });
|
|
19
|
+
export const FADE_UP: CustomGlyphDefinitionPart = Object.freeze({ type: CustomGlyphDefinitionType.PATH_FUNCTION, data: 'M.5,.10 L.5,.16 M.5,.28 L.5,.40 M.5,.48 L.5,.68 M.5,.72 L.5,1', strokeWidth: 1 });
|
|
20
|
+
|
|
21
|
+
// Curved corners
|
|
22
|
+
export const CURVE_DOWN_RIGHT: CustomGlyphDefinitionPart = Object.freeze({ type: CustomGlyphDefinitionType.PATH_FUNCTION, data: (xp: number, yp: number) => `M.5,1 L.5,${.5 + (yp / .15 * .5)} C.5,${.5 + (yp / .15 * .5)},.5,.5,1,.5`, strokeWidth: 1 });
|
|
23
|
+
export const CURVE_DOWN_LEFT: CustomGlyphDefinitionPart = Object.freeze({ type: CustomGlyphDefinitionType.PATH_FUNCTION, data: (xp: number, yp: number) => `M.5,1 L.5,${.5 + (yp / .15 * .5)} C.5,${.5 + (yp / .15 * .5)},.5,.5,0,.5`, strokeWidth: 1 });
|
|
24
|
+
export const CURVE_UP_RIGHT: CustomGlyphDefinitionPart = Object.freeze({ type: CustomGlyphDefinitionType.PATH_FUNCTION, data: (xp: number, yp: number) => `M.5,0 L.5,${.5 - (yp / .15 * .5)} C.5,${.5 - (yp / .15 * .5)},.5,.5,1,.5`, strokeWidth: 1 });
|
|
25
|
+
export const CURVE_UP_LEFT: CustomGlyphDefinitionPart = Object.freeze({ type: CustomGlyphDefinitionType.PATH_FUNCTION, data: (xp: number, yp: number) => `M.5,0 L.5,${.5 - (yp / .15 * .5)} C.5,${.5 - (yp / .15 * .5)},.5,.5,0,.5`, strokeWidth: 1 });
|
|
26
|
+
|
|
27
|
+
// Node parts
|
|
28
|
+
export const NODE_FILL: CustomGlyphDefinitionPart = Object.freeze({ type: CustomGlyphDefinitionType.PATH, data: 'M.85,.5 A.35,.175,0,1,1,.15,.5 A.35,.175,0,1,1,.85,.5' });
|
|
29
|
+
export const NODE_STROKE: CustomGlyphDefinitionPart = Object.freeze({ type: CustomGlyphDefinitionType.PATH, data: 'M.85,.5 A.35,.175,0,1,1,.15,.5 A.35,.175,0,1,1,.85,.5', strokeWidth: 1 });
|
|
30
|
+
export const NODE_LINE_RIGHT: CustomGlyphDefinitionPart = Object.freeze({ type: CustomGlyphDefinitionType.PATH, data: 'M1,.5 L.85,.5', strokeWidth: 1 });
|
|
31
|
+
export const NODE_LINE_LEFT: CustomGlyphDefinitionPart = Object.freeze({ type: CustomGlyphDefinitionType.PATH, data: 'M0,.5 L.15,.5', strokeWidth: 1 });
|
|
32
|
+
export const NODE_LINE_DOWN: CustomGlyphDefinitionPart = Object.freeze({ type: CustomGlyphDefinitionType.PATH, data: 'M.5,1 L.5,.7', strokeWidth: 1 });
|
|
33
|
+
export const NODE_LINE_UP: CustomGlyphDefinitionPart = Object.freeze({ type: CustomGlyphDefinitionType.PATH, data: 'M.5,0 L.5,.3', strokeWidth: 1 });
|
|
34
|
+
}
|
|
10
35
|
|
|
11
36
|
export const customGlyphDefinitions: { [index: string]: CustomGlyphCharacterDefinition | undefined } = {
|
|
12
37
|
// #region Box Drawing (2500-257F)
|
|
@@ -299,6 +324,86 @@ export const customGlyphDefinitions: { [index: string]: CustomGlyphCharacterDefi
|
|
|
299
324
|
|
|
300
325
|
// #endregion
|
|
301
326
|
|
|
327
|
+
// #region Git Branch Symbols (F5D0-F60D)
|
|
328
|
+
|
|
329
|
+
// Initially added in Kitty (https://github.com/kovidgoyal/kitty/pull/7681)
|
|
330
|
+
// then in Wezterm (https://github.com/wezterm/wezterm/issues/6328).
|
|
331
|
+
|
|
332
|
+
// Straight lines (F5D0-F5D9)
|
|
333
|
+
'\u{F5D0}': GitBranchSymbolsParts.LINE_H, // Same as 2500
|
|
334
|
+
'\u{F5D1}': GitBranchSymbolsParts.LINE_V, // Same as 2502
|
|
335
|
+
'\u{F5D2}': GitBranchSymbolsParts.FADE_RIGHT,
|
|
336
|
+
'\u{F5D3}': GitBranchSymbolsParts.FADE_LEFT,
|
|
337
|
+
'\u{F5D4}': GitBranchSymbolsParts.FADE_DOWN,
|
|
338
|
+
'\u{F5D5}': GitBranchSymbolsParts.FADE_UP,
|
|
339
|
+
|
|
340
|
+
// Curved lines (F5D6-F5D9)
|
|
341
|
+
'\u{F5D6}': GitBranchSymbolsParts.CURVE_DOWN_RIGHT, // Same as 256D)
|
|
342
|
+
'\u{F5D7}': GitBranchSymbolsParts.CURVE_DOWN_LEFT, // Same as 256E)
|
|
343
|
+
'\u{F5D8}': GitBranchSymbolsParts.CURVE_UP_RIGHT, // Same as 2570)
|
|
344
|
+
'\u{F5D9}': GitBranchSymbolsParts.CURVE_UP_LEFT, // Same as 256F)
|
|
345
|
+
|
|
346
|
+
// Branching lines (F5DA-F5ED)
|
|
347
|
+
'\u{F5DA}': [GitBranchSymbolsParts.LINE_V, GitBranchSymbolsParts.CURVE_UP_RIGHT],
|
|
348
|
+
'\u{F5DB}': [GitBranchSymbolsParts.LINE_V, GitBranchSymbolsParts.CURVE_DOWN_RIGHT],
|
|
349
|
+
'\u{F5DC}': [GitBranchSymbolsParts.CURVE_DOWN_RIGHT, GitBranchSymbolsParts.CURVE_UP_RIGHT],
|
|
350
|
+
'\u{F5DD}': [GitBranchSymbolsParts.LINE_V, GitBranchSymbolsParts.CURVE_UP_LEFT],
|
|
351
|
+
'\u{F5DE}': [GitBranchSymbolsParts.LINE_V, GitBranchSymbolsParts.CURVE_DOWN_LEFT],
|
|
352
|
+
'\u{F5DF}': [GitBranchSymbolsParts.CURVE_DOWN_LEFT, GitBranchSymbolsParts.CURVE_UP_LEFT],
|
|
353
|
+
'\u{F5E0}': [GitBranchSymbolsParts.LINE_H, GitBranchSymbolsParts.CURVE_DOWN_LEFT],
|
|
354
|
+
'\u{F5E1}': [GitBranchSymbolsParts.LINE_H, GitBranchSymbolsParts.CURVE_DOWN_RIGHT],
|
|
355
|
+
'\u{F5E2}': [GitBranchSymbolsParts.CURVE_DOWN_LEFT, GitBranchSymbolsParts.CURVE_DOWN_RIGHT],
|
|
356
|
+
'\u{F5E3}': [GitBranchSymbolsParts.LINE_H, GitBranchSymbolsParts.CURVE_UP_LEFT],
|
|
357
|
+
'\u{F5E4}': [GitBranchSymbolsParts.LINE_H, GitBranchSymbolsParts.CURVE_UP_RIGHT],
|
|
358
|
+
'\u{F5E5}': [GitBranchSymbolsParts.CURVE_UP_LEFT, GitBranchSymbolsParts.CURVE_UP_RIGHT],
|
|
359
|
+
'\u{F5E6}': [GitBranchSymbolsParts.LINE_V, GitBranchSymbolsParts.CURVE_UP_LEFT, GitBranchSymbolsParts.CURVE_UP_RIGHT],
|
|
360
|
+
'\u{F5E7}': [GitBranchSymbolsParts.LINE_V, GitBranchSymbolsParts.CURVE_DOWN_LEFT, GitBranchSymbolsParts.CURVE_DOWN_RIGHT],
|
|
361
|
+
'\u{F5E8}': [GitBranchSymbolsParts.LINE_H, GitBranchSymbolsParts.CURVE_DOWN_LEFT, GitBranchSymbolsParts.CURVE_UP_LEFT],
|
|
362
|
+
'\u{F5E9}': [GitBranchSymbolsParts.LINE_H, GitBranchSymbolsParts.CURVE_DOWN_RIGHT, GitBranchSymbolsParts.CURVE_UP_RIGHT],
|
|
363
|
+
'\u{F5EA}': [GitBranchSymbolsParts.LINE_V, GitBranchSymbolsParts.CURVE_DOWN_RIGHT, GitBranchSymbolsParts.CURVE_UP_LEFT],
|
|
364
|
+
'\u{F5EB}': [GitBranchSymbolsParts.LINE_V, GitBranchSymbolsParts.CURVE_DOWN_LEFT, GitBranchSymbolsParts.CURVE_UP_RIGHT],
|
|
365
|
+
'\u{F5EC}': [GitBranchSymbolsParts.LINE_H, GitBranchSymbolsParts.CURVE_DOWN_RIGHT, GitBranchSymbolsParts.CURVE_UP_LEFT],
|
|
366
|
+
'\u{F5ED}': [GitBranchSymbolsParts.LINE_H, GitBranchSymbolsParts.CURVE_DOWN_LEFT, GitBranchSymbolsParts.CURVE_UP_RIGHT],
|
|
367
|
+
|
|
368
|
+
// Nodes (F5EE-F5FB)
|
|
369
|
+
'\u{F5EE}': [GitBranchSymbolsParts.NODE_FILL, GitBranchSymbolsParts.NODE_STROKE],
|
|
370
|
+
'\u{F5EF}': GitBranchSymbolsParts.NODE_STROKE,
|
|
371
|
+
'\u{F5F0}': [GitBranchSymbolsParts.NODE_FILL, GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_RIGHT],
|
|
372
|
+
'\u{F5F1}': [GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_RIGHT],
|
|
373
|
+
'\u{F5F2}': [GitBranchSymbolsParts.NODE_FILL, GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_LEFT],
|
|
374
|
+
'\u{F5F3}': [GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_LEFT],
|
|
375
|
+
'\u{F5F4}': [GitBranchSymbolsParts.NODE_FILL, GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_LEFT, GitBranchSymbolsParts.NODE_LINE_RIGHT],
|
|
376
|
+
'\u{F5F5}': [GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_LEFT, GitBranchSymbolsParts.NODE_LINE_RIGHT],
|
|
377
|
+
'\u{F5F6}': [GitBranchSymbolsParts.NODE_FILL, GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_DOWN],
|
|
378
|
+
'\u{F5F7}': [GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_DOWN],
|
|
379
|
+
'\u{F5F8}': [GitBranchSymbolsParts.NODE_FILL, GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_UP],
|
|
380
|
+
'\u{F5F9}': [GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_UP],
|
|
381
|
+
'\u{F5FA}': [GitBranchSymbolsParts.NODE_FILL, GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_DOWN, GitBranchSymbolsParts.NODE_LINE_UP],
|
|
382
|
+
'\u{F5FB}': [GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_DOWN, GitBranchSymbolsParts.NODE_LINE_UP],
|
|
383
|
+
|
|
384
|
+
// Extended Nodes (F5FC-F60D)
|
|
385
|
+
// These were added a little later https://github.com/kovidgoyal/kitty/pull/7805
|
|
386
|
+
'\u{F5FC}': [GitBranchSymbolsParts.NODE_FILL, GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_DOWN, GitBranchSymbolsParts.NODE_LINE_RIGHT],
|
|
387
|
+
'\u{F5FD}': [GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_DOWN, GitBranchSymbolsParts.NODE_LINE_RIGHT],
|
|
388
|
+
'\u{F5FE}': [GitBranchSymbolsParts.NODE_FILL, GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_DOWN, GitBranchSymbolsParts.NODE_LINE_LEFT],
|
|
389
|
+
'\u{F5FF}': [GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_DOWN, GitBranchSymbolsParts.NODE_LINE_LEFT],
|
|
390
|
+
'\u{F600}': [GitBranchSymbolsParts.NODE_FILL, GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_UP, GitBranchSymbolsParts.NODE_LINE_RIGHT],
|
|
391
|
+
'\u{F601}': [GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_UP, GitBranchSymbolsParts.NODE_LINE_RIGHT],
|
|
392
|
+
'\u{F602}': [GitBranchSymbolsParts.NODE_FILL, GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_UP, GitBranchSymbolsParts.NODE_LINE_LEFT],
|
|
393
|
+
'\u{F603}': [GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_UP, GitBranchSymbolsParts.NODE_LINE_LEFT],
|
|
394
|
+
'\u{F604}': [GitBranchSymbolsParts.NODE_FILL, GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_UP, GitBranchSymbolsParts.NODE_LINE_DOWN, GitBranchSymbolsParts.NODE_LINE_RIGHT],
|
|
395
|
+
'\u{F605}': [GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_UP, GitBranchSymbolsParts.NODE_LINE_DOWN, GitBranchSymbolsParts.NODE_LINE_RIGHT],
|
|
396
|
+
'\u{F606}': [GitBranchSymbolsParts.NODE_FILL, GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_UP, GitBranchSymbolsParts.NODE_LINE_DOWN, GitBranchSymbolsParts.NODE_LINE_LEFT],
|
|
397
|
+
'\u{F607}': [GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_UP, GitBranchSymbolsParts.NODE_LINE_DOWN, GitBranchSymbolsParts.NODE_LINE_LEFT],
|
|
398
|
+
'\u{F608}': [GitBranchSymbolsParts.NODE_FILL, GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_DOWN, GitBranchSymbolsParts.NODE_LINE_LEFT, GitBranchSymbolsParts.NODE_LINE_RIGHT],
|
|
399
|
+
'\u{F609}': [GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_DOWN, GitBranchSymbolsParts.NODE_LINE_LEFT, GitBranchSymbolsParts.NODE_LINE_RIGHT],
|
|
400
|
+
'\u{F60A}': [GitBranchSymbolsParts.NODE_FILL, GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_UP, GitBranchSymbolsParts.NODE_LINE_LEFT, GitBranchSymbolsParts.NODE_LINE_RIGHT],
|
|
401
|
+
'\u{F60B}': [GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_UP, GitBranchSymbolsParts.NODE_LINE_LEFT, GitBranchSymbolsParts.NODE_LINE_RIGHT],
|
|
402
|
+
'\u{F60C}': [GitBranchSymbolsParts.NODE_FILL, GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_UP, GitBranchSymbolsParts.NODE_LINE_DOWN, GitBranchSymbolsParts.NODE_LINE_LEFT, GitBranchSymbolsParts.NODE_LINE_RIGHT],
|
|
403
|
+
'\u{F60D}': [GitBranchSymbolsParts.NODE_STROKE, GitBranchSymbolsParts.NODE_LINE_UP, GitBranchSymbolsParts.NODE_LINE_DOWN, GitBranchSymbolsParts.NODE_LINE_LEFT, GitBranchSymbolsParts.NODE_LINE_RIGHT],
|
|
404
|
+
|
|
405
|
+
// #endregion
|
|
406
|
+
|
|
302
407
|
// #region Symbols for Legacy Computing (1FB00-1FB3B)
|
|
303
408
|
|
|
304
409
|
// https://www.unicode.org/charts/PDF/U1FB00.pdf
|
|
@@ -80,7 +80,7 @@ function drawDefinitionPart(
|
|
|
80
80
|
drawPathFunctionCharacter(ctx, part.data, drawXOffset, drawYOffset, drawWidth, drawHeight, devicePixelRatio, part.strokeWidth);
|
|
81
81
|
break;
|
|
82
82
|
case CustomGlyphDefinitionType.PATH:
|
|
83
|
-
drawPathDefinitionCharacter(ctx, part.data, drawXOffset, drawYOffset, drawWidth, drawHeight);
|
|
83
|
+
drawPathDefinitionCharacter(ctx, part.data, drawXOffset, drawYOffset, drawWidth, drawHeight, devicePixelRatio, part.strokeWidth);
|
|
84
84
|
break;
|
|
85
85
|
case CustomGlyphDefinitionType.PATH_NEGATIVE:
|
|
86
86
|
drawPathNegativeDefinitionCharacter(ctx, part.data, drawXOffset, drawYOffset, drawWidth, drawHeight, devicePixelRatio, backgroundColor);
|
|
@@ -171,7 +171,9 @@ function drawPathDefinitionCharacter(
|
|
|
171
171
|
xOffset: number,
|
|
172
172
|
yOffset: number,
|
|
173
173
|
deviceCellWidth: number,
|
|
174
|
-
deviceCellHeight: number
|
|
174
|
+
deviceCellHeight: number,
|
|
175
|
+
devicePixelRatio: number,
|
|
176
|
+
strokeWidth?: number
|
|
175
177
|
): void {
|
|
176
178
|
const instructions = typeof charDefinition === 'string' ? charDefinition : charDefinition(0, 0);
|
|
177
179
|
ctx.beginPath();
|
|
@@ -272,7 +274,13 @@ function drawPathDefinitionCharacter(
|
|
|
272
274
|
}
|
|
273
275
|
lastCommand = type;
|
|
274
276
|
}
|
|
275
|
-
|
|
277
|
+
if (strokeWidth !== undefined) {
|
|
278
|
+
ctx.strokeStyle = ctx.fillStyle;
|
|
279
|
+
ctx.lineWidth = devicePixelRatio * strokeWidth;
|
|
280
|
+
ctx.stroke();
|
|
281
|
+
} else {
|
|
282
|
+
ctx.fill();
|
|
283
|
+
}
|
|
276
284
|
}
|
|
277
285
|
|
|
278
286
|
/**
|
package/typings/addon-webgl.d.ts
CHANGED
|
@@ -59,19 +59,21 @@ declare module '@xterm/addon-webgl' {
|
|
|
59
59
|
* - Box Drawing (U+2500-U+257F)
|
|
60
60
|
* - Box Elements (U+2580-U+259F)
|
|
61
61
|
* - Braille Patterns (U+2800-U+28FF)
|
|
62
|
-
* - Powerline Symbols (U+E0A0–U+E0D4
|
|
62
|
+
* - Powerline Symbols (U+E0A0–U+E0D4, Private Use Area with widespread
|
|
63
|
+
* adoption)
|
|
64
|
+
* - Git Branch Symbols (U+F5D0-U+F60D, Private Use Area initially adopted
|
|
65
|
+
* in [Kitty in 2024](https://github.com/kovidgoyal/kitty/pull/7681) by
|
|
66
|
+
* author of [vim-flog](https://github.com/rbong/vim-flog))
|
|
63
67
|
* - Symbols for Legacy Computing (U+1FB00–U+1FBFF)
|
|
64
68
|
*
|
|
65
69
|
* This will typically result in better rendering with continuous lines,
|
|
66
|
-
* even when line height and letter spacing is used.
|
|
67
|
-
* work with the DOM renderer which renders all characters using the font.
|
|
68
|
-
* The default is true.
|
|
70
|
+
* even when line height and letter spacing is used. The default is true.
|
|
69
71
|
*/
|
|
70
72
|
customGlyphs?: boolean;
|
|
71
73
|
|
|
72
74
|
/**
|
|
73
75
|
* Whether to enable the preserveDrawingBuffer flag when creating the WebGL
|
|
74
|
-
* context. This may be useful in tests. This
|
|
76
|
+
* context. This may be useful in tests. This default is false.
|
|
75
77
|
*/
|
|
76
78
|
preserveDrawingBuffer?: boolean
|
|
77
79
|
}
|