What is the use of referencePoint?
Does it affect my layer coordinates while reading the psd? For me in some cases the coordinates shown in psd and after reading were different
cc: @Agamnentzar
I don't really know what referencePoint is used for.
My coordinates shown in PSD are not same as the values while reading the same PSD from ag-psd. I felt it might be adjusted as per reference point
Do you know what can be the reasons?
Can you show me the numbers you see in Photoshop and ones you see decoded from library? Which fields are different?
The top left values are not matching
While calculating layer positions do i need to adjust it as per artboard left top also?
layer.top/left is definitely not related to referencePoint. But it does interact with artboards. I think the way layer position interacts with artboards is that it positions the layers on a single surface and then defines which regions of that surface belong to which artboard. So layer position will not be relative to artboard corner, but this combined surface corner.
Actually now that I look at the data I don't fully understand how these relate to each other. But it's probably some between layer.top/left and layer.artboard.rect of the parent artboard.