AutoMovie API
    Preparing search index...

    Interface IAutoMovieSubjectGroup<TDesign, TMember>

    A subject that is a collection of subjects.

    A cluster holds figures, a group holds clusters, a village holds buildings, a map holds everything standing on it. The shape is the same at every level, which is what makes a line battle authorable: a group advancing is one call rather than two thousand.

    render composes its members by default, so a group states what it holds and how it is arranged, not how to draw it. A group that needs to add something of its own (a banner, a dust cue, a shared route) overrides render and merges its own contribution with super.render, rather than replacing what its members said.

    Membership is not checked for cycles: a group that lists itself, directly or through a member, recurses in render until the call stack overflows.

    interface IAutoMovieSubjectGroup<
        TDesign,
        TMember extends IAutoMovieSubject<unknown>,
    > {
        id: string;
        design(): TDesign;
        members(): readonly TMember[];
        render(context: IAutoMovieShotBuildContext): IAutoMovieSubjectContribution;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index
    id: string

    Stable identity this subject is cited by.