Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/contracts/src/android-snapshot-quality.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function isUnreadableCaptureContentError(error: unknown): boolean {
* consume the reason instead of re-deriving it from hint text: the hint is human-facing prose
* that may be reworded, and two readers sniffing it will drift apart (#1983).
*/
export const ANDROID_CAPTURE_FAILURE_REASONS = ['accessibility-timeout'] as const;
const ANDROID_CAPTURE_FAILURE_REASONS = ['accessibility-timeout'] as const;

export type AndroidCaptureFailureReason = (typeof ANDROID_CAPTURE_FAILURE_REASONS)[number];

Expand Down
7 changes: 2 additions & 5 deletions packages/contracts/src/gesture-plan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,7 @@ function tapContactPoints(points: readonly Point[]): Point[] {
}

/** The floor of three frames is what lets transport lowering claim a denser-than-endpoints path. */
export function sampleGestureOffsets(
durationMs: number,
profile: GestureSamplingProfile,
): number[] {
function sampleGestureOffsets(durationMs: number, profile: GestureSamplingProfile): number[] {
if (!Number.isFinite(durationMs) || durationMs <= 0) {
throw new AppError('INVALID_ARGS', 'gesture sample duration must be a positive finite number');
}
Expand Down Expand Up @@ -671,7 +668,7 @@ function addPoints(left: Point, right: Point): Point {
return { x: left.x + right.x, y: left.y + right.y };
}

export function interpolateGesturePoint(start: Point, end: Point, progress: number): Point {
function interpolateGesturePoint(start: Point, end: Point, progress: number): Point {
return {
x: start.x + (end.x - start.x) * progress,
y: start.y + (end.y - start.y) * progress,
Expand Down
Loading