shrinkNExpandExample

Undocumented in source. Be warned that the author may not have intended to support it.
@safe
@
()
=> label(`The space of the frame has been distributed fully between the labels, but each took a different ` ~ `fraction. This is exactly why expanding is a number: The first label took one piece of the space, the second ` ~ `took two, and the last took three. It defines a fraction, where the specified number is the numerator. The ` ~ `denominator is the sum of all expand settings — in this case that's 6. Which means, each node takes 1/6, ` ~ `2/6 and 3/6 of the space respectively.`)
,
()
=> label(`Note: Setting expand to 0 effectively disables expand and makes the node shrink. In this case, the ` ~ `expand argument can be omitted.`)
,
()
=> label(`Shrinking and expanding nodes can be used alongside in the same frame:`)
,
()
=> highlightBoxTheme
Frame
shrinkNExpandExample
()

Meta