@kensnzk/koyu 0.26.0 → 0.28.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/assets/plan/README.md +18 -0
- package/assets/plan/catalog.muro +87 -0
- package/assets/plan/library.muro +26 -0
- package/assets/plan/svg/bathtub.svg +9 -0
- package/assets/plan/svg/bed-double.svg +9 -0
- package/assets/plan/svg/bed-single.svg +8 -0
- package/assets/plan/svg/cabinet.svg +9 -0
- package/assets/plan/svg/chair.svg +8 -0
- package/assets/plan/svg/desk.svg +9 -0
- package/assets/plan/svg/hedge-2m.svg +7 -0
- package/assets/plan/svg/kitchen-sink.svg +10 -0
- package/assets/plan/svg/locker.svg +9 -0
- package/assets/plan/svg/office-chair.svg +25 -0
- package/assets/plan/svg/potted-plant.svg +14 -0
- package/assets/plan/svg/refrigerator.svg +10 -0
- package/assets/plan/svg/shelf.svg +9 -0
- package/assets/plan/svg/shrub-1m.svg +7 -0
- package/assets/plan/svg/sofa-2.svg +9 -0
- package/assets/plan/svg/sofa-3.svg +9 -0
- package/assets/plan/svg/table-rect.svg +7 -0
- package/assets/plan/svg/table-round.svg +7 -0
- package/assets/plan/svg/tree-3m.svg +8 -0
- package/assets/plan/svg/urinal.svg +9 -0
- package/assets/plan/svg/washing-machine-pan.svg +13 -0
- package/assets/plan/svg/washing-machine.svg +10 -0
- package/assets/plan/svg/washstand-500.svg +12 -0
- package/assets/plan/svg/washstand.svg +12 -0
- package/assets/plan/svg/wc-cabinet.svg +14 -0
- package/assets/plan/svg/wc.svg +9 -0
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/core/components.d.ts +31 -0
- package/dist/core/components.d.ts.map +1 -0
- package/dist/core/components.js +167 -0
- package/dist/core/components.js.map +1 -0
- package/dist/core/derive.d.ts +9 -1
- package/dist/core/derive.d.ts.map +1 -1
- package/dist/core/derive.js +33 -3
- package/dist/core/derive.js.map +1 -1
- package/dist/core/diagnose.d.ts +6 -0
- package/dist/core/diagnose.d.ts.map +1 -1
- package/dist/core/diagnose.js +137 -4
- package/dist/core/diagnose.js.map +1 -1
- package/dist/core/model.d.ts +5 -5
- package/dist/core/model.d.ts.map +1 -1
- package/dist/core/model.js +6 -1
- package/dist/core/model.js.map +1 -1
- package/dist/core/parse.d.ts.map +1 -1
- package/dist/core/parse.js +5 -4
- package/dist/core/parse.js.map +1 -1
- package/dist/core/section.d.ts +27 -2
- package/dist/core/section.d.ts.map +1 -1
- package/dist/core/section.js +63 -11
- package/dist/core/section.js.map +1 -1
- package/dist/core/vocabulary.d.ts +20 -4
- package/dist/core/vocabulary.d.ts.map +1 -1
- package/dist/core/vocabulary.js +107 -9
- package/dist/core/vocabulary.js.map +1 -1
- package/dist/draw/component-files.d.ts +8 -0
- package/dist/draw/component-files.d.ts.map +1 -0
- package/dist/draw/component-files.js +35 -0
- package/dist/draw/component-files.js.map +1 -0
- package/dist/draw/component-svg.d.ts +14 -0
- package/dist/draw/component-svg.d.ts.map +1 -0
- package/dist/draw/component-svg.js +67 -0
- package/dist/draw/component-svg.js.map +1 -0
- package/dist/draw/conventions/architectural.d.ts +32 -0
- package/dist/draw/conventions/architectural.d.ts.map +1 -0
- package/dist/draw/conventions/architectural.js +29 -0
- package/dist/draw/conventions/architectural.js.map +1 -0
- package/dist/draw/index.d.ts +2 -2
- package/dist/draw/index.d.ts.map +1 -1
- package/dist/draw/index.js +2 -2
- package/dist/draw/index.js.map +1 -1
- package/dist/draw/marks.d.ts +37 -12
- package/dist/draw/marks.d.ts.map +1 -1
- package/dist/draw/marks.js +508 -38
- package/dist/draw/marks.js.map +1 -1
- package/dist/draw/plan.d.ts +3 -1
- package/dist/draw/plan.d.ts.map +1 -1
- package/dist/draw/plan.js +247 -85
- package/dist/draw/plan.js.map +1 -1
- package/dist/draw/section.d.ts +20 -2
- package/dist/draw/section.d.ts.map +1 -1
- package/dist/draw/section.js +43 -10
- package/dist/draw/section.js.map +1 -1
- package/dist/form.d.ts +2 -2
- package/dist/form.d.ts.map +1 -1
- package/dist/form.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp.js +21 -3
- package/dist/mcp.js.map +1 -1
- package/dist/parse-file.d.ts +1 -0
- package/dist/parse-file.d.ts.map +1 -1
- package/dist/parse-file.js +1 -0
- package/dist/parse-file.js.map +1 -1
- package/dist/validate/builtin/index.d.ts +4 -2
- package/dist/validate/builtin/index.d.ts.map +1 -1
- package/dist/validate/builtin/index.js +9 -2
- package/dist/validate/builtin/index.js.map +1 -1
- package/dist/validate/builtin/opening-operations.d.ts +63 -0
- package/dist/validate/builtin/opening-operations.d.ts.map +1 -0
- package/dist/validate/builtin/opening-operations.js +406 -0
- package/dist/validate/builtin/opening-operations.js.map +1 -0
- package/editors/vscode/syntaxes/koyu.tmLanguage.json +3 -3
- package/examples/basement/main.muro +3 -3
- package/examples/complex/L1.muro +1 -1
- package/examples/complex/assets.muro +2 -2
- package/examples/complex/main.muro +1 -1
- package/examples/house/L1.muro +3 -3
- package/examples/house/L2.muro +2 -2
- package/examples/house/assets.muro +8 -8
- package/examples/house/main.muro +1 -1
- package/examples/house/site.muro +2 -2
- package/examples/house.muro +6 -6
- package/examples/mansion.muro +1 -1
- package/examples/office.muro +1 -1
- package/examples/steps/06-finished.muro +1 -1
- package/examples/tower/assets.muro +1 -1
- package/examples/tower/main.muro +1 -1
- package/examples/twin/assets.muro +2 -2
- package/examples/twin/main.muro +1 -1
- package/examples/two-rooms.canonical.json +1 -1
- package/examples/two-rooms.muro +1 -1
- package/package.json +7 -4
- package/src/cli.ts +2 -2
- package/src/core/components.ts +224 -0
- package/src/core/derive.ts +47 -4
- package/src/core/diagnose.ts +182 -4
- package/src/core/model.ts +10 -5
- package/src/core/parse.ts +5 -4
- package/src/core/section.ts +107 -8
- package/src/core/vocabulary.ts +115 -9
- package/src/draw/component-files.ts +36 -0
- package/src/draw/component-svg.ts +79 -0
- package/src/draw/conventions/architectural.ts +60 -0
- package/src/draw/index.ts +9 -2
- package/src/draw/marks.ts +564 -44
- package/src/draw/plan.ts +253 -88
- package/src/draw/section.ts +78 -14
- package/src/form.ts +4 -0
- package/src/index.ts +1 -1
- package/src/mcp.ts +21 -3
- package/src/parse-file.ts +1 -0
- package/src/validate/builtin/index.ts +14 -2
- package/src/validate/builtin/opening-operations.ts +519 -0
package/src/draw/section.ts
CHANGED
|
@@ -18,6 +18,8 @@ import {
|
|
|
18
18
|
elevationForm,
|
|
19
19
|
sectionForm,
|
|
20
20
|
type FormSection,
|
|
21
|
+
type LineFormSection,
|
|
22
|
+
type SectionLine,
|
|
21
23
|
type SectionAxis,
|
|
22
24
|
type SectionEntity,
|
|
23
25
|
type SectionPt,
|
|
@@ -35,6 +37,26 @@ export interface SectionOptions {
|
|
|
35
37
|
look?: Edge;
|
|
36
38
|
/** px per mm (default 0.05, the same as a plan, so the two can be laid side by side) */
|
|
37
39
|
scale?: number;
|
|
40
|
+
/** caller-supplied reference geometry in the section's `(u,z)` frame */
|
|
41
|
+
guides?: SectionGuide[];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** A section whose plane follows a directed line in plan. */
|
|
45
|
+
export interface LineSectionOptions {
|
|
46
|
+
cut: SectionLine;
|
|
47
|
+
/** a caller-owned name for the cut */
|
|
48
|
+
atRef?: string;
|
|
49
|
+
/** px per mm */
|
|
50
|
+
scale?: number;
|
|
51
|
+
/** caller-supplied reference geometry in the section's `(u,z)` frame */
|
|
52
|
+
guides?: SectionGuide[];
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** A reference polyline drawn over a section without becoming part of the building Form. */
|
|
56
|
+
export interface SectionGuide {
|
|
57
|
+
points: SectionPt[];
|
|
58
|
+
label?: string;
|
|
59
|
+
showVertices?: boolean;
|
|
38
60
|
}
|
|
39
61
|
|
|
40
62
|
export interface ElevationOptions {
|
|
@@ -51,9 +73,17 @@ const GLASS = "#b9c3c0";
|
|
|
51
73
|
/** Annotation. */
|
|
52
74
|
const LABEL = "#8a8171";
|
|
53
75
|
|
|
54
|
-
export function svgSection(model: Model, opts: SectionOptions): string {
|
|
55
|
-
const look = opts.look ?? defaultLook(opts.axis);
|
|
76
|
+
export function svgSection(model: Model, opts: SectionOptions | LineSectionOptions): string {
|
|
56
77
|
const form = derive(model);
|
|
78
|
+
if ("cut" in opts) {
|
|
79
|
+
const section = sectionForm(form, {
|
|
80
|
+
cut: opts.cut,
|
|
81
|
+
...(opts.atRef !== undefined ? { atRef: opts.atRef } : {}),
|
|
82
|
+
});
|
|
83
|
+
const where = opts.atRef ?? `(${opts.cut.x1}, ${opts.cut.y1})–(${opts.cut.x2}, ${opts.cut.y2})`;
|
|
84
|
+
return sheet(model, form, section, opts.scale, `${model.name ?? "Untitled"} — section along ${where}`, opts.guides);
|
|
85
|
+
}
|
|
86
|
+
const look = opts.look ?? defaultLook(opts.axis);
|
|
57
87
|
const section = sectionForm(form, {
|
|
58
88
|
axis: opts.axis,
|
|
59
89
|
at: opts.at,
|
|
@@ -61,7 +91,14 @@ export function svgSection(model: Model, opts: SectionOptions): string {
|
|
|
61
91
|
look,
|
|
62
92
|
});
|
|
63
93
|
const where = opts.atRef ?? `${opts.axis} ${opts.at}`;
|
|
64
|
-
return sheet(
|
|
94
|
+
return sheet(
|
|
95
|
+
model,
|
|
96
|
+
form,
|
|
97
|
+
section,
|
|
98
|
+
opts.scale,
|
|
99
|
+
`${model.name ?? "Untitled"} — section at ${where} looking ${look}`,
|
|
100
|
+
opts.guides,
|
|
101
|
+
);
|
|
65
102
|
}
|
|
66
103
|
|
|
67
104
|
export function svgElevation(model: Model, opts: ElevationOptions): string {
|
|
@@ -82,9 +119,10 @@ export function svgElevation(model: Model, opts: ElevationOptions): string {
|
|
|
82
119
|
function sheet(
|
|
83
120
|
model: Model,
|
|
84
121
|
form: Form,
|
|
85
|
-
section: FormSection,
|
|
122
|
+
section: FormSection | LineFormSection,
|
|
86
123
|
scale: number | undefined,
|
|
87
124
|
heading: string,
|
|
125
|
+
guides: SectionGuide[] = [],
|
|
88
126
|
): string {
|
|
89
127
|
const s = scale ?? 0.05;
|
|
90
128
|
|
|
@@ -92,6 +130,9 @@ function sheet(
|
|
|
92
130
|
// limit on how many arguments a call may take.
|
|
93
131
|
const ext = new Extent();
|
|
94
132
|
for (const e of section.entities) for (const p of e.polygon) ext.see(p.u, p.z);
|
|
133
|
+
for (const guide of guides) {
|
|
134
|
+
for (const p of guide.points) if (Number.isFinite(p.u) && Number.isFinite(p.z)) ext.see(p.u, p.z);
|
|
135
|
+
}
|
|
95
136
|
if (ext.empty) throw new Error("There is nothing to draw");
|
|
96
137
|
const minU = ext.min0;
|
|
97
138
|
const maxU = ext.max0;
|
|
@@ -165,16 +206,18 @@ function sheet(
|
|
|
165
206
|
// ---- the grid, along the sheet ----
|
|
166
207
|
// The axis the plane is named on gets no bubbles — every one of its lines would land on the same
|
|
167
208
|
// point. The other axis is what runs across the sheet, so that is the one that marks it.
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
209
|
+
if ("axis" in section) {
|
|
210
|
+
const across = section.axis === "X" ? model.grid.Y : model.grid.X;
|
|
211
|
+
const sign = section.look === "W" || section.look === "N" ? 1 : -1;
|
|
212
|
+
for (const [i, c] of across.coords.entries()) {
|
|
213
|
+
const u = c * sign;
|
|
214
|
+
if (u < minU - 1 || u > maxU + 1) continue;
|
|
215
|
+
parts.push(
|
|
216
|
+
`<line x1="${sx(u)}" y1="${MT - 26}" x2="${sx(u)}" y2="${H - MB + 26}" stroke="${GRID}" stroke-width="0.8" stroke-dasharray="7 3 1.5 3"/>`,
|
|
217
|
+
`<circle cx="${sx(u)}" cy="${MT - 40}" r="11" fill="none" stroke="${GRID}" stroke-width="1"/>`,
|
|
218
|
+
`<text x="${sx(u)}" y="${MT - 36}" text-anchor="middle" font-size="10" fill="${GRID}">${across.names[i]!}</text>`,
|
|
219
|
+
);
|
|
220
|
+
}
|
|
178
221
|
}
|
|
179
222
|
|
|
180
223
|
// ---- what the plane cut ----
|
|
@@ -193,6 +236,27 @@ function sheet(
|
|
|
193
236
|
);
|
|
194
237
|
}
|
|
195
238
|
|
|
239
|
+
// ---- caller-supplied reference geometry ----
|
|
240
|
+
// These lines explain the section but are not part of the building. Their coordinates use the
|
|
241
|
+
// section's own frame, so a caller never has to reproduce the world-to-sheet mapping.
|
|
242
|
+
for (const guide of guides) {
|
|
243
|
+
const points = guide.points.filter((p) => Number.isFinite(p.u) && Number.isFinite(p.z));
|
|
244
|
+
if (points.length >= 2) {
|
|
245
|
+
parts.push(
|
|
246
|
+
`<polyline points="${points.map((p) => `${sx(p.u)},${sy(p.z)}`).join(" ")}" fill="none" stroke="#A84940" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>`,
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
if (guide.showVertices) {
|
|
250
|
+
for (const p of points) {
|
|
251
|
+
parts.push(`<circle cx="${sx(p.u)}" cy="${sy(p.z)}" r="2.8" fill="#A84940"/>`);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
const last = points[points.length - 1];
|
|
255
|
+
if (last && guide.label) {
|
|
256
|
+
parts.push(`<text x="${sx(last.u) + 7}" y="${sy(last.z) - 7}" font-size="10" fill="#A84940">${esc(guide.label)}</text>`);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
196
260
|
// ---- the rooms, named ----
|
|
197
261
|
for (const e of section.entities) {
|
|
198
262
|
if (e.class !== "cut" || e.of !== "space") continue;
|
package/src/form.ts
CHANGED
|
@@ -20,6 +20,7 @@ export {
|
|
|
20
20
|
type Form,
|
|
21
21
|
type FormBoundary,
|
|
22
22
|
type FormColumn,
|
|
23
|
+
type FormComponent,
|
|
23
24
|
type FormInput,
|
|
24
25
|
type FormLevel,
|
|
25
26
|
type FormOpening,
|
|
@@ -46,9 +47,12 @@ export {
|
|
|
46
47
|
sectionArea,
|
|
47
48
|
sectionForm,
|
|
48
49
|
type FormSection,
|
|
50
|
+
type LineFormSection,
|
|
51
|
+
type LineSectionSpec,
|
|
49
52
|
type SectionAxis,
|
|
50
53
|
type SectionClass,
|
|
51
54
|
type SectionEntity,
|
|
55
|
+
type SectionLine,
|
|
52
56
|
type SectionPt,
|
|
53
57
|
type SectionSpec,
|
|
54
58
|
type SectionSubject,
|
package/src/index.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
//
|
|
16
16
|
// root is browser-safe: nothing reachable from here pulls a Node builtin.
|
|
17
17
|
//
|
|
18
|
-
// The
|
|
18
|
+
// The public entry points:
|
|
19
19
|
//
|
|
20
20
|
// @kensnzk/koyu this file — compose, check, canonicalise
|
|
21
21
|
// @kensnzk/koyu/model Model, and the questions the model answers alone
|
package/src/mcp.ts
CHANGED
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
SUPPORTED_LANGUAGE_VERSIONS,
|
|
20
20
|
} from "./core/model.js";
|
|
21
21
|
import { axisOf } from "./core/section.js";
|
|
22
|
+
import { placedComponents } from "./core/components.js";
|
|
22
23
|
import { check } from "./core/diagnose.js";
|
|
23
24
|
import { siteReport } from "./core/site.js";
|
|
24
25
|
import { assess } from "./validate/assessment.js";
|
|
@@ -41,7 +42,7 @@ import {
|
|
|
41
42
|
type Model,
|
|
42
43
|
type Space,
|
|
43
44
|
} from "./model.js";
|
|
44
|
-
import { parseFile, parseFileWith } from "./parse-file.js";
|
|
45
|
+
import { componentSvgFiles, parseFile, parseFileWith } from "./parse-file.js";
|
|
45
46
|
|
|
46
47
|
// ---- モデルの読み込みと要約 ----
|
|
47
48
|
|
|
@@ -109,6 +110,7 @@ function summarize(model: Model, file: string, by: readonly string[] = []): unkn
|
|
|
109
110
|
byM2[key] = bucket;
|
|
110
111
|
}
|
|
111
112
|
const r = check(model);
|
|
113
|
+
const components = placedComponents(model).components;
|
|
112
114
|
return {
|
|
113
115
|
name: model.name,
|
|
114
116
|
unit: model.unit,
|
|
@@ -134,6 +136,18 @@ function summarize(model: Model, file: string, by: readonly string[] = []): unkn
|
|
|
134
136
|
};
|
|
135
137
|
}),
|
|
136
138
|
assets: [...model.assets.values()].map((a) => ({ name: a.name, kind: a.kind, attrs: a.attrs })),
|
|
139
|
+
...(components.length > 0
|
|
140
|
+
? {
|
|
141
|
+
componentPlacements: components.map((component) => ({
|
|
142
|
+
space: component.space,
|
|
143
|
+
area: component.area,
|
|
144
|
+
asset: component.asset,
|
|
145
|
+
level: component.level,
|
|
146
|
+
centre: component.centre,
|
|
147
|
+
rotation: component.rotation,
|
|
148
|
+
})),
|
|
149
|
+
}
|
|
150
|
+
: {}),
|
|
137
151
|
...(model.polygons.size
|
|
138
152
|
? { sitePolygons: [...model.polygons.keys()] }
|
|
139
153
|
: {}),
|
|
@@ -222,7 +236,7 @@ const keys = (v: unknown, name: string): string[] => {
|
|
|
222
236
|
const TOOLS: Record<string, Tool> = {
|
|
223
237
|
model_summary: {
|
|
224
238
|
description:
|
|
225
|
-
"Summary of the building: name, levels, layer composition, zones,
|
|
239
|
+
"Summary of the building: name, levels, layer composition, zones, reusable assets, placed components, areas, and check counts. Call this first. Pass by:[\"lease.category\"] to also get floor area grouped by those attribute keys",
|
|
226
240
|
schema: {
|
|
227
241
|
type: "object",
|
|
228
242
|
properties: {
|
|
@@ -444,7 +458,11 @@ const TOOLS: Record<string, Tool> = {
|
|
|
444
458
|
properties: { ...FILE_PROP, level: { type: "string", description: "Level name (e.g. L5)" } },
|
|
445
459
|
required: ["file", "level"],
|
|
446
460
|
},
|
|
447
|
-
run: (a) =>
|
|
461
|
+
run: (a) => {
|
|
462
|
+
const model = load(str(a.file, "file"));
|
|
463
|
+
const level = str(a.level, "level");
|
|
464
|
+
return svgPlan(model, { level, componentSvgs: componentSvgFiles(model, level) });
|
|
465
|
+
},
|
|
448
466
|
},
|
|
449
467
|
section_svg: {
|
|
450
468
|
description:
|
package/src/parse-file.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { readFileSync, realpathSync } from "node:fs";
|
|
|
6
6
|
import { dirname, resolve } from "node:path";
|
|
7
7
|
import type { Model } from "./core/model.js";
|
|
8
8
|
import { parseWith } from "./core/parse.js";
|
|
9
|
+
export { componentSvgFiles } from "./draw/component-files.js";
|
|
9
10
|
|
|
10
11
|
/** ファイルから読む。import は書かれたファイルからの相対で解決される */
|
|
11
12
|
export function parseFile(filePath: string): Model {
|
|
@@ -42,6 +42,12 @@ import {
|
|
|
42
42
|
DOOR_COLUMN_COLLISIONS_ANALYSIS,
|
|
43
43
|
DOOR_COLUMN_COLLISIONS_ANALYSIS_ID,
|
|
44
44
|
} from "./door-column-collisions.js";
|
|
45
|
+
import {
|
|
46
|
+
OPENING_OPERATIONS_ANALYSIS,
|
|
47
|
+
OPENING_OPERATIONS_ANALYSIS_ID,
|
|
48
|
+
SLIDING_STORAGE_LEAVES_SPACE_RULE,
|
|
49
|
+
SLIDING_STORAGE_OVERLAPS_OPENING_RULE,
|
|
50
|
+
} from "./opening-operations.js";
|
|
45
51
|
import {
|
|
46
52
|
SITE_ANALYSIS,
|
|
47
53
|
SITE_ANALYSIS_ID,
|
|
@@ -61,6 +67,7 @@ import {
|
|
|
61
67
|
export * from "./access.js";
|
|
62
68
|
export * from "./daylight.js";
|
|
63
69
|
export * from "./door-column-collisions.js";
|
|
70
|
+
export * from "./opening-operations.js";
|
|
64
71
|
export * from "./site.js";
|
|
65
72
|
export * from "./vertical-runs.js";
|
|
66
73
|
|
|
@@ -75,7 +82,7 @@ export const SCHEMATIC_PROFILE_ID: ProfileRef = freezeBuiltin({
|
|
|
75
82
|
});
|
|
76
83
|
|
|
77
84
|
/**
|
|
78
|
-
* The
|
|
85
|
+
* The analyses, in the order they are declared in the catalog.
|
|
79
86
|
*
|
|
80
87
|
* Each computes facts once and says nothing about pass or fail — no rule identity, no level,
|
|
81
88
|
* no compliance summary. CLI, MCP and eval read these rather than recomputing a ratio,
|
|
@@ -86,6 +93,7 @@ export const SCHEMATIC_ANALYSES: readonly AnalysisDefinition<JsonValue>[] = free
|
|
|
86
93
|
VERTICAL_RUNS_ANALYSIS,
|
|
87
94
|
ACCESS_ANALYSIS,
|
|
88
95
|
DOOR_COLUMN_COLLISIONS_ANALYSIS,
|
|
96
|
+
OPENING_OPERATIONS_ANALYSIS,
|
|
89
97
|
SITE_ANALYSIS,
|
|
90
98
|
] as unknown as AnalysisDefinition<JsonValue>[]);
|
|
91
99
|
|
|
@@ -94,11 +102,13 @@ export const SCHEMATIC_ANALYSIS_IDS: readonly AnalysisRef[] = freezeBuiltin([
|
|
|
94
102
|
VERTICAL_RUNS_ANALYSIS_ID,
|
|
95
103
|
ACCESS_ANALYSIS_ID,
|
|
96
104
|
DOOR_COLUMN_COLLISIONS_ANALYSIS_ID,
|
|
105
|
+
OPENING_OPERATIONS_ANALYSIS_ID,
|
|
97
106
|
SITE_ANALYSIS_ID,
|
|
98
107
|
] as unknown as AnalysisRef[]);
|
|
99
108
|
|
|
100
109
|
/**
|
|
101
|
-
* The
|
|
110
|
+
* The legacy rules in their original order, followed by opening-operation checks introduced by
|
|
111
|
+
* the current pack, then the remaining legacy site rules.
|
|
102
112
|
*
|
|
103
113
|
* The one place the order is not a copy is the old `run.slope`, which splits in place into the
|
|
104
114
|
* ramp rule and then the escalator rule: a declared limit and a customary band have different
|
|
@@ -123,6 +133,8 @@ export const SCHEMATIC_RULES: readonly Rule[] = freezeBuiltin([
|
|
|
123
133
|
ACCESS_PARKING_RULE,
|
|
124
134
|
ACCESS_BACKOFHOUSE_RULE,
|
|
125
135
|
COLUMN_BLOCKS_DOOR_RULE,
|
|
136
|
+
SLIDING_STORAGE_LEAVES_SPACE_RULE,
|
|
137
|
+
SLIDING_STORAGE_OVERLAPS_OPENING_RULE,
|
|
126
138
|
SITE_ESCAPE_RULE,
|
|
127
139
|
SITE_AREA_RULE,
|
|
128
140
|
SITE_FRONTAGE_RULE,
|