Any way to know macOS dock width?


Here’s an image of my problem:

I need to know the Dock width in macOS so I can apply a margin-bottom to my content in Electron if the Dock is blocking it. Is there a way to get the macOS Dock width in Electron?