worldX property

double worldX

Returns the x coordinate of the object relative to the stage and all its ancestors.

Implementation

double get worldX {
  return x - pivotX * scaleX + ($parent?.worldX ?? 0);
}