index.ts
1.03 KB
/**
* @hm/clean-adapters —— 清洗算法(@hm/clean-core)的「壳」集合。
*
* 算法包只管纯函数;这一层负责把它接进真实世界:
* - xlsx / csv 解码(decodeIncidentFile)
* - 几何资源加载(loadLandMaskFromUrl / loadCorridorsFromUrl)
* - 行归一化(normalizeIncidentTable:列映射 + 地址拆解 → CleanRow[])
* - 端到端编排(runClean:解码 → 归一化 → 清洗 → 报告 + 标注)
* - Worker 宿主(cleanWorkerHandler:把清洗挂到 Web Worker)
*/
export { decodeIncidentFile } from './xlsx';
export type { RawTable } from './xlsx';
export { loadLandMaskFromUrl, loadCorridorsFromUrl } from './loaders';
export { normalizeIncidentTable } from './normalize';
export type { NormalizeResult } from './normalize';
export { runClean } from './runClean';
export type { RunCleanInput, RunCleanResult, AnnotatedRow } from './runClean';
export { cleanWorkerHandler } from './worker';
export type { CleanWorkerRequest, CleanWorkerResponse } from './worker';