The computeBounds() should take a transform.
This commit is contained in:
parent
2365004c9c
commit
d4e56d3b3b
1 changed files with 2 additions and 0 deletions
|
@ -585,6 +585,7 @@ proc textUber(
|
||||||
|
|
||||||
proc computeBounds*(
|
proc computeBounds*(
|
||||||
arrangement: Arrangement,
|
arrangement: Arrangement,
|
||||||
|
transform = mat3()
|
||||||
): Rect =
|
): Rect =
|
||||||
var
|
var
|
||||||
fullPath = newPath()
|
fullPath = newPath()
|
||||||
|
@ -632,6 +633,7 @@ proc computeBounds*(
|
||||||
|
|
||||||
fullPath.addPath(path)
|
fullPath.addPath(path)
|
||||||
|
|
||||||
|
fullPath.transform(transform)
|
||||||
fullPath.computeBounds()
|
fullPath.computeBounds()
|
||||||
|
|
||||||
proc fillText*(
|
proc fillText*(
|
||||||
|
|
Loading…
Reference in a new issue