Agamnentzar / ag-psd

Javascript library for reading and writing PSD files
Other
504 stars 66 forks source link

Why can the height of a layer be calculated by subtracting the top from the bottom #204

Closed zhanghang318 closed 3 weeks ago

zhanghang318 commented 3 weeks ago

I have a question,Why can the height of a layer be calculated by subtracting the top from the bottom, or the width can be calculated by subtracting the left from the right

Agamnentzar commented 3 weeks ago

bottom = top + height so height = bottom - top etc

zhanghang318 commented 3 weeks ago

get it,It has a different meaning from the top and bottom in CSS,Thank you