TranslateY

The TranslateY accessor (class ) moves a node vertically to a position determined by a minimum position, a position range, a minimum value, and a value range. The new position is computed from the value assigned to the TranslateY accessor using the following formula:

y = ymin + (v - minimum) * yrange / range

Parameters

  • Graphic Node: Name of the node to move. It must be a graphic node.

  • MinimumY: Minimum position (Float or Integer).

  • Y range: Position range (Float or Integer).

  • Minimum: Minimum value (Float or Integer).

  • Range: Value range (Float or Integer).

  • Handle Interaction: Boolean specifying whether the accessor should behave like an Event accessor when the user clicks on the node to rotate it. If it is set to true, the user can rotate the node and the accessor value will be updated accordingly.

  • The type of the value is Float (the distance of translation).

Example

The use of TranslateX and TranslateY is similar to the use of scaleX and scaleY accessors.