@chanmeng666/archlang-3d 0.9.0 → 0.9.2

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,36 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.9.2] - 2026-11-23
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
+ ### Changed
10
+
11
+ - With a core that measures a door on a curved wall where it draws it (core 1.68.1, card ARC1b), an
12
+ opening on an `arc` wall takes its jambs, and a door its leaves, from the two ends of the
13
+ joinery's cut, through `doorSwing`/`doorLeaves` as before. The plan pose and the GLB build the
14
+ leaf where the plan draws it. Which face a window's sill goes on (`insideOf`) is now probed from
15
+ the opening's centre whenever the jambs' chord stands 1 mm or more off it, as the core's own
16
+ face probe does. Otherwise the chord's sagitta could pass a wall thickness and find floor on
17
+ both faces (a 1700 mm window on R1300). Every opening on a straight wall builds as before.
18
+ Under `--doors plan` the example `aquarium` now ledgers `door-leaf-through-wall` for `d_rot_n`
19
+ (and its node carries `through_wall: true`): its leaf crosses the sliver of the straight
20
+ partition running tangent to the rotunda at that doorway. It always did, and the 19-point
21
+ sampler stepped over the sliver until the leaf moved onto the jamb.
22
+
23
+ ## [0.9.1] - 2026-11-23
24
+
25
+ The core peer range stays `^1.61.0` (`MIN_CORE`): nothing below reads a core export that 1.61.0 lacks.
26
+
27
+ ### Changed
28
+
29
+ - A room whose `room polygon` ring has an arc edge (core 1.68.0, card ARC2) lays its floor finish
30
+ to the curve at the chord tolerance, read from the room's exact `edges` (a public `RRoom` field
31
+ new in core 1.68.0), the way a `room circle`'s floor is cut from its exact circle, where it took
32
+ the core's fixed-step ring. The read is feature-detected: a core without the field carries no arc
33
+ ring, and every other room builds as before.
34
+
5
35
  ## [0.9.0] - 2026-11-17
6
36
 
7
37
  The core peer range stays `^1.61.0` (`MIN_CORE`): nothing below reads a core export that 1.61.0 lacks.
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-EL4456GB.js";
14
14
  import {
15
15
  readGlbNodes
16
- } from "./chunk-7FYCBISZ.js";
16
+ } from "./chunk-77AJ2KNP.js";
17
17
 
18
18
  // src/world.ts
19
19
  import { readFileSync, realpathSync, statSync } from "node:fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  version
3
- } from "./chunk-P2BDEK2Q.js";
3
+ } from "./chunk-GLKM75WU.js";
4
4
  import {
5
5
  FENCE_PALETTE,
6
6
  FINISH_PALETTE,
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-ISFIFLC7.js";
5
5
  import {
6
6
  version
7
- } from "./chunk-P2BDEK2Q.js";
7
+ } from "./chunk-GLKM75WU.js";
8
8
  import {
9
9
  CONTACT_SHADOW,
10
10
  FENCE_PALETTE,
@@ -3974,7 +3974,8 @@ var box = (e) => ({
3974
3974
  size: { w: um2(e.size.w), h: um2(e.size.h) }
3975
3975
  });
3976
3976
  function floorOf(r, tol) {
3977
- const outer = r.circle ? circleRing(r.circle.c, r.circle.r, tol) : r.poly ?? rectRing(r.at, r.size);
3977
+ const edges = r.edges;
3978
+ const outer = r.circle ? circleRing(r.circle.c, r.circle.r, tol) : edges ? tessellateLoops([edges], tol)[0] : r.poly ?? rectRing(r.at, r.size);
3978
3979
  return {
3979
3980
  id: r.id,
3980
3981
  source: source(r),
@@ -4597,8 +4598,10 @@ function insideOf(o, t, level) {
4597
4598
  if (!f) return null;
4598
4599
  const mid = f.w / 2;
4599
4600
  const d = Math.max(t, 1);
4600
- const plus = floorAt(level, f.at(mid, d));
4601
- const minus = floorAt(level, f.at(mid, -d));
4601
+ const [uc, vc] = toFrame(o, o.centre);
4602
+ const [u, v] = Math.abs(vc) < MM ? [mid, 0] : [uc, vc];
4603
+ const plus = floorAt(level, f.at(u, v + d));
4604
+ const minus = floorAt(level, f.at(u, v - d));
4602
4605
  return plus && minus ? "both" : plus ? 1 : minus ? -1 : null;
4603
4606
  }
4604
4607
  var CLASH_UM2 = 1e6;
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.9.0";
2
+ var version = "0.9.2";
3
3
 
4
4
  export {
5
5
  version
package/dist/cli.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  DOOR_POSES,
5
5
  adaptPlan,
6
6
  buildMesh
7
- } from "./chunk-TFXNKG6J.js";
7
+ } from "./chunk-ESOW7ZGT.js";
8
8
  import "./chunk-ISFIFLC7.js";
9
9
  import {
10
10
  SWIFTSHADER_ARGS,
@@ -14,7 +14,7 @@ import {
14
14
  makeNodeWorld,
15
15
  renderReplay,
16
16
  replayHtml
17
- } from "./chunk-4WHBM4NV.js";
17
+ } from "./chunk-6L7D6P5F.js";
18
18
  import {
19
19
  replayFacts
20
20
  } from "./chunk-E65Z5S4K.js";
@@ -27,8 +27,8 @@ import {
27
27
  } from "./chunk-EL4456GB.js";
28
28
  import {
29
29
  writeGlb
30
- } from "./chunk-7FYCBISZ.js";
31
- import "./chunk-P2BDEK2Q.js";
30
+ } from "./chunk-77AJ2KNP.js";
31
+ import "./chunk-GLKM75WU.js";
32
32
  import "./chunk-ONUOWO37.js";
33
33
 
34
34
  // src/cli/run.ts
package/dist/glb.js CHANGED
@@ -5,8 +5,8 @@ import {
5
5
  levelNodeName,
6
6
  nodeExtras,
7
7
  writeGlb
8
- } from "./chunk-7FYCBISZ.js";
9
- import "./chunk-P2BDEK2Q.js";
8
+ } from "./chunk-77AJ2KNP.js";
9
+ import "./chunk-GLKM75WU.js";
10
10
  import "./chunk-ONUOWO37.js";
11
11
  export {
12
12
  GLB_GENERATOR,
package/dist/index.d.ts CHANGED
@@ -622,7 +622,8 @@ type DomeTable = ReadonlyArray<readonly [number, number]>;
622
622
  /**
623
623
  * T0 parametric furniture (archlang-3d plan §4.4, §5.1–5.3; card A2b; visual-assets V1–V3,
624
624
  * V5–V7): pure generators that build a piece from a few parts, fitted EXACTLY to the plan's
625
- * footprint. The twelve families laneway-house uses are here; the living, bedroom, dining and
625
+ * footprint. The twelve families laneway-house first used are here (its chairs, since RM9.6, are
626
+ * `t0-living.ts`'s); the living, bedroom, dining and
626
627
  * office batch is `t0-living.ts` (V5), the kitchen, bath and utility batch `t0-utility.ts` (V6),
627
628
  * the site (planting, garden, vehicles, terrace, the small standing objects) `t0-outdoor.ts` and
628
629
  * the office and commercial pieces `t0-office.ts` (V7). Every catalogued family is built; a word
package/dist/index.js CHANGED
@@ -63,7 +63,7 @@ import {
63
63
  um,
64
64
  umPoint,
65
65
  wallOwnership
66
- } from "./chunk-TFXNKG6J.js";
66
+ } from "./chunk-ESOW7ZGT.js";
67
67
  import "./chunk-ISFIFLC7.js";
68
68
  import {
69
69
  replayFacts,
@@ -110,7 +110,7 @@ import {
110
110
  viewLabel,
111
111
  viewMesh
112
112
  } from "./chunk-EL4456GB.js";
113
- import "./chunk-P2BDEK2Q.js";
113
+ import "./chunk-GLKM75WU.js";
114
114
  import {
115
115
  CONTACT_SHADOW,
116
116
  FENCE_PALETTE,
package/dist/node.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  replayHtml,
14
14
  signedVolume,
15
15
  viewerScript
16
- } from "./chunk-4WHBM4NV.js";
16
+ } from "./chunk-6L7D6P5F.js";
17
17
  import {
18
18
  replayFacts
19
19
  } from "./chunk-E65Z5S4K.js";
@@ -36,8 +36,8 @@ import {
36
36
  nodeExtras,
37
37
  readGlbNodes,
38
38
  writeGlb
39
- } from "./chunk-7FYCBISZ.js";
40
- import "./chunk-P2BDEK2Q.js";
39
+ } from "./chunk-77AJ2KNP.js";
40
+ import "./chunk-GLKM75WU.js";
41
41
  import "./chunk-ONUOWO37.js";
42
42
  export {
43
43
  GLB_GENERATOR,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chanmeng666/archlang-3d",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "3D preview of an ArchLang floor plan: a separate package that reads the same .arch source and is checked against the plan: every 3D element comes from the plan's elements, and every solid is closed.",
5
5
  "keywords": [
6
6
  "archlang",