Skip to content

Commit 7e42b54

Browse files
committed
fix(frontend): remove unused Cv type and bandColOffsetBounds fullW param (CI tsc)
Made-with: Cursor
1 parent bed0ad1 commit 7e42b54

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

frontend/src/components/RoninProCustomSlice.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ function splitSpriteSheetWithStarts(
246246
}
247247

248248
/** 同一行带内所有竖线同时加同一 offset 时,offset 的可行区间(像素,整数) */
249-
function bandColOffsetBounds(colStarts: number[], fullW: number): { min: number; max: number } {
249+
function bandColOffsetBounds(colStarts: number[]): { min: number; max: number } {
250250
const n = colStarts.length
251251
if (n < 2) return { min: 0, max: 0 }
252252
let lo = -Infinity
@@ -679,7 +679,7 @@ export default function RoninProCustomSlice() {
679679

680680
const setL7BandColOffsetBand = (bandIndex: number, value: number) => {
681681
if (!previewColStarts || !previewMeta) return
682-
const { min, max } = bandColOffsetBounds(previewColStarts, previewMeta.w)
682+
const { min, max } = bandColOffsetBounds(previewColStarts)
683683
const v = Math.max(min, Math.min(max, Math.floor(value)))
684684
const rowsN = previewMeta.rows
685685
setL7BandColOffset((prev) => {
@@ -1579,7 +1579,7 @@ export default function RoninProCustomSlice() {
15791579
{previewMeta.rows > 1 &&
15801580
l7BandColOffset.length === previewMeta.rows &&
15811581
(() => {
1582-
const b = bandColOffsetBounds(previewColStarts, previewMeta.w)
1582+
const b = bandColOffsetBounds(previewColStarts)
15831583
const rowsN = previewMeta.rows
15841584
if (b.min > b.max) return null
15851585
return (

frontend/src/lib/opticalFlowInterpolate.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
*/
66
import { loadOpenCv } from './pixellise/opencv'
77

8-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
9-
type Cv = any
10-
118
export type OpticalFlowQuality = 'fast' | 'balanced' | 'high'
129

1310
export interface OpticalFlowInterpolateOptions {

0 commit comments

Comments
 (0)