AutoMovie API
    Preparing search index...

    Variable designLineageProjectConst

    designLineageProject: <T extends { id: string }>(
        lineage: IAutoMovieDesignLineage,
        phase: string | null,
        records: readonly T[],
    ) => T[] = ...

    Keep only the records that stand at one phase.

    The filter is generic over anything carrying a stable id, which is the whole mechanism: a set piece list, a drawing's element filter, a schedule, and a render's draw list can be phased by this one call rather than by four reimplementations of the same question.

    None of the four is phased by it today. Its only caller is the test suite, so nothing here holds a compiled artifact to a phase, and the drift this signature is shaped to prevent is prevented by nobody. Wiring the builder's scene nodes, the derived drawing's element filter, the schedule, and the draw list through this call is what would turn the paragraph above into a property of the pipeline.

    An id this lineage never declared passes through untouched. A partially annotated production must not be silently emptied by adding a phase plan for one wing, and validateDesignLineageBinding is where a typo is caught instead.

    Records keep their input order and identity; only those whose subject is pending or removed at the phase are dropped. A null phase asks for the completed work, as designLineagePhaseSnapshot defines it, whose refusals this call inherits.

    Type Declaration

      • <T extends { id: string }>(
            lineage: IAutoMovieDesignLineage,
            phase: string | null,
            records: readonly T[],
        ): T[]
      • Type Parameters

        • T extends { id: string }

        Parameters

        • lineage: IAutoMovieDesignLineage

          Lineage whose lifecycles decide presence.

        • phase: string | null

          Construction phase id, or null for the completed work.

        • records: readonly T[]

          Records matched to lineage subjects by id.

        Returns T[]

        A new array of the same record objects, filtered.