@novnc/novnc
Advanced tools
Comparing version 1.3.0-gbfb6ac2 to 1.3.0-gc101a31
@@ -54,3 +54,3 @@ /* | ||
for (let i = 0; i < pixels; i++) { | ||
data[i * 4 + 3] = 255; | ||
data[index + i * 4 + 3] = 255; | ||
} | ||
@@ -57,0 +57,0 @@ |
@@ -227,2 +227,14 @@ /* | ||
getImageData() { | ||
return this._drawCtx.getImageData(0, 0, this.width, this.height); | ||
} | ||
toDataURL(type, encoderOptions) { | ||
return this._backbuffer.toDataURL(type, encoderOptions); | ||
} | ||
toBlob(callback, type, quality) { | ||
return this._backbuffer.toBlob(callback, type, quality); | ||
} | ||
// Track what parts of the visible canvas that need updating | ||
@@ -229,0 +241,0 @@ _damage(x, y, w, h) { |
@@ -15,3 +15,5 @@ /* | ||
encodingTight: 7, | ||
encodingZRLE: 16, | ||
encodingTightPNG: -260, | ||
encodingJPEG: 21, | ||
@@ -42,5 +44,7 @@ pseudoEncodingQualityLevel9: -23, | ||
case encodings.encodingTight: return "Tight"; | ||
case encodings.encodingZRLE: return "ZRLE"; | ||
case encodings.encodingTightPNG: return "TightPNG"; | ||
case encodings.encodingJPEG: return "JPEG"; | ||
default: return "[unknown encoding " + num + "]"; | ||
} | ||
} |
100
docs/API.md
@@ -89,5 +89,9 @@ # noVNC API | ||
[`disconnect`](#disconnected) | ||
[`disconnect`](#disconnect) | ||
- The `disconnect` event is fired when the `RFB` object disconnects. | ||
[`serververification`](#serververification) | ||
- The `serververification` event is fired when the server identity | ||
must be confirmed by the user. | ||
[`credentialsrequired`](#credentialsrequired) | ||
@@ -122,2 +126,7 @@ - The `credentialsrequired` event is fired when more credentials must | ||
[`RFB.approveServer()`](#rfbapproveserver) | ||
- Proceed connecting to the server. Should be called after the | ||
[`serververification`](#serververification) event has fired and the | ||
user has verified the identity of the server. | ||
[`RFB.sendCredentials()`](#rfbsendcredentials) | ||
@@ -127,3 +136,3 @@ - Send credentials to server. Should be called after the | ||
[`RFB.sendKey()`](#rfbsendKey) | ||
[`RFB.sendKey()`](#rfbsendkey) | ||
- Send a key event. | ||
@@ -149,5 +158,14 @@ | ||
[`RFB.clipboardPasteFrom()`](#rfbclipboardPasteFrom) | ||
[`RFB.clipboardPasteFrom()`](#rfbclipboardpastefrom) | ||
- Send clipboard contents to server. | ||
[`RFB.getImageData()`](#rfbgetimagedata) | ||
- Return the current content of the screen as an ImageData array. | ||
[`RFB.toDataURL()`](#rfbtodataurl) | ||
- Return the current content of the screen as data-url encoded image file. | ||
[`RFB.toBlob()`](#rfbtoblob) | ||
- Return the current content of the screen as Blob encoded image file. | ||
### Details | ||
@@ -219,2 +237,16 @@ | ||
#### serververification | ||
The `serververification` event is fired when the server provides | ||
information that allows the user to verify that it is the correct server | ||
and protect against a man-in-the-middle attack. The `detail` property is | ||
an `Object` containing the property `type` which is a `DOMString` | ||
specifying which type of information the server has provided. Other | ||
properties are also available, depending on the value of `type`: | ||
`"RSA"` | ||
- The server identity is verified using just a RSA key. The property | ||
`publickey` is a `Uint8Array` containing the public key in a unsigned | ||
big endian representation. | ||
#### credentialsrequired | ||
@@ -279,2 +311,12 @@ | ||
#### RFB.approveServer() | ||
The `RFB.approveServer()` method is used to signal that the user has | ||
verified the server identity provided in a `serververification` event | ||
and that the connection can continue. | ||
##### Syntax | ||
RFB.approveServer( ); | ||
#### RFB.sendCredentials() | ||
@@ -399,1 +441,53 @@ | ||
- A `DOMString` specifying the clipboard data to send. | ||
#### RFB.getImageData() | ||
The `RFB.getImageData()` method is used to return the current content of the | ||
screen encoded as [`ImageData`](https://developer.mozilla.org/en-US/docs/Web/API/ImageData). | ||
##### Syntax | ||
RFB.getImageData(); | ||
#### RFB.toDataURL() | ||
The `RFB.toDataURL()` method is used to return the current content of the | ||
screen encoded as a data URL that could for example be put in the `src` attribute | ||
of an `img` tag. | ||
##### Syntax | ||
RFB.toDataURL(); | ||
RFB.toDataURL(type); | ||
RFB.toDataURL(type, encoderOptions); | ||
###### Parameters | ||
**`type`** *Optional* | ||
- A string indicating the requested MIME type of the image | ||
**`encoderOptions`** *Optional* | ||
- A number between 0 and 1 indicating the image quality. | ||
#### RFB.toBlob() | ||
The `RFB.toBlob()` method is used to return the current content of the | ||
screen encoded as [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob). | ||
##### Syntax | ||
RFB.toDataURL(callback); | ||
RFB.toDataURL(callback, type); | ||
RFB.toDataURL(callback, type, quality); | ||
###### Parameters | ||
**`callback`** | ||
- A callback function which will receive the resulting [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) | ||
as the single argument | ||
**`type`** *Optional* | ||
- A string indicating the requested MIME type of the image | ||
**`encoderOptions`** *Optional* | ||
- A number between 0 and 1 indicating the image quality. |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -5,0 +5,0 @@ Object.defineProperty(exports, "__esModule", { |
@@ -12,3 +12,3 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -15,0 +15,0 @@ /* |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -20,3 +20,3 @@ Object.defineProperty(exports, "__esModule", { | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -23,0 +23,0 @@ var HextileDecoder = /*#__PURE__*/function () { |
@@ -12,3 +12,3 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -70,3 +70,3 @@ /* | ||
for (var _i = 0; _i < pixels; _i++) { | ||
data[_i * 4 + 3] = 255; | ||
data[index + _i * 4 + 3] = 255; | ||
} | ||
@@ -73,0 +73,0 @@ |
@@ -12,3 +12,3 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -15,0 +15,0 @@ /* |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -24,3 +24,3 @@ Object.defineProperty(exports, "__esModule", { | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -27,0 +27,0 @@ var TightDecoder = /*#__PURE__*/function () { |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "__esModule", { | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
@@ -33,3 +33,3 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
@@ -36,0 +36,0 @@ var TightPNGDecoder = /*#__PURE__*/function (_TightDecoder) { |
@@ -16,3 +16,3 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -19,0 +19,0 @@ var ZRLE_TILE_WIDTH = 64; |
@@ -18,3 +18,3 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -21,0 +21,0 @@ var Deflator = /*#__PURE__*/function () { |
@@ -12,3 +12,3 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -15,0 +15,0 @@ /* |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -26,3 +26,3 @@ Object.defineProperty(exports, "__esModule", { | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -250,2 +250,17 @@ var Display = /*#__PURE__*/function () { | ||
this.viewportChangePos(0, 0); | ||
} | ||
}, { | ||
key: "getImageData", | ||
value: function getImageData() { | ||
return this._drawCtx.getImageData(0, 0, this.width, this.height); | ||
} | ||
}, { | ||
key: "toDataURL", | ||
value: function toDataURL(type, encoderOptions) { | ||
return this._backbuffer.toDataURL(type, encoderOptions); | ||
} | ||
}, { | ||
key: "toBlob", | ||
value: function toBlob(callback, type, quality) { | ||
return this._backbuffer.toBlob(callback, type, quality); | ||
} // Track what parts of the visible canvas that need updating | ||
@@ -252,0 +267,0 @@ |
@@ -22,3 +22,5 @@ "use strict"; | ||
encodingTight: 7, | ||
encodingZRLE: 16, | ||
encodingTightPNG: -260, | ||
encodingJPEG: 21, | ||
pseudoEncodingQualityLevel9: -23, | ||
@@ -59,5 +61,11 @@ pseudoEncodingQualityLevel0: -32, | ||
case encodings.encodingZRLE: | ||
return "ZRLE"; | ||
case encodings.encodingTightPNG: | ||
return "TightPNG"; | ||
case encodings.encodingJPEG: | ||
return "JPEG"; | ||
default: | ||
@@ -64,0 +72,0 @@ return "[unknown encoding " + num + "]"; |
@@ -18,3 +18,3 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -21,0 +21,0 @@ var Inflate = /*#__PURE__*/function () { |
@@ -12,3 +12,3 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -15,0 +15,0 @@ /* |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -30,3 +30,3 @@ Object.defineProperty(exports, "__esModule", { | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -33,0 +33,0 @@ // |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -5,0 +5,0 @@ Object.defineProperty(exports, "__esModule", { |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -5,0 +5,0 @@ Object.defineProperty(exports, "__esModule", { |
@@ -14,3 +14,3 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -17,0 +17,0 @@ var useFallback = !_browser.supportsCursorURIs || _browser.isTouchDevice; |
@@ -12,3 +12,3 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -15,0 +15,0 @@ /* |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -5,0 +5,0 @@ Object.defineProperty(exports, "__esModule", { |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -5,0 +5,0 @@ Object.defineProperty(exports, "__esModule", { |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -5,0 +5,0 @@ Object.defineProperty(exports, "__esModule", { |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -5,0 +5,0 @@ Object.defineProperty(exports, "__esModule", { |
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -32,3 +32,3 @@ Object.defineProperty(exports, "__esModule", { | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
@@ -35,0 +35,0 @@ // this has performance issues in some versions Chromium, and |
{ | ||
"name": "@novnc/novnc", | ||
"version": "1.3.0-gbfb6ac2", | ||
"version": "1.3.0-gc101a31", | ||
"description": "An HTML5 VNC client", | ||
@@ -24,3 +24,3 @@ "browser": "lib/rfb", | ||
"test": "karma start karma.conf.js", | ||
"prepublish": "node ./utils/use_require.js --clean" | ||
"prepublish": "node ./utils/convert.js --clean" | ||
}, | ||
@@ -70,5 +70,2 @@ "repository": { | ||
"po2json": "*", | ||
"requirejs": "*", | ||
"rollup": "*", | ||
"rollup-plugin-node-resolve": "*", | ||
"sinon": "*", | ||
@@ -75,0 +72,0 @@ "sinon-chai": "*" |
@@ -131,3 +131,3 @@ ## noVNC: HTML VNC Client Library and Application | ||
#### Running noVNC | ||
#### Running noVNC from Snap Directly | ||
@@ -138,3 +138,7 @@ You can run the Snap-package installed novnc directly with, for example: | ||
#### Running as a Service (Daemon) | ||
If you want to use certificate files, due to standard Snap confinement restrictions you need to have them in the /home/\<user\>/snap/novnc/current/ directory. If your username is jsmith an example command would be: | ||
`novnc --listen 8443 --cert ~jsmith/snap/novnc/current/self.crt --key ~jsmith/snap/novnc/current/self.key --vnc ubuntu.example.com:5901` | ||
#### Running noVNC from Snap as a Service (Daemon) | ||
The Snap package also has the capability to run a 'novnc' service which can be | ||
@@ -213,2 +217,3 @@ configured to listen on multiple ports connecting to multiple VNC servers | ||
* tight encoding : Michael Tinglof (Mercuri.ca) | ||
* RealVNC RSA AES authentication : USTC Vlab Team | ||
@@ -215,0 +220,0 @@ * Included libraries: |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
1227632
30
106
6
30094
225