Clicked text on its baseline, live text on the Move tool's double click, SVG import (12.11c)

This commit is contained in:
雷电芽衣 committed 2026-09-29 10:55:10 -04:00
1 parent 008493b0a3
commit 8fbb104c48
34 files changed
+572 -47

No files matched your search

+9
View File
@@ -58,3 +58,12 @@ inline ImportedImage coverage()
image.scanLine(index / 2)[index % 2] = values[index];
return LayerMask::assetFrom(image);
}
// New text whose box starts at `corner`, unlike a click.
inline void beginTextAt(EditorSession &session, QPointF corner)
{
session.beginText(corner, true);
TextDraft draft = session.textDraft().value();
draft.origin = corner;
session.setTextDraft(draft);
}