(=== x-padding & grids)
Horizontally aligns given grids with some defaults.
Just a convenience wrapper for halign to accept grids as args and use some default values for padding and centering.
Horizontally aligns given grids with some defaults. Just a convenience wrapper for halign to accept grids as args and use some default values for padding and centering.
(halign grids)
(halign grids x-padding)
(halign grids x-padding center?)
Constructs a grid containing given grids aligned horizontally.
For example, (halign [(text "A") (text "B") (text "C")]) is ABC.
Constructs a grid containing given grids aligned horizontally. For example, (halign [(text "A") (text "B") (text "C")]) is ABC.
(hspacer n)
Constructs a horizontal space of given length.
For example, (hspacer 5) is " ".
Constructs a horizontal space of given length. For example, (hspacer 5) is " ".
(pull g dx dy)
Pulls a grid by given amounts horizontally and vertically.
Just a convenience function for transforming with tf-translate. Useful for tweaking alignments.
Pulls a grid by given amounts horizontally and vertically. Just a convenience function for transforming with tf-translate. Useful for tweaking alignments.
(spacer width height)
Constructs a rectangular space of given width and height.
Constructs a rectangular space of given width and height.
(valign grids)
(valign grids y-padding)
(valign grids y-padding center?)
Constructs a grid containing given grids aligned vertically.
For example, (valign [(text "A") (text "B") (text "C")]) is A B C
Constructs a grid containing given grids aligned vertically. For example, (valign [(text "A") (text "B") (text "C")]) is A B C
(vspacer n)
Constructs a vertical space of given length.
For example, (vspacer 5) is (space) (space) (space) (space) (space)
Constructs a vertical space of given length. For example, (vspacer 5) is (space) (space) (space) (space) (space)
(|| y-padding & grids)
Vertically aligns given grids with some defaults.
Just a convenience wrapper for valign to accept grids as args and use some default values for padding and centering.
Vertically aligns given grids with some defaults. Just a convenience wrapper for valign to accept grids as args and use some default values for padding and centering.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close