nezuhub/simple / node_modules /@remotion /codemods /dist /update-keyframes.d.ts
nezuhub's picture
download
raw
3.87 kB
import { type KeyframeInterpolationFunction } from '@remotion/studio-shared';
import type { CanUpdateSequencePropStatus, ExtrapolateType, InteractivitySchema, InterpolateOutputOption, SequenceNodePath, VideoConfigValues } from 'remotion';
type KeyframeEasing = Extract<CanUpdateSequencePropStatus, {
status: 'keyframed';
}>['easing'][number];
export type KeyframeOperation = {
type: 'add';
frame: number;
value: unknown;
} | {
type: 'remove';
frame: number;
valueWhenLastKeyframeDeleted: unknown | null;
} | {
type: 'settings';
clamping: {
left: ExtrapolateType;
right: ExtrapolateType;
} | undefined;
posterize: number | undefined;
output: InterpolateOutputOption | undefined;
} | {
type: 'easing';
segmentIndex: number;
easing: KeyframeEasing;
} | {
type: 'move';
moves: {
fromFrame: number;
toFrame: number;
}[];
};
export type SequenceKeyframeUpdate = {
key: string;
operation: KeyframeOperation;
};
export type EffectKeyframeUpdate = {
key: string;
operation: KeyframeOperation;
};
export type FormatKeyframesFile = (input: {
contents: string;
prettierConfigOverride: Record<string, unknown> | null;
}) => Promise<{
output: string;
formatted: boolean;
}>;
export type IntroducedKeyframeIdentifiers = {
calleeName: KeyframeInterpolationFunction | null;
needsFrameHook: boolean;
needsEasingImport: boolean;
};
export declare const updateSequenceKeyframesAst: ({ input, nodePath, updates, schema, prettierConfigOverride, videoConfigValues, }: {
input: string;
nodePath: SequenceNodePath;
updates: SequenceKeyframeUpdate[];
schema?: InteractivitySchema;
prettierConfigOverride?: Record<string, unknown> | null;
videoConfigValues: VideoConfigValues | null;
}) => {
serialized: string;
oldValueStrings: string[];
newValueStrings: string[];
logLine: number;
updatedNodePath: SequenceNodePath;
};
export declare const updateSequenceKeyframes: ({ input, nodePath, updates, schema, prettierConfigOverride, videoConfigValues, }: {
input: string;
nodePath: SequenceNodePath;
updates: SequenceKeyframeUpdate[];
schema?: InteractivitySchema;
formatFile?: FormatKeyframesFile;
prettierConfigOverride?: Record<string, unknown> | null;
videoConfigValues: VideoConfigValues | null;
}) => Promise<{
output: string;
formatted: boolean;
oldValueStrings: string[];
newValueStrings: string[];
logLine: number;
updatedNodePath: SequenceNodePath;
}>;
export declare const updateEffectKeyframesAst: ({ input, sequenceNodePath, effectIndex, updates, schema, prettierConfigOverride, videoConfigValues, }: {
input: string;
sequenceNodePath: SequenceNodePath;
effectIndex: number;
updates: EffectKeyframeUpdate[];
schema?: InteractivitySchema;
prettierConfigOverride?: Record<string, unknown> | null;
videoConfigValues: VideoConfigValues | null;
}) => {
serialized: string;
oldValueStrings: string[];
newValueStrings: string[];
logLine: number;
effectCallee: string;
updatedSequenceNodePath: SequenceNodePath;
};
export declare const updateEffectKeyframes: ({ input, sequenceNodePath, effectIndex, updates, schema, prettierConfigOverride, videoConfigValues, }: {
input: string;
sequenceNodePath: SequenceNodePath;
effectIndex: number;
updates: EffectKeyframeUpdate[];
schema?: InteractivitySchema;
formatFile?: FormatKeyframesFile;
prettierConfigOverride?: Record<string, unknown> | null;
videoConfigValues: VideoConfigValues | null;
}) => Promise<{
output: string;
formatted: boolean;
oldValueStrings: string[];
newValueStrings: string[];
logLine: number;
effectCallee: string;
updatedSequenceNodePath: SequenceNodePath;
}>;
export {};

Xet Storage Details

Size:
3.87 kB
·
Xet hash:
23d0d714328c4e5e7d4bd503dff7877a497403e1827b3721ed8274351ac970ca

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.