aboutsummaryrefslogtreecommitdiff
path: root/timeline.ts
diff options
context:
space:
mode:
Diffstat (limited to 'timeline.ts')
-rw-r--r--timeline.ts14
1 files changed, 8 insertions, 6 deletions
diff --git a/timeline.ts b/timeline.ts
index fb60cf5..f6f8cc9 100644
--- a/timeline.ts
+++ b/timeline.ts
@@ -1,23 +1,25 @@
-interface slide {
+export type keyframeTypes = 'default' | 'delay' | 'speedChange' | 'loop';
+
+export interface slide {
frame: number;
clickThroughBehaviour: 'ImmediatelySkip' | 'PlayOut';
- type: 'default' | 'delay' | 'speedChange' | 'loop';
+ type: keyframeTypes;
}
-interface delaySlide extends slide {
+export interface delaySlide extends slide {
delay: number;
}
-interface speedChangeSlide extends slide {
+export interface speedChangeSlide extends slide {
newFramerate: number;
}
-interface loopSlide extends slide {
+export interface loopSlide extends slide {
endFrame: number;
playbackType: 'PingPong' | 'Normal';
}
-interface timeline {
+export interface timeline {
slides: slide[];
framecount: number;
framerate: number;