Member Junction
    Preparing search index...

    Action that generates SVG network graphs including force-directed layouts, decision trees, and radial networks.

    This action provides server-side SVG generation for network visualizations, designed for AI agents and workflows to create publication-quality graphs from structured data.

    // Force-directed network example
    await runAction({
    ActionName: 'Create SVG Network',
    Params: [
    { Name: 'NetworkType', Value: 'force' },
    { Name: 'Nodes', Value: JSON.stringify([
    { id: '1', label: 'Node A', group: 'A' },
    { id: '2', label: 'Node B', group: 'B' },
    { id: '3', label: 'Node C', group: 'A' }
    ]) },
    { Name: 'Edges', Value: JSON.stringify([
    { source: '1', target: '2', weight: 1, directed: true },
    { source: '2', target: '3', weight: 0.5 }
    ]) },
    { Name: 'ShowLabels', Value: 'true' },
    { Name: 'ShowLegend', Value: 'true' }
    ]
    });

    // Decision tree example
    await runAction({
    ActionName: 'Create SVG Network',
    Params: [
    { Name: 'NetworkType', Value: 'tree' },
    { Name: 'Nodes', Value: JSON.stringify({
    id: 'root',
    label: 'Decision',
    children: [
    { id: '1', label: 'Option A', value: 0.6 },
    { id: '2', label: 'Option B', value: 0.4 }
    ]
    }) }
    ]
    });

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    AuthorizesCaller: boolean

    True when the action authorizes its caller itself, so a public entry point such as the RunAction mutation may run it for an authenticated user without an MJ: Action Authorizations link. Set it only on an action that either checks an authorization the caller must hold, or reads and writes only with the caller's own permissions. Leave it false for an action that acts with more authority than its caller, or that reaches data or sends messages the caller chooses but could not otherwise reach.

    The engine reads the marker only from the class that runs, never from its parent classes. A subclass that overrides a marked action must declare the marker again.

    Methods

    • Generates an SVG network graph from the provided data and configuration

      Parameters

      • params: RunActionParams

        The action parameters containing:

        • NetworkType: Type of network ('force' | 'tree' | 'radial')
        • Nodes: JSON array or object of nodes
        • Edges: JSON array of edges (for force and radial)
        • Physics: Physics parameters (charge, linkDistance, iterations)
        • ShowLabels: Show node labels (default: true)
        • ShowLegend: Show group legend (default: false)
        • NodeShape: Shape for tree nodes ('rect' | 'circle' | 'pill')
        • Width: Width in pixels (optional, default: 800)
        • Height: Height in pixels (optional, default: 600)
        • Title: Network title (optional)
        • Palette: Color palette name (optional)
        • Seed: Random seed for deterministic layouts (optional)

      Returns Promise<SVGActionResult>

      A promise resolving to an SVGActionResult