mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-12 03:50:06 +02:00
fix
This commit is contained in:
@@ -311,8 +311,7 @@ export const measureBaseline = (
|
|||||||
container.style.whiteSpace = "pre-wrap";
|
container.style.whiteSpace = "pre-wrap";
|
||||||
}
|
}
|
||||||
|
|
||||||
//@ts-ignore
|
container.style.lineHeight = String(lineHeight);
|
||||||
container.style.lineHeight = lineHeight;
|
|
||||||
|
|
||||||
container.innerText = text;
|
container.innerText = text;
|
||||||
|
|
||||||
|
@@ -271,7 +271,6 @@ export const textWysiwyg = ({
|
|||||||
} else {
|
} else {
|
||||||
textElementWidth += 0.5;
|
textElementWidth += 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure text editor height doesn't go beyond viewport
|
// Make sure text editor height doesn't go beyond viewport
|
||||||
const editorMaxHeight =
|
const editorMaxHeight =
|
||||||
(appState.height - viewportY) / appState.zoom.value;
|
(appState.height - viewportY) / appState.zoom.value;
|
||||||
|
@@ -273,7 +273,6 @@ const drawElementOnCanvas = (
|
|||||||
context.canvas.setAttribute("dir", rtl ? "rtl" : "ltr");
|
context.canvas.setAttribute("dir", rtl ? "rtl" : "ltr");
|
||||||
context.save();
|
context.save();
|
||||||
context.font = getFontString(element);
|
context.font = getFontString(element);
|
||||||
|
|
||||||
context.fillStyle = element.strokeColor;
|
context.fillStyle = element.strokeColor;
|
||||||
context.textAlign = element.textAlign as CanvasTextAlign;
|
context.textAlign = element.textAlign as CanvasTextAlign;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user