@chanmeng666/archlang-3d 0.7.0 → 0.8.1
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 +91 -0
- package/README.md +4 -4
- package/dist/browser.d.ts +3 -5
- package/dist/browser.js +87 -472
- package/dist/{camera-CGIIudHj.d.ts → camera-BAsRq_eC.d.ts} +1 -1
- package/dist/{chunk-GXWLZ2KC.js → chunk-33J3YGNF.js} +392 -29
- package/dist/{chunk-QN4LQTVG.js → chunk-CYSES7C3.js} +128 -44
- package/dist/chunk-JQTG6BDR.js +1127 -0
- package/dist/{chunk-TI4RYEOL.js → chunk-LNIVDMPG.js} +75 -5
- package/dist/{chunk-FHBR2U5Z.js → chunk-VMVKI2WQ.js} +65 -3
- package/dist/{chunk-FVD3DZU2.js → chunk-WOEJKIXN.js} +15 -6
- package/dist/cli.js +12 -6
- package/dist/{facts-3wb9egIT.d.ts → facts-CsO0xtFw.d.ts} +1 -1
- package/dist/index.d.ts +104 -35
- package/dist/index.js +19 -5
- package/dist/node.d.ts +23 -7
- package/dist/node.js +4 -4
- package/dist/{strip-Sdsm54Qw.d.ts → payload-DwiB2P7x.d.ts} +232 -12
- package/dist/replay.d.ts +1 -115
- package/dist/scene3d.schema.json +12 -0
- package/dist/viewer.iife.js +180 -180
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,97 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.8.1] - 2026-11-15
|
|
6
|
+
|
|
7
|
+
The core peer range stays `^1.61.0` (`MIN_CORE`): nothing below reads a core export that 1.61.0 lacks.
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- A contact-shadow band no longer crosses a narrow slot into the wall beyond it (card RM8.8b): where
|
|
12
|
+
another wall face stands parallel to a band's own and facing it closer than two bands, each of the
|
|
13
|
+
two bands takes half the gap. In the stress plan with a doorway leaving a 100 mm slot in a thicker
|
|
14
|
+
wall, the 188 mm bands crossed the slot and showed 13 mm beyond the far face; in
|
|
15
|
+
`hexagon-pavilion` the drum's and the east and west spokes' bands crossed the 52 mm between them.
|
|
16
|
+
No other shipped plan's bands move, so the key frames, posters and videos are unchanged; the
|
|
17
|
+
Mesh3D and GLB are untouched (the bands are the viewer's).
|
|
18
|
+
- `npm -w packages/archlang-3d run e2e -- <file>` now filters both of its passes (card RM8.8b): npm
|
|
19
|
+
appended the filter to the frame-budget pass only, so every other e2e file ran regardless. The
|
|
20
|
+
script is one runner (`scripts/e2e.ts`) that gives each pass the filters that select its files and
|
|
21
|
+
skips a pass they select none of; with no filter it runs the same two passes as before.
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- The contact shadows' lookups cost less on a long thin plan and on a many-sided room (card RM8.8b):
|
|
26
|
+
the faces are listed in near-square grid cells, about two a face, and a cell lists a face only when
|
|
27
|
+
the two overlap (an exact test), not every face whose box reaches it. Tests a lookup makes fall
|
|
28
|
+
from 36.9 to 4.6 on a row of 400 rooms, and from 545.5 to 62.2 on a 2880-sided round room. The
|
|
29
|
+
bands are byte for byte the same.
|
|
30
|
+
|
|
31
|
+
## [0.8.0] - 2026-11-14
|
|
32
|
+
|
|
33
|
+
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.
|
|
34
|
+
|
|
35
|
+
### Added
|
|
36
|
+
|
|
37
|
+
- The package's own warnings are shown where the replay is (product-roadmap card RM8.10, ruling
|
|
38
|
+
RM-D32): `replayHtml` takes `notices` (`{ code, message }[]`, new types `ReplayNotice` and
|
|
39
|
+
`ReplayHtmlOptions`) and writes each under the replay as plain text, the warning's own `message`
|
|
40
|
+
and never a second copy of it; `archlang3d` passes the warnings of the view it writes
|
|
41
|
+
(`W3D_MIXED_HEIGHT_JOINT`, `W3D_FLOOR_OVERLAP`); the combined view of a plan of several storeys puts the
|
|
42
|
+
warning's storey first (`L2 ·`, new browser export `noticeLevelLabel`). The playground's 3D tab shows the same for the
|
|
43
|
+
storey in view. The geometry is unchanged, and the payload, Mesh3D, GLB and key frames are
|
|
44
|
+
identical with or without a notice; a replay with no notices is byte for byte as before.
|
|
45
|
+
- T0 generators for the core's sixteen new fixture families (product-roadmap card RM8.9), so none
|
|
46
|
+
is a grey box: `wall_ac` (hung with its underside at 2100 mm), `condenser`, `chest_freezer`,
|
|
47
|
+
`wine_fridge`, `display_cabinet`, `folding_screen` (its even count of panels, as the plan draws),
|
|
48
|
+
`daybed`, `pool` (the water a slab at grade inside the coping, never dug: the ground is the
|
|
49
|
+
viewer's, at floor level; ledgered `pool-water-at-grade`), `garden_gate`, `gazebo` (a lofted
|
|
50
|
+
hipped roof), `greenhouse` (a gable extruded along its long axis), `wall_art` (hung by its top at
|
|
51
|
+
1900 mm, three quarters as tall as it is wide, 300 to 1000 mm, its underside ledgered per piece),
|
|
52
|
+
`climber`, `bamboo`, `potted_tree` and `stepping_stones` (the plan's count of stones). Every one is
|
|
53
|
+
mirror-symmetric, with its height, mount and materials ledgered; a family may now ledger a further
|
|
54
|
+
default (`T0Family.defaults`, `T0_DEFAULTS`). A plan that names none of the new words builds the
|
|
55
|
+
same Mesh3D and GLB as before.
|
|
56
|
+
- A room's floor is laid in the finish its plan's author wrote (`room … floor <word>`, product-roadmap
|
|
57
|
+
card RM8.7), read off the core's public `RRoom.floor` into Scene3D's new optional `Floor.pattern`;
|
|
58
|
+
only a room with no `floor` word takes the default by its `uses` (`floorFinish`), ledgered as
|
|
59
|
+
before (`floor-finish-default`). Five finishes join `FLOOR_FINISHES`, after the first three so a
|
|
60
|
+
GLB's material names keep their order: `carpeting` (the palette's wool), `stone` (its stone),
|
|
61
|
+
`deck` (its oak), `paving` (the colour an `outdoor paving` is built in) and `concrete`. The
|
|
62
|
+
`outdoor` kinds `sand` (a pale buff, `SITE_PALETTE.sand`) and `soil` (the palette's soil) are
|
|
63
|
+
built in their own colours, ledgered per kind (`outdoor-colour-3d`). New exports:
|
|
64
|
+
`FLOOR_WORD_FINISH`, `wordFinish`. A plan that writes no `floor` word builds the same Mesh3D and
|
|
65
|
+
GLB as before.
|
|
66
|
+
- The replay draws soft contact shadows (product-roadmap card RM8.8): translucent black bands
|
|
67
|
+
baked once from the geometry when the replay is mounted, never a shadow map. Along the foot of
|
|
68
|
+
each storey's walls and columns (their outline, a fan of the 16-gon at each outside corner, the
|
|
69
|
+
bands mitred where a curved wall's chords meet), up both faces of each inside corner sharper than
|
|
70
|
+
30° (stopping at a jamb), round each standing piece of furniture (a hung one casts none, and a rug,
|
|
71
|
+
lower than its band, casts none and receives), along both sides of each fence run and round each
|
|
72
|
+
stair's stringers; floors, outdoor surfaces, slabs, rugs and the ground only receive, each band on
|
|
73
|
+
the highest of them under it. Each band fades in over the last quarter of its caster's rise. They
|
|
74
|
+
are the viewer's, not the file's: the GLB is unchanged, and every Mesh3D ledgers them
|
|
75
|
+
(`contact-shadows-viewer-only`, the widths and alphas of `CONTACT_SHADOW`). At most three draws a
|
|
76
|
+
storey; `ReplayNode.band` carries each caster's width, `ReplayNode.flat` marks a rug, and
|
|
77
|
+
`ReplayPayload.shadows: false` turns them off (the frame-time measurement only). The limits line
|
|
78
|
+
(`PREVIEW_LIMITS`) says so. New exports: `contactShadows`, `contactFade`, `CONTACT_SHADOW`,
|
|
79
|
+
`contactBandMm`.
|
|
80
|
+
|
|
81
|
+
### Fixed
|
|
82
|
+
|
|
83
|
+
- A `winders <n>` landing is built as its `n` tapered treads, one riser each (product-roadmap card
|
|
84
|
+
RM1.2g, ruling RM-D36), where it was one level landing: the stair now climbs the risers the plan
|
|
85
|
+
draws and `W_STAIR_RISER_TOO_HIGH` reads, `n - 1` more than on a level landing (`winders 8` up
|
|
86
|
+
2750 mm: 16 risers of 171.875 mm, where it climbed 9 of about 306 mm). The treads are cut on the
|
|
87
|
+
lines the plan's glyph draws across the landing, the core's new public `winderTreads`, read per
|
|
88
|
+
stair (no storey is drawn for them), never re-derived; Scene3D's `StairLanding` gains an optional
|
|
89
|
+
`winders` (each tread's plan ring, in climbing order), and `stairRisers(flights, landings?)` counts
|
|
90
|
+
them. A landing's open edge takes a rail stepped with the treads, and the mesh ledgers each such
|
|
91
|
+
landing (`stair-winders-from-drawing`) and its closed risers (`stair-winders-solid`). On a core
|
|
92
|
+
without `winderTreads`, a `winders` landing is built level as before and ledgered
|
|
93
|
+
(`stair-winders-not-read`). A plan with no `winders` builds the same Scene3D, Mesh3D and GLB as
|
|
94
|
+
before.
|
|
95
|
+
|
|
5
96
|
## [0.7.0] - 2026-11-12
|
|
6
97
|
|
|
7
98
|
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
|
|
11
|
-
the ground
|
|
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.
|
|
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-
|
|
2
|
-
import { ReplayPayload } from './
|
|
3
|
-
export { PREVIEW_ABOUT_URL, PREVIEW_LABEL, PREVIEW_LEAD, PREVIEW_LIMITS, ReplayNode, ReplayOptions, replayPayload, viewBoxOf } from './
|
|
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 {
|