SPB Git forge

spb/admin-ka

Public
41commits 1branches 0releases
172.9 MBsize
maindefault branch
20 days agolast push
JavaScript 65.5% Python 17.8% CSS 13% HTML 3.7%
687 B · 28 lines javascript
Raw Blame History
1/*2 * noVNC: HTML5 VNC client3 * Copyright (C) 2019 The noVNC authors4 * Licensed under MPL 2.0 (see LICENSE.txt)5 *6 * See README.md for usage and integration instructions.7 *8 */910import TightDecoder from './tight.js';1112export default class TightPNGDecoder extends TightDecoder {13    _pngRect(x, y, width, height, sock, display, depth) {14        let data = this._readData(sock);15        if (data === null) {16            return false;17        }1819        display.imageRect(x, y, width, height, "image/png", data);2021        return true;22    }2324    _basicRect(ctl, x, y, width, height, sock, display, depth) {25        throw new Error("BasicCompression received in TightPNG rect");26    }27}28