add app
This commit is contained in:
12
app/src/primitives/Keyframe.ts
Normal file
12
app/src/primitives/Keyframe.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { z } from "zod";
|
||||
import { Interpolation } from "./Interpolation";
|
||||
|
||||
export const Keyframe = z.object({
|
||||
value: z.number(),
|
||||
offset: z.number(),
|
||||
interpolation: z.optional(Interpolation),
|
||||
});
|
||||
|
||||
export const Keyframes = z.object({
|
||||
values: z.array(Keyframe),
|
||||
});
|
||||
Reference in New Issue
Block a user