4.2.0 updated deps + bindings
This commit is contained in:
parent
328116893a
commit
cb33a4076f
|
@ -99,7 +99,7 @@ exportSeq seq[float32]:
|
|||
exportSeq seq[Span]:
|
||||
procs:
|
||||
typeset(seq[Span], Vec2, HorizontalAlignment, VerticalAlignment, bool)
|
||||
computeBounds(seq[Span])
|
||||
layoutBounds(seq[Span])
|
||||
|
||||
exportRefObject Image:
|
||||
fields:
|
||||
|
@ -232,7 +232,7 @@ exportRefObject Font:
|
|||
scale(Font)
|
||||
defaultLineHeight
|
||||
typeset(Font, string, Vec2, HorizontalAlignment, VerticalAlignment, bool)
|
||||
computeBounds(Font, string)
|
||||
layoutBounds(Font, string)
|
||||
|
||||
exportRefObject Span:
|
||||
fields:
|
||||
|
@ -243,7 +243,8 @@ exportRefObject Span:
|
|||
|
||||
exportRefObject Arrangement:
|
||||
procs:
|
||||
computeBounds(Arrangement)
|
||||
layoutBounds(Arrangement)
|
||||
computeBounds(Arrangement, Mat3)
|
||||
|
||||
exportRefObject Context:
|
||||
fields:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
version = "4.1.0"
|
||||
version = "4.2.0"
|
||||
author = "Andre von Houck and Ryan Oldenburg"
|
||||
description = "Full-featured 2d graphics library for Nim."
|
||||
license = "MIT"
|
||||
|
@ -6,7 +6,7 @@ license = "MIT"
|
|||
srcDir = "src"
|
||||
|
||||
requires "nim >= 1.4.8"
|
||||
requires "vmath >= 1.1.0"
|
||||
requires "vmath >= 1.1.4"
|
||||
requires "chroma >= 0.2.5"
|
||||
requires "zippy >= 0.9.7"
|
||||
requires "flatty >= 0.2.4"
|
||||
|
|
|
@ -598,7 +598,7 @@ proc textUber(
|
|||
proc computeBounds*(
|
||||
arrangement: Arrangement,
|
||||
transform = mat3()
|
||||
): Rect =
|
||||
): Rect {.raises: [PixieError].} =
|
||||
let fullPath = newPath()
|
||||
for path in arrangement.computePaths():
|
||||
fullPath.addPath(path)
|
||||
|
|
Loading…
Reference in a new issue