AutoMovie API
    Preparing search index...

    The callable constructor and static factories.

    interface IConstructor {
        extend<
            Laws extends
                Readonly<Record<string, IAutoMovieMotionHumanActionLaw<never>>>,
        >(
            laws: Laws,
        ): IExtension<Laws>;
        mutual<Params extends object, Role extends string>(
            mutual: IAutoMovieMotionHumanMutual<Params, Role>,
            cast: Readonly<Record<Role, IAutoMovieMotionHumanChainCore>>,
            ...args: {} extends Params
                ? [params?: Params, anchor?: string]
                : [params: Params, anchor?: string],
        ): IAutoMovieChain;
        pair(
            a: IAutoMovieMotionHumanChain,
            b: IAutoMovieMotionHumanChain,
        ): {
            handOver(
                params: Omit<IAutoMovieMotionHumanHandoverAction.IParams, "to">,
            ): IAutoMovieChain;
            handshake(
                params?: Omit<IAutoMovieMotionHumanHandshake.IParams, "partner">,
            ): IAutoMovieChain;
        };
        subject(subject: string): IAutoMovieMotionHumanChain;
    }
    Index
    • The chain with a typed method for each law a production registers: the production's own actions are appended exactly like the vocabulary's.

      const Chain = HumanChain.extend({ salute });
      Chain.subject("a").walk({ to }).salute({ hold: 1.5 }).stand();
      new HumanPerformance({ seed, performers, laws: [salute], composition });

      Type Parameters

      Parameters

      • laws: Laws

        The registered laws, each under the name it carries.

      Returns IExtension<Laws>

      What starts a chain of the extended kind.

      When a key differs from its law's name, or names something the chain already has.

    • Join people's chains in a mutual action: one thing they do together, such as a handshake, a handover or a lift.

      Every chain of the cast plays first, side by side, and then every role performs its part of the mutual action at once, so each person's earlier actions are placed before any role plans the meeting. HumanMutual holds the vocabulary's mutual actions; a production states its own as an IAutoMovieMotionHumanMutual over its registered laws.

      HumanChain.mutual(HumanMutual.handOver, { giver: a, receiver: b }, { prop: "cup", handle: "body" });
      

      Type Parameters

      • Params extends object
      • Role extends string

      Parameters

      Returns IAutoMovieChain

      The joined composition.

      When one person is cast in two roles.