From da6ca4a32f469701915b4116c5a48d1457a2fe86 Mon Sep 17 00:00:00 2001 From: Cameron Legleiter Date: Wed, 8 Jul 2026 10:24:35 -0500 Subject: [PATCH] feat: Add WorkAreaUtils type Adding an initial type for `WorkAreaUtils`, which currently supports managing the in and out points of a `Sequence`'s work area. --- src/premierepro.d.ts | 48 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/src/premierepro.d.ts b/src/premierepro.d.ts index 0ad41aa..f3ea78e 100644 --- a/src/premierepro.d.ts +++ b/src/premierepro.d.ts @@ -79,6 +79,7 @@ export declare type premierepro = { VideoFilterFactory: VideoFilterFactoryStatic; VideoTrack: VideoTrackStatic; VideoTransition: VideoTransitionStatic; + WorkAreaUtils: WorkAreaUtilsStatic; EventManager: EventManagerStatic; Transcript: TranscriptStatic; Constants: typeof Constants; @@ -3149,12 +3150,12 @@ export declare type Sequence = { getEndTime(): Promise; /** - * Get time representing the inPoint of sequence. + * Get time representing the in point of the sequence. */ getInPoint(): Promise; /** - * Get time representing the inPoint of sequence. + * Get time representing the out point of the sequence. */ getOutPoint(): Promise; @@ -4356,6 +4357,49 @@ export declare type VideoTransitionStatic = { export declare type VideoTransition = {}; +export declare type WorkAreaUtilsStatic = { + /** + * Get the work area in point of the sequence. + * + * @param sequence + */ + getWorkAreaInPoint(sequence: Sequence): TickTime; + + /** + * Get the work area out point of the sequence. + * + * @param sequence + */ + getWorkAreaOutPoint(sequence: Sequence): TickTime; + + /** + * Set the work area in point of the sequence. + * + * @param sequence + * @param tickTime + */ + setWorkAreaInPoint(sequence: Sequence, tickTime: TickTime): boolean; + + /** + * Set the work area out point of the sequence. + * + * @param sequence + * @param tickTime + */ + setWorkAreaOutPoint(sequence: Sequence, tickTime: TickTime): boolean; + + /** + * Set the work area in and out points of the sequence. + * + * @param sequence + * @param inTickTime + * @param outTickTime + */ + setWorkAreaInOutPoints(sequence: Sequence, inTickTime: TickTime, outTickTime: TickTime): boolean; +}; + +export declare type WorkAreaUtils = {}; + export declare type EventManagerStatic = { /** * add event listener to target object