Lift the trace-to-shape geometry into @tts/mesh (traceToShape/ traceToUvBounds), parameterized by scale so the web token viewer and @tts/tabletop share one implementation. Move the CORS proxy HTTP helpers (assetUrl, resolveAssetUrl, traceImage) into a new @tts/http package, and make @tts/tabletop's ErrorBoundary the single source used by the web app. This removes the duplicated ErrorBoundary, assetUrl, tabletopHttp, and trace-to-shape code from apps/web and packages/tabletop.
3 lines
144 B
TypeScript
3 lines
144 B
TypeScript
export { resolveAssetUrl, assetUrl } from './asset.js';
|
|
export { traceImage } from './trace.js';
|
|
export type { TraceResult } from '@tts/shared'; |