feat(editor): put caret at pointer coords when clicking on selected text element (#10970)

This commit is contained in:
David Luzar
2026-03-18 19:14:44 +01:00
committed by GitHub
parent 2b0e4c9623
commit e8b4620a96
7 changed files with 679 additions and 63 deletions
+2 -1
View File
@@ -441,7 +441,8 @@ const VALID_CONTAINER_TYPES = new Set([
export const isValidTextContainer = (element: {
type: ExcalidrawElementType;
}) => VALID_CONTAINER_TYPES.has(element.type);
}): element is ExcalidrawTextContainer =>
VALID_CONTAINER_TYPES.has(element.type);
export const computeContainerDimensionForBoundText = (
dimension: number,