Coral 0.2.17 candidate API
    Preparing search index...

    Function checkMaxConnections

    • Check if adding a connection would exceed max connections

      Parameters

      • nodeId: string

        Node ID to check

      • portId: string | undefined

        Port ID (optional)

      • maxConnections: number | undefined

        Maximum allowed connections (undefined = unlimited)

      • existingEdges: { source: string; sourcePort?: string; target: string; targetPort?: string }[]

        Current edges in the diagram

      • checkAs: "source" | "target"

        Check as 'source' (outgoing) or 'target' (incoming)

      Returns ConnectionValidation