mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
add path to benchmark
This commit is contained in:
@@ -14,7 +14,10 @@
|
||||
"paths": {
|
||||
"common/*": ["../../../src/common/*"],
|
||||
"browser/*": ["../../../src/browser/*"],
|
||||
"SerializeAddon": ["../src/SerializeAddon"]
|
||||
"SerializeAddon": ["../src/SerializeAddon"],
|
||||
"xterm-addon-serialize": [
|
||||
"../typings/xterm-addon-serialize.d.ts"
|
||||
]
|
||||
}
|
||||
},
|
||||
"include": ["../**/*", "../../../typings/xterm.d.ts"],
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
import { DEFAULT_ANSI_COLORS } from 'browser/services/ThemeService';
|
||||
import { IAttributeData, IColor } from 'common/Types';
|
||||
import { IBuffer, IBufferCell, IBufferRange, ITerminalAddon, Terminal } from 'xterm';
|
||||
import { SerializeAddon as ISerializeApi } from 'xterm-addon-serialize';
|
||||
|
||||
function constrain(value: number, low: number, high: number): number {
|
||||
return Math.max(low, Math.min(value, high));
|
||||
@@ -411,7 +412,7 @@ class StringSerializeHandler extends BaseSerializeHandler {
|
||||
}
|
||||
}
|
||||
|
||||
export class SerializeAddon implements ITerminalAddon {
|
||||
export class SerializeAddon implements ITerminalAddon , ISerializeApi {
|
||||
private _terminal: Terminal | undefined;
|
||||
|
||||
public activate(terminal: Terminal): void {
|
||||
|
||||
@@ -17,6 +17,9 @@
|
||||
],
|
||||
"browser/*": [
|
||||
"../../../src/browser/*"
|
||||
],
|
||||
"xterm-addon-serialize": [
|
||||
"../typings/xterm-addon-serialize.d.ts"
|
||||
]
|
||||
},
|
||||
"strict": true,
|
||||
|
||||
@@ -11,7 +11,10 @@
|
||||
"paths": {
|
||||
"common/*": ["../../../src/common/*"],
|
||||
"browser/*": ["../../../src/browser/*"],
|
||||
"UnicodeGraphemeProvider": ["../src/UnicodeGraphemeProvider"]
|
||||
"UnicodeGraphemeProvider": ["../src/UnicodeGraphemeProvider"],
|
||||
"xterm-addon-unicode-graphemes": [
|
||||
"../typings/xterm-addon-unicode-graphemes.d.ts"
|
||||
]
|
||||
}
|
||||
},
|
||||
"include": ["../**/*", "../../../typings/xterm.d.ts"],
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
|
||||
import { Terminal, ITerminalAddon, IUnicodeHandling } from 'xterm';
|
||||
import { UnicodeGraphemeProvider } from './UnicodeGraphemeProvider';
|
||||
import { UnicodeGraphemesAddon as PublicApi } from 'xterm-addon-unicode-graphemes';
|
||||
|
||||
|
||||
export class UnicodeGraphemesAddon implements ITerminalAddon {
|
||||
export class UnicodeGraphemesAddon implements ITerminalAddon , PublicApi {
|
||||
private _provider15Graphemes?: UnicodeGraphemeProvider;
|
||||
private _provider15?: UnicodeGraphemeProvider;
|
||||
private _unicode?: IUnicodeHandling;
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
"paths": {
|
||||
"common/*": [
|
||||
"../../../src/common/*"
|
||||
],
|
||||
"xterm-addon-unicode-graphemes": [
|
||||
"../typings/xterm-addon-unicode-graphemes.d.ts"
|
||||
]
|
||||
},
|
||||
"types": [
|
||||
|
||||
Reference in New Issue
Block a user