@mark1russell7/room-view 0.1.3 → 0.1.4
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/README.md +1 -1
- package/build/anchors-BEnxNnSV.d.ts +75 -0
- package/build/anchors-BEnxNnSV.d.ts.map +1 -0
- package/build/frames-BYMK5ZId.d.ts +39 -0
- package/build/frames-BYMK5ZId.d.ts.map +1 -0
- package/build/index.d.ts +5 -73
- package/build/index.d.ts.map +1 -1
- package/build/{loads-C3Nrj3Gd.d.ts → loads-D95Z0Vtk.d.ts} +4 -38
- package/build/loads-D95Z0Vtk.d.ts.map +1 -0
- package/build/schema.d.ts +6 -0
- package/build/schema.d.ts.map +1 -1
- package/build/schema.js +35 -1
- package/build/schema.js.map +1 -1
- package/build/three.d.ts +1 -1
- package/package.json +1 -1
- package/build/loads-C3Nrj3Gd.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -303,7 +303,7 @@ The option `cut` gives a floor plan: the plan keeps only the solids that start b
|
|
|
303
303
|
| Entry | What it has |
|
|
304
304
|
| --- | --- |
|
|
305
305
|
| `@mark1russell7/room-view` | The record types, the model, the plan, the checks, the loads, the survey and the level. It has no schema library. |
|
|
306
|
-
| `@mark1russell7/room-view/schema` | `roomSchema`, `sceneSchema`, `surveySchema` and `
|
|
306
|
+
| `@mark1russell7/room-view/schema` | `roomSchema`, `sceneSchema`, `surveySchema`, `levelSchema` and `anchorSchema`: the zod schemas that examine the form of a JSON record. |
|
|
307
307
|
| `@mark1russell7/room-view/sample` | `SAMPLE_ROOM`, `SAMPLE_SCENE`, `SAMPLE_SURVEY` and `SAMPLE_LEVEL`: a room with a rack and an apartment of four rooms, for demos and tests. |
|
|
308
308
|
| `@mark1russell7/room-view/three` | `createRoomViewer`, the themes and `solidGeometry`: the viewer in a page. It needs the package `three`. |
|
|
309
309
|
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { t as WallFrame } from "./frames-BYMK5ZId.js";
|
|
2
|
+
import { _ as WallFace, c as PlacedObject, l as PlanPoint, p as Scene } from "./room-NREa6vXr.js";
|
|
3
|
+
import { Point3, Transform3 } from "@mark1russell7/layout-contract";
|
|
4
|
+
/** These are the surfaces that an anchor can be on. */
|
|
5
|
+
declare const ANCHOR_SURFACES: readonly ["wall", "floor", "ceiling", "object"];
|
|
6
|
+
/** A surface of an anchor. */
|
|
7
|
+
type AnchorSurface = (typeof ANCHOR_SURFACES)[number];
|
|
8
|
+
/** An anchor on a face of a wall. The lengths are in the unit of the room. */
|
|
9
|
+
interface WallAnchor {
|
|
10
|
+
readonly on: "wall";
|
|
11
|
+
/** The `id` of the wall. */
|
|
12
|
+
readonly wall: string;
|
|
13
|
+
readonly face: WallFace;
|
|
14
|
+
/** The distance along the line of the wall, from `from` to the anchor. */
|
|
15
|
+
readonly offset: number;
|
|
16
|
+
/** The height of the anchor above the floor. */
|
|
17
|
+
readonly height: number;
|
|
18
|
+
}
|
|
19
|
+
/** An anchor on the floor, at a point of the plan. */
|
|
20
|
+
interface FloorAnchor {
|
|
21
|
+
readonly on: "floor";
|
|
22
|
+
readonly at: PlanPoint;
|
|
23
|
+
/** The `id` of the floor that has the point. Without it, the point is on any floor of the room. */
|
|
24
|
+
readonly floor?: string | undefined;
|
|
25
|
+
}
|
|
26
|
+
/** An anchor on the ceiling, above a point of the plan. The ceiling is at the height of the room. */
|
|
27
|
+
interface CeilingAnchor {
|
|
28
|
+
readonly on: "ceiling";
|
|
29
|
+
readonly at: PlanPoint;
|
|
30
|
+
/** The `id` of the floor below the point. Without it, the point is above any floor of the room. */
|
|
31
|
+
readonly floor?: string | undefined;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* An anchor on a placed object. The point and the direction are in the frame of the object, before its turn.
|
|
35
|
+
* The origin of that frame is the center of the bottom of the object.
|
|
36
|
+
*/
|
|
37
|
+
interface ObjectAnchor {
|
|
38
|
+
readonly on: "object";
|
|
39
|
+
/** The `id` of the placed object. */
|
|
40
|
+
readonly object: string;
|
|
41
|
+
/** The point in the frame of the object. The default is the center of its top. */
|
|
42
|
+
readonly at?: readonly [number, number, number] | undefined;
|
|
43
|
+
/** The direction out of the surface, in the frame of the object. The default is up: `[0, 0, 1]`. */
|
|
44
|
+
readonly out?: readonly [number, number, number] | undefined;
|
|
45
|
+
}
|
|
46
|
+
/** An anchor: a place in the space of the core, for a record of an add-on. */
|
|
47
|
+
type Anchor = WallAnchor | FloorAnchor | CeilingAnchor | ObjectAnchor;
|
|
48
|
+
/** The position of an anchor in the room, in meters. */
|
|
49
|
+
interface AnchorFrame {
|
|
50
|
+
/** The point of the anchor. */
|
|
51
|
+
readonly at: Point3;
|
|
52
|
+
/** The unit vector out of the surface, into the space of the room. */
|
|
53
|
+
readonly out: Point3;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The space of a scene, for the add-ons. It reads each wall, object and anchor of the scene.
|
|
57
|
+
* Make it once with `sceneSpace`, and give it to each add-on.
|
|
58
|
+
*/
|
|
59
|
+
interface SceneSpace {
|
|
60
|
+
readonly scene: Scene;
|
|
61
|
+
/** The length of the unit of the room, in meters. */
|
|
62
|
+
readonly scale: number;
|
|
63
|
+
/** This function gives the frame of a wall in meters, or `undefined` when the room does not have the wall. */
|
|
64
|
+
readonly wall: (id: string) => WallFrame | undefined;
|
|
65
|
+
/** This function gives a placed object of the scene, or `undefined` when the scene does not have it. */
|
|
66
|
+
readonly object: (id: string) => PlacedObject | undefined;
|
|
67
|
+
/** This function gives the transform of a placed object in meters, or `undefined` when the object has no place. */
|
|
68
|
+
readonly transform: (id: string) => Transform3 | undefined;
|
|
69
|
+
/** This function gives the position of an anchor, or `undefined` when the anchor has no position. `checkAnchor` tells the reason. */
|
|
70
|
+
readonly frame: (anchor: Anchor) => AnchorFrame | undefined;
|
|
71
|
+
}
|
|
72
|
+
/** This function gives the space of a scene. The transforms of the objects are calculated one time, at the first use. */
|
|
73
|
+
declare function sceneSpace(scene: Scene): SceneSpace;
|
|
74
|
+
export { CeilingAnchor as a, SceneSpace as c, AnchorSurface as i, WallAnchor as l, Anchor as n, FloorAnchor as o, AnchorFrame as r, ObjectAnchor as s, ANCHOR_SURFACES as t, sceneSpace as u };
|
|
75
|
+
//# sourceMappingURL=anchors-BEnxNnSV.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anchors-BEnxNnSV.d.ts","names":[],"sources":["../src/anchors.ts"],"mappings":";;;;cAUa;;KAGD,wBAAwB;;UAGnB;WACN;;WAEA;WACA,MAAM;;WAEN;;WAEA;;;UAIM;WACN;WACA,IAAI;;WAEJ;;;UAIM;WACN;WACA,IAAI;;WAEJ;;;;;;UAOM;WACN;;WAEA;;WAEA;;WAEA;;;KAIC,SAAS,aAAa,cAAc,gBAAgB;;UAG/C;;WAEN,IAAI;;WAEJ,KAAK;;;;;;UAOC;WACN,OAAO;;WAEP;;WAEA,OAAO,eAAe;;WAEtB,SAAS,eAAe;;WAExB,YAAY,eAAe;;WAE3B,QAAQ,QAAQ,WAAW;;;iBAYtB,WAAW,OAAO,QAAQ"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { d as Room } from "./room-NREa6vXr.js";
|
|
2
|
+
import { Point, Transform3 } from "@mark1russell7/layout-contract";
|
|
3
|
+
/**
|
|
4
|
+
* The frame of a wall, in meters. A point of the wall has a distance along the line and a distance across it.
|
|
5
|
+
* The distance across is positive to the left, for a person who looks from the start to the end.
|
|
6
|
+
*/
|
|
7
|
+
interface WallFrame {
|
|
8
|
+
/** The `id` of the wall. */
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly start: Point;
|
|
11
|
+
readonly end: Point;
|
|
12
|
+
/** The unit vector from the start to the end. A wall with the length 0, or with a length that is not finite, has the vector (1, 0). */
|
|
13
|
+
readonly along: Point;
|
|
14
|
+
/** The unit vector to the left of `along`. */
|
|
15
|
+
readonly left: Point;
|
|
16
|
+
readonly length: number;
|
|
17
|
+
readonly thickness: number;
|
|
18
|
+
readonly height: number;
|
|
19
|
+
/** The distance across of the left face. It is 0 or more. */
|
|
20
|
+
readonly leftOffset: number;
|
|
21
|
+
/** The distance across of the right face. It is 0 or less. */
|
|
22
|
+
readonly rightOffset: number;
|
|
23
|
+
}
|
|
24
|
+
/** This function gives the frame of each wall of a room, in the sequence of the walls. */
|
|
25
|
+
declare function wallFrames(room: Room): readonly WallFrame[];
|
|
26
|
+
/**
|
|
27
|
+
* This function tells if a wall has an outline in the plan. Its ends and its thickness must be lengths in the range of the model,
|
|
28
|
+
* and its length and its thickness must be above 0. Only such a wall makes a corner, and the model makes only such a wall.
|
|
29
|
+
*/
|
|
30
|
+
declare function wallHasOutline(frame: WallFrame): boolean;
|
|
31
|
+
/** This function gives the point of the plan at a distance along a wall and a distance across it, in meters. */
|
|
32
|
+
declare function wallPoint(frame: WallFrame, along: number, across: number): Point;
|
|
33
|
+
/**
|
|
34
|
+
* This function gives the transform from the frame of a wall to the room.
|
|
35
|
+
* In the frame of a wall, x is the distance along the wall and y is the distance across it. The height above the floor is z.
|
|
36
|
+
*/
|
|
37
|
+
declare function wallTransform(frame: WallFrame): Transform3;
|
|
38
|
+
export { wallTransform as a, wallPoint as i, wallFrames as n, wallHasOutline as r, WallFrame as t };
|
|
39
|
+
//# sourceMappingURL=frames-BYMK5ZId.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frames-BYMK5ZId.d.ts","names":[],"sources":["../src/frames.ts"],"mappings":";;;;;;UAQiB;;WAEN;WACA,OAAO;WACP,KAAK;;WAEL,OAAO;;WAEP,MAAM;WACN;WACA;WACA;;WAEA;;WAEA;;;iBA2BK,WAAW,MAAM,gBAAgB;;;;;iBASjC,eAAe,OAAO;;iBAKtB,UAAU,OAAO,WAAW,eAAe,iBAAiB;;;;;iBAW5D,cAAc,OAAO,YAAY"}
|
package/build/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { C as lengthsInRange, S as LengthUnit, T as unitsPer, _ as WallFace, a as Opening, b as LARGEST_LENGTH, c as PlacedObject, d as Room, f as SCENE_SCHEMA, g as Wall, h as WALL_SIDES, i as OPENING_KINDS, l as PlanPoint, m as WALL_FACES, n as CircuitLoad, o as OpeningKind, p as Scene, r as Floor, s as Outlet, t as Circuit, u as ROOM_SCHEMA, v as WallSide, w as metersPer, x as LENGTH_UNITS, y as isLayerName } from "./room-NREa6vXr.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as wallTransform, i as wallPoint, n as wallFrames, r as wallHasOutline, t as WallFrame } from "./frames-BYMK5ZId.js";
|
|
3
|
+
import { A as solidVolume, C as SolidShape, D as roomSolids, E as objectTransforms, F as wallFootprints, M as JoinOptions, N as MITER_LIMIT, O as sceneSolids, P as WallFootprint, S as SolidOptions, T as boundsOfSolids, _ as PlacedBox, a as LoadLevel, b as Solid, c as SHAPE_OUTLINES, d as levelShape, f as outletLevels, g as OUTLET_PLATE, h as GLASS_THICKNESS, i as LevelShape, j as JOIN_TOLERANCE, k as solidCorners, l as ShapeOutline, m as FLOOR_DEPTH, n as LEVEL_SHAPES, o as LoadOptions, p as shapeRing, r as LOAD_LEVELS, s as NEAR_LIMIT, t as CircuitState, u as circuitStates, v as Prism, w as TO_Y_UP, x as SolidKind, y as SOLID_KINDS } from "./loads-D95Z0Vtk.js";
|
|
4
|
+
import { a as CeilingAnchor, c as SceneSpace, i as AnchorSurface, l as WallAnchor, n as Anchor, o as FloorAnchor, r as AnchorFrame, s as ObjectAnchor, t as ANCHOR_SURFACES, u as sceneSpace } from "./anchors-BEnxNnSV.js";
|
|
3
5
|
import { A as SurveyTurn, C as SurveyCheckResult, D as SurveyOutlet, E as SurveyOptions, M as expandSurvey, O as SurveyResult, S as SurveyCheck, T as SurveyObject, _ as expandLevel, a as ConnectionFault, b as SURVEY_SCHEMA, c as Level, d as LevelOptions, f as LevelResult, g as RoomPlace, h as ROOM_PLACES, i as ConnectionEnd, j as convertSurvey, k as SurveySide, l as LevelConnection, m as LevelRoomResult, n as CONNECTION_TURN_LIMIT, o as ConnectionUse, p as LevelRoom, r as CONNECTION_USES, s as LEVEL_SCHEMA, t as CONNECTION_FAULTS, u as LevelConnectionResult, v as CLOSURE_LIMIT, w as SurveyClosure, x as Survey, y as SQUARE_TURNS } from "./level-Bmz-H5iH.js";
|
|
4
|
-
import {
|
|
6
|
+
import { Ring } from "@mark1russell7/layout-contract";
|
|
5
7
|
/** The outline of one solid in the plan of a room: the solid as a camera above the room sees it. */
|
|
6
8
|
export interface PlanShape {
|
|
7
9
|
/** The `id` of the solid. */
|
|
@@ -35,76 +37,6 @@ export interface PlanOptions extends SolidOptions {
|
|
|
35
37
|
* Thus a drawing in this sequence shows the room as a camera above it sees the room.
|
|
36
38
|
*/
|
|
37
39
|
export declare function planShapes(scene: Scene, options?: PlanOptions): readonly PlanShape[];
|
|
38
|
-
/** These are the surfaces that an anchor can be on. */
|
|
39
|
-
export declare const ANCHOR_SURFACES: readonly ["wall", "floor", "ceiling", "object"];
|
|
40
|
-
/** A surface of an anchor. */
|
|
41
|
-
export type AnchorSurface = (typeof ANCHOR_SURFACES)[number];
|
|
42
|
-
/** An anchor on a face of a wall. The lengths are in the unit of the room. */
|
|
43
|
-
export interface WallAnchor {
|
|
44
|
-
readonly on: "wall";
|
|
45
|
-
/** The `id` of the wall. */
|
|
46
|
-
readonly wall: string;
|
|
47
|
-
readonly face: WallFace;
|
|
48
|
-
/** The distance along the line of the wall, from `from` to the anchor. */
|
|
49
|
-
readonly offset: number;
|
|
50
|
-
/** The height of the anchor above the floor. */
|
|
51
|
-
readonly height: number;
|
|
52
|
-
}
|
|
53
|
-
/** An anchor on the floor, at a point of the plan. */
|
|
54
|
-
export interface FloorAnchor {
|
|
55
|
-
readonly on: "floor";
|
|
56
|
-
readonly at: PlanPoint;
|
|
57
|
-
/** The `id` of the floor that has the point. Without it, the point is on any floor of the room. */
|
|
58
|
-
readonly floor?: string | undefined;
|
|
59
|
-
}
|
|
60
|
-
/** An anchor on the ceiling, above a point of the plan. The ceiling is at the height of the room. */
|
|
61
|
-
export interface CeilingAnchor {
|
|
62
|
-
readonly on: "ceiling";
|
|
63
|
-
readonly at: PlanPoint;
|
|
64
|
-
/** The `id` of the floor below the point. Without it, the point is above any floor of the room. */
|
|
65
|
-
readonly floor?: string | undefined;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* An anchor on a placed object. The point and the direction are in the frame of the object, before its turn.
|
|
69
|
-
* The origin of that frame is the center of the bottom of the object.
|
|
70
|
-
*/
|
|
71
|
-
export interface ObjectAnchor {
|
|
72
|
-
readonly on: "object";
|
|
73
|
-
/** The `id` of the placed object. */
|
|
74
|
-
readonly object: string;
|
|
75
|
-
/** The point in the frame of the object. The default is the center of its top. */
|
|
76
|
-
readonly at?: readonly [number, number, number] | undefined;
|
|
77
|
-
/** The direction out of the surface, in the frame of the object. The default is up: `[0, 0, 1]`. */
|
|
78
|
-
readonly out?: readonly [number, number, number] | undefined;
|
|
79
|
-
}
|
|
80
|
-
/** An anchor: a place in the space of the core, for a record of an add-on. */
|
|
81
|
-
export type Anchor = WallAnchor | FloorAnchor | CeilingAnchor | ObjectAnchor;
|
|
82
|
-
/** The position of an anchor in the room, in meters. */
|
|
83
|
-
export interface AnchorFrame {
|
|
84
|
-
/** The point of the anchor. */
|
|
85
|
-
readonly at: Point3;
|
|
86
|
-
/** The unit vector out of the surface, into the space of the room. */
|
|
87
|
-
readonly out: Point3;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* The space of a scene, for the add-ons. It reads each wall, object and anchor of the scene.
|
|
91
|
-
* Make it once with `sceneSpace`, and give it to each add-on.
|
|
92
|
-
*/
|
|
93
|
-
export interface SceneSpace {
|
|
94
|
-
readonly scene: Scene;
|
|
95
|
-
/** The length of the unit of the room, in meters. */
|
|
96
|
-
readonly scale: number;
|
|
97
|
-
/** This function gives the frame of a wall in meters, or `undefined` when the room does not have the wall. */
|
|
98
|
-
readonly wall: (id: string) => WallFrame | undefined;
|
|
99
|
-
/** This function gives a placed object of the scene, or `undefined` when the scene does not have it. */
|
|
100
|
-
readonly object: (id: string) => PlacedObject | undefined;
|
|
101
|
-
/** This function gives the transform of a placed object in meters, or `undefined` when the object has no place. */
|
|
102
|
-
readonly transform: (id: string) => Transform3 | undefined;
|
|
103
|
-
/** This function gives the position of an anchor, or `undefined` when the anchor has no position. `checkAnchor` tells the reason. */
|
|
104
|
-
readonly frame: (anchor: Anchor) => AnchorFrame | undefined;
|
|
105
|
-
}
|
|
106
|
-
/** This function gives the space of a scene. The transforms of the objects are calculated one time, at the first use. */
|
|
107
|
-
export declare function sceneSpace(scene: Scene): SceneSpace;
|
|
108
40
|
/** These are the levels of a finding. An error is a fault that the model cannot show. A warning is a fault that the model can show. */
|
|
109
41
|
export declare const FINDING_LEVELS: readonly ["error", "warning"];
|
|
110
42
|
/** A level of a finding. */
|
|
@@ -243,5 +175,5 @@ export declare function readLayer<Layer>(scene: Scene, addOn: AddOn<Layer>): Lay
|
|
|
243
175
|
* `checkScene` examines the core, and this function examines the layers.
|
|
244
176
|
*/
|
|
245
177
|
export declare function checkLayers(scene: Scene, addOns: readonly AddOn<unknown>[]): readonly LayerFinding[];
|
|
246
|
-
export { CLOSURE_LIMIT, CONNECTION_FAULTS, CONNECTION_TURN_LIMIT, CONNECTION_USES, Circuit, CircuitLoad, CircuitState, ConnectionEnd, ConnectionFault, ConnectionUse, FLOOR_DEPTH, Floor, GLASS_THICKNESS, JOIN_TOLERANCE, JoinOptions, LARGEST_LENGTH, LENGTH_UNITS, LEVEL_SCHEMA, LEVEL_SHAPES, LOAD_LEVELS, LengthUnit, Level, LevelConnection, LevelConnectionResult, LevelOptions, LevelResult, LevelRoom, LevelRoomResult, LevelShape, LoadLevel, LoadOptions, MITER_LIMIT, NEAR_LIMIT, OPENING_KINDS, OUTLET_PLATE, Opening, OpeningKind, Outlet, PlacedBox, PlacedObject, PlanPoint, Prism, ROOM_PLACES, ROOM_SCHEMA, Room, RoomPlace, SCENE_SCHEMA, SHAPE_OUTLINES, SOLID_KINDS, SQUARE_TURNS, SURVEY_SCHEMA, Scene, ShapeOutline, Solid, SolidKind, SolidOptions, SolidShape, Survey, SurveyCheck, SurveyCheckResult, SurveyClosure, SurveyObject, SurveyOptions, SurveyOutlet, SurveyResult, SurveySide, SurveyTurn, TO_Y_UP, WALL_FACES, WALL_SIDES, Wall, WallFace, WallFootprint, WallFrame, WallSide, boundsOfSolids, circuitStates, convertSurvey, expandLevel, expandSurvey, isLayerName, lengthsInRange, levelShape, metersPer, objectTransforms, outletLevels, roomSolids, sceneSolids, shapeRing, solidCorners, solidVolume, unitsPer, wallFootprints, wallFrames, wallHasOutline, wallPoint, wallTransform };
|
|
178
|
+
export { ANCHOR_SURFACES, Anchor, AnchorFrame, AnchorSurface, CLOSURE_LIMIT, CONNECTION_FAULTS, CONNECTION_TURN_LIMIT, CONNECTION_USES, CeilingAnchor, Circuit, CircuitLoad, CircuitState, ConnectionEnd, ConnectionFault, ConnectionUse, FLOOR_DEPTH, Floor, FloorAnchor, GLASS_THICKNESS, JOIN_TOLERANCE, JoinOptions, LARGEST_LENGTH, LENGTH_UNITS, LEVEL_SCHEMA, LEVEL_SHAPES, LOAD_LEVELS, LengthUnit, Level, LevelConnection, LevelConnectionResult, LevelOptions, LevelResult, LevelRoom, LevelRoomResult, LevelShape, LoadLevel, LoadOptions, MITER_LIMIT, NEAR_LIMIT, OPENING_KINDS, OUTLET_PLATE, ObjectAnchor, Opening, OpeningKind, Outlet, PlacedBox, PlacedObject, PlanPoint, Prism, ROOM_PLACES, ROOM_SCHEMA, Room, RoomPlace, SCENE_SCHEMA, SHAPE_OUTLINES, SOLID_KINDS, SQUARE_TURNS, SURVEY_SCHEMA, Scene, SceneSpace, ShapeOutline, Solid, SolidKind, SolidOptions, SolidShape, Survey, SurveyCheck, SurveyCheckResult, SurveyClosure, SurveyObject, SurveyOptions, SurveyOutlet, SurveyResult, SurveySide, SurveyTurn, TO_Y_UP, WALL_FACES, WALL_SIDES, Wall, WallAnchor, WallFace, WallFootprint, WallFrame, WallSide, boundsOfSolids, circuitStates, convertSurvey, expandLevel, expandSurvey, isLayerName, lengthsInRange, levelShape, metersPer, objectTransforms, outletLevels, roomSolids, sceneSolids, sceneSpace, shapeRing, solidCorners, solidVolume, unitsPer, wallFootprints, wallFrames, wallHasOutline, wallPoint, wallTransform };
|
|
247
179
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/plan.ts","../src/
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/plan.ts","../src/check.ts","../src/layers.ts"],"mappings":";;;;;;;iBAKiB;;WAEN;WACA,MAAM;;WAEN;;WAEA,MAAM;;WAEN;;WAEA;;;;;;wBAOK,UAAU,OAAO,QAAQ;;iBAgBxB,oBAAoB;;;;;WAK1B;;;;;;;wBAQK,WAAW,OAAO,OAAO,UAAS,uBAA4B;;qBC3CjE;;YAGD,uBAAuB;;qBAGtB;;YAYD,qBAAqB;;;;;wBAMjB,WAAW,cAAc;;wBAKzB,gBAAgB;WAA0B;WAAuB;;;qBAMpE;;YAuDD,sBAAsB;;iBAGjB;WACN,OAAO;WACP,MAAM;;WAEN,QAAQ;;WAER;;WAEA;;;;;WAKA;;;iBAIM;;WAEN,QAAQ;;;;;;;wBA2CH,UAAU,MAAM,MAAM,UAAS,wBAA6B;;;;;wBAwK5D,WAAW,OAAO,OAAO,UAAS,wBAA6B;;qBAkFlE;;YAYD,qBAAqB;;iBAGhB;WACN,OAAO;WACP,MAAM;;WAEN;;WAEA;;;;;;wBAOK,YAAY,QAAQ,QAAQ,OAAO,YAAY,yBAAuC;;YCjb1F,WAAW;WAAoB;WAAmB,OAAO;;WAAqB;WAAoB;;;iBAG7F;WACN,OAAO;;WAEP;;WAEA;;WAEA;;WAEA;;;;;;iBAOM,MAAM;;WAEZ;;EAET,MAAM,iBAAiB,WAAW;;;;;EAKlC,QAAQ,OAAO,QAAQ,oBAAoB;;EAE3C,YAAY,OAAO,OAAO,SAAS,oBAAoB,UAAU;;EAEjE,MAAM,OAAO,OAAO,OAAO,sBAAsB;;;qBAItC;;iBAGI;WACN,OAAO;;WAEP;;WAEA;;WAEA;;WAEA;;WAEA;;;wBAgBK,UAAU,OAAO,OAAO,OAAO,OAAO,MAAM,SAAS,WAAW;;;;;;;;;wBAahE,YAAY,OAAO,OAAO,iBAAiB,4BAA4B"}
|
|
@@ -1,40 +1,6 @@
|
|
|
1
1
|
import { d as Room, p as Scene } from "./room-NREa6vXr.js";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
* The frame of a wall, in meters. A point of the wall has a distance along the line and a distance across it.
|
|
5
|
-
* The distance across is positive to the left, for a person who looks from the start to the end.
|
|
6
|
-
*/
|
|
7
|
-
interface WallFrame {
|
|
8
|
-
/** The `id` of the wall. */
|
|
9
|
-
readonly id: string;
|
|
10
|
-
readonly start: Point;
|
|
11
|
-
readonly end: Point;
|
|
12
|
-
/** The unit vector from the start to the end. A wall with the length 0, or with a length that is not finite, has the vector (1, 0). */
|
|
13
|
-
readonly along: Point;
|
|
14
|
-
/** The unit vector to the left of `along`. */
|
|
15
|
-
readonly left: Point;
|
|
16
|
-
readonly length: number;
|
|
17
|
-
readonly thickness: number;
|
|
18
|
-
readonly height: number;
|
|
19
|
-
/** The distance across of the left face. It is 0 or more. */
|
|
20
|
-
readonly leftOffset: number;
|
|
21
|
-
/** The distance across of the right face. It is 0 or less. */
|
|
22
|
-
readonly rightOffset: number;
|
|
23
|
-
}
|
|
24
|
-
/** This function gives the frame of each wall of a room, in the sequence of the walls. */
|
|
25
|
-
declare function wallFrames(room: Room): readonly WallFrame[];
|
|
26
|
-
/**
|
|
27
|
-
* This function tells if a wall has an outline in the plan. Its ends and its thickness must be lengths in the range of the model,
|
|
28
|
-
* and its length and its thickness must be above 0. Only such a wall makes a corner, and the model makes only such a wall.
|
|
29
|
-
*/
|
|
30
|
-
declare function wallHasOutline(frame: WallFrame): boolean;
|
|
31
|
-
/** This function gives the point of the plan at a distance along a wall and a distance across it, in meters. */
|
|
32
|
-
declare function wallPoint(frame: WallFrame, along: number, across: number): Point;
|
|
33
|
-
/**
|
|
34
|
-
* This function gives the transform from the frame of a wall to the room.
|
|
35
|
-
* In the frame of a wall, x is the distance along the wall and y is the distance across it. The height above the floor is z.
|
|
36
|
-
*/
|
|
37
|
-
declare function wallTransform(frame: WallFrame): Transform3;
|
|
2
|
+
import { t as WallFrame } from "./frames-BYMK5ZId.js";
|
|
3
|
+
import { Box3, Point3, Ring, Transform3 } from "@mark1russell7/layout-contract";
|
|
38
4
|
/** The outline of one wall in the plan, after its corners with the other walls. */
|
|
39
5
|
interface WallFootprint {
|
|
40
6
|
/** The `id` of the wall. */
|
|
@@ -219,5 +185,5 @@ declare const SHAPE_OUTLINES: Readonly<Record<LevelShape, ShapeOutline>>;
|
|
|
219
185
|
* The center of the sign is the origin, and `radius` is the radius of a disc.
|
|
220
186
|
*/
|
|
221
187
|
declare function shapeRing(shape: LevelShape, radius?: number): Ring;
|
|
222
|
-
export { solidVolume as A,
|
|
223
|
-
//# sourceMappingURL=loads-
|
|
188
|
+
export { solidVolume as A, SolidShape as C, roomSolids as D, objectTransforms as E, wallFootprints as F, JoinOptions as M, MITER_LIMIT as N, sceneSolids as O, WallFootprint as P, SolidOptions as S, boundsOfSolids as T, PlacedBox as _, LoadLevel as a, Solid as b, SHAPE_OUTLINES as c, levelShape as d, outletLevels as f, OUTLET_PLATE as g, GLASS_THICKNESS as h, LevelShape as i, JOIN_TOLERANCE as j, solidCorners as k, ShapeOutline as l, FLOOR_DEPTH as m, LEVEL_SHAPES as n, LoadOptions as o, shapeRing as p, LOAD_LEVELS as r, NEAR_LIMIT as s, CircuitState as t, circuitStates as u, Prism as v, TO_Y_UP as w, SolidKind as x, SOLID_KINDS as y };
|
|
189
|
+
//# sourceMappingURL=loads-D95Z0Vtk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loads-D95Z0Vtk.d.ts","names":[],"sources":["../src/joins.ts","../src/solids.ts","../src/loads.ts"],"mappings":";;;;UAIiB;;WAEN;;WAEA,MAAM;;;;;WAKN;;;UAIM;;WAEN;;;;;WAKA;;;cAIE;;cAGA;;;;;;;;;iBA8IG,eAAe,iBAAiB,aAAa,UAAS,uBAA4B;;cCzJrF;;KAGD,oBAAoB;;UAGf;WACN;WACA,MAAM;WACN;WACA;;;UAIM;WACN;WACA,KAAK;WACL,WAAW;;;KAIV,aAAa,QAAQ;;;;;UAMhB;;WAEN;WACA,MAAM;;WAEN;WACA,OAAO;;;UAID;;WAEN;;WAEA,QAAQ;;;cAIN;;cAGA;;cAGA;WAAyB;WAAwB;WAAyB;;;;;;cAM1E,SAAS;;;;;;;;;iBA4HN,WAAW,MAAM,MAAM,UAAS,wBAA6B;;;;;;;iBAiD7D,iBAAiB,OAAO,QAAQ,oBAAoB;;;;;iBAiCpD,YAAY,OAAO,OAAO,UAAS,wBAA6B;;iBAqBhE,aAAa,OAAO,iBAAiB;;iBAUrC,eAAe,iBAAiB,UAAU;;iBAK1C,YAAY,OAAO;;cC3TtB;;KAGD,oBAAoB;;UAGf;;WAEN;;WAEA;;WAEA;;WAEA;WACA,OAAO;;WAEP;;WAEA;;;UAIM;;WAEN;;;cAIE;;;;;;;iBAQG,cAAc,OAAO,OAAO,UAAS,uBAA4B;;;;;iBAyBjE,aAAa,OAAO,OAAO,UAAS,cAAmB,oBAAoB;;cAS9E;;KAGD,qBAAqB;;;;;iBAMjB,WAAW,OAAO,wBAAwB;;UAKzC;;WAEN;;WAEA;;WAEA;;WAEA;;;;;;cAOE,gBAAgB,SAAS,OAAO,YAAY;;;;;iBAWzC,UAAU,OAAO,YAAY,kBAAqB"}
|
package/build/schema.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
import { n as Anchor } from "./anchors-BEnxNnSV.js";
|
|
1
2
|
import { c as Level, x as Survey } from "./level-Bmz-H5iH.js";
|
|
2
3
|
import { d as Room, p as Scene } from "./room-NREa6vXr.js";
|
|
3
4
|
import { z } from "zod";
|
|
5
|
+
/**
|
|
6
|
+
* The schema of an anchor. It examines the form of the record, and it refuses a field that the surface of the anchor does not have.
|
|
7
|
+
* The schema of an add-on uses it for the anchor of each record. `checkAnchor` examines the meaning of an anchor with a correct form.
|
|
8
|
+
*/
|
|
9
|
+
export declare const anchorSchema: z.ZodType<Anchor>;
|
|
4
10
|
/**
|
|
5
11
|
* The schema of a room record. It examines the form of the record: the fields, their types and the finite numbers.
|
|
6
12
|
* It refuses a field that the format does not have. `checkRoom` examines the meaning of a record with a correct form.
|
package/build/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","names":[],"sources":["../src/schema.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.ts","names":[],"sources":["../src/schema.ts"],"mappings":";;;;;;;;qBAgBa,cAAc,EAAE,QAAQ;;;;;qBAqDxB,YAAY,EAAE,QAAQ;;;;;qBAkCtB,aAAa,EAAE,QAAQ;;;;;qBAoDvB,cAAc,EAAE,QAAQ;;;;;qBAyBxB,aAAa,EAAE,QAAQ"}
|
package/build/schema.js
CHANGED
|
@@ -4,6 +4,40 @@ import { z } from "zod";
|
|
|
4
4
|
// src/schema.ts
|
|
5
5
|
const id = z.string().min(1);
|
|
6
6
|
const planPoint = z.tuple([z.number(), z.number()]).readonly();
|
|
7
|
+
const point3 = z.tuple([
|
|
8
|
+
z.number(),
|
|
9
|
+
z.number(),
|
|
10
|
+
z.number()
|
|
11
|
+
]).readonly();
|
|
12
|
+
/**
|
|
13
|
+
* The schema of an anchor. It examines the form of the record, and it refuses a field that the surface of the anchor does not have.
|
|
14
|
+
* The schema of an add-on uses it for the anchor of each record. `checkAnchor` examines the meaning of an anchor with a correct form.
|
|
15
|
+
*/
|
|
16
|
+
const anchorSchema = z.discriminatedUnion("on", [
|
|
17
|
+
z.strictObject({
|
|
18
|
+
on: z.literal("wall"),
|
|
19
|
+
wall: id,
|
|
20
|
+
face: z.enum(WALL_FACES),
|
|
21
|
+
offset: z.number(),
|
|
22
|
+
height: z.number()
|
|
23
|
+
}),
|
|
24
|
+
z.strictObject({
|
|
25
|
+
on: z.literal("floor"),
|
|
26
|
+
at: planPoint,
|
|
27
|
+
floor: id.optional()
|
|
28
|
+
}),
|
|
29
|
+
z.strictObject({
|
|
30
|
+
on: z.literal("ceiling"),
|
|
31
|
+
at: planPoint,
|
|
32
|
+
floor: id.optional()
|
|
33
|
+
}),
|
|
34
|
+
z.strictObject({
|
|
35
|
+
on: z.literal("object"),
|
|
36
|
+
object: id,
|
|
37
|
+
at: point3.optional(),
|
|
38
|
+
out: point3.optional()
|
|
39
|
+
})
|
|
40
|
+
]);
|
|
7
41
|
const wall = z.strictObject({
|
|
8
42
|
id,
|
|
9
43
|
from: planPoint,
|
|
@@ -165,6 +199,6 @@ const levelSchema = z.strictObject({
|
|
|
165
199
|
})).readonly().optional(),
|
|
166
200
|
circuits: z.array(circuit).readonly().optional()
|
|
167
201
|
});
|
|
168
|
-
export { levelSchema, roomSchema, sceneSchema, surveySchema };
|
|
202
|
+
export { anchorSchema, levelSchema, roomSchema, sceneSchema, surveySchema };
|
|
169
203
|
|
|
170
204
|
//# sourceMappingURL=schema.js.map
|
package/build/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","names":[],"sources":["../src/schema.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { LEVEL_SCHEMA, type Level } from \"./level.ts\";\nimport { isLayerName, OPENING_KINDS, ROOM_SCHEMA, SCENE_SCHEMA, WALL_FACES, WALL_SIDES, type Room, type Scene } from \"./room.ts\";\nimport { SQUARE_TURNS, SURVEY_SCHEMA, type Survey } from \"./survey.ts\";\nimport { LENGTH_UNITS } from \"./units.ts\";\n\nconst id = z.string().min(1);\nconst planPoint = z.tuple([z.number(), z.number()]).readonly();\n\nconst wall = z.strictObject({\n id,\n from: planPoint,\n to: planPoint,\n thickness: z.number().optional(),\n height: z.number().optional(),\n side: z.enum(WALL_SIDES).optional(),\n});\n\nconst opening = z.strictObject({\n id,\n wall: id,\n kind: z.enum(OPENING_KINDS),\n offset: z.number(),\n width: z.number(),\n sill: z.number().optional(),\n height: z.number(),\n});\n\nconst floor = z.strictObject({\n id,\n name: z.string().optional(),\n ring: z.array(planPoint).readonly(),\n});\n\nconst outlet = z.strictObject({\n id,\n wall: id,\n face: z.enum(WALL_FACES),\n offset: z.number(),\n height: z.number(),\n circuit: id.optional(),\n});\n\nconst circuit = z.strictObject({\n id,\n name: z.string().optional(),\n breaker: z.number().optional(),\n voltage: z.number().optional(),\n limit: z.number(),\n});\n\n/**\n * The schema of a room record. It examines the form of the record: the fields, their types and the finite numbers.\n * It refuses a field that the format does not have. `checkRoom` examines the meaning of a record with a correct form.\n */\nexport const roomSchema: z.ZodType<Room> = z.strictObject({\n schema: z.literal(ROOM_SCHEMA),\n name: z.string().optional(),\n unit: z.enum(LENGTH_UNITS),\n height: z.number(),\n wallThickness: z.number(),\n walls: z.array(wall).readonly(),\n openings: z.array(opening).readonly().optional(),\n floors: z.array(floor).readonly().optional(),\n outlets: z.array(outlet).readonly().optional(),\n circuits: z.array(circuit).readonly().optional(),\n});\n\nconst placedObject = z.strictObject({\n id,\n kind: z.string().min(1),\n name: z.string().optional(),\n size: z.tuple([z.number(), z.number(), z.number()]).readonly(),\n at: planPoint,\n lift: z.number().optional(),\n turn: z.number().optional(),\n parent: id.optional(),\n outlet: id.optional(),\n});\n\nconst circuitLoad = z.strictObject({\n circuit: id,\n watts: z.number(),\n});\n\n/**\n * The schema of a scene record. It examines the form of the record, and it refuses a field that the format does not have.\n * `checkScene` examines the meaning of a record with a correct form.\n */\nexport const sceneSchema: z.ZodType<Scene> = z.strictObject({\n schema: z.literal(SCENE_SCHEMA),\n name: z.string().optional(),\n room: roomSchema,\n objects: z.array(placedObject).readonly().optional(),\n loads: z.array(circuitLoad).readonly().optional(),\n // The core does not read a layer, so it keeps each value. The add-on of a layer examines its form.\n layers: z.record(z.string().refine(isLayerName, \"A layer name is a word, a slash and a version, for example electrical/1.\"), z.unknown()).readonly().optional(),\n});\n\nconst surveySide = z.strictObject({\n id,\n length: z.number(),\n turn: z.union([z.enum(SQUARE_TURNS), z.number()]),\n thickness: z.number().optional(),\n height: z.number().optional(),\n});\n\nconst surveyCheck = z.strictObject({\n id,\n from: id,\n to: id,\n length: z.number(),\n});\n\nconst surveyOutlet = z.strictObject({\n id,\n wall: id,\n offset: z.number(),\n height: z.number(),\n circuit: id.optional(),\n});\n\nconst surveyObject = z.strictObject({\n id,\n kind: z.string().min(1),\n name: z.string().optional(),\n wall: id.optional(),\n on: id.optional(),\n offset: z.number(),\n width: z.number(),\n depth: z.number(),\n height: z.number(),\n gap: z.number().optional(),\n lift: z.number().optional(),\n outlet: id.optional(),\n});\n\n/**\n * The schema of a survey record. It examines the form of the record, and it refuses a field that the format does not have.\n * `expandSurvey` makes the room record of a survey with a correct form, and `checkRoom` examines that room record.\n */\nexport const surveySchema: z.ZodType<Survey> = z.strictObject({\n schema: z.literal(SURVEY_SCHEMA),\n name: z.string().optional(),\n unit: z.enum(LENGTH_UNITS),\n height: z.number(),\n wallThickness: z.number(),\n sides: z.array(surveySide).readonly(),\n start: planPoint.optional(),\n heading: z.number().optional(),\n checks: z.array(surveyCheck).readonly().optional(),\n openings: z.array(opening).readonly().optional(),\n outlets: z.array(surveyOutlet).readonly().optional(),\n circuits: z.array(circuit).readonly().optional(),\n objects: z.array(surveyObject).readonly().optional(),\n});\n\nconst connectionEnd = z.strictObject({\n room: id,\n opening: id,\n});\n\n/**\n * The schema of a level record. It examines the form of the record and of each survey, and it refuses a field that the format does not have.\n * `expandLevel` makes the room record of a level with a correct form, and `checkRoom` examines that room record.\n */\nexport const levelSchema: z.ZodType<Level> = z.strictObject({\n schema: z.literal(LEVEL_SCHEMA),\n name: z.string().optional(),\n unit: z.enum(LENGTH_UNITS),\n rooms: z.array(z.strictObject({ id, survey: surveySchema })).readonly(),\n connections: z\n .array(z.strictObject({ id, from: connectionEnd, to: connectionEnd, thickness: z.number().optional() }))\n .readonly()\n .optional(),\n circuits: z.array(circuit).readonly().optional(),\n});\n"],"mappings":";;;;AAMA,MAAM,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;AAC3B,MAAM,YAAY,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;AAE7D,MAAM,OAAO,EAAE,aAAa;CAC1B;CACA,MAAM;CACN,IAAI;CACJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;CAC/B,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS;CAC5B,MAAM,EAAE,KAAK,UAAU,CAAC,CAAC,SAAS;AACpC,CAAC;AAED,MAAM,UAAU,EAAE,aAAa;CAC7B;CACA,MAAM;CACN,MAAM,EAAE,KAAK,aAAa;CAC1B,QAAQ,EAAE,OAAO;CACjB,OAAO,EAAE,OAAO;CAChB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,QAAQ,EAAE,OAAO;AACnB,CAAC;AAED,MAAM,QAAQ,EAAE,aAAa;CAC3B;CACA,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,MAAM,EAAE,MAAM,SAAS,CAAC,CAAC,SAAS;AACpC,CAAC;AAED,MAAM,SAAS,EAAE,aAAa;CAC5B;CACA,MAAM;CACN,MAAM,EAAE,KAAK,UAAU;CACvB,QAAQ,EAAE,OAAO;CACjB,QAAQ,EAAE,OAAO;CACjB,SAAS,GAAG,SAAS;AACvB,CAAC;AAED,MAAM,UAAU,EAAE,aAAa;CAC7B;CACA,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS;CAC7B,SAAS,EAAE,OAAO,CAAC,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E,OAAO;CACjB,eAAe,EAAE,OAAO;CACxB,OAAO,EAAE,MAAM,UAAU,CAAC,CAAC,SAAS;CACpC,OAAO,UAAU,SAAS;CAC1B,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS;CAC7B,QAAQ,EAAE,MAAM,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjD,UAAU,EAAE,MAAM,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/C,SAAS,EAAE,MAAM,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnD,UAAU,EAAE,MAAM,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/C,SAAS,EAAE,MAAM,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrD,CAAC;AAED,MAAM,gBAAgB,EAAE,aAAa;CACnC,MAAM;CACN,SAAS;AACX,CAAC;;;;;AAMD,MAAa,cAAgC,EAAE,aAAa;CAC1D,QAAQ,EAAE,QAAQ,YAAY;CAC9B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,MAAM,EAAE,KAAK,YAAY;CACzB,OAAO,EAAE,MAAM,EAAE,aAAa;EAAE;EAAI,QAAQ;CAAa,CAAC,CAAC,CAAC,CAAC,SAAS;CACtE,aAAa,EACV,MAAM,EAAE,aAAa;EAAE;EAAI,MAAM;EAAe,IAAI;EAAe,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;CAAE,CAAC,CAAC,CAAC,CACvG,SAAS,CAAC,CACV,SAAS;CACZ,UAAU,EAAE,MAAM,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjD,CAAC"}
|
|
1
|
+
{"version":3,"file":"schema.js","names":[],"sources":["../src/schema.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { Anchor } from \"./anchors.ts\";\nimport { LEVEL_SCHEMA, type Level } from \"./level.ts\";\nimport { isLayerName, OPENING_KINDS, ROOM_SCHEMA, SCENE_SCHEMA, WALL_FACES, WALL_SIDES, type Room, type Scene } from \"./room.ts\";\nimport { SQUARE_TURNS, SURVEY_SCHEMA, type Survey } from \"./survey.ts\";\nimport { LENGTH_UNITS } from \"./units.ts\";\n\nconst id = z.string().min(1);\nconst planPoint = z.tuple([z.number(), z.number()]).readonly();\n\nconst point3 = z.tuple([z.number(), z.number(), z.number()]).readonly();\n\n/**\n * The schema of an anchor. It examines the form of the record, and it refuses a field that the surface of the anchor does not have.\n * The schema of an add-on uses it for the anchor of each record. `checkAnchor` examines the meaning of an anchor with a correct form.\n */\nexport const anchorSchema: z.ZodType<Anchor> = z.discriminatedUnion(\"on\", [\n z.strictObject({ on: z.literal(\"wall\"), wall: id, face: z.enum(WALL_FACES), offset: z.number(), height: z.number() }),\n z.strictObject({ on: z.literal(\"floor\"), at: planPoint, floor: id.optional() }),\n z.strictObject({ on: z.literal(\"ceiling\"), at: planPoint, floor: id.optional() }),\n z.strictObject({ on: z.literal(\"object\"), object: id, at: point3.optional(), out: point3.optional() }),\n]);\n\nconst wall = z.strictObject({\n id,\n from: planPoint,\n to: planPoint,\n thickness: z.number().optional(),\n height: z.number().optional(),\n side: z.enum(WALL_SIDES).optional(),\n});\n\nconst opening = z.strictObject({\n id,\n wall: id,\n kind: z.enum(OPENING_KINDS),\n offset: z.number(),\n width: z.number(),\n sill: z.number().optional(),\n height: z.number(),\n});\n\nconst floor = z.strictObject({\n id,\n name: z.string().optional(),\n ring: z.array(planPoint).readonly(),\n});\n\nconst outlet = z.strictObject({\n id,\n wall: id,\n face: z.enum(WALL_FACES),\n offset: z.number(),\n height: z.number(),\n circuit: id.optional(),\n});\n\nconst circuit = z.strictObject({\n id,\n name: z.string().optional(),\n breaker: z.number().optional(),\n voltage: z.number().optional(),\n limit: z.number(),\n});\n\n/**\n * The schema of a room record. It examines the form of the record: the fields, their types and the finite numbers.\n * It refuses a field that the format does not have. `checkRoom` examines the meaning of a record with a correct form.\n */\nexport const roomSchema: z.ZodType<Room> = z.strictObject({\n schema: z.literal(ROOM_SCHEMA),\n name: z.string().optional(),\n unit: z.enum(LENGTH_UNITS),\n height: z.number(),\n wallThickness: z.number(),\n walls: z.array(wall).readonly(),\n openings: z.array(opening).readonly().optional(),\n floors: z.array(floor).readonly().optional(),\n outlets: z.array(outlet).readonly().optional(),\n circuits: z.array(circuit).readonly().optional(),\n});\n\nconst placedObject = z.strictObject({\n id,\n kind: z.string().min(1),\n name: z.string().optional(),\n size: z.tuple([z.number(), z.number(), z.number()]).readonly(),\n at: planPoint,\n lift: z.number().optional(),\n turn: z.number().optional(),\n parent: id.optional(),\n outlet: id.optional(),\n});\n\nconst circuitLoad = z.strictObject({\n circuit: id,\n watts: z.number(),\n});\n\n/**\n * The schema of a scene record. It examines the form of the record, and it refuses a field that the format does not have.\n * `checkScene` examines the meaning of a record with a correct form.\n */\nexport const sceneSchema: z.ZodType<Scene> = z.strictObject({\n schema: z.literal(SCENE_SCHEMA),\n name: z.string().optional(),\n room: roomSchema,\n objects: z.array(placedObject).readonly().optional(),\n loads: z.array(circuitLoad).readonly().optional(),\n // The core does not read a layer, so it keeps each value. The add-on of a layer examines its form.\n layers: z.record(z.string().refine(isLayerName, \"A layer name is a word, a slash and a version, for example electrical/1.\"), z.unknown()).readonly().optional(),\n});\n\nconst surveySide = z.strictObject({\n id,\n length: z.number(),\n turn: z.union([z.enum(SQUARE_TURNS), z.number()]),\n thickness: z.number().optional(),\n height: z.number().optional(),\n});\n\nconst surveyCheck = z.strictObject({\n id,\n from: id,\n to: id,\n length: z.number(),\n});\n\nconst surveyOutlet = z.strictObject({\n id,\n wall: id,\n offset: z.number(),\n height: z.number(),\n circuit: id.optional(),\n});\n\nconst surveyObject = z.strictObject({\n id,\n kind: z.string().min(1),\n name: z.string().optional(),\n wall: id.optional(),\n on: id.optional(),\n offset: z.number(),\n width: z.number(),\n depth: z.number(),\n height: z.number(),\n gap: z.number().optional(),\n lift: z.number().optional(),\n outlet: id.optional(),\n});\n\n/**\n * The schema of a survey record. It examines the form of the record, and it refuses a field that the format does not have.\n * `expandSurvey` makes the room record of a survey with a correct form, and `checkRoom` examines that room record.\n */\nexport const surveySchema: z.ZodType<Survey> = z.strictObject({\n schema: z.literal(SURVEY_SCHEMA),\n name: z.string().optional(),\n unit: z.enum(LENGTH_UNITS),\n height: z.number(),\n wallThickness: z.number(),\n sides: z.array(surveySide).readonly(),\n start: planPoint.optional(),\n heading: z.number().optional(),\n checks: z.array(surveyCheck).readonly().optional(),\n openings: z.array(opening).readonly().optional(),\n outlets: z.array(surveyOutlet).readonly().optional(),\n circuits: z.array(circuit).readonly().optional(),\n objects: z.array(surveyObject).readonly().optional(),\n});\n\nconst connectionEnd = z.strictObject({\n room: id,\n opening: id,\n});\n\n/**\n * The schema of a level record. It examines the form of the record and of each survey, and it refuses a field that the format does not have.\n * `expandLevel` makes the room record of a level with a correct form, and `checkRoom` examines that room record.\n */\nexport const levelSchema: z.ZodType<Level> = z.strictObject({\n schema: z.literal(LEVEL_SCHEMA),\n name: z.string().optional(),\n unit: z.enum(LENGTH_UNITS),\n rooms: z.array(z.strictObject({ id, survey: surveySchema })).readonly(),\n connections: z\n .array(z.strictObject({ id, from: connectionEnd, to: connectionEnd, thickness: z.number().optional() }))\n .readonly()\n .optional(),\n circuits: z.array(circuit).readonly().optional(),\n});\n"],"mappings":";;;;AAOA,MAAM,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;AAC3B,MAAM,YAAY,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;AAE7D,MAAM,SAAS,EAAE,MAAM;CAAC,EAAE,OAAO;CAAG,EAAE,OAAO;CAAG,EAAE,OAAO;AAAC,CAAC,CAAC,CAAC,SAAS;;;;;AAMtE,MAAa,eAAkC,EAAE,mBAAmB,MAAM;CACxE,EAAE,aAAa;EAAE,IAAI,EAAE,QAAQ,MAAM;EAAG,MAAM;EAAI,MAAM,EAAE,KAAK,UAAU;EAAG,QAAQ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;CACzB,QAAQ,EAAE,OAAO;CACjB,eAAe,EAAE,OAAO;CACxB,OAAO,EAAE,MAAM,UAAU,CAAC,CAAC,SAAS;CACpC,OAAO,UAAU,SAAS;CAC1B,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS;CAC7B,QAAQ,EAAE,MAAM,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjD,UAAU,EAAE,MAAM,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/C,SAAS,EAAE,MAAM,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnD,UAAU,EAAE,MAAM,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/C,SAAS,EAAE,MAAM,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrD,CAAC;AAED,MAAM,gBAAgB,EAAE,aAAa;CACnC,MAAM;CACN,SAAS;AACX,CAAC;;;;;AAMD,MAAa,cAAgC,EAAE,aAAa;CAC1D,QAAQ,EAAE,QAAQ,YAAY;CAC9B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,MAAM,EAAE,KAAK,YAAY;CACzB,OAAO,EAAE,MAAM,EAAE,aAAa;EAAE;EAAI,QAAQ;CAAa,CAAC,CAAC,CAAC,CAAC,SAAS;CACtE,aAAa,EACV,MAAM,EAAE,aAAa;EAAE;EAAI,MAAM;EAAe,IAAI;EAAe,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;CAAE,CAAC,CAAC,CAAC,CACvG,SAAS,CAAC,CACV,SAAS;CACZ,UAAU,EAAE,MAAM,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjD,CAAC"}
|
package/build/three.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SolidOptions, a as LoadLevel, b as Solid, o as LoadOptions, x as SolidKind } from "./loads-
|
|
1
|
+
import { S as SolidOptions, a as LoadLevel, b as Solid, o as LoadOptions, x as SolidKind } from "./loads-D95Z0Vtk.js";
|
|
2
2
|
import { p as Scene$1 } from "./room-NREa6vXr.js";
|
|
3
3
|
import { Point3, Rotation3 } from "@mark1russell7/layout-contract";
|
|
4
4
|
import { BufferGeometry } from "three";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@mark1russell7/room-view",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.4",
|
|
5
5
|
"description": "A room as data, and its 3D model from that data: walls with openings, floors, outlets, circuits and placed objects.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loads-C3Nrj3Gd.d.ts","names":[],"sources":["../src/frames.ts","../src/joins.ts","../src/solids.ts","../src/loads.ts"],"mappings":";;;;;;UAQiB;;WAEN;WACA,OAAO;WACP,KAAK;;WAEL,OAAO;;WAEP,MAAM;WACN;WACA;WACA;;WAEA;;WAEA;;;iBA2BK,WAAW,MAAM,gBAAgB;;;;;iBASjC,eAAe,OAAO;;iBAKtB,UAAU,OAAO,WAAW,eAAe,iBAAiB;;;;;iBAW5D,cAAc,OAAO,YAAY;;UCvEhC;;WAEN;;WAEA,MAAM;;;;;WAKN;;;UAIM;;WAEN;;;;;WAKA;;;cAIE;;cAGA;;;;;;;;;iBA8IG,eAAe,iBAAiB,aAAa,UAAS,uBAA4B;;cCzJrF;;KAGD,oBAAoB;;UAGf;WACN;WACA,MAAM;WACN;WACA;;;UAIM;WACN;WACA,KAAK;WACL,WAAW;;;KAIV,aAAa,QAAQ;;;;;UAMhB;;WAEN;WACA,MAAM;;WAEN;WACA,OAAO;;;UAID;;WAEN;;WAEA,QAAQ;;;cAIN;;cAGA;;cAGA;WAAyB;WAAwB;WAAyB;;;;;;cAM1E,SAAS;;;;;;;;;iBA4HN,WAAW,MAAM,MAAM,UAAS,wBAA6B;;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