@chanmeng666/archlang-3d 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,71 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.8.0] - 2026-11-14
6
+
7
+ The core peer range rises to `^1.61.0` (`MIN_CORE`): the winder treads below are cut on the core's `winderTreads`, new in core 1.61.0, as the stairs read `treadCount` from 1.57.0. The read stays feature-detected, so a core below the floor still builds every plan, a `winders` landing level (`stair-winders-not-read`). The sixteen new families' generators and the new floor and ground finishes come into use only with a core that knows their words, 1.61.0; an older core never hands them a piece.
8
+
9
+ ### Added
10
+
11
+ - The package's own warnings are shown where the replay is (product-roadmap card RM8.10, ruling
12
+ RM-D32): `replayHtml` takes `notices` (`{ code, message }[]`, new types `ReplayNotice` and
13
+ `ReplayHtmlOptions`) and writes each under the replay as plain text, the warning's own `message`
14
+ and never a second copy of it; `archlang3d` passes the warnings of the view it writes
15
+ (`W3D_MIXED_HEIGHT_JOINT`, `W3D_FLOOR_OVERLAP`); the combined view of a plan of several storeys puts the
16
+ warning's storey first (`L2 ·`, new browser export `noticeLevelLabel`). The playground's 3D tab shows the same for the
17
+ storey in view. The geometry is unchanged, and the payload, Mesh3D, GLB and key frames are
18
+ identical with or without a notice; a replay with no notices is byte for byte as before.
19
+ - T0 generators for the core's sixteen new fixture families (product-roadmap card RM8.9), so none
20
+ is a grey box: `wall_ac` (hung with its underside at 2100 mm), `condenser`, `chest_freezer`,
21
+ `wine_fridge`, `display_cabinet`, `folding_screen` (its even count of panels, as the plan draws),
22
+ `daybed`, `pool` (the water a slab at grade inside the coping, never dug: the ground is the
23
+ viewer's, at floor level; ledgered `pool-water-at-grade`), `garden_gate`, `gazebo` (a lofted
24
+ hipped roof), `greenhouse` (a gable extruded along its long axis), `wall_art` (hung by its top at
25
+ 1900 mm, three quarters as tall as it is wide, 300 to 1000 mm, its underside ledgered per piece),
26
+ `climber`, `bamboo`, `potted_tree` and `stepping_stones` (the plan's count of stones). Every one is
27
+ mirror-symmetric, with its height, mount and materials ledgered; a family may now ledger a further
28
+ default (`T0Family.defaults`, `T0_DEFAULTS`). A plan that names none of the new words builds the
29
+ same Mesh3D and GLB as before.
30
+ - A room's floor is laid in the finish its plan's author wrote (`room … floor <word>`, product-roadmap
31
+ card RM8.7), read off the core's public `RRoom.floor` into Scene3D's new optional `Floor.pattern`;
32
+ only a room with no `floor` word takes the default by its `uses` (`floorFinish`), ledgered as
33
+ before (`floor-finish-default`). Five finishes join `FLOOR_FINISHES`, after the first three so a
34
+ GLB's material names keep their order: `carpeting` (the palette's wool), `stone` (its stone),
35
+ `deck` (its oak), `paving` (the colour an `outdoor paving` is built in) and `concrete`. The
36
+ `outdoor` kinds `sand` (a pale buff, `SITE_PALETTE.sand`) and `soil` (the palette's soil) are
37
+ built in their own colours, ledgered per kind (`outdoor-colour-3d`). New exports:
38
+ `FLOOR_WORD_FINISH`, `wordFinish`. A plan that writes no `floor` word builds the same Mesh3D and
39
+ GLB as before.
40
+ - The replay draws soft contact shadows (product-roadmap card RM8.8): translucent black bands
41
+ baked once from the geometry when the replay is mounted, never a shadow map. Along the foot of
42
+ each storey's walls and columns (their outline, a fan of the 16-gon at each outside corner, the
43
+ bands mitred where a curved wall's chords meet), up both faces of each inside corner sharper than
44
+ 30° (stopping at a jamb), round each standing piece of furniture (a hung one casts none, and a rug,
45
+ lower than its band, casts none and receives), along both sides of each fence run and round each
46
+ stair's stringers; floors, outdoor surfaces, slabs, rugs and the ground only receive, each band on
47
+ the highest of them under it. Each band fades in over the last quarter of its caster's rise. They
48
+ are the viewer's, not the file's: the GLB is unchanged, and every Mesh3D ledgers them
49
+ (`contact-shadows-viewer-only`, the widths and alphas of `CONTACT_SHADOW`). At most three draws a
50
+ storey; `ReplayNode.band` carries each caster's width, `ReplayNode.flat` marks a rug, and
51
+ `ReplayPayload.shadows: false` turns them off (the frame-time measurement only). The limits line
52
+ (`PREVIEW_LIMITS`) says so. New exports: `contactShadows`, `contactFade`, `CONTACT_SHADOW`,
53
+ `contactBandMm`.
54
+
55
+ ### Fixed
56
+
57
+ - A `winders <n>` landing is built as its `n` tapered treads, one riser each (product-roadmap card
58
+ RM1.2g, ruling RM-D36), where it was one level landing: the stair now climbs the risers the plan
59
+ draws and `W_STAIR_RISER_TOO_HIGH` reads, `n - 1` more than on a level landing (`winders 8` up
60
+ 2750 mm: 16 risers of 171.875 mm, where it climbed 9 of about 306 mm). The treads are cut on the
61
+ lines the plan's glyph draws across the landing, the core's new public `winderTreads`, read per
62
+ stair (no storey is drawn for them), never re-derived; Scene3D's `StairLanding` gains an optional
63
+ `winders` (each tread's plan ring, in climbing order), and `stairRisers(flights, landings?)` counts
64
+ them. A landing's open edge takes a rail stepped with the treads, and the mesh ledgers each such
65
+ landing (`stair-winders-from-drawing`) and its closed risers (`stair-winders-solid`). On a core
66
+ without `winderTreads`, a `winders` landing is built level as before and ledgered
67
+ (`stair-winders-not-read`). A plan with no `winders` builds the same Scene3D, Mesh3D and GLB as
68
+ before.
69
+
5
70
  ## [0.7.0] - 2026-11-12
6
71
 
7
72
  The core peer range stays `^1.57.0`: nothing below needs an export newer than core 1.57.0.
package/README.md CHANGED
@@ -7,9 +7,9 @@ your source and the core's drawing as they are.
7
7
  From a plan it writes a replay (one HTML file: the plan draws itself, then the walls rise) and a GLB
8
8
  for any glTF viewer. Same source, plan and 3D preview. The 3D preview is extruded from the same .arch file by the separate archlang-3d package, and checked against the plan: every 3D element comes from the plan's elements, and every solid is closed.
9
9
 
10
- 3D preview: walls, openings, floors, stairs, furniture, outdoor surfaces and fences in flat colours;
11
- the ground is a backdrop the viewer draws, not part of the building and not in the file; no pitched
12
- roofs or balcony railings yet, and no sections, elevations or BIM.
10
+ 3D preview: walls, openings, floors, stairs, furniture, outdoor surfaces and fences in plain colours;
11
+ the ground and the soft contact shadows are the viewer's, not part of the building and not in the
12
+ file; no pitched roofs or balcony railings yet, and no sections, elevations or BIM.
13
13
 
14
14
  ## Install
15
15
 
@@ -17,7 +17,7 @@ roofs or balcony railings yet, and no sections, elevations or BIM.
17
17
  npm install @chanmeng666/archlang-3d @chanmeng666/archlang
18
18
  ```
19
19
 
20
- Needs Node 20 or newer. The core, `@chanmeng666/archlang`, is a peer dependency at `^1.57.0`. To
20
+ Needs Node 20 or newer. The core, `@chanmeng666/archlang`, is a peer dependency at `^1.61.0`. To
21
21
  follow along, take a plan from the examples the core ships:
22
22
 
23
23
  ```sh
package/dist/browser.d.ts CHANGED
@@ -1,8 +1,6 @@
1
- import { P as PresetName, V as Vec3 } from './camera-CGIIudHj.js';
2
- import { ReplayPayload } from './replay.js';
3
- export { PREVIEW_ABOUT_URL, PREVIEW_LABEL, PREVIEW_LEAD, PREVIEW_LIMITS, ReplayNode, ReplayOptions, replayPayload, viewBoxOf } from './replay.js';
4
- import { S as StripItem } from './strip-Sdsm54Qw.js';
5
- export { R as ReplayFacts, s as stripAt } from './strip-Sdsm54Qw.js';
1
+ import { P as PresetName, V as Vec3 } from './camera-BAsRq_eC.js';
2
+ import { R as ReplayPayload, S as StripItem } from './payload-DwiB2P7x.js';
3
+ export { P as PREVIEW_ABOUT_URL, a as PREVIEW_LABEL, b as PREVIEW_LEAD, c as PREVIEW_LIMITS, d as ReplayFacts, e as ReplayNode, f as ReplayOptions, n as noticeLevelLabel, r as replayPayload, s as stripAt, v as viewBoxOf } from './payload-DwiB2P7x.js';
6
4
  import '@chanmeng666/archlang';
7
5
 
8
6
  interface ReplayHandle {