zOrder property

num get zOrder

Gets or sets the Z-ordering position of this Part within its Layer.

Within the same layer, nodes with larger zOrder values are placed in front of nodes with smaller zOrder values. When the value is NaN the ordering is not specified. The default value is NaN.

When a Group has a zOrder value of NaN, it is automatically placed behind its member nodes and links that also have no zOrder. Such automatic ordering is not guaranteed if any nodes including the groups have a numeric zOrder. If you do want to specify the zOrder of nodes, you should also specify the zOrder of their containing groups unless those groups are in different layers.

Implementation

_i2.num get zOrder => _i4.getProperty(
      this,
      'zOrder',
    );
set zOrder (num value)

Implementation

set zOrder(_i2.num value) {
  _i4.setProperty(
    this,
    'zOrder',
    value,
  );
}