onPass: ((stepState?: object, pass: number[]) => object)

Callback upon each pass.

See

Returns

  • A passState object to use for the render command call; or nullish to use the given stepState.

Type declaration

    • (stepState?, pass): object
    • Parameters

      • OptionalstepState: object

        The props passed to run via any onStep.

      • pass: number[]

        The maps for the next pass. See mapGroups.

      Returns object