import type { Dimension } from './id.js'; /** * A rectangle on the face of a device, with the origin at its top left and `y` increasing downwards. * Distances are in the units of `StreamDeckModelInfo.faceSize`; for models with a fullscreen panel * those are panel pixels, so these bounds are also the region the control occupies in a fullscreen image. */ export interface StreamDeckControlBounds { x: number; y: number; width: number; height: number; } export interface StreamDeckControlDefinitionBase { id: string | number; type: 'button' | 'encoder' | 'lcd-segment'; row: number; column: number; /** Where this control sits on the face, within `StreamDeckModelInfo.faceSize` */ bounds: StreamDeckControlBounds; } export interface StreamDeckButtonControlDefinitionBase extends StreamDeckControlDefinitionBase { type: 'button'; index: number; /** @internal on wire HID index of this button */ hidIndex: number; feedbackType: 'none' | 'rgb' | 'lcd'; } export interface StreamDeckButtonControlDefinitionNoFeedback extends StreamDeckButtonControlDefinitionBase { feedbackType: 'none'; } export interface StreamDeckButtonControlDefinitionRgbFeedback extends StreamDeckButtonControlDefinitionBase { feedbackType: 'rgb'; } export interface StreamDeckButtonControlDefinitionLcdFeedback extends StreamDeckButtonControlDefinitionBase { feedbackType: 'lcd'; pixelSize: Dimension; } export type StreamDeckButtonControlDefinition = StreamDeckButtonControlDefinitionNoFeedback | StreamDeckButtonControlDefinitionRgbFeedback | StreamDeckButtonControlDefinitionLcdFeedback; export interface StreamDeckEncoderControlDefinition extends StreamDeckControlDefinitionBase { type: 'encoder'; index: number; /** @internal on wire HID index of this button */ hidIndex: number; /** Whether the encoder has a central led */ hasLed: boolean; /** The number of steps in encoder led rings (if any) */ ledRingSteps: number; /** Encoding offset of the ring leds */ ledRingOffset?: number; } export interface StreamDeckLcdSegmentControlDefinition extends StreamDeckControlDefinitionBase { type: 'lcd-segment'; index: 0; id: 0; columnSpan: number; rowSpan: number; pixelSize: Dimension; /** * Whether the LCD segment supports drawing regions */ drawRegions: boolean; } export type StreamDeckControlDefinition = StreamDeckButtonControlDefinition | StreamDeckEncoderControlDefinition | StreamDeckLcdSegmentControlDefinition; //# sourceMappingURL=controlDefinition.d.ts.map