@mark1russell7/room-view 0.2.4 → 0.3.1
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 +64 -34
- package/build/{anchors-Ba3OUmhF.js → check-lFfxIUS3.js} +11 -260
- package/build/check-lFfxIUS3.js.map +1 -0
- package/build/index.d.ts +5 -5
- package/build/index.js +6 -5
- package/build/index.js.map +1 -1
- package/build/{layers-BO_MMtQJ.d.ts → layers-BiiyFJwZ.d.ts} +35 -9
- package/build/layers-BiiyFJwZ.d.ts.map +1 -0
- package/build/{layers-B5nL_lVW.js → layers-DmTro5Ny.js} +158 -26
- package/build/layers-DmTro5Ny.js.map +1 -0
- package/build/{level-CXCIX08K.js → level-CvbiwvhH.js} +12 -37
- package/build/level-CvbiwvhH.js.map +1 -0
- package/build/{level-Cjcf3u20.d.ts → level-DmEftWYn.d.ts} +11 -19
- package/build/level-DmEftWYn.d.ts.map +1 -0
- package/build/marks.d.ts +2 -2
- package/build/marks.js +1 -2
- package/build/marks.js.map +1 -1
- package/build/plan-import.d.ts +325 -0
- package/build/plan-import.d.ts.map +1 -0
- package/build/plan-import.js +855 -0
- package/build/plan-import.js.map +1 -0
- package/build/room-BQua5eSs.d.ts +124 -0
- package/build/room-BQua5eSs.d.ts.map +1 -0
- package/build/room-CiVZ_07s.js +29 -0
- package/build/room-CiVZ_07s.js.map +1 -0
- package/build/sample.d.ts +4 -4
- package/build/sample.d.ts.map +1 -1
- package/build/sample.js +21 -217
- package/build/sample.js.map +1 -1
- package/build/schema.d.ts +59 -9
- package/build/schema.d.ts.map +1 -1
- package/build/schema.js +251 -91
- package/build/schema.js.map +1 -1
- package/build/solids-CdJf0U39.d.ts +148 -0
- package/build/solids-CdJf0U39.d.ts.map +1 -0
- package/build/three.d.ts +9 -16
- package/build/three.d.ts.map +1 -1
- package/build/three.js +13 -106
- package/build/three.js.map +1 -1
- package/build/units-BZmvVyu4.js +30 -0
- package/build/units-BZmvVyu4.js.map +1 -0
- package/package.json +7 -1
- package/build/anchors-Ba3OUmhF.js.map +0 -1
- package/build/layers-B5nL_lVW.js.map +0 -1
- package/build/layers-BO_MMtQJ.d.ts.map +0 -1
- package/build/level-CXCIX08K.js.map +0 -1
- package/build/level-Cjcf3u20.d.ts.map +0 -1
- package/build/loads-CtHa4EHo.js +0 -103
- package/build/loads-CtHa4EHo.js.map +0 -1
- package/build/loads-Diy6-Ekz.d.ts +0 -73
- package/build/loads-Diy6-Ekz.d.ts.map +0 -1
- package/build/solids-S_j17vFJ.d.ts +0 -313
- package/build/solids-S_j17vFJ.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { I as Anchor, s as LayerFinding, t as AddOn } from "./layers-BiiyFJwZ.js";
|
|
2
|
+
import { a as PlacedObject, c as Room, m as WallFace, o as PlanPoint, r as Opening, u as Scene, y as LengthUnit } from "./room-BQua5eSs.js";
|
|
3
3
|
/** The name of the format of a survey record. */
|
|
4
|
-
declare const SURVEY_SCHEMA = "survey/
|
|
4
|
+
declare const SURVEY_SCHEMA = "survey/2";
|
|
5
5
|
/** These are the names of the turns at a square corner. */
|
|
6
6
|
declare const SQUARE_TURNS: readonly ["left", "right"];
|
|
7
7
|
/**
|
|
@@ -34,8 +34,6 @@ interface SurveyCheck {
|
|
|
34
34
|
/** The measured distance between the two corners. */
|
|
35
35
|
readonly length: number;
|
|
36
36
|
}
|
|
37
|
-
/** An outlet of a survey. It is on the inner face of its wall, so it has no field `face`. */
|
|
38
|
-
type SurveyOutlet = Omit<Outlet, "face">;
|
|
39
37
|
/**
|
|
40
38
|
* An object of a survey: a box that a person measures from a side, for example a desk, a shelf or a rack.
|
|
41
39
|
*
|
|
@@ -76,15 +74,13 @@ interface SurveyObject {
|
|
|
76
74
|
* With `on`, this is the height above the bottom of the holder. Then the default is the height of the holder: the object is on its top.
|
|
77
75
|
*/
|
|
78
76
|
readonly lift?: number | undefined;
|
|
79
|
-
/** The `id` of the outlet that gives power to the object. */
|
|
80
|
-
readonly outlet?: string | undefined;
|
|
81
77
|
}
|
|
82
78
|
/**
|
|
83
79
|
* A survey: the measurements of one room by a person with a tape measure.
|
|
84
80
|
*
|
|
85
81
|
* The person goes around the room along the inner faces of the walls, in one direction.
|
|
86
82
|
* Each side has the length of one face, and the turn at its end. The last turn gives the direction of the first side again.
|
|
87
|
-
* An opening
|
|
83
|
+
* An opening and an object name their side in `wall`. Their `offset` starts at the first corner of that side.
|
|
88
84
|
*/
|
|
89
85
|
interface Survey {
|
|
90
86
|
readonly schema: typeof SURVEY_SCHEMA;
|
|
@@ -103,8 +99,6 @@ interface Survey {
|
|
|
103
99
|
readonly heading?: number | undefined;
|
|
104
100
|
readonly checks?: readonly SurveyCheck[] | undefined;
|
|
105
101
|
readonly openings?: readonly Opening[] | undefined;
|
|
106
|
-
readonly outlets?: readonly SurveyOutlet[] | undefined;
|
|
107
|
-
readonly circuits?: readonly Circuit[] | undefined;
|
|
108
102
|
readonly objects?: readonly SurveyObject[] | undefined;
|
|
109
103
|
/**
|
|
110
104
|
* The records of each add-on, by the name of its layer, for example `electrical/1`. A layer has the format of a layer of a scene.
|
|
@@ -232,7 +226,7 @@ declare function convertSurvey(survey: Survey, unit: LengthUnit, addOns?: readon
|
|
|
232
226
|
* This is the transit rule of land survey. A side along an axis stays along that axis, so a room with square corners keeps them.
|
|
233
227
|
* Then the last wall ends exactly at the first corner, and the room gets a floor.
|
|
234
228
|
*
|
|
235
|
-
* An opening
|
|
229
|
+
* An opening keeps its place on a side that changes its length: its `offset` and its `width` change in the same proportion.
|
|
236
230
|
* Thus an opening that fits in its measured side fits in its wall, and two openings that do not overlap stay apart.
|
|
237
231
|
*
|
|
238
232
|
* An object keeps its size on a side that changes its length. It moves by a part of that change: its place in the free length of the side.
|
|
@@ -251,7 +245,7 @@ declare function convertSurvey(survey: Survey, unit: LengthUnit, addOns?: readon
|
|
|
251
245
|
*/
|
|
252
246
|
declare function expandSurvey(survey: Survey, options?: SurveyOptions): SurveyResult;
|
|
253
247
|
/** The name of the format of a level record. */
|
|
254
|
-
declare const LEVEL_SCHEMA = "level/
|
|
248
|
+
declare const LEVEL_SCHEMA = "level/2";
|
|
255
249
|
/** One room of a level: the survey of the room, with an `id`. */
|
|
256
250
|
interface LevelRoom {
|
|
257
251
|
readonly id: string;
|
|
@@ -291,10 +285,8 @@ interface Level {
|
|
|
291
285
|
readonly unit: LengthUnit;
|
|
292
286
|
readonly rooms: readonly LevelRoom[];
|
|
293
287
|
readonly connections?: readonly LevelConnection[] | undefined;
|
|
294
|
-
/** The circuits of the level. A survey can also have circuits. Two circuits with one `id` are one circuit, and the first one stays. */
|
|
295
|
-
readonly circuits?: readonly Circuit[] | undefined;
|
|
296
288
|
/**
|
|
297
|
-
* The records of each add-on for the level, by the name of its layer, for example the
|
|
289
|
+
* The records of each add-on for the level, by the name of its layer, for example the records of the whole apartment.
|
|
298
290
|
* The anchors of such a layer are on the room record of the level, so they name a wall as `LevelResult.room` names it.
|
|
299
291
|
* The survey of a room has the layers of that room.
|
|
300
292
|
*/
|
|
@@ -369,7 +361,7 @@ interface LevelConnectionResult {
|
|
|
369
361
|
interface LevelResult {
|
|
370
362
|
/**
|
|
371
363
|
* One room record with each room of the level, in the unit of the level.
|
|
372
|
-
* The `id` of a wall
|
|
364
|
+
* The `id` of a wall or an opening is the `id` of its room, then `/`, then its `id` in the survey.
|
|
373
365
|
* Each closed room gives one floor with the `id` and the name of the room.
|
|
374
366
|
*/
|
|
375
367
|
readonly room: Room;
|
|
@@ -378,7 +370,7 @@ interface LevelResult {
|
|
|
378
370
|
/** The result of each connection, in the sequence of the connections. */
|
|
379
371
|
readonly connections: readonly LevelConnectionResult[];
|
|
380
372
|
/**
|
|
381
|
-
* The placed objects of each room, in the sequence of the rooms. The `id` of an object
|
|
373
|
+
* The placed objects of each room, in the sequence of the rooms. The `id` of an object and of its parent
|
|
382
374
|
* has the same form as the `id` of a wall. A scene record with the room record and these objects gives the model of the level.
|
|
383
375
|
*/
|
|
384
376
|
readonly objects: readonly PlacedObject[];
|
|
@@ -423,5 +415,5 @@ declare const CONNECTION_TURN_LIMIT = 2;
|
|
|
423
415
|
* `checkRoom` examines the room record. It tells when two rooms overlap.
|
|
424
416
|
*/
|
|
425
417
|
declare function expandLevel(level: Level, options?: LevelOptions): LevelResult;
|
|
426
|
-
export {
|
|
427
|
-
//# sourceMappingURL=level-
|
|
418
|
+
export { SurveySide as A, SurveyCheck as C, SurveyObject as D, SurveyFrame as E, surveyAnchor as F, convertSurvey as M, expandSurvey as N, SurveyOptions as O, resultScene as P, Survey as S, SurveyClosure as T, expandLevel as _, ConnectionFault as a, SURVEY_FLOOR as b, Level as c, LevelOptions as d, LevelResult as f, RoomPlace as g, ROOM_PLACES as h, ConnectionEnd as i, SurveyTurn as j, SurveyResult as k, LevelConnection as l, LevelRoomResult as m, CONNECTION_TURN_LIMIT as n, ConnectionUse as o, LevelRoom as p, CONNECTION_USES as r, LEVEL_SCHEMA as s, CONNECTION_FAULTS as t, LevelConnectionResult as u, CLOSURE_LIMIT as v, SurveyCheckResult as w, SURVEY_SCHEMA as x, SQUARE_TURNS as y };
|
|
419
|
+
//# sourceMappingURL=level-DmEftWYn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"level-DmEftWYn.d.ts","names":[],"sources":["../src/survey.ts","../src/level.ts"],"mappings":";;;cAiBa;;cAGA;;;;;;;KAQD,qBAAqB;;UAGhB;;WAEN;;WAEA;;WAEA,MAAM;;WAEN;;WAEA;;;UAIM;WACN;;WAEA;;WAEA;;WAEA;;;;;;;;;;;;;UAcM;WACN;;WAEA;WACA;;WAEA;;WAEA;;;;;WAKA;;WAEA;;WAEA;WACA;;;;;WAKA;;;;;WAKA;;;;;;;;;UAUM;WACN,eAAe;WACf;;WAEA,MAAM;;WAEN;;WAEA;;WAEA,gBAAgB;;WAEhB,QAAQ;;WAER;WACA,kBAAkB;WAClB,oBAAoB;WACpB,mBAAmB;;;;;;WAMnB,SAAS,SAAS;;;;;;UAOZ;;WAEN,MAAM;;WAEN,OAAO;;WAEP;;;;;WAKA,SAAS,SAAS;;;UAIZ;;WAEN;;WAEA;;WAEA;;WAEA;;;UAIM;;WAEN;;WAEA;;WAEA;;WAEA;;;UAIM;;WAEN,MAAM;;WAEN,kBAAkB;;WAElB,eAAe;WACf,SAAS;;WAET,iBAAiB;;;;;WAKjB,kBAAkB;;WAElB,OAAO;;;;;WAKP,SAAS,SAAS;;WAElB,wBAAwB;;;cAItB;;cAGA;;UAGI;;WAEN;;WAEA,kBAAkB;;;;;;;;;;;iBAYb,aAAa,QAAQ,QAAQ,OAAO,cAAc;;;;;iBAelD,YAAY;WAAmB,MAAM;WAAe,kBAAkB;WAAyB,SAAS,SAAS;IAAyC;;;;;;;;;iBA8B1J,cAAc,QAAQ,QAAQ,MAAM,YAAY,kBAAiB,mBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+EzF,aAAa,QAAQ,QAAQ,UAAS,gBAAqB;;cClV9D;;UAGI;WACN;WACA,QAAQ;;;UAIF;;WAEN;;WAEA;;;;;;UAOM;WACN;WACA,MAAM;WACN,IAAI;;;;;WAKJ;;;;;;;;UASM;WACN,eAAe;WACf;;WAEA,MAAM;WACN,gBAAgB;WAChB,uBAAuB;;;;;;WAMvB,SAAS,SAAS;;;;;;;;;cAUhB;;KAGD,oBAAoB;;UAGf;;WAEN;WACA,OAAO;;WAEP;;;;;WAKA,QAAQ;;WAER,QAAQ;;;;;;;;;cAUN;;KAGD,wBAAwB;;;;;;;;cASvB;;KAGD,0BAA0B;;UAGrB;;WAEN;WACA,KAAK;WACL,QAAQ;;;;;WAKR;;WAEA;;WAEA;;WAEA;;WAEA;;;UAIM;;;;;;WAMN,MAAM;;WAEN,gBAAgB;;WAEhB,sBAAsB;;;;;WAKtB,kBAAkB;;;;;;WAMlB,SAAS,SAAS;;;;;WAKlB,wBAAwB;;;UAIlB,qBAAqB;;WAE3B;;;cAqBE;;;;;;;;;;;;;;;;;;;;;;iBA+IG,YAAY,OAAO,OAAO,UAAS,eAAoB"}
|
package/build/marks.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { H as SceneSpace, t as AddOn } from "./layers-BiiyFJwZ.js";
|
|
2
|
+
import { u as Scene } from "./room-BQua5eSs.js";
|
|
3
3
|
import { Mark } from "@mark1russell7/visuals/marks";
|
|
4
4
|
/**
|
|
5
5
|
* The marks of one add-on. This value is in the entry `/marks` of the add-on, so the root entry of the add-on has no visual part.
|
package/build/marks.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as compareText, o as readLayer } from "./layers-B5nL_lVW.js";
|
|
1
|
+
import { f as sceneSpace, l as compareText, s as readLayer } from "./layers-DmTro5Ny.js";
|
|
3
2
|
// src/marks.ts
|
|
4
3
|
/**
|
|
5
4
|
* This function gives the marks of the layers of a scene. Each value of `marks` gives the marks of the layer of its name.
|
package/build/marks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marks.js","names":[],"sources":["../src/marks.ts"],"sourcesContent":["import type { Mark } from \"@mark1russell7/visuals/marks\";\nimport { sceneSpace, type SceneSpace } from \"./anchors.ts\";\nimport { readLayer, type AddOn } from \"./layers.ts\";\nimport { compareText } from \"./order.ts\";\nimport type { Scene } from \"./room.ts\";\n\n// The marks of the layers of a scene. A mark is a record that a viewer draws: plain data of `@mark1russell7/visuals/marks`.\n// This module is the entry `/marks` of the package. The root entry has no mark, so a host with no viewer does not get this module.\n\n/**\n * The marks of one add-on. This value is in the entry `/marks` of the add-on, so the root entry of the add-on has no visual part.\n * A host gives a list of these values to `layerMarks`, with the add-ons that read the layers.\n */\nexport interface AddOnMarks<Layer> {\n /** The name of the format of the layer, for example `electrical/1`. It is the `schema` of the add-on that reads the layer. */\n readonly schema: string;\n /**\n * This function gives the marks of a layer. Each point is in the space of the frames: meters, with the z axis up.\n * The record name of a mark is `recordName(schema, id)`, so a finding of the layer selects its mark.\n */\n marks(layer: Layer, space: SceneSpace): readonly Mark[];\n}\n\n/**\n * This function gives the marks of the layers of a scene. Each value of `marks` gives the marks of the layer of its name.\n * The add-on of the same name reads the layer.\n *\n * A layer that the scene does not have gives no marks. A layer with a fault of its form gives no marks, and `checkLayers` tells the fault.\n * The marks are in the order of the layer names, then of the record names. Thus equal inputs give equal marks.\n * The first value of a name is used, for `addOns` and for `marks`.\n *\n * @throws RangeError when a value of `marks` names a layer that no add-on of the list reads\n */\nexport function layerMarks(scene: Scene, addOns: readonly AddOn<unknown>[], marks: readonly AddOnMarks<unknown>[]): readonly Mark[] {\n const makers = new Map<string, AddOnMarks<unknown>>();\n for (const maker of marks) if (!makers.has(maker.schema)) makers.set(maker.schema, maker);\n const readers = new Map<string, AddOn<unknown>>();\n for (const addOn of addOns) if (!readers.has(addOn.schema)) readers.set(addOn.schema, addOn);\n for (const name of makers.keys()) {\n if (!readers.has(name)) throw new RangeError(`The marks of the layer \"${name}\" have no add-on in the list. Give the add-on that reads the layer.`);\n }\n\n const found: Mark[] = [];\n let space: SceneSpace | undefined;\n for (const name of [...makers.keys()].sort(compareText)) {\n const maker = makers.get(name);\n const addOn = readers.get(name);\n if (maker === undefined || addOn === undefined) continue;\n const read = readLayer(scene, addOn);\n if (read === undefined || !read.ok) continue;\n space ??= sceneSpace(scene);\n // The sort is stable, so the marks of one record keep their order.\n found.push(...[...maker.marks(read.layer, space)].sort((a, b) => compareText(a.record, b.record)));\n }\n return found;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"marks.js","names":[],"sources":["../src/marks.ts"],"sourcesContent":["import type { Mark } from \"@mark1russell7/visuals/marks\";\nimport { sceneSpace, type SceneSpace } from \"./anchors.ts\";\nimport { readLayer, type AddOn } from \"./layers.ts\";\nimport { compareText } from \"./order.ts\";\nimport type { Scene } from \"./room.ts\";\n\n// The marks of the layers of a scene. A mark is a record that a viewer draws: plain data of `@mark1russell7/visuals/marks`.\n// This module is the entry `/marks` of the package. The root entry has no mark, so a host with no viewer does not get this module.\n\n/**\n * The marks of one add-on. This value is in the entry `/marks` of the add-on, so the root entry of the add-on has no visual part.\n * A host gives a list of these values to `layerMarks`, with the add-ons that read the layers.\n */\nexport interface AddOnMarks<Layer> {\n /** The name of the format of the layer, for example `electrical/1`. It is the `schema` of the add-on that reads the layer. */\n readonly schema: string;\n /**\n * This function gives the marks of a layer. Each point is in the space of the frames: meters, with the z axis up.\n * The record name of a mark is `recordName(schema, id)`, so a finding of the layer selects its mark.\n */\n marks(layer: Layer, space: SceneSpace): readonly Mark[];\n}\n\n/**\n * This function gives the marks of the layers of a scene. Each value of `marks` gives the marks of the layer of its name.\n * The add-on of the same name reads the layer.\n *\n * A layer that the scene does not have gives no marks. A layer with a fault of its form gives no marks, and `checkLayers` tells the fault.\n * The marks are in the order of the layer names, then of the record names. Thus equal inputs give equal marks.\n * The first value of a name is used, for `addOns` and for `marks`.\n *\n * @throws RangeError when a value of `marks` names a layer that no add-on of the list reads\n */\nexport function layerMarks(scene: Scene, addOns: readonly AddOn<unknown>[], marks: readonly AddOnMarks<unknown>[]): readonly Mark[] {\n const makers = new Map<string, AddOnMarks<unknown>>();\n for (const maker of marks) if (!makers.has(maker.schema)) makers.set(maker.schema, maker);\n const readers = new Map<string, AddOn<unknown>>();\n for (const addOn of addOns) if (!readers.has(addOn.schema)) readers.set(addOn.schema, addOn);\n for (const name of makers.keys()) {\n if (!readers.has(name)) throw new RangeError(`The marks of the layer \"${name}\" have no add-on in the list. Give the add-on that reads the layer.`);\n }\n\n const found: Mark[] = [];\n let space: SceneSpace | undefined;\n for (const name of [...makers.keys()].sort(compareText)) {\n const maker = makers.get(name);\n const addOn = readers.get(name);\n if (maker === undefined || addOn === undefined) continue;\n const read = readLayer(scene, addOn);\n if (read === undefined || !read.ok) continue;\n space ??= sceneSpace(scene);\n // The sort is stable, so the marks of one record keep their order.\n found.push(...[...maker.marks(read.layer, space)].sort((a, b) => compareText(a.record, b.record)));\n }\n return found;\n}\n"],"mappings":";;;;;;;;;;;;AAiCA,SAAgB,WAAW,OAAc,QAAmC,OAAwD;CAClI,MAAM,yBAAS,IAAI,IAAiC;CACpD,KAAK,MAAM,SAAS,OAAO,IAAI,CAAC,OAAO,IAAI,MAAM,MAAM,GAAG,OAAO,IAAI,MAAM,QAAQ,KAAK;CACxF,MAAM,0BAAU,IAAI,IAA4B;CAChD,KAAK,MAAM,SAAS,QAAQ,IAAI,CAAC,QAAQ,IAAI,MAAM,MAAM,GAAG,QAAQ,IAAI,MAAM,QAAQ,KAAK;CAC3F,KAAK,MAAM,QAAQ,OAAO,KAAK,GAC7B,IAAI,CAAC,QAAQ,IAAI,IAAI,GAAG,MAAM,IAAI,WAAW,2BAA2B,KAAK,oEAAoE;CAGnJ,MAAM,QAAgB,CAAC;CACvB,IAAI;CACJ,KAAK,MAAM,QAAQ,CAAC,GAAG,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,WAAW,GAAG;EACvD,MAAM,QAAQ,OAAO,IAAI,IAAI;EAC7B,MAAM,QAAQ,QAAQ,IAAI,IAAI;EAC9B,IAAI,UAAU,KAAA,KAAa,UAAU,KAAA,GAAW;EAChD,MAAM,OAAO,UAAU,OAAO,KAAK;EACnC,IAAI,SAAS,KAAA,KAAa,CAAC,KAAK,IAAI;EACpC,UAAU,WAAW,KAAK;EAE1B,MAAM,KAAK,GAAG,CAAC,GAAG,MAAM,MAAM,KAAK,OAAO,KAAK,CAAC,CAAC,CAAC,MAAM,GAAG,MAAM,YAAY,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;CACnG;CACA,OAAO;AACT"}
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import { c as Room, i as OpeningKind, o as PlanPoint, y as LengthUnit } from "./room-BQua5eSs.js";
|
|
2
|
+
import { Ring } from "@mark1russell7/layout-contract";
|
|
3
|
+
/**
|
|
4
|
+
* A line of a sheet: one straight piece of a stroked path, in the coordinates of the sheet.
|
|
5
|
+
* The y axis of a sheet points down, as in a PDF page after the usual flip.
|
|
6
|
+
*/
|
|
7
|
+
export interface SheetLine {
|
|
8
|
+
readonly from: PlanPoint;
|
|
9
|
+
readonly to: PlanPoint;
|
|
10
|
+
/** The width of the pen, in the units of the sheet. */
|
|
11
|
+
readonly width: number;
|
|
12
|
+
/** The color of the pen, for example `#000000`. */
|
|
13
|
+
readonly color: string;
|
|
14
|
+
/** This value is true when the line is one piece of a curve, for example of the swing of a door. */
|
|
15
|
+
readonly curve?: boolean | undefined;
|
|
16
|
+
}
|
|
17
|
+
/** A filled path of a sheet. The rings use the even-odd rule. The sequence of the fills is the paint sequence. */
|
|
18
|
+
export interface SheetFill {
|
|
19
|
+
readonly color: string;
|
|
20
|
+
readonly rings: readonly Ring[];
|
|
21
|
+
}
|
|
22
|
+
/** A text of a sheet. The point `at` is the start of its base line. */
|
|
23
|
+
export interface SheetText {
|
|
24
|
+
readonly text: string;
|
|
25
|
+
readonly at: PlanPoint;
|
|
26
|
+
/** The height of the text, in the units of the sheet. */
|
|
27
|
+
readonly height: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* A sheet: the vector paths of one floor plan, for example from a page of a PDF file.
|
|
31
|
+
* The scale is the number of units of the sheet for one `unit` of the building. A PDF page at 1/8 inch to the foot has the scale 9 with the unit `ft`.
|
|
32
|
+
*/
|
|
33
|
+
export interface Sheet {
|
|
34
|
+
/** The width of the sheet, in the units of the sheet. */
|
|
35
|
+
readonly width: number;
|
|
36
|
+
/** The height of the sheet, in the units of the sheet. */
|
|
37
|
+
readonly height: number;
|
|
38
|
+
readonly scale: number;
|
|
39
|
+
/** The unit of the building, and of each length of the result. */
|
|
40
|
+
readonly unit: LengthUnit;
|
|
41
|
+
readonly lines: readonly SheetLine[];
|
|
42
|
+
readonly fills?: readonly SheetFill[] | undefined;
|
|
43
|
+
readonly texts?: readonly SheetText[] | undefined;
|
|
44
|
+
}
|
|
45
|
+
/** This function gives the name of the pen of a line: its width, a bar, then its color. */
|
|
46
|
+
export declare function penOf(line: Pick<SheetLine, "width" | "color">): string;
|
|
47
|
+
/** This function gives the length of a line. */
|
|
48
|
+
export declare function lineLength(line: Pick<SheetLine, "from" | "to">): number;
|
|
49
|
+
/** A legend: the name of each fill color, and the fills that are the color samples of the legend. */
|
|
50
|
+
export interface Legend {
|
|
51
|
+
/** The name of each color. A color with two or more names has the names with a slash between them. */
|
|
52
|
+
readonly names: Readonly<Record<string, string>>;
|
|
53
|
+
/** The position of each sample in the fills of the sheet. A sample is not a room. */
|
|
54
|
+
readonly samples: readonly number[];
|
|
55
|
+
}
|
|
56
|
+
/** The options of `readLegend`. Each length is in the units of the sheet, and the defaults suit a sheet in points. */
|
|
57
|
+
export interface LegendOptions {
|
|
58
|
+
/** The smallest side of a sample. The default is 4. */
|
|
59
|
+
readonly smallest?: number | undefined;
|
|
60
|
+
/** The largest side of a sample. The default is 30. */
|
|
61
|
+
readonly largest?: number | undefined;
|
|
62
|
+
/** The largest distance from the right side of a sample to the start of its text. The default is 12. */
|
|
63
|
+
readonly reach?: number | undefined;
|
|
64
|
+
/** The smallest height of a text of the legend. The default is 2. */
|
|
65
|
+
readonly smallestText?: number | undefined;
|
|
66
|
+
}
|
|
67
|
+
/** This function gives the box of a fill: the smallest x, the smallest y, the largest x and the largest y. */
|
|
68
|
+
export declare function fillBox(fill: SheetFill): readonly [number, number, number, number];
|
|
69
|
+
/**
|
|
70
|
+
* This function reads the legend of a sheet. A sample is a small square fill with a text near its right side.
|
|
71
|
+
* The text is the name of the color of the sample.
|
|
72
|
+
*/
|
|
73
|
+
export declare function readLegend(sheet: Pick<Sheet, "fills" | "texts">, options?: LegendOptions): Legend;
|
|
74
|
+
/** Two parallel lines at a distance from each other. */
|
|
75
|
+
export interface LinePair {
|
|
76
|
+
/** The position of the first line. */
|
|
77
|
+
readonly a: number;
|
|
78
|
+
/** The position of the second line. */
|
|
79
|
+
readonly b: number;
|
|
80
|
+
/** The distance between the two lines. */
|
|
81
|
+
readonly distance: number;
|
|
82
|
+
/** The length of the common part of the two lines, along their direction. */
|
|
83
|
+
readonly overlap: number;
|
|
84
|
+
}
|
|
85
|
+
/** The pairs of `parallelPairs`, and the number of partners on each side of each line. */
|
|
86
|
+
export interface PairSearch {
|
|
87
|
+
readonly pairs: readonly LinePair[];
|
|
88
|
+
/** The partners of line `i` on its left side are at `2 * i`, and on its right side at `2 * i + 1`. */
|
|
89
|
+
readonly sides: Int32Array;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* This function finds the pairs of parallel lines with a distance from `nearest` to `farthest`, and a common part of `overlap` or more.
|
|
93
|
+
* Two lines are parallel when their directions differ by `tolerance` radians or less. The lines go in buckets by direction, so the search is fast.
|
|
94
|
+
*/
|
|
95
|
+
export declare function parallelPairs(lines: readonly SheetLine[], nearest: number, farthest: number, overlap: number, tolerance?: number): PairSearch;
|
|
96
|
+
/** The options of the search for walls. Each length is in the unit of the sheet. */
|
|
97
|
+
export interface WallOptions {
|
|
98
|
+
/** The smallest thickness of a wall. The default is 0.25 ft. */
|
|
99
|
+
readonly thinnest?: number | undefined;
|
|
100
|
+
/** The largest thickness of a wall. The default is 1.5 ft. */
|
|
101
|
+
readonly thickest?: number | undefined;
|
|
102
|
+
/** The length of a long line of a pen. Only the long lines tell if a pen is a wall pen. The default is 1.5 ft. */
|
|
103
|
+
readonly longLine?: number | undefined;
|
|
104
|
+
/** The smallest number of long lines of a wall pen. The default is 8. */
|
|
105
|
+
readonly fewestLines?: number | undefined;
|
|
106
|
+
/** The smallest sum of the lengths of the paired long lines of a wall pen. The default is 40 ft. */
|
|
107
|
+
readonly leastLength?: number | undefined;
|
|
108
|
+
/** The smallest common length of the two faces of one wall. The default is 1 ft. */
|
|
109
|
+
readonly shortestWall?: number | undefined;
|
|
110
|
+
}
|
|
111
|
+
/** The read of one pen of a sheet. */
|
|
112
|
+
export interface PenRead {
|
|
113
|
+
/** The name of the pen, as `penOf` gives it. */
|
|
114
|
+
readonly pen: string;
|
|
115
|
+
/** The number of long straight lines of the pen. */
|
|
116
|
+
readonly lines: number;
|
|
117
|
+
/** The part of the long lines with a parallel partner at the distance of a wall, from 0 to 1. */
|
|
118
|
+
readonly paired: number;
|
|
119
|
+
/** The part of the paired lines with partners on one side only, from 0 to 1. The face of a wall has a partner on one side. */
|
|
120
|
+
readonly oneSide: number;
|
|
121
|
+
/** The sum of the lengths of the paired lines, in the `unit` of the sheet. */
|
|
122
|
+
readonly length: number;
|
|
123
|
+
/** This value is true when the pen draws walls. */
|
|
124
|
+
readonly wall: boolean;
|
|
125
|
+
}
|
|
126
|
+
/** The limits of the search for walls, in the units of the sheet. */
|
|
127
|
+
export interface WallLimits {
|
|
128
|
+
readonly thinnest: number;
|
|
129
|
+
readonly thickest: number;
|
|
130
|
+
readonly longLine: number;
|
|
131
|
+
readonly fewestLines: number;
|
|
132
|
+
readonly leastLength: number;
|
|
133
|
+
readonly shortestWall: number;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* This function reads each pen of the straight lines of a sheet.
|
|
137
|
+
* A pen is a wall pen when most of its long lines have a parallel partner at the distance of a wall thickness.
|
|
138
|
+
* Also, most of the paired lines of a wall pen have the partner on one side only.
|
|
139
|
+
* The limits are in the units of the sheet. The pens with the most lines come first.
|
|
140
|
+
*/
|
|
141
|
+
export declare function readPens(lines: readonly SheetLine[], limits: WallLimits, scale: number): readonly PenRead[];
|
|
142
|
+
/** A wall from two parallel lines of a wall pen: the center line of the common part, in the coordinates of the sheet. */
|
|
143
|
+
export interface WallPair {
|
|
144
|
+
readonly a: number;
|
|
145
|
+
readonly b: number;
|
|
146
|
+
readonly from: PlanPoint;
|
|
147
|
+
readonly to: PlanPoint;
|
|
148
|
+
/** The distance between the two faces, in the units of the sheet. */
|
|
149
|
+
readonly thickness: number;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* This function gives the walls of the straight lines of the wall pens. Each line keeps its nearest partner, so a face has one wall.
|
|
153
|
+
* The wall is the center line of the common part of the two faces.
|
|
154
|
+
*/
|
|
155
|
+
export declare function wallPairs(lines: readonly SheetLine[], limits: WallLimits): readonly WallPair[];
|
|
156
|
+
/** The options of the search for bridges. Each length is in the `unit` of the sheet. */
|
|
157
|
+
export interface BridgeOptions {
|
|
158
|
+
/** The smallest width of a gap in a wall. The default is 1.5 ft. */
|
|
159
|
+
readonly narrowest?: number | undefined;
|
|
160
|
+
/** The largest width of a gap in a wall. The default is 4.5 ft. */
|
|
161
|
+
readonly widest?: number | undefined;
|
|
162
|
+
/** The smallest length of the end line of a wall. The default is 0.2 ft. */
|
|
163
|
+
readonly shortestEnd?: number | undefined;
|
|
164
|
+
/** The largest length of the end line of a wall. The default is 1.6 ft. */
|
|
165
|
+
readonly longestEnd?: number | undefined;
|
|
166
|
+
/** Two lines touch when the distance between them is this value or less. The default is 0.225 ft. */
|
|
167
|
+
readonly touch?: number | undefined;
|
|
168
|
+
/** The largest angle between the direction of an open end and the direction to the other end, in degrees. The default is 25. */
|
|
169
|
+
readonly angle?: number | undefined;
|
|
170
|
+
}
|
|
171
|
+
/** The limits of the search for bridges, in the units of the sheet. */
|
|
172
|
+
export interface BridgeLimits {
|
|
173
|
+
readonly narrowest: number;
|
|
174
|
+
readonly widest: number;
|
|
175
|
+
readonly shortestEnd: number;
|
|
176
|
+
readonly longestEnd: number;
|
|
177
|
+
readonly touch: number;
|
|
178
|
+
readonly angle: number;
|
|
179
|
+
}
|
|
180
|
+
/** These are the sources of a bridge. `ends` is a pair of end lines of two walls. `open` is a pair of open ends of two lines. */
|
|
181
|
+
export declare const BRIDGE_SOURCES: readonly ["ends", "open"];
|
|
182
|
+
/** A source of a bridge. */
|
|
183
|
+
export type BridgeSource = (typeof BRIDGE_SOURCES)[number];
|
|
184
|
+
/** A bridge: a gap between two wall ends, in the coordinates of the sheet. A bridge closes a room, and the room record has it as an opening. */
|
|
185
|
+
export interface Bridge {
|
|
186
|
+
readonly source: BridgeSource;
|
|
187
|
+
/** The line of the bridge from the middle of one wall end to the middle of the other. */
|
|
188
|
+
readonly from: PlanPoint;
|
|
189
|
+
readonly to: PlanPoint;
|
|
190
|
+
/** The thickness of the wall at the bridge. A bridge from open ends has no thickness. */
|
|
191
|
+
readonly thickness: number | undefined;
|
|
192
|
+
/** The lines that close the gap, as the barrier of the rooms. */
|
|
193
|
+
readonly lines: readonly SheetLine[];
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* This function finds the bridges across the gaps in the walls. A gap is from `narrowest` to `widest`.
|
|
197
|
+
*
|
|
198
|
+
* - Two short end lines of walls can be parallel and face each other across a gap. They give two lines, one along each face of the wall.
|
|
199
|
+
* - An open end of a long line, with no other line near it, joins the nearest open end that faces it.
|
|
200
|
+
*/
|
|
201
|
+
export declare function findBridges(lines: readonly SheetLine[], limits: BridgeLimits): readonly Bridge[];
|
|
202
|
+
/**
|
|
203
|
+
* A grid of square cells over a sheet. The cell at column `x` and row `y` has the position `y * columns + x` in each array of the grid.
|
|
204
|
+
* The plan import keeps its rasters here: each is specific to the method of the import.
|
|
205
|
+
*/
|
|
206
|
+
interface Grid {
|
|
207
|
+
readonly columns: number;
|
|
208
|
+
readonly rows: number;
|
|
209
|
+
/** The side of a cell, in the units of the sheet. */
|
|
210
|
+
readonly cell: number;
|
|
211
|
+
}
|
|
212
|
+
/** The name of the side of an opening that is outside the building. */
|
|
213
|
+
export declare const OUTSIDE = "outside";
|
|
214
|
+
/** The options of `importPlan`. Each length is in the `unit` of the sheet, and each area is in that unit squared. */
|
|
215
|
+
export interface ImportOptions {
|
|
216
|
+
/** The legend of the sheet. Without it, the rooms have no use and the area gate has no rings. */
|
|
217
|
+
readonly legend?: Legend | undefined;
|
|
218
|
+
/** The wall pens. The default is each pen that `readPens` reads as a wall pen. */
|
|
219
|
+
readonly wallPens?: readonly string[] | undefined;
|
|
220
|
+
/** The pens of the doors, as barriers of the rooms. The default is the pen with the most curve lines: the pen of the door swings. */
|
|
221
|
+
readonly doorPens?: readonly string[] | undefined;
|
|
222
|
+
readonly walls?: WallOptions | undefined;
|
|
223
|
+
readonly bridges?: BridgeOptions | undefined;
|
|
224
|
+
/** The side of a cell of the grid. The default is 0.1 ft. */
|
|
225
|
+
readonly cell?: number | undefined;
|
|
226
|
+
/** The largest number of cells of the grid. A larger grid gets larger cells. The default is 40 000 000. */
|
|
227
|
+
readonly largestGrid?: number | undefined;
|
|
228
|
+
/** A free region with a smaller area is a speck, not a room. The default is 12 square ft. */
|
|
229
|
+
readonly smallestRoom?: number | undefined;
|
|
230
|
+
/** A free region with a smaller mean width is the space inside a wall, not a room. The mean width is two times the area over the perimeter. The default is 1.6 ft. */
|
|
231
|
+
readonly thinnestRoom?: number | undefined;
|
|
232
|
+
/** The height of each wall. The default is 8 ft. */
|
|
233
|
+
readonly height?: number | undefined;
|
|
234
|
+
/** The height of each opening. The default is 80 in. */
|
|
235
|
+
readonly openingHeight?: number | undefined;
|
|
236
|
+
/** A fill ring with a smaller area is not in the area gate. The default is 15 square ft. */
|
|
237
|
+
readonly smallestRing?: number | undefined;
|
|
238
|
+
/** The limits of the area gate, as parts of the area of a ring. The default is 0.05 and 0.1. */
|
|
239
|
+
readonly gateLimits?: readonly number[] | undefined;
|
|
240
|
+
}
|
|
241
|
+
/** One room of a plan import: a free region of the grid inside the building. */
|
|
242
|
+
export interface ImportedRoom {
|
|
243
|
+
/** The `id` of the room, and of its floor in the room record. */
|
|
244
|
+
readonly id: string;
|
|
245
|
+
/** The name of the fill color under most of the room, from the legend. */
|
|
246
|
+
readonly use?: string | undefined;
|
|
247
|
+
/** The fill color under most of the room. */
|
|
248
|
+
readonly color?: string | undefined;
|
|
249
|
+
/** The area of the cells of the room. */
|
|
250
|
+
readonly area: number;
|
|
251
|
+
/** The mean point of the cells of the room, in the plan. */
|
|
252
|
+
readonly center: PlanPoint;
|
|
253
|
+
}
|
|
254
|
+
/** One opening of a plan import: a bridge across a gap in a wall. */
|
|
255
|
+
export interface ImportedOpening {
|
|
256
|
+
/** The `id` of the opening in the room record. */
|
|
257
|
+
readonly id: string;
|
|
258
|
+
/** The `id` of the wall of the opening in the room record. */
|
|
259
|
+
readonly wall: string;
|
|
260
|
+
readonly kind: OpeningKind;
|
|
261
|
+
readonly source: Bridge["source"];
|
|
262
|
+
/** The room on each side of the opening, or `OUTSIDE`. An opening with no room or a room on the two sides has no sides. */
|
|
263
|
+
readonly sides?: readonly [string, string] | undefined;
|
|
264
|
+
}
|
|
265
|
+
/** The kinds of the free regions of the grid. */
|
|
266
|
+
export declare const REGION_KINDS: readonly ["outside", "speck", "core", "room"];
|
|
267
|
+
/** A kind of a free region of the grid. */
|
|
268
|
+
export type RegionKind = (typeof REGION_KINDS)[number];
|
|
269
|
+
/** One fill ring of the area gate, and the rooms that it holds. */
|
|
270
|
+
export interface RingFit {
|
|
271
|
+
/** The position of the fill in the fills of the sheet. */
|
|
272
|
+
readonly fill: number;
|
|
273
|
+
/** The position of the ring in the rings of the fill. */
|
|
274
|
+
readonly ring: number;
|
|
275
|
+
readonly use: string;
|
|
276
|
+
/** The area of the ring. */
|
|
277
|
+
readonly area: number;
|
|
278
|
+
/** The rooms that have most of their cells in the ring, and half of their cells or more. */
|
|
279
|
+
readonly rooms: readonly string[];
|
|
280
|
+
/** The sum of the areas of the rooms over the area of the ring, minus 1. A ring with no room has no error. */
|
|
281
|
+
readonly error?: number | undefined;
|
|
282
|
+
}
|
|
283
|
+
/** The area gate: each fill ring of a use of the legend against the rooms that it holds. */
|
|
284
|
+
export interface AreaGate {
|
|
285
|
+
readonly rings: readonly RingFit[];
|
|
286
|
+
/** The number of rings with an error of each limit or less, in the sequence of the limits. */
|
|
287
|
+
readonly within: readonly {
|
|
288
|
+
readonly limit: number;
|
|
289
|
+
readonly rings: number;
|
|
290
|
+
}[];
|
|
291
|
+
/** The median of the errors. A gate with no error has no median. */
|
|
292
|
+
readonly median?: number | undefined;
|
|
293
|
+
}
|
|
294
|
+
/** The result of a plan import. */
|
|
295
|
+
export interface PlanImport {
|
|
296
|
+
/**
|
|
297
|
+
* The room record of the level: the walls, one opening for each bridge, and one floor for each room.
|
|
298
|
+
* A wall from two faces has the `id` `wall-` and a number. The wall of a bridge has the `id` `bridge-` and the number of its opening.
|
|
299
|
+
*/
|
|
300
|
+
readonly room: Room;
|
|
301
|
+
readonly rooms: readonly ImportedRoom[];
|
|
302
|
+
readonly openings: readonly ImportedOpening[];
|
|
303
|
+
/** The number of free regions of each kind. */
|
|
304
|
+
readonly regions: Readonly<Record<RegionKind, number>>;
|
|
305
|
+
readonly pens: readonly PenRead[];
|
|
306
|
+
readonly wallPens: readonly string[];
|
|
307
|
+
readonly doorPens: readonly string[];
|
|
308
|
+
/** The grid of the rooms. Its cell is in the `unit` of the sheet. */
|
|
309
|
+
readonly grid: Grid;
|
|
310
|
+
readonly gate: AreaGate;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* This function turns the vector paths of a floor plan into a room record with rooms, walls and openings.
|
|
314
|
+
*
|
|
315
|
+
* 1. A wall pen has long lines with a parallel partner at the distance of a wall thickness. Two such lines give a wall.
|
|
316
|
+
* 2. A bridge closes each gap between two wall ends. The bridge is an opening of the room record.
|
|
317
|
+
* 3. The walls, the door pens and the bridges go on a grid. Each free region of the grid that does not touch the border is a room, a speck or the space in a wall.
|
|
318
|
+
* 4. A room gets the fill color under most of its cells, and its use from the legend.
|
|
319
|
+
* 5. The area gate compares each fill ring of the legend with the rooms that have most of their cells in it.
|
|
320
|
+
*
|
|
321
|
+
* The coordinates of the sheet have the y axis down. The plan of the result has the y axis up, with the bottom left corner of the sheet at the origin.
|
|
322
|
+
*/
|
|
323
|
+
export declare function importPlan(sheet: Sheet, options?: ImportOptions): PlanImport;
|
|
324
|
+
export type { Grid };
|
|
325
|
+
//# sourceMappingURL=plan-import.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-import.d.ts","names":[],"sources":["../src/plan-import/sheet.ts","../src/plan-import/walls.ts","../src/plan-import/bridges.ts","../src/plan-import/raster.ts","../src/plan-import/importer.ts"],"mappings":";;;;;;iBAQiB;WACN,MAAM;WACN,IAAI;;WAEJ;;WAEA;;WAEA;;;iBAIM;WACN;WACA,gBAAgB;;;iBAIV;WACN;WACA,IAAI;;WAEJ;;;;;;iBAOM;;WAEN;;WAEA;WACA;;WAEA,MAAM;WACN,gBAAgB;WAChB,iBAAiB;WACjB,iBAAiB;;;wBAIZ,MAAM,MAAM,KAAK;;wBAKjB,WAAW,MAAM,KAAK;;iBAKrB;;WAEN,OAAO,SAAS;;WAEhB;;;iBAIM;;WAEN;;WAEA;;WAEA;;WAEA;;;wBAIK,QAAQ,MAAM;;;;;wBAoBd,WAAW,OAAO,KAAK,2BAA2B,UAAS,gBAAqB;;iBCjG/E;;WAEN;;WAEA;;WAEA;;WAEA;;;iBAIM;WACN,gBAAgB;;WAEhB,OAAO;;;;;;wBA8BF,cAAc,gBAAgB,aAAa,iBAAiB,kBAAkB,iBAAiB,qBAAqB;;iBAyDnH;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;;iBAIM;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;;iBAIM;WACN;WACA;WACA;WACA;WACA;WACA;;;;;;;;wBASK,SAAS,gBAAgB,aAAa,QAAQ,YAAY,yBAAyB;;iBAmClF;WACN;WACA;WACA,MAAM;WACN,IAAI;;WAEJ;;;;;;wBAOK,UAAU,gBAAgB,aAAa,QAAQ,sBAAsB;;iBCpMpE;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;;iBAIM;WACN;WACA;WACA;WACA;WACA;WACA;;;qBAIE;;YAGD,uBAAuB;;iBAGlB;WACN,QAAQ;;WAER,MAAM;WACN,IAAI;;WAEJ;;WAEA,gBAAgB;;;;;;;;wBASX,YAAY,gBAAgB,aAAa,QAAQ,wBAAwB;;;;;UC9CxE;WACN;WACA;;WAEA;;;qBCFE;;iBAGI;;WAEN,SAAS;;WAET;;WAEA;WACA,QAAQ;WACR,UAAU;;WAEV;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;;iBAIM;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,QAAQ;;;iBAIF;;WAEN;;WAEA;WACA,MAAM;WACN,QAAQ;;WAER;;;qBAIE;;YAGD,qBAAqB;;iBAGhB;;WAEN;;WAEA;WACA;;WAEA;;WAEA;;WAEA;;;iBAIM;WACN,gBAAgB;;WAEhB;aAA4B;aAAwB;;;WAEpD;;;iBAIM;;;;;WAKN,MAAM;WACN,gBAAgB;WAChB,mBAAmB;;WAEnB,SAAS,SAAS,OAAO;WACzB,eAAe;WACf;WACA;;WAEA,MAAM;WACN,MAAM;;;;;;;;;;;;;wBAiBD,WAAW,OAAO,OAAO,UAAS,gBAAqB"}
|