See the attached screenshot.
BUG: The boundsInParent for Rectangle should have X = 0 and Y= 0 as the rectangle starts at the top left its parent layer i.e. the Group. Same issue with SceneNode.topLeftInParent
XD Version 18.104.22.168. macOS Catalina.
I am not sure if this is inconsistency or expected behaviour but the X, Y values in the transform panel are confusing also. X, Y for a layers are always in Artboard’s co-ordinate system, irrespective of the layer’s parent but the X,Y for Artboard are in Scene’s co-ordinate system. One would expect it either in Scene’s or parent’s co-ordinate system.