Element positioning issue: Designs without Auto-layout

I’m working on a plugin to generate HTML and CSS from Figma designs. I am facing a positioning issue while generating CSS from the designs without auto-layout. While Figma’s auto-layout designs provide CSS properties like flex properties, so it’s easy to make the design responsive in that case. But, designs without auto-layout do not have those css properties.
Is there a way to identify layout direction (vertical or horizontal) and spacing between elements in designs without auto-layout?