• Parameters

    • graph: FOLD

      a FOLD object

    • frameNumber: number = 0

      which frame number to flatten (0 is the top level)

    Returns FOLD

    one single, flattened FOLD frame (with no file_frames)

    Description

    Frames can be children of other frames via. the frame_parent and frame_inherit properties potentially creating a recursive inheritance. This method will "flatten" a frame by gathering all of its inherited parent frames and collapsing the stack into one single frame. The input graph itself will not be modified.