Hi Martin, I'm trying to use this add-on in a webapp and I have a question

Hi Martin,

I’m trying to use this add-on in a webapp and I have a question. The cytoscape layout is an important tool for these graphs. I see there is a see there is a loadLayout function. Is there a way to set a layout using a JsonObject in a similar way to how you set nodes/edges?

I’m trying to set this layout to my graph:

            layout: {
            name: 'breadthfirst',
            directed: true,
            spacingFactor: 2.25,
            avoidOverlap: true,
            maximal: true,
            padding: 10,
            width: 20,
            fit: true
            }

To clear up my question a bit, I can set the ‘breadthfirst’ layout with the command ‘cy.loadLayout(“breadthfirst”)’. But I can’t figure out how to set the rest of those styling options.