@chanmeng666/archlang-3d 0.5.0 → 0.7.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,108 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.7.0] - 2026-11-12
6
+
7
+ The core peer range stays `^1.57.0`: nothing below needs an export newer than core 1.57.0.
8
+
9
+ ### Added
10
+
11
+ - Doorways, windows and stairs are built in their parts (product-roadmap card RM8.6). Every door
12
+ and cased opening gets a lining on its jambs and head (0.1 of the wall's thickness, 12–25 mm; a
13
+ door's in two halves round a 40 mm slot for its leaf, which keeps its length and place) and a
14
+ casing on each wall face (0.35 t wide, 50–90 mm, 0.1 t proud, 10–20 mm), as parts `lining` and
15
+ `casing` of its node. A barn door has no casing on the face its panel hangs on, a garage door
16
+ none, a door on a curved wall no trim; a casing leg that would stand in another wall, a column,
17
+ standing furniture (a rug is passed through), another doorway or a neighbour's trim is left out,
18
+ never shortened, and a sill or board end that would meet a neighbour's stops at its jamb (every
19
+ omission ledgered). A storey's trim is decided all at once, never in the order the plan writes its
20
+ openings: every casing before any sill or board (a casing beats a horn), and two casing legs, or two
21
+ windows' horns or spans, that meet are both left out or cut back, so swapping two openings' lines changes nothing and
22
+ a mirror-symmetric plan gets mirror-symmetric trim. Every window gets a reveal
23
+ lining on its inside half (`reveal`, in the frame's colour), an exterior sill proud of the outside
24
+ face and past each jamb by 0.2 t, as the core draws it (`sill`, pale stone), and an interior board
25
+ (`board`, oak); the outside is the core's own rule (`insideOf`, one wall thickness off each face).
26
+ A stair is tread boards with open risers and solid landings (its own node), two stringers a flight
27
+ (`stringer`) and a balustrade on each edge the probe finds open (`rail`, walnut: a sloping
28
+ handrail 900 mm over the nosing line, a baluster a tread, a newel at each end; a level rail
29
+ 1000 mm over the stretches of a landing edge that no flight arrives on and no wall closes). Every size is a clamped share of the wall's thickness or the
30
+ stair's own riser, going and width (`OPENING_DETAIL`, `STAIR_DETAIL`) and ledgered per opening
31
+ and per stair; `stair-solid-default` is gone. New exports: `storeyTrim`, `insideOf`,
32
+ `OPENING_DETAIL`, `stairDetail`, `STAIR_DETAIL`, `STAIR_RAIL_MATERIAL`.
33
+
34
+ ### Changed
35
+
36
+ - A tree's, a plant's and a shrub's crown and a bean bag are one lofted shell through the dome's
37
+ rings (`Part.loft`) instead of stacked round tiers, so they read smooth (backlog VA.1). The
38
+ conifer keeps its tiers.
39
+
40
+ ## [0.6.0] - 2026-11-12
41
+
42
+ The core peer range stays `^1.57.0`. The wall-joint fix below is the core's, so it takes core 1.59.0;
43
+ with an older core in the range those walls build as before.
44
+
45
+ ### Added
46
+
47
+ - `renderReplay({ supersample: k })` (from `@chanmeng666/archlang-3d/node`; `VideoOptions.supersample`)
48
+ draws each frame as the rounded mean of k × k renders shifted by fractions of a pixel, a whole
49
+ number from 1 to 4, so edges are anti-aliased; 1, the default, draws as before. The replay page
50
+ reads it from `ReplayPayload.supersample`, which `replayPayload` never sets: it is for offline
51
+ generation, and a live page that sets it draws every frame k × k times. The posters and replay
52
+ videos on archlang.uk are generated with 3 × 3 and 2 × 2.
53
+ - Outdoor surfaces and fences are built. Each of the nine `outdoor` kinds is a 50 mm slab whose top
54
+ is its storey's floor level (Mesh3D kind `outdoor`, node `outdoor:<id>`, stage `brief`), in a
55
+ colour from the core's theme: the tint the drawing fills it with (`lawn`, `paving` or `water`,
56
+ `GROUND_TINT`) laid on six times over the theme's paper (`GROUND_WASH`), so lawn is #99b76f,
57
+ paving #ab9f87 and water #699fc3. Four kinds the drawing tells apart only by hatch get colours of
58
+ their own (`GROUND_SPLITS`, `SITE_PALETTE`): planting, deck, gravel and driveway. A surface never
59
+ lies in the plane of a face it overlaps: over the slab it stands a step (0.5 mm) above the slab's
60
+ top, over an earlier surface a step above that one, and a step more where it would meet a floor's
61
+ bottom or top. Each `fence` (kind `fence`, stage `walls`, rising with the walls) has a post on
62
+ every tick the core draws (round(run / pitch) divisions, 1 to 60, `fencePosts`) and its style's
63
+ rails: a picket fence two rails and pickets, 1000 mm; a panel fence one board, 1800 mm; a
64
+ post-and-rail fence a top rail, 1100 mm (`FENCE_PROFILES`, `FENCE_HEIGHT_MM`, `FENCE_PALETTE`).
65
+ A fence whose points are all one point builds nothing. The colour rides on the node
66
+ (`extras.colour`), and the GLB writes it as `outdoor:<kind>` and `fence:<style>`. Every default
67
+ is in the ledger (`outdoor-thickness-default`, `outdoor-colour-wash`, `outdoor-colour-theme`,
68
+ `outdoor-colour-3d`, `outdoor-overlap-lift`, `outdoor-rail-omitted`, `fence-height-default`,
69
+ `fence-profile-default`, `fence-colour-default`, `fence-no-run`), in place of the two
70
+ `m1-omits-outdoor-fences` rows. A balcony's railing is not built.
71
+ - The replay stands the building on a ground plane: a backdrop the viewer draws, not part of the
72
+ building and not in the file (no Mesh3D node, not in the GLB). Its top is the lowest storey's
73
+ floor level, so a garden lies flush in it, and it reaches 6 m past everything drawn
74
+ (`GROUND_PLANE`, `ReplayPayload.ground`); it fades in as the core's drawing fades out
75
+ (`ReplayState.ground`, 0 to 1). A view of an upper storey on its own draws no ground. Every
76
+ Mesh3D says so in one ledger row, `ground-plane-viewer-only` (the storey, the margin, the light
77
+ and dark colours). A plan without outdoor surfaces or fences builds the same nodes and the same GLB
78
+ as before.
79
+ - `PREVIEW_LIMITS` names outdoor surfaces and fences, the ground backdrop and the balcony railings
80
+ that are not built.
81
+
82
+ ### Changed
83
+
84
+ - three.js 0.187.0 (was 0.186.1), pinned exactly and inlined into the replay HTML with its MIT
85
+ notice, as before.
86
+
87
+ ### Fixed
88
+
89
+ - `mountReplay` no longer draws a line on a flat wall surface where two wall pieces meet: beside a
90
+ door or a window only the reveal between sill and head is outlined; the flat back of a T
91
+ junction, the outer face of an L corner made of two walls and the joint of two walls in line
92
+ carry no line, and no line cuts across a wall top there. The inside corners of a T or an X
93
+ junction keep their lines. The walls' and columns' outlines are worked out across each storey
94
+ (`src/replay/wall-lines.ts`) in place of three.js's `EdgesGeometry` per node, which every other
95
+ node keeps. The faces two pieces share are not drawn either (they showed through a flat wall at
96
+ a grazing angle): inside one wall always, and between two nodes once the walls and columns connected
97
+ to it on the same storey are all up, so while the replay raises the walls each is drawn whole and no
98
+ frame shows a gap. Known limit: during the rise, a face two walls share can still show a faint
99
+ seam at a grazing angle; the finished storey has none. The
100
+ playground's 3D tab, the replay HTML and the generated posters and videos all draw this way;
101
+ Mesh3D, the GLB and Scene3D are unchanged.
102
+ - With core 1.59.0, walls that come within 0.015 mm of meeting no longer build a triangular piece
103
+ next to the joint, or keep a slanted edge a few µm long: the core's wall joinery now closes those
104
+ outlines (core `CHANGELOG.md`, 1.59.0, Fixed). No shipped plan hits it: every Mesh3D and GLB over
105
+ the corpus is byte-identical.
106
+
5
107
  ## [0.5.0] - 2026-11-11
6
108
 
7
109
  The core peer range stays `^1.57.0`. The rooted `import` below works with any core in it; with
package/README.md CHANGED
@@ -7,8 +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 and furniture in flat colours; no pitched roofs yet,
11
- and no sections, elevations or BIM.
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.
12
13
 
13
14
  ## Install
14
15
 
@@ -29,7 +30,7 @@ cp node_modules/@chanmeng666/archlang/examples/laneway-house.arch plan.arch
29
30
  npx archlang3d view plan.arch --replay -o plan.html
30
31
  ```
31
32
 
32
- `plan.html` opens offline. three.js 0.186.1 is inside the file with its licence notice, and nothing
33
+ `plan.html` opens offline. The pinned three.js is inside the file with its licence notice, and nothing
33
34
  is fetched from a network. `--theme dark` and `--storey <n>` change what it shows.
34
35
 
35
36
  A plan of several storeys rises storey by storey, each lifted clear of the one below so the floor
@@ -947,10 +947,10 @@ This software contains code derived from the Puppeteer project (https://github.c
947
947
  available under the Apache 2.0 license (https://github.com/puppeteer/puppeteer/blob/master/LICENSE).
948
948
 
949
949
  ==============================================================================
950
- three 0.186.1 — MIT
950
+ three 0.187.0 — MIT
951
951
  https://github.com/mrdoob/three.js
952
952
 
953
- LICENSE is MIT (three.js authors). The core build the viewer imports is three.js's own code; its addons (examples/jsm, which carry their own notices) are not imported. Inlined into the replay HTML with its notice.
953
+ LICENSE is MIT (three.js authors). The viewer imports the core build and OrbitControls (examples/jsm/controls), both three.js's own code under this LICENSE; OrbitControls carries no notice of its own (read at 0.187.0). The other addons, some of which carry their own notices, are not imported. Inlined into the replay HTML with its notice.
954
954
 
955
955
  The MIT License
956
956
 
package/dist/browser.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- import { P as PresetName, V as Vec3 } from './camera-DVOiag0F.js';
1
+ import { P as PresetName, V as Vec3 } from './camera-CGIIudHj.js';
2
2
  import { ReplayPayload } from './replay.js';
3
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-Nt7eJ-4E.js';
5
- export { R as ReplayFacts, s as stripAt } from './strip-Nt7eJ-4E.js';
4
+ import { S as StripItem } from './strip-Sdsm54Qw.js';
5
+ export { R as ReplayFacts, s as stripAt } from './strip-Sdsm54Qw.js';
6
+ import '@chanmeng666/archlang';
6
7
 
7
8
  interface ReplayHandle {
8
9
  /** Render the frame at replay time `t` (clamped to [0, 1]) into the canvas, synchronously. */