Files
creator/app/src/primitives/Keyframe.ts
enricobuehler 8d1f949280 improve ui
add track properties editor
2023-05-30 23:58:36 +02:00

15 lines
331 B
TypeScript

import { z } from "zod";
import { Interpolation } from "./Interpolation";
import { v4 as uuid } from "uuid";
export const Keyframe = z.object({
id: z.string().uuid(),
value: z.number(),
offset: z.number(),
interpolation: z.optional(Interpolation),
});
export const Keyframes = z.object({
values: z.array(Keyframe),
});