Coral 0.2.17 candidate API
    Preparing search index...

    Function resolvePositions

    • Resolve positions for nodes in the new graph based on the diff and current positions.

      • Unchanged and modified nodes keep their current positions
      • Added nodes are marked as needing layout (placed at 0,0 temporarily)
      • Removed nodes are not included in the result

      Parameters

      • oldGraph: DiffableGraph

        The previous graph state

      • newGraph: DiffableGraph

        The new graph state

      • currentPositions: Map<string, Position>

        Map of node IDs to their current positions

      Returns PositionResolution

      PositionResolution with resolved positions and nodes needing layout