@bimdata/viewer 2.8.0-beta.4 → 2.8.0-beta.5
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.
|
@@ -186855,47 +186855,48 @@ function JRi(i) {
|
|
|
186855
186855
|
}
|
|
186856
186856
|
};
|
|
186857
186857
|
}
|
|
186858
|
-
function YRi(i) {
|
|
186859
|
-
|
|
186860
|
-
|
|
186858
|
+
function YRi(i = {}) {
|
|
186859
|
+
var u, A, d, h, p, f, m, g, I, y;
|
|
186860
|
+
const e = i, t = ((u = e.units) == null ? void 0 : u.reduce(
|
|
186861
|
+
(C, B) => (B.conversion_baseunit = e.units[B.conversion_baseunit_index], delete B.conversion_baseunit_index, C[B.id] = B, C),
|
|
186861
186862
|
{}
|
|
186862
|
-
), n = e.definitions.reduce(
|
|
186863
|
-
(
|
|
186863
|
+
)) ?? {}, n = ((A = e.definitions) == null ? void 0 : A.reduce(
|
|
186864
|
+
(C, B) => (B.unit = e.units[B.unit_id], delete B.unit_id, C[B.id] = B, C),
|
|
186864
186865
|
{}
|
|
186865
|
-
), s = e.property_sets.reduce(
|
|
186866
|
-
(
|
|
186867
|
-
|
|
186868
|
-
}),
|
|
186866
|
+
)) ?? {}, s = ((d = e.property_sets) == null ? void 0 : d.reduce(
|
|
186867
|
+
(C, B) => (B.properties.forEach((w) => {
|
|
186868
|
+
w.definition = e.definitions[w.def_id], delete w.def_id;
|
|
186869
|
+
}), C[B.id] = B, C),
|
|
186869
186870
|
{}
|
|
186870
|
-
), r = e.classifications.reduce(
|
|
186871
|
-
(
|
|
186871
|
+
)) ?? {}, r = ((h = e.classifications) == null ? void 0 : h.reduce(
|
|
186872
|
+
(C, B) => (B.name = B.type, B.title = B.description, C[B.id] = B, C),
|
|
186872
186873
|
{}
|
|
186873
|
-
), o = e.layers.reduce(
|
|
186874
|
-
(
|
|
186874
|
+
)) ?? {}, o = ((p = e.layers) == null ? void 0 : p.reduce(
|
|
186875
|
+
(C, B) => (B.elements = [], C[B.id] = B, C),
|
|
186875
186876
|
{}
|
|
186876
|
-
), a = e.systems.reduce(
|
|
186877
|
-
(
|
|
186877
|
+
)) ?? {}, a = ((f = e.systems) == null ? void 0 : f.reduce(
|
|
186878
|
+
(C, B) => (B.elements = [], C[B.uuid] = B, C),
|
|
186878
186879
|
{}
|
|
186879
|
-
), l = {};
|
|
186880
|
-
l.materials_data = e.materials.materials_data.reduce(
|
|
186881
|
-
(
|
|
186880
|
+
)) ?? {}, l = {};
|
|
186881
|
+
l.materials_data = ((m = e.materials) == null ? void 0 : m.materials_data.reduce(
|
|
186882
|
+
(C, B) => (B.property_sets = B.psets.map((w) => e.property_sets[w]), delete B.psets, delete B.step_id, C[B.id] = B, C),
|
|
186882
186883
|
{}
|
|
186883
|
-
), l.list_components = e.materials.list_components.reduce(
|
|
186884
|
-
(
|
|
186884
|
+
)) ?? {}, l.list_components = ((g = e.materials) == null ? void 0 : g.list_components.reduce(
|
|
186885
|
+
(C, B) => (B.material = e.materials.materials_data[B.material], B.option = e.materials.options[B.material_option], C[B.id] = B, delete B.id, C),
|
|
186885
186886
|
{}
|
|
186886
|
-
), l.options = e.materials.options.reduce(
|
|
186887
|
-
(
|
|
186887
|
+
)) ?? {}, l.options = ((I = e.materials) == null ? void 0 : I.options.reduce(
|
|
186888
|
+
(C, B) => (B.list_components = B.material_list.map((w) => e.materials.list_components[w]), C[B.id] = B, C),
|
|
186888
186889
|
{}
|
|
186889
|
-
);
|
|
186890
|
+
)) ?? {};
|
|
186890
186891
|
const c = {};
|
|
186891
|
-
return e.elements.forEach((
|
|
186892
|
-
|
|
186893
|
-
const
|
|
186894
|
-
return
|
|
186895
|
-
}),
|
|
186896
|
-
const
|
|
186897
|
-
return
|
|
186898
|
-
}),
|
|
186892
|
+
return (y = e.elements) == null || y.forEach((C) => {
|
|
186893
|
+
C.attributes = e.property_sets[C.attributes], C.property_sets = C.psets.map((B) => e.property_sets[B]), delete C.psets, C.classifications = C.classifications.map((B) => e.classifications[B]), C.systems = C.systems.map((B) => {
|
|
186894
|
+
const w = e.systems[B];
|
|
186895
|
+
return w.elements.push(C.uuid), w;
|
|
186896
|
+
}), C.layers = C.layers.map((B) => {
|
|
186897
|
+
const w = e.layers[B];
|
|
186898
|
+
return w.elements.push(C.uuid), w;
|
|
186899
|
+
}), C.material_list = C.material_list.map((B) => e.materials.list_components[B]), c[C.uuid] = C;
|
|
186899
186900
|
}), {
|
|
186900
186901
|
units: t,
|
|
186901
186902
|
definitions: n,
|
|
@@ -190244,7 +190245,7 @@ let ATi = class {
|
|
|
190244
190245
|
);
|
|
190245
190246
|
}
|
|
190246
190247
|
};
|
|
190247
|
-
const dTi = "2.8.0-beta.
|
|
190248
|
+
const dTi = "2.8.0-beta.5", hTi = {
|
|
190248
190249
|
version: dTi
|
|
190249
190250
|
};
|
|
190250
190251
|
class fTi {
|