@kensnzk/koyu 0.11.0 → 0.14.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.
Files changed (111) hide show
  1. package/README.ja.md +3 -3
  2. package/README.md +2 -2
  3. package/dist/axo.d.ts +16 -0
  4. package/dist/axo.d.ts.map +1 -0
  5. package/dist/axo.js +216 -0
  6. package/dist/axo.js.map +1 -0
  7. package/dist/check.d.ts +78 -3
  8. package/dist/check.d.ts.map +1 -1
  9. package/dist/check.js +578 -121
  10. package/dist/check.js.map +1 -1
  11. package/dist/cli.js +93 -2
  12. package/dist/cli.js.map +1 -1
  13. package/dist/diff.d.ts +15 -0
  14. package/dist/diff.d.ts.map +1 -1
  15. package/dist/diff.js +68 -7
  16. package/dist/diff.js.map +1 -1
  17. package/dist/fabric.d.ts +28 -0
  18. package/dist/fabric.d.ts.map +1 -0
  19. package/dist/fabric.js +105 -0
  20. package/dist/fabric.js.map +1 -0
  21. package/dist/graph.d.ts +40 -3
  22. package/dist/graph.d.ts.map +1 -1
  23. package/dist/graph.js +352 -53
  24. package/dist/graph.js.map +1 -1
  25. package/dist/index.d.ts +3 -0
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +3 -0
  28. package/dist/index.js.map +1 -1
  29. package/dist/light.d.ts.map +1 -1
  30. package/dist/light.js +4 -6
  31. package/dist/light.js.map +1 -1
  32. package/dist/mcp.js +16 -9
  33. package/dist/mcp.js.map +1 -1
  34. package/dist/model.d.ts +123 -8
  35. package/dist/model.d.ts.map +1 -1
  36. package/dist/model.js +171 -68
  37. package/dist/model.js.map +1 -1
  38. package/dist/parse.d.ts.map +1 -1
  39. package/dist/parse.js +123 -5
  40. package/dist/parse.js.map +1 -1
  41. package/dist/plan.d.ts +2 -0
  42. package/dist/plan.d.ts.map +1 -1
  43. package/dist/plan.js +97 -10
  44. package/dist/plan.js.map +1 -1
  45. package/dist/poly.d.ts +78 -0
  46. package/dist/poly.d.ts.map +1 -0
  47. package/dist/poly.js +277 -0
  48. package/dist/poly.js.map +1 -0
  49. package/dist/site.d.ts.map +1 -1
  50. package/dist/site.js +5 -4
  51. package/dist/site.js.map +1 -1
  52. package/dist/vertical.d.ts +176 -0
  53. package/dist/vertical.d.ts.map +1 -0
  54. package/dist/vertical.js +669 -0
  55. package/dist/vertical.js.map +1 -0
  56. package/examples/basement/main.muro +86 -0
  57. package/examples/comparison/README.md +48 -0
  58. package/examples/complex/L1.muro +132 -0
  59. package/examples/complex/assets.muro +17 -0
  60. package/examples/complex/basement.muro +40 -0
  61. package/examples/complex/core.muro +40 -0
  62. package/examples/complex/hotel.muro +117 -0
  63. package/examples/complex/main.muro +67 -0
  64. package/examples/complex/office.muro +41 -0
  65. package/examples/complex/plant.muro +34 -0
  66. package/examples/complex/podium.muro +140 -0
  67. package/examples/complex/site.muro +18 -0
  68. package/examples/house/L1.muro +1 -1
  69. package/examples/house/L2.muro +1 -1
  70. package/examples/house/main.muro +1 -1
  71. package/examples/house.muro +3 -3
  72. package/examples/mansion.muro +18 -13
  73. package/examples/office.muro +1 -1
  74. package/examples/steps/04-exterior.muro +1 -1
  75. package/examples/steps/05-two-storeys.muro +2 -2
  76. package/examples/steps/06-finished.muro +3 -3
  77. package/examples/tower/L11.muro +4 -2
  78. package/examples/tower/L2.muro +2 -0
  79. package/examples/tower/L3.muro +3 -0
  80. package/examples/tower/assets.muro +1 -0
  81. package/examples/tower/main.muro +1 -1
  82. package/examples/tower/typical.muro +16 -9
  83. package/examples/twin/L1.muro +139 -0
  84. package/examples/twin/L5.muro +133 -0
  85. package/examples/twin/assets.muro +19 -0
  86. package/examples/twin/basement.muro +48 -0
  87. package/examples/twin/core.muro +75 -0
  88. package/examples/twin/hotel.muro +129 -0
  89. package/examples/twin/main.muro +96 -0
  90. package/examples/twin/office.muro +104 -0
  91. package/examples/twin/podium.muro +120 -0
  92. package/examples/twin/residence.muro +131 -0
  93. package/examples/twin/site.muro +29 -0
  94. package/examples/two-rooms.canonical.json +26 -2
  95. package/examples/two-rooms.muro +6 -3
  96. package/package.json +3 -2
  97. package/src/axo.ts +263 -0
  98. package/src/check.ts +680 -143
  99. package/src/cli.ts +100 -2
  100. package/src/diff.ts +75 -7
  101. package/src/fabric.ts +123 -0
  102. package/src/graph.ts +366 -56
  103. package/src/index.ts +24 -0
  104. package/src/light.ts +4 -7
  105. package/src/mcp.ts +17 -10
  106. package/src/model.ts +256 -66
  107. package/src/parse.ts +124 -5
  108. package/src/plan.ts +120 -11
  109. package/src/poly.ts +295 -0
  110. package/src/site.ts +6 -6
  111. package/src/vertical.ts +884 -0
@@ -0,0 +1,104 @@
1
+ # A棟 オフィス L6〜L28 — 基準階を二度だけ書く
2
+ #
3
+ # 板 3,951㎡ / コア 882㎡ (22.3%) / 貸室 3,069㎡。23層で貸室 70,595㎡。
4
+ #
5
+ # **基準階は L6..L20 と L21..L28 の二回しか書かない。**間の M3 は機械階だが、
6
+ # ここで塔が細るわけではない — A棟は最上階まで同じ板である。細るのは B棟のほうで、
7
+ # L20 で終わる。M3 が二つの帯の境になっているのは、設備の系統を切る階が
8
+ # 「低層帯と高層帯の境」でもあるからで、低層EV (B1..L14) の終わりとも近い。
9
+ #
10
+ # 貸室は基準階で四つに割る。**割り方は階ごとに変えられる** — ここでは全階同じにして、
11
+ # 「同じ形を23回書かない」ことのほうを見せる。
12
+
13
+ space /L6..L20/aoff1 room X3..X11 Y6..Y8+4200 name:A棟貸室南 use:rentable
14
+ space /L6..L20/aoff2 room X3..X5 Y8+4200..Y11 name:A棟貸室西 use:rentable
15
+ space /L6..L20/aoff3 room X10..X11 Y8+4200..Y11 name:A棟貸室東 use:rentable
16
+ space /L6..L20/aoff4 room X3..X11 Y11..Y13 name:A棟貸室北 use:rentable
17
+
18
+ space /L21..L28/aoff1 room X3..X11 Y6..Y8+4200 name:A棟貸室南 use:rentable
19
+ space /L21..L28/aoff2 room X3..X5 Y8+4200..Y11 name:A棟貸室西 use:rentable
20
+ space /L21..L28/aoff3 room X10..X11 Y8+4200..Y11 name:A棟貸室東 use:rentable
21
+ space /L21..L28/aoff4 room X3..X11 Y11..Y13 name:A棟貸室北 use:rentable
22
+
23
+ boundary /L6..L20/aoff1 /L6..L20/ahall t:120 spec:スチールパーティション
24
+ door FD2 name:貸室入口
25
+ boundary /L6..L20/aoff2 /L6..L20/ahall t:120 spec:スチールパーティション
26
+ door FD2 name:貸室入口
27
+ boundary /L6..L20/aoff3 /L6..L20/ahall t:120 spec:スチールパーティション
28
+ door FD2 name:貸室入口
29
+ boundary /L6..L20/aoff1 /L6..L20/aoff2 t:120 spec:スチールパーティション
30
+ door D1 name:貸室間
31
+ boundary /L6..L20/aoff1 /L6..L20/aoff3 t:120 spec:スチールパーティション
32
+ door D1 name:貸室間
33
+ boundary /L6..L20/aoff4 /L6..L20/aoff2 t:120 spec:スチールパーティション
34
+ door D1 at:0.3 name:貸室間
35
+ boundary /L6..L20/aoff4 /L6..L20/aoff3 t:120 spec:スチールパーティション
36
+ door D1 name:貸室間
37
+
38
+ boundary /L21..L28/aoff1 /L21..L28/ahall t:120 spec:スチールパーティション
39
+ door FD2 name:貸室入口
40
+ boundary /L21..L28/aoff2 /L21..L28/ahall t:120 spec:スチールパーティション
41
+ door FD2 name:貸室入口
42
+ boundary /L21..L28/aoff3 /L21..L28/ahall t:120 spec:スチールパーティション
43
+ door FD2 name:貸室入口
44
+ boundary /L21..L28/aoff1 /L21..L28/aoff2 t:120 spec:スチールパーティション
45
+ door D1 name:貸室間
46
+ boundary /L21..L28/aoff1 /L21..L28/aoff3 t:120 spec:スチールパーティション
47
+ door D1 name:貸室間
48
+ boundary /L21..L28/aoff4 /L21..L28/aoff2 t:120 spec:スチールパーティション
49
+ door D1 at:0.3 name:貸室間
50
+ boundary /L21..L28/aoff4 /L21..L28/aoff3 t:120 spec:スチールパーティション
51
+ door D1 name:貸室間
52
+
53
+ # 外皮 — 事務所は四周がカーテンウォール
54
+ boundary /L6..L20/aoff1 /out edge:S t:250 spec:カーテンウォール
55
+ window CW2
56
+ boundary /L6..L20/aoff1 /out edge:W t:250 spec:カーテンウォール
57
+ window CW2
58
+ boundary /L6..L20/aoff1 /out edge:E t:250 spec:カーテンウォール
59
+ window CW2
60
+ boundary /L6..L20/aoff2 /out edge:W t:250 spec:カーテンウォール
61
+ window CW2
62
+ boundary /L6..L20/aoff3 /out edge:E t:250 spec:カーテンウォール
63
+ window CW2
64
+ boundary /L6..L20/aoff4 /out edge:N t:250 spec:カーテンウォール
65
+ window CW2
66
+ boundary /L6..L20/aoff4 /out edge:W t:250 spec:カーテンウォール
67
+ window CW2
68
+ boundary /L6..L20/aoff4 /out edge:E t:250 spec:カーテンウォール
69
+ window CW2
70
+
71
+ boundary /L21..L28/aoff1 /out edge:S t:250 spec:カーテンウォール
72
+ window CW2
73
+ boundary /L21..L28/aoff1 /out edge:W t:250 spec:カーテンウォール
74
+ window CW2
75
+ boundary /L21..L28/aoff1 /out edge:E t:250 spec:カーテンウォール
76
+ window CW2
77
+ boundary /L21..L28/aoff2 /out edge:W t:250 spec:カーテンウォール
78
+ window CW2
79
+ boundary /L21..L28/aoff3 /out edge:E t:250 spec:カーテンウォール
80
+ window CW2
81
+ boundary /L21..L28/aoff4 /out edge:N t:250 spec:カーテンウォール
82
+ window CW2
83
+ boundary /L21..L28/aoff4 /out edge:W t:250 spec:カーテンウォール
84
+ window CW2
85
+ boundary /L21..L28/aoff4 /out edge:E t:250 spec:カーテンウォール
86
+ window CW2
87
+
88
+ # ---- M3 機械階 (中間) — 三つ目の、客の階数に現れない層 ----
89
+ # 低層帯と高層帯の空調の系統を切る。塔の中ほどに置くのは、
90
+ # 一つの機械室から縦に送れる距離に限りがあるからである
91
+ space /M3/ahu service X3..X5 Y6..Y13 + X10..X11 Y6..Y13 + X5..X10 Y6..Y8+4200 + X5..X10 Y11..Y13 name:A棟機械室 use:common
92
+ boundary /M3/ahu /M3/ahall type:open
93
+ boundary /M3/ahu /out edge:S t:250 spec:ルーバー
94
+ boundary /M3/ahu /out edge:N t:250 spec:ルーバー
95
+ boundary /M3/ahu /out edge:W t:250 spec:ルーバー
96
+ boundary /M3/ahu /out edge:E t:250 spec:ルーバー
97
+
98
+ # ---- R1 屋上 — 冷却塔とEV機械室 ----
99
+ space /R1/ptop service X3..X5 Y6..Y13 + X10..X11 Y6..Y13 + X5..X10 Y6..Y8+4200 + X5..X10 Y11..Y13 name:塔屋 use:common
100
+ boundary /R1/ptop /R1/ahall type:open
101
+ boundary /R1/ptop /out edge:S t:250 spec:ルーバー
102
+ boundary /R1/ptop /out edge:N t:250 spec:ルーバー
103
+ boundary /R1/ptop /out edge:W t:250 spec:ルーバー
104
+ boundary /R1/ptop /out edge:E t:250 spec:ルーバー
@@ -0,0 +1,120 @@
1
+ # 基壇 L2〜L4 — 物販・飲食。同じ骨格が3層に展開されて42区画になる
2
+ #
3
+ # 割りは L1 と同じ (東西のモール二本がコアを挟む) だが、棟間は吹抜けになり、
4
+ # その両側に回廊が回る。**吹抜けの縁は手すりである** — 区画の扉を吹抜けに開くと、
5
+ # そこは床の無い所なので出られない (旗艦例で踏んだ誤り)。
6
+ #
7
+ # スパン `/L2..L4/` が三層に配るので、同じ形を三度書かない。
8
+
9
+ space /L2..L4/atrium void X11+3200..X14 Y3..Y17 + X11..X11+3200 Y3..Y7 + X11..X11+3200 Y7+13200..Y17 name:吹抜け
10
+ space /L2..L4/es escalator X11..X11+3200 Y7..Y7+13200 name:エスカレーター use:common escalator:N
11
+ space /L2..L4/galW corridor X10+4200..X11 Y3..Y17 name:西回廊 use:common floor:石張り
12
+ space /L2..L4/galE corridor X14..X14+4200 Y3..Y17 name:東回廊 use:common floor:石張り
13
+ space /L2..L4/mallW corridor X3..X10+4200 Y8..Y8+4200 name:西モール use:common floor:石張り
14
+ space /L2..L4/mallE corridor X14+4200..X19 Y8..Y8+4200 name:東モール use:common floor:石張り
15
+ space /L2..L4/mallW2 corridor X3..X10+4200 Y11..Y11+4200 name:西モール北 use:common floor:石張り
16
+ space /L2..L4/mallE2 corridor X14+4200..X19 Y11..Y11+4200 name:東モール北 use:common floor:石張り
17
+
18
+ band X X3..X10+4200 Y3..Y8
19
+ space /L2..L4/w01 shop w:16800 name:西区画01 use:rentable
20
+ space /L2..L4/w02 shop w:16800 name:西区画02 use:rentable
21
+ space /L2..L4/w03 shop w:rest name:西区画03 use:rentable
22
+ space /L2..L4/w04 shop X3..X5 Y8+4200..Y11 name:西区画04 use:rentable
23
+ space /L2..L4/w05 shop X10..X10+4200 Y8+4200..Y11 name:西区画05 use:rentable
24
+ band X X3..X10+4200 Y11+4200..Y17
25
+ space /L2..L4/w06 shop w:16800 name:西区画06 use:rentable
26
+ space /L2..L4/w07 shop w:16800 name:西区画07 use:rentable
27
+ space /L2..L4/w08 shop w:rest name:西区画08 use:rentable
28
+
29
+ band X X14+4200..X19 Y3..Y8
30
+ space /L2..L4/e01 shop w:16800 name:東区画01 use:rentable
31
+ space /L2..L4/e02 shop w:rest name:東区画02 use:rentable
32
+ space /L2..L4/e03 shop X14+4200..X16 Y8+4200..Y11 name:東区画03 use:rentable
33
+ space /L2..L4/e04 shop X18..X19 Y8+4200..Y11 name:東区画04 use:rentable
34
+ band X X14+4200..X19 Y11+4200..Y17
35
+ space /L2..L4/e05 shop w:16800 name:東区画05 use:rentable
36
+ space /L2..L4/e06 shop w:rest name:東区画06 use:rentable
37
+
38
+ # ---- 動線 ----
39
+ boundary /L2..L4/galW /L2..L4/mallW type:open
40
+ boundary /L2..L4/galW /L2..L4/mallW2 type:open
41
+ boundary /L2..L4/galE /L2..L4/mallE type:open
42
+ boundary /L2..L4/galE /L2..L4/mallE2 type:open
43
+ boundary /L2..L4/mallW /L2..L4/ahall type:open
44
+ boundary /L2..L4/mallE /L2..L4/bhall type:open
45
+ boundary /L2..L4/galW /L2..L4/es type:open
46
+ boundary /L2..L4/galW /L2..L4/atrium t:60 spec:手すり air:1 h:1100
47
+ boundary /L2..L4/galE /L2..L4/atrium t:60 spec:手すり air:1 h:1100
48
+
49
+ boundary /L2..L4/w01 /L2..L4/mallW t:120 spec:店舗サッシ
50
+ door SD1 at:0.28
51
+ boundary /L2..L4/w02 /L2..L4/mallW t:120 spec:店舗サッシ
52
+ door SD1 at:0.28
53
+ boundary /L2..L4/w03 /L2..L4/mallW t:120 spec:店舗サッシ
54
+ door SD1
55
+ boundary /L2..L4/w04 /L2..L4/mallW t:120 spec:店舗サッシ
56
+ door SD1
57
+ boundary /L2..L4/w05 /L2..L4/mallW t:120 spec:店舗サッシ
58
+ door SD1
59
+ boundary /L2..L4/w06 /L2..L4/mallW2 t:120 spec:店舗サッシ
60
+ door SD1
61
+ boundary /L2..L4/w07 /L2..L4/mallW2 t:120 spec:店舗サッシ
62
+ door SD1
63
+ boundary /L2..L4/w08 /L2..L4/mallW2 t:120 spec:店舗サッシ
64
+ door SD1
65
+ boundary /L2..L4/e01 /L2..L4/mallE t:120 spec:店舗サッシ
66
+ door SD1
67
+ boundary /L2..L4/e02 /L2..L4/mallE t:120 spec:店舗サッシ
68
+ door SD1
69
+ boundary /L2..L4/e03 /L2..L4/mallE t:120 spec:店舗サッシ
70
+ door SD1
71
+ boundary /L2..L4/e04 /L2..L4/mallE t:120 spec:店舗サッシ
72
+ door SD1
73
+ boundary /L2..L4/e05 /L2..L4/mallE2 t:120 spec:店舗サッシ
74
+ door SD1
75
+ boundary /L2..L4/e06 /L2..L4/mallE2 t:120 spec:店舗サッシ
76
+ door SD1
77
+
78
+ # ---- 外皮 ----
79
+ boundary /L2..L4/w01 /out edge:S t:300 spec:カーテンウォール
80
+ window CW1
81
+ boundary /L2..L4/w02 /out edge:S t:300 spec:カーテンウォール
82
+ window CW1
83
+ boundary /L2..L4/w03 /out edge:S t:300 spec:カーテンウォール
84
+ window CW1
85
+ boundary /L2..L4/w01 /out edge:W t:300 spec:カーテンウォール
86
+ window CW1
87
+ boundary /L2..L4/w04 /out edge:W t:300 spec:カーテンウォール
88
+ window CW1
89
+ boundary /L2..L4/w06 /out edge:W t:300 spec:カーテンウォール
90
+ window CW1
91
+ boundary /L2..L4/w06 /out edge:N t:300 spec:カーテンウォール
92
+ window CW1
93
+ boundary /L2..L4/w07 /out edge:N t:300 spec:カーテンウォール
94
+ window CW1
95
+ boundary /L2..L4/w08 /out edge:N t:300 spec:カーテンウォール
96
+ window CW1
97
+ boundary /L2..L4/mallW /out edge:W t:300 spec:カーテンウォール
98
+ boundary /L2..L4/mallW2 /out edge:W t:300 spec:カーテンウォール
99
+ boundary /L2..L4/e01 /out edge:S t:300 spec:カーテンウォール
100
+ window CW1
101
+ boundary /L2..L4/e02 /out edge:S t:300 spec:カーテンウォール
102
+ window CW1
103
+ boundary /L2..L4/e02 /out edge:E t:300 spec:カーテンウォール
104
+ window CW1
105
+ boundary /L2..L4/e04 /out edge:E t:300 spec:カーテンウォール
106
+ window CW1
107
+ boundary /L2..L4/e06 /out edge:E t:300 spec:カーテンウォール
108
+ window CW1
109
+ boundary /L2..L4/e05 /out edge:N t:300 spec:カーテンウォール
110
+ window CW1
111
+ boundary /L2..L4/e06 /out edge:N t:300 spec:カーテンウォール
112
+ window CW1
113
+ boundary /L2..L4/mallE /out edge:E t:300 spec:カーテンウォール
114
+ boundary /L2..L4/mallE2 /out edge:E t:300 spec:カーテンウォール
115
+ boundary /L2..L4/atrium /out edge:S t:300 spec:カーテンウォール
116
+ boundary /L2..L4/atrium /out edge:N t:300 spec:カーテンウォール
117
+ boundary /L2..L4/galW /out edge:S t:300 spec:カーテンウォール
118
+ boundary /L2..L4/galW /out edge:N t:300 spec:カーテンウォール
119
+ boundary /L2..L4/galE /out edge:S t:300 spec:カーテンウォール
120
+ boundary /L2..L4/galE /out edge:N t:300 spec:カーテンウォール
@@ -0,0 +1,131 @@
1
+ # B棟 レジデンス L14〜L20 — 同じ板の上で用途が変わる
2
+ #
3
+ # ホテル (L6〜L13) と**同じ 2,470㎡ の板・同じコア・同じ4.2mの階高**に、
4
+ # 住戸が載る。変わるのは割りと、**採光の宣言**である。
5
+ #
6
+ # **住戸には daylight:1 を書く。**共同住宅の居室は法28条の対象で、令19条の列挙に
7
+ # 入っている。ホテルの客室は入っていない。同じ窓・同じ床でも、判断が変わる —
8
+ # だから採光の対象は型からの推定ではなく宣言である (ADR-0020)。
9
+ #
10
+ # 住戸は南北と西の帯で割る。7層 × 17戸 = 119戸。
11
+
12
+ space /L14..L20/rcorrS corridor X14..X19 Y8..Y8+4200 name:住戸廊下南 use:common
13
+ space /L14..L20/rcorrN corridor X14..X19 Y11..Y11+4200 name:住戸廊下北 use:common
14
+ space /L14..L20/rcorrW corridor X16-4200..X16 Y8+4200..Y11 name:住戸廊下西 use:common
15
+ space /L14..L20/rcorrE corridor X18..X19 Y8+4200..Y11 name:住戸廊下東 use:common
16
+
17
+ # **採光は窓の高さで決まる。**奥行16.8mの住戸に高さ2.2mの窓では、幅をどう変えても
18
+ # 比は 1/7.6 にしかならない (窓/床 = 高さ/奥行)。天井まで届くサッシ (2.6m) にして
19
+ # 初めて 1/7 を超える。light がそれを言う
20
+ band X X14..X19 Y6..Y8
21
+ space /L14..L20/rs01 unit w:6000 name:住戸S01 use:exclusive daylight:1
22
+ space /L14..L20/rs02 unit w:6000 name:住戸S02 use:exclusive daylight:1
23
+ space /L14..L20/rs03 unit w:6000 name:住戸S03 use:exclusive daylight:1
24
+ space /L14..L20/rs04 unit w:6000 name:住戸S04 use:exclusive daylight:1
25
+ space /L14..L20/rs05 unit w:6000 name:住戸S05 use:exclusive daylight:1
26
+ space /L14..L20/rs06 unit w:6000 name:住戸S06 use:exclusive daylight:1
27
+ space /L14..L20/rs07 unit w:rest name:住戸S07 use:exclusive daylight:1
28
+
29
+ band X X14..X19 Y11+4200..Y13
30
+ space /L14..L20/rn01 unit w:6000 name:住戸N01 use:exclusive daylight:1
31
+ space /L14..L20/rn02 unit w:6000 name:住戸N02 use:exclusive daylight:1
32
+ space /L14..L20/rn03 unit w:6000 name:住戸N03 use:exclusive daylight:1
33
+ space /L14..L20/rn04 unit w:6000 name:住戸N04 use:exclusive daylight:1
34
+ space /L14..L20/rn05 unit w:6000 name:住戸N05 use:exclusive daylight:1
35
+ space /L14..L20/rn06 unit w:6000 name:住戸N06 use:exclusive daylight:1
36
+ space /L14..L20/rn07 unit w:rest name:住戸N07 use:exclusive daylight:1
37
+
38
+ band Y X14..X16-4200 Y8+4200..Y11
39
+ space /L14..L20/rw01 unit w:7000 name:住戸W01 use:exclusive daylight:1
40
+ space /L14..L20/rw02 unit w:7000 name:住戸W02 use:exclusive daylight:1
41
+ space /L14..L20/rw03 unit w:rest name:住戸W03 use:exclusive daylight:1
42
+
43
+ # ---- 廊下とコア ----
44
+ boundary /L14..L20/rcorrS /L14..L20/bhall type:open
45
+ boundary /L14..L20/rcorrS /L14..L20/rcorrW type:open
46
+ boundary /L14..L20/rcorrS /L14..L20/rcorrE type:open
47
+ boundary /L14..L20/rcorrN /L14..L20/rcorrW type:open
48
+ boundary /L14..L20/rcorrN /L14..L20/rcorrE type:open
49
+ boundary /L14..L20/rcorrE /L14..L20/bhall type:open
50
+
51
+ boundary /L14..L20/rs01 /L14..L20/rcorrS t:180 spec:戸境RC
52
+ door D2 name:玄関
53
+ boundary /L14..L20/rs02 /L14..L20/rcorrS t:180 spec:戸境RC
54
+ door D2 at:0.7 name:玄関
55
+ boundary /L14..L20/rs03 /L14..L20/rcorrS t:180 spec:戸境RC
56
+ door D2 name:玄関
57
+ boundary /L14..L20/rs04 /L14..L20/rcorrS t:180 spec:戸境RC
58
+ door D2 name:玄関
59
+ boundary /L14..L20/rs05 /L14..L20/rcorrS t:180 spec:戸境RC
60
+ door D2 name:玄関
61
+ boundary /L14..L20/rs06 /L14..L20/rcorrS t:180 spec:戸境RC
62
+ door D2 at:0.35 name:玄関
63
+ boundary /L14..L20/rs07 /L14..L20/rcorrS t:180 spec:戸境RC
64
+ door D2 name:玄関
65
+ boundary /L14..L20/rn01 /L14..L20/rcorrN t:180 spec:戸境RC
66
+ door D2 name:玄関
67
+ boundary /L14..L20/rn02 /L14..L20/rcorrN t:180 spec:戸境RC
68
+ door D2 name:玄関
69
+ boundary /L14..L20/rn03 /L14..L20/rcorrN t:180 spec:戸境RC
70
+ door D2 name:玄関
71
+ boundary /L14..L20/rn04 /L14..L20/rcorrN t:180 spec:戸境RC
72
+ door D2 name:玄関
73
+ boundary /L14..L20/rn05 /L14..L20/rcorrN t:180 spec:戸境RC
74
+ door D2 name:玄関
75
+ boundary /L14..L20/rn06 /L14..L20/rcorrN t:180 spec:戸境RC
76
+ door D2 name:玄関
77
+ boundary /L14..L20/rn07 /L14..L20/rcorrN t:180 spec:戸境RC
78
+ door D2 name:玄関
79
+ boundary /L14..L20/rw01 /L14..L20/rcorrW t:180 spec:戸境RC
80
+ door D2 name:玄関
81
+ boundary /L14..L20/rw02 /L14..L20/rcorrW t:180 spec:戸境RC
82
+ door D2 name:玄関
83
+ boundary /L14..L20/rw03 /L14..L20/rcorrW t:180 spec:戸境RC
84
+ door D2 name:玄関
85
+
86
+ # ---- 外皮 — 掃き出しサッシは引違い部 (door) と FIX部 (window) に分けて書く ----
87
+ # koyu の開口は通行 (door) か採光 (window) のどちらかで、一つの開口が両方を担うとは
88
+ # 言えない。窓しか無いバルコニーには出られない、が導出の答えになる
89
+ boundary /L14..L20/rs01 /out edge:S t:250 spec:PC板
90
+ window RW1
91
+ boundary /L14..L20/rs02 /out edge:S t:250 spec:PC板
92
+ window RW1
93
+ boundary /L14..L20/rs03 /out edge:S t:250 spec:PC板
94
+ window RW1
95
+ boundary /L14..L20/rs04 /out edge:S t:250 spec:PC板
96
+ window RW1
97
+ boundary /L14..L20/rs05 /out edge:S t:250 spec:PC板
98
+ window RW1
99
+ boundary /L14..L20/rs06 /out edge:S t:250 spec:PC板
100
+ window RW1
101
+ boundary /L14..L20/rs07 /out edge:S t:250 spec:PC板
102
+ window RW1
103
+ boundary /L14..L20/rn01 /out edge:N t:250 spec:PC板
104
+ window RW1
105
+ boundary /L14..L20/rn02 /out edge:N t:250 spec:PC板
106
+ window RW1
107
+ boundary /L14..L20/rn03 /out edge:N t:250 spec:PC板
108
+ window RW1
109
+ boundary /L14..L20/rn04 /out edge:N t:250 spec:PC板
110
+ window RW1
111
+ boundary /L14..L20/rn05 /out edge:N t:250 spec:PC板
112
+ window RW1
113
+ boundary /L14..L20/rn06 /out edge:N t:250 spec:PC板
114
+ window RW1
115
+ boundary /L14..L20/rn07 /out edge:N t:250 spec:PC板
116
+ window RW1
117
+ boundary /L14..L20/rw01 /out edge:W t:250 spec:PC板
118
+ window RW1
119
+ boundary /L14..L20/rw02 /out edge:W t:250 spec:PC板
120
+ window RW1
121
+ boundary /L14..L20/rw03 /out edge:W t:250 spec:PC板
122
+ window RW1
123
+ boundary /L14..L20/rcorrE /out edge:E t:250 spec:PC板
124
+ boundary /L14..L20/rs01 /out edge:W t:250 spec:PC板
125
+ boundary /L14..L20/rs07 /out edge:E t:250 spec:PC板
126
+ boundary /L14..L20/rn01 /out edge:W t:250 spec:PC板
127
+ boundary /L14..L20/rn07 /out edge:E t:250 spec:PC板
128
+ boundary /L14..L20/rcorrS /out edge:W t:250 spec:PC板
129
+ boundary /L14..L20/rcorrS /out edge:E t:250 spec:PC板
130
+ boundary /L14..L20/rcorrN /out edge:W t:250 spec:PC板
131
+ boundary /L14..L20/rcorrN /out edge:E t:250 spec:PC板
@@ -0,0 +1,29 @@
1
+ # 敷地と外構 — 隔離レイヤー (ADR-0011)
2
+ #
3
+ # 敷地の形はこの記法で**唯一「書かれる形」**である。他はすべて生成物だが、
4
+ # 敷地は測量に由来する所与で、設計の結果ではない。だから別ファイルに隔離する。
5
+ #
6
+ # 14頂点の不整形。三方が道路で、北西が隣地。建蔽率62%の残り38%が公開空地になる —
7
+ # この規模の容積を積むには総合設計の上乗せが要るので、広場は制度の裏づけでもある。
8
+
9
+ # 外部そのもの — 領域を持たない。地下の土圧壁や機械階のルーバーが面する先である
10
+ space /out exterior name:外部
11
+
12
+ zone /site name:敷地 site:1 area:23167.40
13
+
14
+ polygon /site 0,24000 14000,6000 46000,0 92000,3000 126000,0 158000,9000 168000,38000 164000,80000 168000,118000 152000,144000 104000,151200 58000,149000 16000,142000 0,100000
15
+
16
+ # 道路 (接道は導出される — 幅員は road: が言う)
17
+ space /road-s exterior X1..X21 Y1-22000..Y1 level:L1 name:南側道路 road:25000
18
+ space /road-e exterior X21..X21+18000 Y1..Y19 level:L1 name:東側道路 road:18000
19
+ space /road-n exterior X1..X21 Y19..Y19+16000 level:L1 name:北側道路 road:16000
20
+
21
+ # 外構 — 敷地に載る屋外の床。建物の周りの公開空地である
22
+ space /site/plazaS exterior X3..X19 Y1..Y3 level:L1 name:南側広場
23
+ space /site/plazaE exterior X19..X21 Y3..Y17 level:L1 name:東側広場
24
+ space /site/plazaN exterior X3..X19 Y17..Y19 level:L1 name:北側広場
25
+ space /site/plazaW exterior X1..X3 Y3..Y17 level:L1 name:西側広場
26
+
27
+ boundary /site/plazaS /road-s type:open
28
+ boundary /site/plazaE /road-e type:open
29
+ boundary /site/plazaN /road-n type:open
@@ -1,5 +1,5 @@
1
1
  {
2
- "koyu": "0.3",
2
+ "koyu": "0.5",
3
3
  "name": "二室",
4
4
  "unit": "mm",
5
5
  "grid": {
@@ -29,6 +29,7 @@
29
29
  "Y2"
30
30
  ],
31
31
  "attrs": {
32
+ "daylight": 1,
32
33
  "name": "居室A"
33
34
  }
34
35
  },
@@ -41,6 +42,7 @@
41
42
  "Y2"
42
43
  ],
43
44
  "attrs": {
45
+ "daylight": 1,
44
46
  "name": "居室B"
45
47
  }
46
48
  },
@@ -83,7 +85,19 @@
83
85
  "attrs": {
84
86
  "fire": 60,
85
87
  "spec": "EW1"
86
- }
88
+ },
89
+ "openings": [
90
+ {
91
+ "kind": "window",
92
+ "w": 2600,
93
+ "h": 1100,
94
+ "at": 0.5,
95
+ "edge": "S",
96
+ "attrs": {
97
+ "name": "腰窓"
98
+ }
99
+ }
100
+ ]
87
101
  },
88
102
  {
89
103
  "between": [
@@ -107,6 +121,16 @@
107
121
  "attrs": {
108
122
  "name": "玄関"
109
123
  }
124
+ },
125
+ {
126
+ "kind": "window",
127
+ "w": 2600,
128
+ "h": 1100,
129
+ "at": 0.5,
130
+ "edge": "E",
131
+ "attrs": {
132
+ "name": "腰窓"
133
+ }
110
134
  }
111
135
  ]
112
136
  }
@@ -2,8 +2,9 @@
2
2
  # 室を二つ並べ、その間に扉を一枚、外へ出る扉を一枚。
3
3
  # 室と室のあいだの壁は書かない — 接する空間の既定は壁である (ADR-0014)。
4
4
  # 書いてあるのは、扉を吊るために宣言した境界と、外皮の境界だけ。
5
+ # 両室に daylight:1 を書いたので、窓が要る — `koyu light` が 1/7 を確かめる (ADR-0020)。
5
6
 
6
- koyu 0.3
7
+ koyu 0.5
7
8
  name 二室
8
9
  unit mm
9
10
 
@@ -11,13 +12,15 @@ grid X 0 3600 7200
11
12
  grid Y 0 4500
12
13
  level L1 0 h:2400
13
14
 
14
- space /L1/a room X1..X2 Y1..Y2 name:居室A
15
- space /L1/b room X2..X3 Y1..Y2 name:居室B
15
+ space /L1/a room X1..X2 Y1..Y2 name:居室A daylight:1
16
+ space /L1/b room X2..X3 Y1..Y2 name:居室B daylight:1
16
17
  space /out exterior name:外部
17
18
 
18
19
  boundary /L1/a /L1/b t:120 spec:PW1
19
20
  door w:780 h:2000
20
21
 
21
22
  boundary /L1/a /out t:150 spec:EW1 fire:60
23
+ window w:2600 h:1100 edge:S name:腰窓
22
24
  boundary /L1/b /out t:150 spec:EW1 fire:60
23
25
  door w:900 h:2100 edge:S name:玄関
26
+ window w:2600 h:1100 edge:E name:腰窓
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kensnzk/koyu",
3
- "version": "0.11.0",
3
+ "version": "0.14.0",
4
4
  "description": "空間を一次要素とするテキストネイティブ建築記述の探求 — writing architecture, not buildings",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -33,7 +33,8 @@
33
33
  "prepare": "npm run build",
34
34
  "test": "node --import tsx --test test/*.test.ts",
35
35
  "typecheck": "tsc --noEmit",
36
- "check:examples": "for f in examples/two-rooms.muro examples/office.muro examples/mansion.muro examples/house.muro examples/house/main.muro examples/tower/main.muro examples/steps/*.muro; do tsx src/cli.ts check $f || exit 1; done",
36
+ "check:examples": "for f in examples/two-rooms.muro examples/office.muro examples/mansion.muro examples/house.muro examples/house/main.muro examples/tower/main.muro examples/basement/main.muro examples/complex/main.muro examples/twin/main.muro examples/steps/*.muro; do tsx src/cli.ts check $f || exit 1; done",
37
+ "gate:examples": "node --import tsx scripts/gate.mjs",
37
38
  "plan:examples": "tsx src/cli.ts plan examples/two-rooms.muro -o out/two-rooms.svg"
38
39
  },
39
40
  "devDependencies": {