Sha256: b323755c514ce1a364bb56f06b44e27ab36efdae0ca983713c429192da7cc82e

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

{"version":3,"file":"fullscreen.js","sources":["../../../src/addons/fullscreen/fullscreen.ts","../../../node_modules/browser-pack/_prelude.js"],"sourcesContent":["/**\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\n * @license MIT\n */\n\n/**\n * Toggle the given terminal's fullscreen mode.\n * @param {Terminal} term - The terminal to toggle full screen mode\n * @param {boolean} fullscreen - Toggle fullscreen on (true) or off (false)\n */\nexport function toggleFullScreen(term, fullscreen) {\n  var fn;\n\n  if (typeof fullscreen == 'undefined') {\n    fn = (term.element.classList.contains('fullscreen')) ? 'remove' : 'add';\n  } else if (!fullscreen) {\n    fn = 'remove';\n  } else {\n    fn = 'add';\n  }\n\n  term.element.classList[fn]('fullscreen');\n};\n\nexport function apply(terminalConstructor) {\n  terminalConstructor.prototype.toggleFullScreen = function (fullscreen) {\n    return toggleFullScreen(this, fullscreen);\n  };\n}\n",null],"names":[],"mappings":"ACAA;;;ADUA;AACA;AAEA;AACA;AACA;AAAA;AACA;AACA;AAAA;AACA;AACA;AAEA;AACA;AAZA;AAYC;AAED;AACA;AACA;AACA;AACA;AAJA;;;"}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rvt-1.1.0 vendor/assets/javascripts/xterm/addons/fullscreen/fullscreen.js.map