camstreamerlib 3.3.0 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CamOverlayPainter/Painter.js +1 -1
- package/HttpServer.d.ts +1 -0
- package/HttpServer.js +3 -0
- package/package.json +1 -1
|
@@ -96,7 +96,7 @@ class Painter extends Frame_1.Frame {
|
|
|
96
96
|
if (surface === undefined || cairo === undefined) {
|
|
97
97
|
[surface, cairo] = yield this.prepareSurface(scale, lastCachedLayer === null || lastCachedLayer === void 0 ? void 0 : lastCachedLayer.surfaceCache, lastCachedLayer === null || lastCachedLayer === void 0 ? void 0 : lastCachedLayer.cairoCache);
|
|
98
98
|
}
|
|
99
|
-
yield this.displayImage(this.cod, this.rm, cairo,
|
|
99
|
+
yield this.displayImage(this.cod, this.rm, cairo, -this.posX, -this.posY, scale, layer.layer);
|
|
100
100
|
if (i < this.layers.length - 1) {
|
|
101
101
|
const [surfaceToCache, cairoToCache] = yield this.prepareSurface(scale, surface, cairo);
|
|
102
102
|
layer.surfaceCache = surfaceToCache;
|
package/HttpServer.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare class HttpServer extends EventEmitter {
|
|
|
12
12
|
private server;
|
|
13
13
|
private sockets;
|
|
14
14
|
constructor(options?: HttpServerOptions);
|
|
15
|
+
getServer(): http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>;
|
|
15
16
|
onRequest(path: string, callback: TOnRequestCallback): void;
|
|
16
17
|
close(): void;
|
|
17
18
|
}
|
package/HttpServer.js
CHANGED