Changes
2 changed files (+5/-3)
-
-
@@ -191,7 +191,7 @@ if (node.type === "TEXT") {this.color = extractColorStyle(fillColor.color); } else if (fillColor.type.includes("GRADIENT")) { this.backgroundImage = extractGradientColorStyle( fillColor as unknown as ElementGradientColor (fillColor as unknown) as ElementGradientColor ); } else if (fillColor.type === "SOLID") { this.background = extractColorStyle(fillColor.color);
-
-
-
@@ -397,8 +397,10 @@ resetZoom() {if (this.#canvasSize) { // Set initial zoom level based on element size const { width, height } = this.#canvasSize; const { width: elementWidth, height: elementHeight } = this.getBoundingClientRect(); const { width: elementWidth, height: elementHeight, } = this.getBoundingClientRect(); const wDiff = elementWidth / (width + this.zoomMargin * 2); const hDiff = elementHeight / (height + this.zoomMargin * 2);
-