SketchAPI icon indicating copy to clipboard operation
SketchAPI copied to clipboard

Get and set layout

Open kupe517 opened this issue 7 years ago • 2 comments

Does the API provide a way to get the layout settings of the current artboard and also set them?

kupe517 avatar Mar 08 '18 06:03 kupe517

what do you mean by layout?

mathieudutour avatar Mar 08 '18 07:03 mathieudutour

The user settings in View > Canvas > Layout Lettings. The context API exposes all of those settings via artboard.layout(), totalWidth(), numberOfColumns(), etc.

Would love for this to be built into the JS api to be able to read those properties and set them as well.

kupe517 avatar Mar 08 '18 15:03 kupe517