diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-07-18 14:11:28 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-07-18 14:11:28 +0200 |
commit | 02c2d4a90847e23c779866e149c3cf181b574c13 (patch) | |
tree | 69b163db724ea91d723cc2fd2639cfaea8dba80e /timeline.ts | |
parent | 06b284fd063ab5f75ff68bbcf5629e8ba66770b3 (diff) |
slide settings beginnings
Diffstat (limited to 'timeline.ts')
-rw-r--r-- | timeline.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/timeline.ts b/timeline.ts index f5f8066..d0780ff 100644 --- a/timeline.ts +++ b/timeline.ts @@ -1,11 +1,15 @@ import { v4 as uuid } from 'uuid'; -export type slideTypes = 'default' | 'delay' | 'speedChange' | 'loop'; -export var slideTypes = ['default', 'delay', 'speedChange', 'loop']; +export const slideTypes = ['default', 'delay', 'speedChange', 'loop'] as const; +export type slideTypes = typeof slideTypes[number]; + +export const clickThroughBehaviours = ['ImmediatelySkip', 'PlayOut'] as const; +export type clickThroughBehaviours = typeof clickThroughBehaviours[number]; + export type anySlide = slide | delaySlide | speedChangeSlide | loopSlide; export class slide { - clickThroughBehaviour: 'ImmediatelySkip' | 'PlayOut' = 'ImmediatelySkip'; + clickThroughBehaviour: clickThroughBehaviours = 'ImmediatelySkip'; type: slideTypes = 'default'; id: string; |