- Fix DEFAULT_PIPELINE_CONFIG from PIPELINE_HIGH (1440) to PIPELINE_MEDIUM (720) to match documented performance estimates and test expectations - Extract geometry/hit-detection utilities from MaskSegmentCanvas.tsx into canvasGeometry.ts (~380 lines) - Extract outline path functions from maskSegmentation.ts into maskOutlinePaths.ts (~470 lines) - Net reduction of ~1,700 lines across the two core files Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
625 B
TypeScript
18 lines
625 B
TypeScript
import { type SkPath } from '@shopify/react-native-skia';
|
|
import type { SegmentRegion, RegionMaskData } from './maskSegmentation';
|
|
export declare function buildRegionOutlinePathForRegion(regionId: number, regions: SegmentRegion[], maskData: RegionMaskData, rect: {
|
|
x: number;
|
|
y: number;
|
|
w: number;
|
|
h: number;
|
|
}, normSeed?: {
|
|
x: number;
|
|
y: number;
|
|
}): SkPath;
|
|
export declare function buildAllRegionOutlinePaths(regions: SegmentRegion[], maskData: RegionMaskData, rect: {
|
|
x: number;
|
|
y: number;
|
|
w: number;
|
|
h: number;
|
|
}): Map<number, SkPath>;
|
|
//# sourceMappingURL=maskOutlinePaths.d.ts.map
|