vAlign

Aligns the Y axis position of the drawing elements to a given rectangle.

The supported values are:

  • "start"The elements will be aligned to the rectangle origin.
  • "center"The elements will be aligned to the rectangle center.
  • "end"The elements will be aligned to the bottom side of the rectangle.

Parameters

elements

Element[]

An array with the drawing elements that should be aligned.

rect

Rect

The rectangle in which the elements should be aligned.

alignment

"start" | "center" | "end"

Specifies how should the elements be aligned.

In this article

Not finding the help you need?