fix export mouse overlay
This commit is contained in:
@@ -627,12 +627,19 @@ export class FrameRenderer {
|
|||||||
this.maskGraphics.roundRect(0, 0, screenRect.width, screenRect.height, scaledBorderRadius);
|
this.maskGraphics.roundRect(0, 0, screenRect.width, screenRect.height, scaledBorderRadius);
|
||||||
this.maskGraphics.fill({ color: 0xffffff });
|
this.maskGraphics.fill({ color: 0xffffff });
|
||||||
|
|
||||||
// Cache layout info
|
// Cache layout info. baseOffset is the stage position of the FULL
|
||||||
|
// (uncropped) video sprite's top-left — matches preview semantics so
|
||||||
|
// downstream consumers (e.g. cursor highlight) can map normalized
|
||||||
|
// recording-space coordinates to stage coordinates uniformly:
|
||||||
|
// stagePos = baseOffset + (cx, cy) * (videoWidth, videoHeight) * baseScale
|
||||||
this.layoutCache = {
|
this.layoutCache = {
|
||||||
stageSize: { width, height },
|
stageSize: { width, height },
|
||||||
videoSize: { width: croppedVideoWidth, height: croppedVideoHeight },
|
videoSize: { width: croppedVideoWidth, height: croppedVideoHeight },
|
||||||
baseScale: scale,
|
baseScale: scale,
|
||||||
baseOffset: { x: compositeLayout.screenRect.x, y: compositeLayout.screenRect.y },
|
baseOffset: {
|
||||||
|
x: compositeLayout.screenRect.x + coverOffsetX - cropPixelX,
|
||||||
|
y: compositeLayout.screenRect.y + coverOffsetY - cropPixelY,
|
||||||
|
},
|
||||||
maskRect: compositeLayout.screenRect,
|
maskRect: compositeLayout.screenRect,
|
||||||
webcamRect: compositeLayout.webcamRect,
|
webcamRect: compositeLayout.webcamRect,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user