gantt-renderer
    Preparing search index...

    Function deriveViewport

    • Derives viewport bounds from task data with padding.

      Parameters

      • tasks: TaskNode[]

        The task nodes to derive bounds from.

      • paddingHours: number = 48

        Extra hours added before the earliest start and after the latest end. Defaults to 48.

      Returns [Date, Date]

      A tuple [start, end] of UTC midnight Date instances.