forked from nrkno/sofie-timeline-state-resolver
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
packages/timeline-state-resolver-types/src/integrations/artnet.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { DeviceType } from '..' | ||
|
||
// Note: This type is a loose referral to (a copy of) keyof typeof Easing in '../../easings', so that Easing structure won't be included in the types package | ||
export type ArtNetEasingType = | ||
| 'Linear' | ||
| 'Quadratic' | ||
| 'Cubic' | ||
| 'Quartic' | ||
| 'Quintic' | ||
| 'Sinusoidal' | ||
| 'Exponential' | ||
| 'Circular' | ||
| 'Elastic' | ||
| 'Back' | ||
| 'Bounce' | ||
|
||
export enum TimelineContentTypeArtNet { | ||
ARTNET = 'artnet', | ||
} | ||
|
||
export interface TimelineContentArtNet { | ||
deviceType: DeviceType.ARTNET | ||
type: TimelineContentTypeArtNet | ||
channel: number | ||
value: number | ||
trasition?: { | ||
duration: number, | ||
type: ArtNetEasingType, | ||
direction: 'In' | 'Out' | 'InOut' | 'None' | ||
} | ||
} | ||
|
||
export type TimelineContentArtNetAny = TimelineContentArtNet | ||
|
||
|
||
|
||
|