mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-11 12:46:49 +00:00
- Upgrade vendored noVNC library in static/js/novnc/ from 1.2.0 to 1.7.0 - Remove obsolete IE11 polyfills (promise.js, browser-es-module-loader) - Preserve custom app/styles/lite.css for embedded lite view - Update console-vnc-full.html stylesheets, modern icon set, and dialogs - Modernize console-vnc-full.html startup via UI.start() with Django context mapping - Dynamically resolve package.json and localization dictionaries via import.meta.url
27 lines
687 B
JavaScript
27 lines
687 B
JavaScript
/*
|
|
* noVNC: HTML5 VNC client
|
|
* Copyright (C) 2019 The noVNC authors
|
|
* Licensed under MPL 2.0 (see LICENSE.txt)
|
|
*
|
|
* See README.md for usage and integration instructions.
|
|
*
|
|
*/
|
|
|
|
import TightDecoder from './tight.js';
|
|
|
|
export default class TightPNGDecoder extends TightDecoder {
|
|
_pngRect(x, y, width, height, sock, display, depth) {
|
|
let data = this._readData(sock);
|
|
if (data === null) {
|
|
return false;
|
|
}
|
|
|
|
display.imageRect(x, y, width, height, "image/png", data);
|
|
|
|
return true;
|
|
}
|
|
|
|
_basicRect(ctl, x, y, width, height, sock, display, depth) {
|
|
throw new Error("BasicCompression received in TightPNG rect");
|
|
}
|
|
}
|