@chanmeng666/archlang-3d 0.6.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 +100 -0
- package/README.md +4 -4
- package/dist/browser.d.ts +3 -5
- package/dist/browser.js +98 -475
- package/dist/{camera-DcyxtBjK.d.ts → camera-BAsRq_eC.d.ts} +1 -1
- package/dist/{chunk-6WCS4TAT.js → chunk-B4PZWWSP.js} +452 -37
- package/dist/{chunk-TNNJ7CAO.js → chunk-LNIVDMPG.js} +103 -9
- package/dist/{chunk-LMFD5NP4.js → chunk-MCASL4MM.js} +18 -7
- package/dist/chunk-MXKKNJPU.js +983 -0
- package/dist/{chunk-CX6IVI7I.js → chunk-VMVKI2WQ.js} +65 -3
- package/dist/chunk-WARUDAOQ.js +2276 -0
- package/dist/cli.js +12 -6
- package/dist/{facts-Dje5wcHh.d.ts → facts-CsO0xtFw.d.ts} +1 -1
- package/dist/index.d.ts +341 -37
- package/dist/index.js +36 -6
- package/dist/node.d.ts +23 -7
- package/dist/node.js +4 -4
- package/dist/{strip-CA-IAT0N.d.ts → payload-DwiB2P7x.d.ts} +276 -12
- package/dist/replay.d.ts +1 -115
- package/dist/scene3d.schema.json +12 -0
- package/dist/viewer.iife.js +181 -181
- package/package.json +3 -3
- package/dist/chunk-VXGQYUMN.js +0 -1198
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,106 @@
|
|
|
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
|
+
|
|
70
|
+
## [0.7.0] - 2026-11-12
|
|
71
|
+
|
|
72
|
+
The core peer range stays `^1.57.0`: nothing below needs an export newer than core 1.57.0.
|
|
73
|
+
|
|
74
|
+
### Added
|
|
75
|
+
|
|
76
|
+
- Doorways, windows and stairs are built in their parts (product-roadmap card RM8.6). Every door
|
|
77
|
+
and cased opening gets a lining on its jambs and head (0.1 of the wall's thickness, 12–25 mm; a
|
|
78
|
+
door's in two halves round a 40 mm slot for its leaf, which keeps its length and place) and a
|
|
79
|
+
casing on each wall face (0.35 t wide, 50–90 mm, 0.1 t proud, 10–20 mm), as parts `lining` and
|
|
80
|
+
`casing` of its node. A barn door has no casing on the face its panel hangs on, a garage door
|
|
81
|
+
none, a door on a curved wall no trim; a casing leg that would stand in another wall, a column,
|
|
82
|
+
standing furniture (a rug is passed through), another doorway or a neighbour's trim is left out,
|
|
83
|
+
never shortened, and a sill or board end that would meet a neighbour's stops at its jamb (every
|
|
84
|
+
omission ledgered). A storey's trim is decided all at once, never in the order the plan writes its
|
|
85
|
+
openings: every casing before any sill or board (a casing beats a horn), and two casing legs, or two
|
|
86
|
+
windows' horns or spans, that meet are both left out or cut back, so swapping two openings' lines changes nothing and
|
|
87
|
+
a mirror-symmetric plan gets mirror-symmetric trim. Every window gets a reveal
|
|
88
|
+
lining on its inside half (`reveal`, in the frame's colour), an exterior sill proud of the outside
|
|
89
|
+
face and past each jamb by 0.2 t, as the core draws it (`sill`, pale stone), and an interior board
|
|
90
|
+
(`board`, oak); the outside is the core's own rule (`insideOf`, one wall thickness off each face).
|
|
91
|
+
A stair is tread boards with open risers and solid landings (its own node), two stringers a flight
|
|
92
|
+
(`stringer`) and a balustrade on each edge the probe finds open (`rail`, walnut: a sloping
|
|
93
|
+
handrail 900 mm over the nosing line, a baluster a tread, a newel at each end; a level rail
|
|
94
|
+
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
|
|
95
|
+
stair's own riser, going and width (`OPENING_DETAIL`, `STAIR_DETAIL`) and ledgered per opening
|
|
96
|
+
and per stair; `stair-solid-default` is gone. New exports: `storeyTrim`, `insideOf`,
|
|
97
|
+
`OPENING_DETAIL`, `stairDetail`, `STAIR_DETAIL`, `STAIR_RAIL_MATERIAL`.
|
|
98
|
+
|
|
99
|
+
### Changed
|
|
100
|
+
|
|
101
|
+
- A tree's, a plant's and a shrub's crown and a bean bag are one lofted shell through the dome's
|
|
102
|
+
rings (`Part.loft`) instead of stacked round tiers, so they read smooth (backlog VA.1). The
|
|
103
|
+
conifer keeps its tiers.
|
|
104
|
+
|
|
5
105
|
## [0.6.0] - 2026-11-12
|
|
6
106
|
|
|
7
107
|
The core peer range stays `^1.57.0`. The wall-joint fix below is the core's, so it takes core 1.59.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-CA-IAT0N.js';
|
|
5
|
-
export { R as ReplayFacts, s as stripAt } from './strip-CA-IAT0N.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 {
|