Show original image size in layer info overlay

Added originalWidth and originalHeight properties to layers in CanvasLayers.js. Updated CanvasRenderer.js to display the original image dimensions in the layer info overlay if available, and improved overlay rendering to support multiline text.
This commit is contained in:
Dariusz L
2025-06-28 19:54:34 +02:00
parent 4376a21147
commit 7a52be5a79
2 changed files with 16 additions and 6 deletions

View File

@@ -140,6 +140,8 @@ export class CanvasLayers {
y: finalY,
width: finalWidth,
height: finalHeight,
originalWidth: image.width,
originalHeight: image.height,
rotation: 0,
zIndex: this.canvasLayers.layers.length,
blendMode: 'normal',