diff --git a/src/Viewport.ts b/src/Viewport.ts index 11889daeb7..8a3e4fc088 100644 --- a/src/Viewport.ts +++ b/src/Viewport.ts @@ -8,15 +8,19 @@ import { ITerminal } from './Interfaces'; /** * Represents the viewport of a terminal, the visible area within the larger buffer of output. * Logic for the virtual scroll bar is included in this object. - * @param viewportElement The DOM element acting as the viewport. - * @param scrollArea The DOM element acting as the scroll area. - * @param charMeasureElement A DOM element used to measure the character size of. the terminal. */ export class Viewport { private currentRowHeight: number; private lastRecordedBufferLength: number; private lastRecordedViewportHeight: number; + /** + * Creates a new Viewport. + * @param terminal The terminal this viewport belongs to. + * @param viewportElement The DOM element acting as the viewport. + * @param scrollArea The DOM element acting as the scroll area. + * @param charMeasureElement A DOM element used to measure the character size of. the terminal. + */ constructor( private terminal: ITerminal, private viewportElement: HTMLElement, diff --git a/src/xterm.js b/src/xterm.js index c88423d437..58f305b97b 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -5130,7 +5130,6 @@ var wcwidth = (function(opts) { Terminal.EventEmitter = EventEmitter; Terminal.CompositionHelper = CompositionHelper; -Terminal.Viewport = Viewport; Terminal.inherits = inherits; /**