|
| 1 | +# @pascal-app/capture-protocol |
| 2 | + |
| 3 | +## 1.0.0-beta.5 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- 2f5c4e1: Rebase the fork onto upstream `pascalorg/editor@4c34032c` (2026-08-24) — 478 |
| 8 | + commits, and a move off the fork's own `0.9.x` line onto upstream's `1.0.0-beta` |
| 9 | + versioning. The fork now carries nothing but its release machinery and two |
| 10 | + editor patches; everything else is upstream. |
| 11 | + |
| 12 | + Nothing we previously exported was removed. The public API grew substantially |
| 13 | + (core 172 → 388 exports, viewer 106 → 193, editor 156 → 470) without breaking |
| 14 | + underneath consumers. |
| 15 | + |
| 16 | + What matters most for consumers: |
| 17 | + |
| 18 | + - **Near-collinear wall junctions no longer explode.** |
| 19 | + `calculateJunctionIntersections` now rejects a miter on its _outcome_, capped |
| 20 | + at `MITER_LIMIT` (10) half-thicknesses, rather than only rejecting walls that |
| 21 | + are exactly parallel. A junction where two walls run straight through each |
| 22 | + other but miss collinearity by a fraction of a degree used to put a plan |
| 23 | + vertex `halfThickness / sin(θ)` away — kilometres out, collapsing the 2D |
| 24 | + fit-to-bounds into one flat rectangle and firing beams across the 3D scene. It |
| 25 | + now butts. Imported floor plans with off-axis wall runs render correctly. |
| 26 | + - **Level assembly is dramatically faster.** `findJunctions` buckets walls into |
| 27 | + a spatial grid by AABB instead of testing every wall against every junction |
| 28 | + point. On a 1081-wall imported floor that is 584 ms → 11 ms per call, and |
| 29 | + `WallSystem` repeats the call every frame while progressively rebuilding. |
| 30 | + - **Vertical building model.** Scenes now carry explicit building and level |
| 31 | + structure (`buildingId`, `schema/nodes/building.ts`), with load-time |
| 32 | + migrations for saves that predate it — vertical, site-child, wall-slot, |
| 33 | + elevator, retired-floorplan and construction-dimension. Anything synthesizing |
| 34 | + a `SceneGraph` rather than loading a saved one needs to match the new shape; |
| 35 | + this is the single change most likely to require work on the consumer side. |
| 36 | + - **New packages:** `capture-protocol`, `capture-viewer`, `cli`. New core |
| 37 | + systems alongside `wall/` and `stair/`: `fence/`, `slab/`, `elevator/`. |
| 38 | + - **`healSceneNodes`** repairs already-saved scenes on load, dropping |
| 39 | + degenerate nodes such as zero-length walls. |
| 40 | + |
| 41 | + Three fork patches are dropped here because upstream made them redundant: |
| 42 | + |
| 43 | + - The `floorplan-registry-layer` geometry cache. Upstream landed its own |
| 44 | + `geometryCacheRef`/`levelDataCacheRef` memoisation plus the `findJunctions` |
| 45 | + prefilter above, which together address the same stall from further up. |
| 46 | + - The `ThreeElements`/`lineBasicNodeMaterial` narrowing in `viewer` that let |
| 47 | + `tsgo` check the package. Upstream adopted the TypeScript 7 native compiler |
| 48 | + and landed the identical narrowing. |
| 49 | + - `crossOrigin` on the 2D guide image. It forced the 2D `<image>` to fetch in |
| 50 | + the same CORS mode as the 3D texture load so the two shared one browser cache |
| 51 | + entry instead of downloading the image twice. Consumers that hand Pascal |
| 52 | + same-origin blob URLs never hit the split in the first place, and the flag is |
| 53 | + actively wrong for guide images served without CORS headers. |
0 commit comments