test url params

This commit is contained in:
Alt, Michael 2020-01-17 11:39:25 +01:00
parent 9f4a734a4e
commit f6486aa2c3
2 changed files with 8 additions and 19 deletions

View File

@ -7,6 +7,7 @@
*/ */
const urlParams = new URLSearchParams(window.location.search); const urlParams = new URLSearchParams(window.location.search);
console.log(urlParams);
import * as Log from './util/logging.js'; import * as Log from './util/logging.js';
import Base64 from "./base64.js"; import Base64 from "./base64.js";
@ -790,39 +791,27 @@ export default class Display {
this.flip(true); this.flip(true);
break; break;
case 'copy': case 'copy':
if (urlParams.get('scanRender').contains('copy')) { console.debug("_scan_renderQ: copy", a);
console.debug("_scan_renderQ: copy", a);
}
this.copyImage(a.old_x, a.old_y, a.x, a.y, a.width, a.height, true); this.copyImage(a.old_x, a.old_y, a.x, a.y, a.width, a.height, true);
break; break;
case 'fill': case 'fill':
if (urlParams.get('scanRender').contains('fill')) { console.debug("_scan_renderQ: fill", a);
console.debug("_scan_renderQ: fill", a);
}
this.fillRect(a.x, a.y, a.width, a.height, a.color, true); this.fillRect(a.x, a.y, a.width, a.height, a.color, true);
break; break;
case 'blit': case 'blit':
if (urlParams.get('scanRender').contains('blit')) { console.debug("_scan_renderQ: blit", a);
console.debug("_scan_renderQ: blit", a);
}
this.blitImage(a.x, a.y, a.width, a.height, a.data, 0, true); this.blitImage(a.x, a.y, a.width, a.height, a.data, 0, true);
break; break;
case 'blitRgb': case 'blitRgb':
if (urlParams.get('scanRender').contains('blitRgb')) { console.debug("_scan_renderQ: blitRgb", a);
console.debug("_scan_renderQ: blitRgb", a);
}
this.blitRgbImage(a.x, a.y, a.width, a.height, a.data, 0, true); this.blitRgbImage(a.x, a.y, a.width, a.height, a.data, 0, true);
break; break;
case 'blitRgbx': case 'blitRgbx':
if (urlParams.get('scanRender').contains('blitRgbx')) { console.debug("_scan_renderQ: blitRgbx", a);
console.debug("_scan_renderQ: blitRgbx", a);
}
this.blitRgbxImage(a.x, a.y, a.width, a.height, a.data, 0, true); this.blitRgbxImage(a.x, a.y, a.width, a.height, a.data, 0, true);
break; break;
case 'img': case 'img':
if (urlParams.get('scanRender').contains('img')) { console.debug("_scan_renderQ: img", a);
console.debug("_scan_renderQ: img", a);
}
if (a.img.complete) { if (a.img.complete) {
this.drawImage(a.img, a.x, a.y); this.drawImage(a.img, a.x, a.y);
} else { } else {

View File

@ -1,6 +1,6 @@
{ {
"name": "@gbrehmer/novnc", "name": "@gbrehmer/novnc",
"version": "1.1.0-patch16", "version": "1.1.0-patch17",
"description": "An HTML5 VNC client", "description": "An HTML5 VNC client",
"browser": "lib/rfb", "browser": "lib/rfb",
"directories": { "directories": {