If you’re talking about -[MSLayer absoluteRect]
then the following function would be a decent replacement:
function absoluteRectForLayer(layer) {
// NOTE: the code below assumes that `layer` is anything but MSPage instance
let parent = layer.parentObject()
let relativeRect = layer.frame().rect()
return parent.convertRect_toCoordinateSpace_(relativeRect, /* to absolute/page coordinates */nil)
}
For -[MSLayer absoluteInfluenceRect]
see a sibling topic: absoluteInfluenceRect removed in Sketch 96.