Files
tts-workshop/packages/tabletop/src/http.ts
T
hypercross 15c45e7106 refactor: share trace, error boundary, and proxy http helpers
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.
2026-08-09 22:17:24 +08:00

7 lines
347 B
TypeScript

/**
* HTTP helpers for loading part assets. Re-exported from `@tts/http`, the
* shared package for the host app's proxy (`/asset` and `/trace`) handlers.
* Kept as a thin re-export so the tabletop's public surface is unchanged.
*/
export { resolveAssetUrl, assetUrl, traceImage } from '@tts/http';
export type { TraceResult } from '@tts/http';