File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "source" : {
33 "include" : [
4- " src/xterm.js" ,
5- " src/handlers/Clipboard.js" ,
6- " addons/attach/attach.js" ,
7- " addons/fit/fit.js" ,
8- " addons/fullscreen/fullscreen.js" ,
9- " addons/linkify/linkify.js"
10- ]
4+ " src/"
5+ ],
6+ "exclude" : [
7+ " src/test/"
8+ ],
9+ "excludePattern" : " src/.+\\ .test\\ .(js|ts)$"
1110 },
1211 "opts" : {
1312 "readme" : " README.md" ,
Original file line number Diff line number Diff line change 2020 "express" : " 4.13.4" ,
2121 "express-ws" : " 2.0.0-rc.1" ,
2222 "glob" : " ^7.0.5" ,
23- "jsdoc" : " 3.4.0 " ,
23+ "jsdoc" : " 3.4.3 " ,
2424 "mocha" : " 2.5.3" ,
2525 "nodemon" : " 1.10.2" ,
2626 "pty.js" : " 0.3.1" ,
Original file line number Diff line number Diff line change 11/**
2- * xterm.js: xterm, in the browser
3- * Copyright (c) 2014-2016, SourceLair Private Company (www.sourcelair.com (MIT License)
2+ * @license MIT
43 */
54
65import { ITerminal } from './Interfaces' ;
Original file line number Diff line number Diff line change 11/**
2- * xterm.js: xterm, in the browser
3- * Copyright (c) 2014-2016, SourceLair Private Company (www.sourcelair.com (MIT License)
2+ * @license MIT
43 */
54
65function EventEmitter ( ) {
Original file line number Diff line number Diff line change 11/**
2- * xterm.js: xterm, in the browser
3- * Copyright (c) 2014-2016, SourceLair Private Company (www.sourcelair.com (MIT License)
2+ * @license MIT
43 */
54
65export interface ITerminal {
Original file line number Diff line number Diff line change 11/**
2- * xterm.js: xterm, in the browser
3- * Copyright (c) 2014-2016, SourceLair Private Company (www.sourcelair.com (MIT License)
2+ * @license MIT
43 */
54
65import { ITerminal } from './Interfaces' ;
Original file line number Diff line number Diff line change 1- /*
2- * Implements the attach method, that
3- * attaches the terminal to a WebSocket stream.
4- *
5- * The bidirectional argument indicates, whether the terminal should
6- * send data to the socket as well and is true, by default.
1+ /**
2+ * Implements the attach method, that attaches the terminal to a WebSocket stream.
3+ * @module xterm/addons/attach/attach
4+ * @license MIT
75 */
86
97( function ( attach ) {
2624} ) ( function ( Xterm ) {
2725 'use strict' ;
2826
29- /**
30- * This module provides methods for attaching a terminal to a WebSocket
31- * stream.
32- *
33- * @module xterm/addons/attach/attach
34- */
3527 var exports = { } ;
3628
3729 /**
Original file line number Diff line number Diff line change 1- /*
2- * Fit terminal columns and rows to the dimensions of its
3- * DOM element.
1+ /**
2+ * Fit terminal columns and rows to the dimensions of its DOM element.
43 *
5- * Approach:
6- * - Rows: Truncate the division of the terminal parent element height
7- * by the terminal row height
4+ * ## Approach
5+ * - Rows: Truncate the division of the terminal parent element height by the terminal row height.
86 *
9- * - Columns: Truncate the division of the terminal parent element width by
10- * the terminal character width (apply display: inline at the
11- * terminal row and truncate its width with the current number
12- * of columns)
7+ * - Columns: Truncate the division of the terminal parent element width by the terminal character
8+ * width (apply display: inline at the terminal row and truncate its width with the current
9+ * number of columns).
10+ * @module xterm/addons/fit/fit
11+ * @license MIT
1312 */
13+
1414( function ( fit ) {
1515 if ( typeof exports === 'object' && typeof module === 'object' ) {
1616 /*
2929 fit ( window . Terminal ) ;
3030 }
3131} ) ( function ( Xterm ) {
32- /**
33- * This module provides methods for fitting a terminal's size to a parent container.
34- *
35- * @module xterm/addons/fit/fit
36- */
3732 var exports = { } ;
3833
3934 exports . proposeGeometry = function ( term ) {
Original file line number Diff line number Diff line change 1- /*
1+ /**
22 * Fullscreen addon for xterm.js
3- *
4- * Implements the toggleFullscreen function.
5- *
6- * If the `fullscreen` argument has been supplied, then
7- * if it is true, the fullscreen mode gets turned on,
8- * if it is false or null, the fullscreen mode gets turned off.
9- *
10- * If the `fullscreen` argument has not been supplied, the
11- * fullscreen mode is being toggled.
3+ * @module xterm/addons/fullscreen/fullscreen
4+ * @license MIT
125 */
136( function ( fullscreen ) {
147 if ( typeof exports === 'object' && typeof module === 'object' ) {
3023} ) ( function ( Xterm ) {
3124 var exports = { } ;
3225
26+ /**
27+ * Toggle the given terminal's fullscreen mode.
28+ * @param {Xterm } term - The terminal to toggle full screen mode
29+ * @param {boolean } fullscreen - Toggle fullscreen on (true) or off (false)
30+ */
3331 exports . toggleFullScreen = function ( term , fullscreen ) {
3432 var fn ;
3533
Original file line number Diff line number Diff line change 1+ /**
2+ * Methods for turning URL subscrings in the terminal's content into links (`a` DOM elements).
3+ * @module xterm/addons/linkify/linkify
4+ * @license MIT
5+ */
6+
17( function ( linkify ) {
28 if ( typeof exports === 'object' && typeof module === 'object' ) {
39 /*
1824} ) ( function ( Xterm ) {
1925 'use strict' ;
2026
21- /**
22- * This module provides methods for convertings valid URL substrings
23- * into HTML anchor elements (links), inside a terminal view.
24- *
25- * @module xterm/addons/linkify/linkify
26- */
2727 var exports = { } ,
2828 protocolClause = '(https?:\\/\\/)' ,
2929 domainCharacterSet = '[\\da-z\\.-]+' ,
You can’t perform that action at this time.
0 commit comments