UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

30 lines (29 loc) 1.25 kB
import type { FlowGraphContext } from "../../../flowGraphContext.js"; import type { FlowGraphDataConnection } from "../../../flowGraphDataConnection.js"; import type { IFlowGraphBlockConfiguration } from "../../../flowGraphBlock.js"; import type { AnimationGroup } from "../../../../Animations/animationGroup.js"; import { FlowGraphAsyncExecutionBlock } from "../../../flowGraphAsyncExecutionBlock.js"; /** * @experimental * Block that stops a running animation */ export declare class FlowGraphStopAnimationBlock extends FlowGraphAsyncExecutionBlock { /** * Input connection: The animation to stop. */ readonly animationGroup: FlowGraphDataConnection<AnimationGroup>; /** * Input connection - if defined (positive integer) the animation will stop at this frame. */ readonly stopAtFrame: FlowGraphDataConnection<number>; constructor(config?: IFlowGraphBlockConfiguration); _preparePendingTasks(context: FlowGraphContext): void; _cancelPendingTasks(context: FlowGraphContext): void; _execute(context: FlowGraphContext): void; _executeOnTick(context: FlowGraphContext): void; /** * @returns class name of the block. */ getClassName(): string; private _stopAnimation; }