@nubisco/bim 0.0.0-stage → 0.0.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/LICENSE +21 -0
- package/README.md +80 -2
- package/dist/cells-G6pIWvCF.d.ts +110 -0
- package/dist/cells.d.ts +2 -0
- package/dist/cells.js +25 -0
- package/dist/chunk-6Q4JIXFQ.js +54 -0
- package/dist/chunk-7YR7CGBI.js +1115 -0
- package/dist/chunk-EHYUT42U.js +126 -0
- package/dist/chunk-I47MDCHW.js +457 -0
- package/dist/chunk-L3Z5LJAA.js +58 -0
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/chunk-OCAFB7M7.js +286 -0
- package/dist/chunk-SFKOZPPS.js +308 -0
- package/dist/chunk-TE5NK6DO.js +686 -0
- package/dist/chunk-TVNU2NAO.js +47 -0
- package/dist/convert.d.ts +39 -0
- package/dist/convert.js +17 -0
- package/dist/edges-CnXyFuCX.d.ts +67 -0
- package/dist/edges.d.ts +2 -0
- package/dist/edges.js +18 -0
- package/dist/history.d.ts +33 -0
- package/dist/history.js +7 -0
- package/dist/ifc-read.d.ts +61 -0
- package/dist/ifc-read.js +17 -0
- package/dist/ifc.d.ts +60 -0
- package/dist/ifc.js +20 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +81 -0
- package/dist/v1-CnwNIVI8.d.ts +260 -0
- package/dist/v1.d.ts +2 -0
- package/dist/v1.js +21 -0
- package/dist/v2.d.ts +198 -0
- package/dist/v2.js +27 -0
- package/dist/validate.d.ts +13 -0
- package/dist/validate.js +10 -0
- package/package.json +110 -4
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// src/history.ts
|
|
2
|
+
var History = class {
|
|
3
|
+
constructor(initial, limit = 100) {
|
|
4
|
+
this.limit = limit;
|
|
5
|
+
this.states = [initial];
|
|
6
|
+
}
|
|
7
|
+
limit;
|
|
8
|
+
states;
|
|
9
|
+
at = 0;
|
|
10
|
+
/** The state in front of the person. */
|
|
11
|
+
get current() {
|
|
12
|
+
return this.states[this.at];
|
|
13
|
+
}
|
|
14
|
+
get canUndo() {
|
|
15
|
+
return this.at > 0;
|
|
16
|
+
}
|
|
17
|
+
get canRedo() {
|
|
18
|
+
return this.at < this.states.length - 1;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Take a new state as one step. The same state again is not a step. A step
|
|
22
|
+
* taken after undoing drops what could have been redone, as editors do.
|
|
23
|
+
* Answers whether it was taken.
|
|
24
|
+
*/
|
|
25
|
+
record(state) {
|
|
26
|
+
if (state === this.states[this.at]) return false;
|
|
27
|
+
this.states.length = this.at + 1;
|
|
28
|
+
this.states.push(state);
|
|
29
|
+
if (this.states.length > this.limit) this.states.splice(0, this.states.length - this.limit);
|
|
30
|
+
this.at = this.states.length - 1;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
/** The state before, or null at the first. */
|
|
34
|
+
undo() {
|
|
35
|
+
if (!this.canUndo) return null;
|
|
36
|
+
return this.states[--this.at];
|
|
37
|
+
}
|
|
38
|
+
/** The state after, or null at the last. */
|
|
39
|
+
redo() {
|
|
40
|
+
if (!this.canRedo) return null;
|
|
41
|
+
return this.states[++this.at];
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
History
|
|
47
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { WallLine } from './edges.js';
|
|
2
|
+
import { HousePlan, HouseFloor } from './v1.js';
|
|
3
|
+
import { Plan } from './v2.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Between plan versions 1 and 2.
|
|
7
|
+
*
|
|
8
|
+
* `fromV1` turns a version 1 plan into version 2, every value to the nearest
|
|
9
|
+
* millimetre. Plans saved by the version 1 editor are whole half cells, so
|
|
10
|
+
* for them it is exact. The editor itself now works to the millimetre in
|
|
11
|
+
* version 1's shapes (rectangles, walls along room edges), so its values are
|
|
12
|
+
* any number of millimetres, still exact. Given the version 2 plan it replaces, it keeps what version 1
|
|
13
|
+
* cannot say (a wall's thickness, a door's frame, curtains with no motor) for
|
|
14
|
+
* every element that is still there, so a save from the version 1 editor
|
|
15
|
+
* loses nothing it did not change.
|
|
16
|
+
*
|
|
17
|
+
* `toV1` is the adapter the current editor and views draw from until they
|
|
18
|
+
* work in millimetres themselves.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/** Millimetres per version 1 cell. */
|
|
22
|
+
declare const CELL: number;
|
|
23
|
+
/**
|
|
24
|
+
* The walls a version 1 floor implies: the edges of rooms that have walls,
|
|
25
|
+
* merged into straight runs. A run is cut where it changes from a wall
|
|
26
|
+
* between two rooms (inner, thin) to one with a room on one side only
|
|
27
|
+
* (outer, thick), as those are different walls in a building.
|
|
28
|
+
*/
|
|
29
|
+
declare function wallLines(floor: HouseFloor): WallLine[];
|
|
30
|
+
interface Migration {
|
|
31
|
+
plan: Plan;
|
|
32
|
+
/** Openings that sat on no wall (left behind when a room moved), and so were not kept. */
|
|
33
|
+
dropped: string[];
|
|
34
|
+
}
|
|
35
|
+
declare function fromV1(p: HousePlan, previous?: Plan | null): Migration;
|
|
36
|
+
declare function toV1(p: Plan): HousePlan;
|
|
37
|
+
|
|
38
|
+
export { CELL, fromV1, toV1, wallLines };
|
|
39
|
+
export type { Migration };
|
package/dist/convert.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CELL,
|
|
3
|
+
fromV1,
|
|
4
|
+
toV1,
|
|
5
|
+
wallLines
|
|
6
|
+
} from "./chunk-I47MDCHW.js";
|
|
7
|
+
import "./chunk-EHYUT42U.js";
|
|
8
|
+
import "./chunk-OCAFB7M7.js";
|
|
9
|
+
import "./chunk-6Q4JIXFQ.js";
|
|
10
|
+
import "./chunk-L3Z5LJAA.js";
|
|
11
|
+
import "./chunk-MLKGABMK.js";
|
|
12
|
+
export {
|
|
13
|
+
CELL,
|
|
14
|
+
fromV1,
|
|
15
|
+
toV1,
|
|
16
|
+
wallLines
|
|
17
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Point } from './v2.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Straight edges at any angle, in whole millimetres: which lie on one line,
|
|
5
|
+
* how far they overlap, and the walls a set of room outlines makes.
|
|
6
|
+
*
|
|
7
|
+
* Exact for integer coordinates. A line is named by its direction (the
|
|
8
|
+
* smallest whole vector along it, pointing towards +x, or +y when it runs
|
|
9
|
+
* along y) and its offset, the cross product of that direction with any
|
|
10
|
+
* point on it, so two edges are on one line when their names match.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
interface LineKey {
|
|
14
|
+
/** Direction, the smallest whole vector along the line. */
|
|
15
|
+
d: Point;
|
|
16
|
+
/** d × p for any point p on the line. */
|
|
17
|
+
off: number;
|
|
18
|
+
key: string;
|
|
19
|
+
}
|
|
20
|
+
/** The line through a and b, or null when they are the same point. */
|
|
21
|
+
declare function lineOf(a: Point, b: Point): LineKey | null;
|
|
22
|
+
/** How far along a line's direction a point is (scaled by the direction's length). */
|
|
23
|
+
declare const along: (l: LineKey, p: Point) => number;
|
|
24
|
+
/** The point on a line at `t` along it, rounded to the millimetre. */
|
|
25
|
+
declare function pointAt(l: LineKey, t: number): Point;
|
|
26
|
+
/** How long two segments overlap, in millimetres. 0 when they are not on one line. */
|
|
27
|
+
declare function overlapLength(a: [Point, Point], b: [Point, Point]): number;
|
|
28
|
+
interface WallLine {
|
|
29
|
+
/** `h` along x, `v` along y, null at an angle. */
|
|
30
|
+
axis: 'h' | 'v' | null;
|
|
31
|
+
/** For `h` the y, for `v` the x. 0 at an angle. */
|
|
32
|
+
line: number;
|
|
33
|
+
/** Along the line: x for `h`, y for `v`. 0 at an angle. */
|
|
34
|
+
start: number;
|
|
35
|
+
end: number;
|
|
36
|
+
/** The ends, `a` first along the line's direction. */
|
|
37
|
+
a: Point;
|
|
38
|
+
b: Point;
|
|
39
|
+
/** Between two rooms, rather than with a room on one side only. */
|
|
40
|
+
inner: boolean;
|
|
41
|
+
}
|
|
42
|
+
/** Whether a point is inside a room given as its outline and holes. */
|
|
43
|
+
declare function inRoom(p: Point, loops: Point[][]): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* The walls of rooms, each given as its loops (outline first, then holes),
|
|
46
|
+
* in millimetres: every stretch of room edge, cut where it changes from
|
|
47
|
+
* between two rooms (inner) to one with a room on one side only, and merged
|
|
48
|
+
* into straight runs otherwise. Along x first, then along y, then at an
|
|
49
|
+
* angle, each by line and then along it.
|
|
50
|
+
*/
|
|
51
|
+
declare function wallLinesOf(rooms: Point[][][]): WallLine[];
|
|
52
|
+
|
|
53
|
+
type edges_LineKey = LineKey;
|
|
54
|
+
type edges_WallLine = WallLine;
|
|
55
|
+
declare const edges_along: typeof along;
|
|
56
|
+
declare const edges_inRoom: typeof inRoom;
|
|
57
|
+
declare const edges_lineOf: typeof lineOf;
|
|
58
|
+
declare const edges_overlapLength: typeof overlapLength;
|
|
59
|
+
declare const edges_pointAt: typeof pointAt;
|
|
60
|
+
declare const edges_wallLinesOf: typeof wallLinesOf;
|
|
61
|
+
declare namespace edges {
|
|
62
|
+
export { edges_along as along, edges_inRoom as inRoom, edges_lineOf as lineOf, edges_overlapLength as overlapLength, edges_pointAt as pointAt, edges_wallLinesOf as wallLinesOf };
|
|
63
|
+
export type { edges_LineKey as LineKey, edges_WallLine as WallLine };
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { along as a, edges as e, inRoom as i, lineOf as l, overlapLength as o, pointAt as p, wallLinesOf as w };
|
|
67
|
+
export type { LineKey as L, WallLine as W };
|
package/dist/edges.d.ts
ADDED
package/dist/edges.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
along,
|
|
3
|
+
inRoom,
|
|
4
|
+
lineOf,
|
|
5
|
+
overlapLength,
|
|
6
|
+
pointAt,
|
|
7
|
+
wallLinesOf
|
|
8
|
+
} from "./chunk-EHYUT42U.js";
|
|
9
|
+
import "./chunk-OCAFB7M7.js";
|
|
10
|
+
import "./chunk-MLKGABMK.js";
|
|
11
|
+
export {
|
|
12
|
+
along,
|
|
13
|
+
inRoom,
|
|
14
|
+
lineOf,
|
|
15
|
+
overlapLength,
|
|
16
|
+
pointAt,
|
|
17
|
+
wallLinesOf
|
|
18
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Undo and redo for an editor: a list of states, each a JSON string of the
|
|
3
|
+
* whole plan, with a cursor on the one in front of the person.
|
|
4
|
+
*
|
|
5
|
+
* Whole copies rather than a log of changes, because every edit then counts
|
|
6
|
+
* without each one having to describe how to reverse itself. A plan is a few
|
|
7
|
+
* tens of kilobytes, so a hundred states is a few megabytes at worst.
|
|
8
|
+
*
|
|
9
|
+
* Pure: the editor decides when a change has settled enough to be one step
|
|
10
|
+
* (a drag ends, typing pauses) and calls `record`.
|
|
11
|
+
*/
|
|
12
|
+
declare class History {
|
|
13
|
+
private readonly limit;
|
|
14
|
+
private states;
|
|
15
|
+
private at;
|
|
16
|
+
constructor(initial: string, limit?: number);
|
|
17
|
+
/** The state in front of the person. */
|
|
18
|
+
get current(): string;
|
|
19
|
+
get canUndo(): boolean;
|
|
20
|
+
get canRedo(): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Take a new state as one step. The same state again is not a step. A step
|
|
23
|
+
* taken after undoing drops what could have been redone, as editors do.
|
|
24
|
+
* Answers whether it was taken.
|
|
25
|
+
*/
|
|
26
|
+
record(state: string): boolean;
|
|
27
|
+
/** The state before, or null at the first. */
|
|
28
|
+
undo(): string | null;
|
|
29
|
+
/** The state after, or null at the last. */
|
|
30
|
+
redo(): string | null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { History };
|
package/dist/history.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Plan } from './v2.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* An IFC file (STEP, `.ifc`) read into a house plan, version 2. See "IFC
|
|
5
|
+
* import" in docs/design/house-bim.md.
|
|
6
|
+
*
|
|
7
|
+
* Our own reader, like the writer in ifc.ts: no WebAssembly, no Node, no
|
|
8
|
+
* DOM, so it runs in the browser and in the daemon alike. It reads what a
|
|
9
|
+
* house plan holds (storeys, walls, spaces, doors, windows, radiators,
|
|
10
|
+
* furniture) from the structures the common tools write, and says what it
|
|
11
|
+
* left out. Devices are not read: they are OpenBridge's, not the building's.
|
|
12
|
+
*
|
|
13
|
+
* Coordinates: IFC's X is the plan's x, IFC's Y is the plan's -y (IFC's Y
|
|
14
|
+
* runs north, up the page), in the file's length unit, read into
|
|
15
|
+
* millimetres. A file whose house sits off the plan's corner, or partly at
|
|
16
|
+
* negative coordinates, is moved onto the plot by whole half metres.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
declare class IfcError extends Error {
|
|
20
|
+
}
|
|
21
|
+
/** A value in a STEP file. `$` and `*` are null, `.X.` is `{ e }`, `IFCLABEL('x')` is `{ t, v }`. */
|
|
22
|
+
type StepValue = number | string | null | {
|
|
23
|
+
ref: number;
|
|
24
|
+
} | {
|
|
25
|
+
e: string;
|
|
26
|
+
} | {
|
|
27
|
+
t: string;
|
|
28
|
+
v: StepValue;
|
|
29
|
+
} | StepValue[];
|
|
30
|
+
interface StepEntity {
|
|
31
|
+
id: number;
|
|
32
|
+
/** Upper case, as IFC writes it: `IFCWALL`. */
|
|
33
|
+
type: string;
|
|
34
|
+
args: StepValue[];
|
|
35
|
+
}
|
|
36
|
+
/** Every entity instance in a STEP file's DATA section, by its number. */
|
|
37
|
+
declare function parseStep(text: string): Map<number, StepEntity>;
|
|
38
|
+
interface IfcImport {
|
|
39
|
+
plan: Plan;
|
|
40
|
+
/** What was left out or guessed, one line each, for the person to read. */
|
|
41
|
+
notes: string[];
|
|
42
|
+
}
|
|
43
|
+
declare function fromIfc(text: string): IfcImport;
|
|
44
|
+
/**
|
|
45
|
+
* Keep the ids a plan already uses for what the import brings back: a storey
|
|
46
|
+
* by its level, a space by its name on that storey. Device placements and
|
|
47
|
+
* anything else that names them then still find them.
|
|
48
|
+
*/
|
|
49
|
+
declare function adoptIds(plan: Plan, previous: {
|
|
50
|
+
storeys: Array<{
|
|
51
|
+
id: string;
|
|
52
|
+
level: number;
|
|
53
|
+
spaces: Array<{
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
}>;
|
|
57
|
+
}>;
|
|
58
|
+
}): Plan;
|
|
59
|
+
|
|
60
|
+
export { IfcError, adoptIds, fromIfc, parseStep };
|
|
61
|
+
export type { IfcImport, StepEntity, StepValue };
|
package/dist/ifc-read.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IfcError,
|
|
3
|
+
adoptIds,
|
|
4
|
+
fromIfc,
|
|
5
|
+
parseStep
|
|
6
|
+
} from "./chunk-7YR7CGBI.js";
|
|
7
|
+
import "./chunk-SFKOZPPS.js";
|
|
8
|
+
import "./chunk-OCAFB7M7.js";
|
|
9
|
+
import "./chunk-TE5NK6DO.js";
|
|
10
|
+
import "./chunk-6Q4JIXFQ.js";
|
|
11
|
+
import "./chunk-MLKGABMK.js";
|
|
12
|
+
export {
|
|
13
|
+
IfcError,
|
|
14
|
+
adoptIds,
|
|
15
|
+
fromIfc,
|
|
16
|
+
parseStep
|
|
17
|
+
};
|
package/dist/ifc.d.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Furniture, Plan } from './v2.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The house plan (version 2) as IFC4, written as a STEP file (`.ifc`). See
|
|
5
|
+
* "The IFC export" in docs/design/house-bim.md for the mapping.
|
|
6
|
+
*
|
|
7
|
+
* Our own writer: no WebAssembly, no Node, no DOM, so it runs in the browser
|
|
8
|
+
* and in the daemon alike. Nothing here knows OpenBridge's devices: what a
|
|
9
|
+
* placed device is in IFC is handed in by the caller, by its reference.
|
|
10
|
+
*
|
|
11
|
+
* Coordinates: the plan's x runs right and its y down the page, in
|
|
12
|
+
* millimetres. IFC's Y runs up the page (north), in metres, with Z up. So a
|
|
13
|
+
* plan point (x, y) is IFC (x / 1000, -y / 1000), which keeps the house the
|
|
14
|
+
* same way round, not mirrored, in other software.
|
|
15
|
+
*
|
|
16
|
+
* Every product and relationship gets a GlobalId derived from its id in the
|
|
17
|
+
* plan, so exporting the same plan twice names the same things, which is
|
|
18
|
+
* what other software relies on to follow changes between exports.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/** A reference to an entity already written. */
|
|
22
|
+
interface Ref {
|
|
23
|
+
readonly ref: number;
|
|
24
|
+
}
|
|
25
|
+
/** A STEP string: quotes doubled, backslashes doubled, anything outside printable ASCII escaped. */
|
|
26
|
+
declare function stepString(s: string): string;
|
|
27
|
+
/** A STEP real: always with a decimal point, to the micrometre. */
|
|
28
|
+
declare function stepReal(n: number): string;
|
|
29
|
+
/** An IFC GlobalId (22 characters, 128 bits) that is always the same for the same key. */
|
|
30
|
+
declare function globalId(key: string): string;
|
|
31
|
+
/** IFC classes a device can be exported as. Each takes a PredefinedType as its ninth attribute. */
|
|
32
|
+
declare const DEVICE_CLASSES: readonly ["IfcActuator", "IfcAlarm", "IfcAudioVisualAppliance", "IfcBuildingElementProxy", "IfcController", "IfcElectricAppliance", "IfcFlowMeter", "IfcLightFixture", "IfcOutlet", "IfcSensor", "IfcSwitchingDevice", "IfcUnitaryEquipment"];
|
|
33
|
+
interface IfcDevice {
|
|
34
|
+
name: string;
|
|
35
|
+
ifcClass: (typeof DEVICE_CLASSES)[number];
|
|
36
|
+
/** The class's PredefinedType, as written: `LIGHTSENSOR`, or `USERDEFINED` with `objectType`. */
|
|
37
|
+
predefined: string;
|
|
38
|
+
objectType?: string;
|
|
39
|
+
/** Height of its middle above the floor, in millimetres. */
|
|
40
|
+
z?: number;
|
|
41
|
+
}
|
|
42
|
+
interface IfcOptions {
|
|
43
|
+
/** The project's and the building's name. */
|
|
44
|
+
name: string;
|
|
45
|
+
/** The file name written in the header. */
|
|
46
|
+
fileName?: string;
|
|
47
|
+
/** The software named in the header. */
|
|
48
|
+
application?: string;
|
|
49
|
+
/** The time written in the header, ISO 8601. Fixed in tests so the output is stable. */
|
|
50
|
+
timestamp?: string;
|
|
51
|
+
/** What each placed device is, by its reference. A device left out is not exported. */
|
|
52
|
+
devices?: Record<string, IfcDevice>;
|
|
53
|
+
}
|
|
54
|
+
/** Heights of furniture, in millimetres, when the plan does not give one. */
|
|
55
|
+
declare const FURNITURE_HEIGHT: Record<Furniture['kind'], number>;
|
|
56
|
+
declare const FURNITURE_NAME: Record<Furniture['kind'], string>;
|
|
57
|
+
declare function toIfc(plan: Plan, opts: IfcOptions): string;
|
|
58
|
+
|
|
59
|
+
export { DEVICE_CLASSES, FURNITURE_HEIGHT, FURNITURE_NAME, globalId, stepReal, stepString, toIfc };
|
|
60
|
+
export type { IfcDevice, IfcOptions, Ref };
|
package/dist/ifc.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEVICE_CLASSES,
|
|
3
|
+
FURNITURE_HEIGHT,
|
|
4
|
+
FURNITURE_NAME,
|
|
5
|
+
globalId,
|
|
6
|
+
stepReal,
|
|
7
|
+
stepString,
|
|
8
|
+
toIfc
|
|
9
|
+
} from "./chunk-TE5NK6DO.js";
|
|
10
|
+
import "./chunk-6Q4JIXFQ.js";
|
|
11
|
+
import "./chunk-MLKGABMK.js";
|
|
12
|
+
export {
|
|
13
|
+
DEVICE_CLASSES,
|
|
14
|
+
FURNITURE_HEIGHT,
|
|
15
|
+
FURNITURE_NAME,
|
|
16
|
+
globalId,
|
|
17
|
+
stepReal,
|
|
18
|
+
stepString,
|
|
19
|
+
toIfc
|
|
20
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { COVERING_KINDS, Covering, DEFAULTS, DEVICE_LOOKS, DOOR_OPERATIONS, Dimension, Door, DoorOperation, FRAME_MATERIALS, FURNITURE_KINDS, Furniture, Gap, LEAVES, LIGHT_MOUNTS, Opening, PLAN_VERSION, Placement, Plan, Point, Radiator, Space, SpaceKind, Storey, WINDOW_OPERATIONS, Wall, Window, WindowOperation, isGlazed } from './v2.js';
|
|
2
|
+
export { PlanError, validatePlan } from './validate.js';
|
|
3
|
+
export { DEVICE_CLASSES, FURNITURE_HEIGHT, FURNITURE_NAME, IfcDevice, IfcOptions, Ref, globalId, stepReal, stepString, toIfc } from './ifc.js';
|
|
4
|
+
export { IfcError, IfcImport, StepEntity, StepValue, adoptIds, fromIfc, parseStep } from './ifc-read.js';
|
|
5
|
+
export { History } from './history.js';
|
|
6
|
+
export { Migration, fromV1, toV1 } from './convert.js';
|
|
7
|
+
export { v as v1 } from './v1-CnwNIVI8.js';
|
|
8
|
+
export { c as cells } from './cells-G6pIWvCF.js';
|
|
9
|
+
export { e as edges } from './edges-CnXyFuCX.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fromV1,
|
|
3
|
+
toV1
|
|
4
|
+
} from "./chunk-I47MDCHW.js";
|
|
5
|
+
import {
|
|
6
|
+
edges_exports
|
|
7
|
+
} from "./chunk-EHYUT42U.js";
|
|
8
|
+
import {
|
|
9
|
+
History
|
|
10
|
+
} from "./chunk-TVNU2NAO.js";
|
|
11
|
+
import {
|
|
12
|
+
IfcError,
|
|
13
|
+
adoptIds,
|
|
14
|
+
fromIfc,
|
|
15
|
+
parseStep
|
|
16
|
+
} from "./chunk-7YR7CGBI.js";
|
|
17
|
+
import {
|
|
18
|
+
PlanError,
|
|
19
|
+
validatePlan
|
|
20
|
+
} from "./chunk-SFKOZPPS.js";
|
|
21
|
+
import {
|
|
22
|
+
cells_exports
|
|
23
|
+
} from "./chunk-OCAFB7M7.js";
|
|
24
|
+
import {
|
|
25
|
+
DEVICE_CLASSES,
|
|
26
|
+
FURNITURE_HEIGHT,
|
|
27
|
+
FURNITURE_NAME,
|
|
28
|
+
globalId,
|
|
29
|
+
stepReal,
|
|
30
|
+
stepString,
|
|
31
|
+
toIfc
|
|
32
|
+
} from "./chunk-TE5NK6DO.js";
|
|
33
|
+
import {
|
|
34
|
+
COVERING_KINDS,
|
|
35
|
+
DEFAULTS,
|
|
36
|
+
DEVICE_LOOKS,
|
|
37
|
+
DOOR_OPERATIONS,
|
|
38
|
+
FRAME_MATERIALS,
|
|
39
|
+
FURNITURE_KINDS,
|
|
40
|
+
LEAVES,
|
|
41
|
+
LIGHT_MOUNTS,
|
|
42
|
+
PLAN_VERSION,
|
|
43
|
+
WINDOW_OPERATIONS,
|
|
44
|
+
isGlazed
|
|
45
|
+
} from "./chunk-6Q4JIXFQ.js";
|
|
46
|
+
import {
|
|
47
|
+
v1_exports
|
|
48
|
+
} from "./chunk-L3Z5LJAA.js";
|
|
49
|
+
import "./chunk-MLKGABMK.js";
|
|
50
|
+
export {
|
|
51
|
+
COVERING_KINDS,
|
|
52
|
+
DEFAULTS,
|
|
53
|
+
DEVICE_CLASSES,
|
|
54
|
+
DEVICE_LOOKS,
|
|
55
|
+
DOOR_OPERATIONS,
|
|
56
|
+
FRAME_MATERIALS,
|
|
57
|
+
FURNITURE_HEIGHT,
|
|
58
|
+
FURNITURE_KINDS,
|
|
59
|
+
FURNITURE_NAME,
|
|
60
|
+
History,
|
|
61
|
+
IfcError,
|
|
62
|
+
LEAVES,
|
|
63
|
+
LIGHT_MOUNTS,
|
|
64
|
+
PLAN_VERSION,
|
|
65
|
+
PlanError,
|
|
66
|
+
WINDOW_OPERATIONS,
|
|
67
|
+
adoptIds,
|
|
68
|
+
cells_exports as cells,
|
|
69
|
+
edges_exports as edges,
|
|
70
|
+
fromIfc,
|
|
71
|
+
fromV1,
|
|
72
|
+
globalId,
|
|
73
|
+
isGlazed,
|
|
74
|
+
parseStep,
|
|
75
|
+
stepReal,
|
|
76
|
+
stepString,
|
|
77
|
+
toIfc,
|
|
78
|
+
toV1,
|
|
79
|
+
v1_exports as v1,
|
|
80
|
+
validatePlan
|
|
81
|
+
};
|