Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

many-to-many connections support #91

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on May 17, 2023

  1. Add wide ports

    This change enables many-to-manny graphs by extending input ports with a
    capability to optionally accept multiple connections, via a
    max_connections parameter. If this parameter is set to anything other
    than Some(NonZeroU32(1)) the port will be referred to as `wide`.
    
    * Adjust Graph::connections to map from InputId to Vec<OutputId> instead
      of just OutputId.
    * Adjust UI to render wide ports as segments extending in length
      proportionally to the number of connections.
    * Allow creating a new connection by dragging from an extra slot in a
      wide port.
    * If a wide port is not full, an in-progress connection will move
      existing ones out of the way to allow intuitive ordering. Otherwise,
      the new connection will override the one it's hovering over within the
      port.
    * Extend NodeResponse::ConnectEventEnded with an additional field
      containing the index under which the new connection resides within
      the input port.
    * Add Graph::add_wide_input_param for creating wide ports.
    kamirr committed May 17, 2023
    Configuration menu
    Copy the full SHA
    5dc20b2 View commit details
    Browse the repository at this point in the history