This commit is contained in:
Aakansha Doshi 2023-03-14 19:59:58 +05:30
parent 96c4cff805
commit 15f19835fe
7 changed files with 41 additions and 41 deletions

View file

@ -44,8 +44,8 @@ import {
getBoundTextElement,
getContainerCoords,
getContainerElement,
getContainerMaxHeight,
getContainerMaxWidth,
getBoundTextMaxHeight,
getBoundTextMaxWidth,
} from "../element/textElement";
import { LinearElementEditor } from "../element/linearElementEditor";
@ -829,8 +829,8 @@ const drawElementFromCanvas = (
context.strokeRect(
(coords.x + renderConfig.scrollX) * window.devicePixelRatio,
(coords.y + renderConfig.scrollY) * window.devicePixelRatio,
getContainerMaxWidth(element) * window.devicePixelRatio,
getContainerMaxHeight(element, textElement) * window.devicePixelRatio,
getBoundTextMaxWidth(element) * window.devicePixelRatio,
getBoundTextMaxHeight(element, textElement) * window.devicePixelRatio,
);
}
}