Expose selection size description to lua

This commit is contained in:
Pasi Kallinen
2026-01-25 15:18:45 +02:00
parent 4bf1fb5c68
commit f73d9ee704
3 changed files with 42 additions and 0 deletions

View File

@@ -1145,6 +1145,16 @@ Example:
local sel2 = selection.clone(sel);
=== describe_size
Return a text describing the size of the selection.
Example:
local sel = selection.fillrect(1,1, 3,3);
local txt = sel:describe_size();
=== ellipse
Example: