The computeBounds() should take a transform.

This commit is contained in:
treeform 2022-03-20 13:36:54 -07:00
parent 2365004c9c
commit d4e56d3b3b

View file

@ -585,6 +585,7 @@ proc textUber(
proc computeBounds*(
arrangement: Arrangement,
transform = mat3()
): Rect =
var
fullPath = newPath()
@ -632,6 +633,7 @@ proc computeBounds*(
fullPath.addPath(path)
fullPath.transform(transform)
fullPath.computeBounds()
proc fillText*(