@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.
50 lines (49 loc) • 1.96 kB
TypeScript
/** This file must only contain pure code and pure imports */
import { type EasingFunction } from "../../../../Animations/easing.js";
import { type IFlowGraphBlockConfiguration, FlowGraphBlock } from "../../../flowGraphBlock.js";
import { type FlowGraphContext } from "../../../flowGraphContext.js";
import { type FlowGraphDataConnection } from "../../../flowGraphDataConnection.pure.js";
import { type Vector2 } from "../../../../Maths/math.vector.pure.js";
/**
* An easing block that generates a BezierCurveEase easingFunction object based on the data provided.
*/
export declare class FlowGraphBezierCurveEasingBlock extends FlowGraphBlock {
/**
* the configuration of the block
*/
config?: IFlowGraphBlockConfiguration | undefined;
/**
* Input connection: The mode of the easing function.
* EasingFunction.EASINGMODE_EASEIN, EasingFunction.EASINGMODE_EASEOUT, EasingFunction.EASINGMODE_EASEINOUT
*/
readonly mode: FlowGraphDataConnection<number>;
/**
* Input connection: Control point 1 for bezier curve.
*/
readonly controlPoint1: FlowGraphDataConnection<Vector2>;
/**
* Input connection: Control point 2 for bezier curve.
*/
readonly controlPoint2: FlowGraphDataConnection<Vector2>;
/**
* Output connection: The easing function object.
*/
readonly easingFunction: FlowGraphDataConnection<EasingFunction>;
/**
* Internal cache of reusable easing functions.
* key is type-mode-properties
*/
private _easingFunctions;
constructor(
/**
* the configuration of the block
*/
config?: IFlowGraphBlockConfiguration | undefined);
_updateOutputs(context: FlowGraphContext): void;
getClassName(): string;
}
/**
* Register side effects for flowGraphBezierCurveEasingBlock.
* Safe to call multiple times; only the first call has an effect.
*/
export declare function RegisterFlowGraphBezierCurveEasingBlock(): void;