@thatopen/services 0.27.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,17 +7,21 @@ interface RevitType {
|
|
|
7
7
|
type: string;
|
|
8
8
|
}
|
|
9
9
|
interface Settings {
|
|
10
|
-
/** The Revit type
|
|
10
|
+
/** The Revit type proposed columns get, when style names are not trusted. */
|
|
11
11
|
columnType?: RevitType;
|
|
12
12
|
/**
|
|
13
|
-
* Trust the records' own style names
|
|
14
|
-
*
|
|
13
|
+
* Trust the records' own style names: `lookRef` "Family:Type" becomes the
|
|
14
|
+
* proposal's Family and Type verbatim, for columns and instances. Revit
|
|
15
15
|
* matches a type exactly and refuses the whole request when one is missing
|
|
16
16
|
* - right for a model that came FROM this Revit, wrong for anything else.
|
|
17
|
+
* (Walls and floors always go by their style name: system types are named
|
|
18
|
+
* identity, and the applier makes a missing one from the carried width.)
|
|
17
19
|
*/
|
|
18
20
|
trustStyleNames?: boolean;
|
|
19
21
|
/** Also propose free-standing family instances (furniture, equipment). Needs trustStyleNames. */
|
|
20
22
|
includeInstances?: boolean;
|
|
23
|
+
/** Carry the model's levels (ensured by name on the target). Default true. */
|
|
24
|
+
createLevels?: boolean;
|
|
21
25
|
}
|
|
22
26
|
export declare const fragToRevit: Recipe<Settings>;
|
|
23
27
|
export declare const ifcToRevit: Recipe<Settings>;
|
|
@@ -23,6 +23,13 @@ export declare function recordsOf(items: FragItem[]): OurRecord[];
|
|
|
23
23
|
export declare function innerJson<T>(record: OurRecord, param: string): T | null;
|
|
24
24
|
/** Level id (`datum:N`) -> its name, from the document's datum records. */
|
|
25
25
|
export declare function levelNames(records: OurRecord[]): Map<string, string>;
|
|
26
|
+
/** Level id -> name and elevation (metres), from the datum records. */
|
|
27
|
+
export declare function levelsOf(records: OurRecord[]): Map<string, {
|
|
28
|
+
name: string;
|
|
29
|
+
at: number;
|
|
30
|
+
}>;
|
|
31
|
+
/** Styles by name (`lookRef` points here): the record, for thickness hints. */
|
|
32
|
+
export declare function stylesOf(records: OurRecord[]): Map<string, OurRecord>;
|
|
26
33
|
/**
|
|
27
34
|
* Source id -> what this recipe already made for it, read back from its own
|
|
28
35
|
* APPLIED suggestions: the i-th id the target answered with is what the i-th
|