import { b as FlowGraphExecutionBlockWithOutSignal } from './KHR_interactivity-B-UMiVgm.esm.js';
import { R as RichTypeAny } from './declarationMapper-28XjxVJv.esm.js';
import { g as RegisterClass } from './index-BquY1VPT.esm.js';
import './objectModelMapping-CKhwyjWl.esm.js';

/**
 * @experimental
 * Block that pauses a running animation
 */
class FlowGraphPauseAnimationBlock extends FlowGraphExecutionBlockWithOutSignal {
    constructor(config) {
        super(config);
        this.animationToPause = this.registerDataInput("animationToPause", RichTypeAny);
    }
    _execute(context) {
        const animationToPauseValue = this.animationToPause.getValue(context);
        animationToPauseValue.pause();
        this.out._activateSignal(context);
    }
    /**
     * @returns class name of the block.
     */
    getClassName() {
        return "FlowGraphPauseAnimationBlock" /* FlowGraphBlockNames.PauseAnimation */;
    }
}
RegisterClass("FlowGraphPauseAnimationBlock" /* FlowGraphBlockNames.PauseAnimation */, FlowGraphPauseAnimationBlock);

export { FlowGraphPauseAnimationBlock };
//# sourceMappingURL=flowGraphPauseAnimationBlock-CaZKH1TQ.esm.js.map
