Skip to content

Commit

Permalink
started artnet integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
lukejdav committed Mar 25, 2024
1 parent 492d260 commit af262d0
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions packages/timeline-state-resolver-types/src/integrations/artnet.ts
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




0 comments on commit af262d0

Please sign in to comment.