Set allowSingleLine to false and expand multi-line braces across the codebase via eslint --fix. Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
30 lines
710 B
TypeScript
30 lines
710 B
TypeScript
/**
|
|
* Copyright (c) 2025 The xterm.js authors. All rights reserved.
|
|
* @license MIT
|
|
*/
|
|
|
|
import type { AddonCollection } from '../../types';
|
|
import type { IControlWindow } from '../controlBar';
|
|
import type { Terminal } from '@xterm/xterm';
|
|
|
|
export abstract class BaseWindow implements IControlWindow {
|
|
protected get _terminal(): Terminal {
|
|
return this._terminalPrivate;
|
|
}
|
|
|
|
constructor(
|
|
private _terminalPrivate: Terminal,
|
|
protected readonly _addons: AddonCollection,
|
|
) {
|
|
|
|
}
|
|
|
|
public setTerminal(terminal: Terminal): void {
|
|
this._terminalPrivate = terminal;
|
|
}
|
|
|
|
public abstract id: string;
|
|
public abstract label: string;
|
|
public abstract build(container: HTMLElement): void;
|
|
}
|