Skip to main content

generate_with_ui

Function generate_with_ui 

Source
pub fn generate_with_ui(
    graph: &PatchGraph,
    opts: &GenerateOptions,
    ui_data: Option<&UiData>,
) -> Result<String, CodegenError>
Expand description

Generate a .maxpat JSON string from a PatchGraph (with UiData).

When ui_data is provided, position and decoration attributes loaded from .uiflutmax are reflected in the generated .maxpat. When None, automatic layout is used.