- Preparing search index...
- The search index is not available
Chess Bots
Function timelineLayerToSpline
- timelineLayerToSpline(layer: {
remainingEvents: (({ type: "goto_point"; id: string; target: { type: SplinePointType.CubicBezier; controlPoint: { x: number; y: number; }; endPoint: { x: number; y: number; }; } | { type: SplinePointType.QuadraticBezier; endPoint: { ...; }; }; durationMs: number; }) | ({ type: "wait"; id: string; durationMs: number; }))[];
startPoint: { type: "start_point"; id: string; target: { type: SplinePointType.StartPoint; point: { x: number; y: number; }; }; durationMs: number; };
}): Spline
-
Parameters
-
layer: {
remainingEvents: (({ type: "goto_point"; id: string; target: { type: SplinePointType.CubicBezier; controlPoint: { x: number; y: number; }; endPoint: { x: number; y: number; }; } | { type: SplinePointType.QuadraticBezier; endPoint: { ...; }; }; durationMs: number; }) | ({ type: "wait"; id: string; durationMs: number; }))[];
startPoint: { type: "start_point"; id: string; target: { type: SplinePointType.StartPoint; point: { x: number; y: number; }; }; durationMs: number; };
}
-
remainingEvents: (({ type: "goto_point"; id: string; target: { type: SplinePointType.CubicBezier; controlPoint: { x: number; y: number; }; endPoint: { x: number; y: number; }; } | { type: SplinePointType.QuadraticBezier; endPoint: { ...; }; }; durationMs: number; }) | ({ type: "wait"; id: string; durationMs: number; }))[]
-
startPoint: { type: "start_point"; id: string; target: { type: SplinePointType.StartPoint; point: { x: number; y: number; }; }; durationMs: number; }
Converts a timeline layer to a spline.
Returns