Relative Position of 2D View Elements

A static relative position (i.e. a position that will not change during the execution of the simulation) a 2D drawable element in Ejs is specified using one of the predefined Ejs constants:

To specify a positon that changes in run-time, you'll need to declare a variable of type int, associate it to the corresponding element property, and then change the variable according to your program's logic. The integer values equivalent to each relative position are specified in the list above.