@ifc-lite/export 4.14.0 → 6.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.
Files changed (304) hide show
  1. package/dist/anonymize-placement.d.ts.map +1 -1
  2. package/dist/anonymize-placement.js +2 -2
  3. package/dist/anonymize-placement.js.map +1 -1
  4. package/dist/attribute-slot-types.d.ts.map +1 -1
  5. package/dist/attribute-slot-types.js +3 -1
  6. package/dist/attribute-slot-types.js.map +1 -1
  7. package/dist/effective-index-created-rows.d.ts +3 -0
  8. package/dist/effective-index-created-rows.d.ts.map +1 -1
  9. package/dist/effective-index-created-rows.js +16 -5
  10. package/dist/effective-index-created-rows.js.map +1 -1
  11. package/dist/effective-index.d.ts.map +1 -1
  12. package/dist/effective-index.js +2 -1
  13. package/dist/effective-index.js.map +1 -1
  14. package/dist/entity-iteration.d.ts +1 -1
  15. package/dist/entity-iteration.d.ts.map +1 -1
  16. package/dist/entity-iteration.js.map +1 -1
  17. package/dist/generated/ifc2x3-typed-properties.d.ts +11 -0
  18. package/dist/generated/ifc2x3-typed-properties.d.ts.map +1 -0
  19. package/dist/generated/ifc2x3-typed-properties.js +49 -0
  20. package/dist/generated/ifc2x3-typed-properties.js.map +1 -0
  21. package/dist/georef-closure.d.ts +12 -0
  22. package/dist/georef-closure.d.ts.map +1 -1
  23. package/dist/georef-closure.js +3 -1
  24. package/dist/georef-closure.js.map +1 -1
  25. package/dist/ifc5-exporter.d.ts.map +1 -1
  26. package/dist/ifc5-exporter.js +3 -10
  27. package/dist/ifc5-exporter.js.map +1 -1
  28. package/dist/index.d.ts +4 -0
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +4 -0
  31. package/dist/index.js.map +1 -1
  32. package/dist/merged-bake.d.ts +32 -0
  33. package/dist/merged-bake.d.ts.map +1 -0
  34. package/dist/merged-bake.js +120 -0
  35. package/dist/merged-bake.js.map +1 -0
  36. package/dist/merged-context.d.ts +49 -6
  37. package/dist/merged-context.d.ts.map +1 -1
  38. package/dist/merged-context.js +165 -53
  39. package/dist/merged-context.js.map +1 -1
  40. package/dist/merged-exporter.d.ts +7 -14
  41. package/dist/merged-exporter.d.ts.map +1 -1
  42. package/dist/merged-exporter.js +112 -178
  43. package/dist/merged-exporter.js.map +1 -1
  44. package/dist/merged-georef-normalize.d.ts +54 -0
  45. package/dist/merged-georef-normalize.d.ts.map +1 -0
  46. package/dist/merged-georef-normalize.js +260 -0
  47. package/dist/merged-georef-normalize.js.map +1 -0
  48. package/dist/merged-guid.d.ts +5 -7
  49. package/dist/merged-guid.d.ts.map +1 -1
  50. package/dist/merged-guid.js +37 -42
  51. package/dist/merged-guid.js.map +1 -1
  52. package/dist/merged-header.d.ts +6 -0
  53. package/dist/merged-header.d.ts.map +1 -1
  54. package/dist/merged-header.js +6 -0
  55. package/dist/merged-header.js.map +1 -1
  56. package/dist/merged-inverse-claims.d.ts.map +1 -1
  57. package/dist/merged-inverse-claims.js +3 -2
  58. package/dist/merged-inverse-claims.js.map +1 -1
  59. package/dist/merged-planner-guids.d.ts +1 -0
  60. package/dist/merged-planner-guids.d.ts.map +1 -1
  61. package/dist/merged-planner-guids.js +5 -6
  62. package/dist/merged-planner-guids.js.map +1 -1
  63. package/dist/merged-project-contexts.d.ts +12 -0
  64. package/dist/merged-project-contexts.d.ts.map +1 -0
  65. package/dist/merged-project-contexts.js +56 -0
  66. package/dist/merged-project-contexts.js.map +1 -0
  67. package/dist/merged-remap.d.ts +3 -1
  68. package/dist/merged-remap.d.ts.map +1 -1
  69. package/dist/merged-remap.js +15 -1
  70. package/dist/merged-remap.js.map +1 -1
  71. package/dist/merged-subcontext.d.ts +22 -0
  72. package/dist/merged-subcontext.d.ts.map +1 -1
  73. package/dist/merged-subcontext.js +14 -18
  74. package/dist/merged-subcontext.js.map +1 -1
  75. package/dist/schema-calendar-date-values.d.ts +15 -0
  76. package/dist/schema-calendar-date-values.d.ts.map +1 -0
  77. package/dist/schema-calendar-date-values.js +107 -0
  78. package/dist/schema-calendar-date-values.js.map +1 -0
  79. package/dist/schema-calendar-dates.d.ts +11 -0
  80. package/dist/schema-calendar-dates.d.ts.map +1 -0
  81. package/dist/schema-calendar-dates.js +127 -0
  82. package/dist/schema-calendar-dates.js.map +1 -0
  83. package/dist/schema-conversion-loss-description.d.ts +3 -0
  84. package/dist/schema-conversion-loss-description.d.ts.map +1 -0
  85. package/dist/schema-conversion-loss-description.js +23 -0
  86. package/dist/schema-conversion-loss-description.js.map +1 -0
  87. package/dist/schema-conversion-loss-report.d.ts +22 -19
  88. package/dist/schema-conversion-loss-report.d.ts.map +1 -1
  89. package/dist/schema-conversion-loss-report.js +223 -61
  90. package/dist/schema-conversion-loss-report.js.map +1 -1
  91. package/dist/schema-converter-attr-maps.d.ts +63 -0
  92. package/dist/schema-converter-attr-maps.d.ts.map +1 -0
  93. package/dist/schema-converter-attr-maps.js +186 -0
  94. package/dist/schema-converter-attr-maps.js.map +1 -0
  95. package/dist/schema-converter-attr-remap.d.ts +2 -2
  96. package/dist/schema-converter-attr-remap.d.ts.map +1 -1
  97. package/dist/schema-converter-attr-remap.js +9 -5
  98. package/dist/schema-converter-attr-remap.js.map +1 -1
  99. package/dist/schema-converter-document-links.d.ts +23 -0
  100. package/dist/schema-converter-document-links.d.ts.map +1 -0
  101. package/dist/schema-converter-document-links.js +146 -0
  102. package/dist/schema-converter-document-links.js.map +1 -0
  103. package/dist/schema-converter-durations.d.ts +9 -0
  104. package/dist/schema-converter-durations.d.ts.map +1 -0
  105. package/dist/schema-converter-durations.js +60 -0
  106. package/dist/schema-converter-durations.js.map +1 -0
  107. package/dist/schema-converter-enums.d.ts +18 -2
  108. package/dist/schema-converter-enums.d.ts.map +1 -1
  109. package/dist/schema-converter-enums.js +39 -6
  110. package/dist/schema-converter-enums.js.map +1 -1
  111. package/dist/schema-converter-ifc2x3-slots.d.ts +1 -1
  112. package/dist/schema-converter-ifc2x3-slots.d.ts.map +1 -1
  113. package/dist/schema-converter-ifc2x3-slots.js +6 -5
  114. package/dist/schema-converter-ifc2x3-slots.js.map +1 -1
  115. package/dist/schema-converter-ifc4-slots.d.ts +4 -3
  116. package/dist/schema-converter-ifc4-slots.d.ts.map +1 -1
  117. package/dist/schema-converter-ifc4-slots.js +4 -3
  118. package/dist/schema-converter-ifc4-slots.js.map +1 -1
  119. package/dist/schema-converter-ifc4x3-upgrade.d.ts +5 -0
  120. package/dist/schema-converter-ifc4x3-upgrade.d.ts.map +1 -0
  121. package/dist/schema-converter-ifc4x3-upgrade.js +41 -0
  122. package/dist/schema-converter-ifc4x3-upgrade.js.map +1 -0
  123. package/dist/schema-converter-material-referent.d.ts +55 -0
  124. package/dist/schema-converter-material-referent.d.ts.map +1 -0
  125. package/dist/schema-converter-material-referent.js +184 -0
  126. package/dist/schema-converter-material-referent.js.map +1 -0
  127. package/dist/schema-converter-owner-history.d.ts +1 -1
  128. package/dist/schema-converter-owner-history.d.ts.map +1 -1
  129. package/dist/schema-converter-owner-history.js +4 -3
  130. package/dist/schema-converter-owner-history.js.map +1 -1
  131. package/dist/schema-converter-product-proxy.d.ts +0 -23
  132. package/dist/schema-converter-product-proxy.d.ts.map +1 -1
  133. package/dist/schema-converter-product-proxy.js +2 -1
  134. package/dist/schema-converter-product-proxy.js.map +1 -1
  135. package/dist/schema-converter-renames.d.ts +17 -0
  136. package/dist/schema-converter-renames.d.ts.map +1 -1
  137. package/dist/schema-converter-renames.js +34 -2
  138. package/dist/schema-converter-renames.js.map +1 -1
  139. package/dist/schema-converter-retyped.d.ts +17 -0
  140. package/dist/schema-converter-retyped.d.ts.map +1 -0
  141. package/dist/schema-converter-retyped.js +68 -0
  142. package/dist/schema-converter-retyped.js.map +1 -0
  143. package/dist/schema-converter-step-finish.d.ts +4 -0
  144. package/dist/schema-converter-step-finish.d.ts.map +1 -0
  145. package/dist/schema-converter-step-finish.js +27 -0
  146. package/dist/schema-converter-step-finish.js.map +1 -0
  147. package/dist/schema-converter-structural-axes.d.ts +48 -4
  148. package/dist/schema-converter-structural-axes.d.ts.map +1 -1
  149. package/dist/schema-converter-structural-axes.js +350 -31
  150. package/dist/schema-converter-structural-axes.js.map +1 -1
  151. package/dist/schema-converter-structural-carriers.d.ts +78 -0
  152. package/dist/schema-converter-structural-carriers.d.ts.map +1 -0
  153. package/dist/schema-converter-structural-carriers.js +336 -0
  154. package/dist/schema-converter-structural-carriers.js.map +1 -0
  155. package/dist/schema-converter-structural-diagnostics.d.ts +56 -9
  156. package/dist/schema-converter-structural-diagnostics.d.ts.map +1 -1
  157. package/dist/schema-converter-structural-diagnostics.js +170 -17
  158. package/dist/schema-converter-structural-diagnostics.js.map +1 -1
  159. package/dist/schema-converter-structural-links.d.ts +2 -2
  160. package/dist/schema-converter-structural-links.d.ts.map +1 -1
  161. package/dist/schema-converter-structural-links.js +3 -28
  162. package/dist/schema-converter-structural-links.js.map +1 -1
  163. package/dist/schema-converter-structural-source.d.ts +83 -0
  164. package/dist/schema-converter-structural-source.d.ts.map +1 -0
  165. package/dist/schema-converter-structural-source.js +207 -0
  166. package/dist/schema-converter-structural-source.js.map +1 -0
  167. package/dist/schema-converter-structural-thickness.d.ts +33 -0
  168. package/dist/schema-converter-structural-thickness.d.ts.map +1 -0
  169. package/dist/schema-converter-structural-thickness.js +155 -0
  170. package/dist/schema-converter-structural-thickness.js.map +1 -0
  171. package/dist/schema-converter-structural-varying.d.ts +21 -9
  172. package/dist/schema-converter-structural-varying.d.ts.map +1 -1
  173. package/dist/schema-converter-structural-varying.js +83 -54
  174. package/dist/schema-converter-structural-varying.js.map +1 -1
  175. package/dist/schema-converter-structural.d.ts +2 -2
  176. package/dist/schema-converter-structural.d.ts.map +1 -1
  177. package/dist/schema-converter-structural.js +9 -6
  178. package/dist/schema-converter-structural.js.map +1 -1
  179. package/dist/schema-converter-typed-properties.d.ts +30 -0
  180. package/dist/schema-converter-typed-properties.d.ts.map +1 -0
  181. package/dist/schema-converter-typed-properties.js +173 -0
  182. package/dist/schema-converter-typed-properties.js.map +1 -0
  183. package/dist/schema-converter-unrooted-upgrade.d.ts +14 -0
  184. package/dist/schema-converter-unrooted-upgrade.d.ts.map +1 -0
  185. package/dist/schema-converter-unrooted-upgrade.js +228 -0
  186. package/dist/schema-converter-unrooted-upgrade.js.map +1 -0
  187. package/dist/schema-converter-userdefined-label.d.ts +8 -0
  188. package/dist/schema-converter-userdefined-label.d.ts.map +1 -0
  189. package/dist/schema-converter-userdefined-label.js +61 -0
  190. package/dist/schema-converter-userdefined-label.js.map +1 -0
  191. package/dist/schema-converter-userdefined.d.ts +15 -0
  192. package/dist/schema-converter-userdefined.d.ts.map +1 -0
  193. package/dist/schema-converter-userdefined.js +59 -0
  194. package/dist/schema-converter-userdefined.js.map +1 -0
  195. package/dist/schema-converter-value-forms.d.ts +20 -0
  196. package/dist/schema-converter-value-forms.d.ts.map +1 -0
  197. package/dist/schema-converter-value-forms.js +225 -0
  198. package/dist/schema-converter-value-forms.js.map +1 -0
  199. package/dist/schema-converter.d.ts +10 -15
  200. package/dist/schema-converter.d.ts.map +1 -1
  201. package/dist/schema-converter.js +87 -83
  202. package/dist/schema-converter.js.map +1 -1
  203. package/dist/schema-enum-policy.d.ts +5 -1
  204. package/dist/schema-enum-policy.d.ts.map +1 -1
  205. package/dist/schema-enum-policy.js +21 -1
  206. package/dist/schema-enum-policy.js.map +1 -1
  207. package/dist/schema-ifc2x3-placements.d.ts.map +1 -1
  208. package/dist/schema-ifc2x3-placements.js +20 -31
  209. package/dist/schema-ifc2x3-placements.js.map +1 -1
  210. package/dist/schema-ifc2x3-records.d.ts.map +1 -1
  211. package/dist/schema-ifc2x3-records.js +3 -2
  212. package/dist/schema-ifc2x3-records.js.map +1 -1
  213. package/dist/schema-ifc2x3-style-assignments.d.ts +4 -0
  214. package/dist/schema-ifc2x3-style-assignments.d.ts.map +1 -0
  215. package/dist/schema-ifc2x3-style-assignments.js +33 -0
  216. package/dist/schema-ifc2x3-style-assignments.js.map +1 -0
  217. package/dist/schema-structural-varying-effective.d.ts +2 -0
  218. package/dist/schema-structural-varying-effective.d.ts.map +1 -0
  219. package/dist/schema-structural-varying-effective.js +95 -0
  220. package/dist/schema-structural-varying-effective.js.map +1 -0
  221. package/dist/schema-untranslatable.d.ts +22 -13
  222. package/dist/schema-untranslatable.d.ts.map +1 -1
  223. package/dist/schema-untranslatable.js +84 -6
  224. package/dist/schema-untranslatable.js.map +1 -1
  225. package/dist/schema-value-form-policy.d.ts +129 -0
  226. package/dist/schema-value-form-policy.d.ts.map +1 -0
  227. package/dist/schema-value-form-policy.js +255 -0
  228. package/dist/schema-value-form-policy.js.map +1 -0
  229. package/dist/step-argument-parser.d.ts +3 -3
  230. package/dist/step-argument-parser.d.ts.map +1 -1
  231. package/dist/step-argument-parser.js +6 -6
  232. package/dist/step-argument-parser.js.map +1 -1
  233. package/dist/step-collection.d.ts.map +1 -1
  234. package/dist/step-collection.js +2 -0
  235. package/dist/step-collection.js.map +1 -1
  236. package/dist/step-comment-skip.d.ts +8 -0
  237. package/dist/step-comment-skip.d.ts.map +1 -1
  238. package/dist/step-comment-skip.js +30 -0
  239. package/dist/step-comment-skip.js.map +1 -1
  240. package/dist/step-coordinate-options.d.ts +15 -0
  241. package/dist/step-coordinate-options.d.ts.map +1 -1
  242. package/dist/step-coordinate-options.js +13 -1
  243. package/dist/step-coordinate-options.js.map +1 -1
  244. package/dist/step-export-types.d.ts +5 -7
  245. package/dist/step-export-types.d.ts.map +1 -1
  246. package/dist/step-export-types.js.map +1 -1
  247. package/dist/step-exporter.d.ts +0 -6
  248. package/dist/step-exporter.d.ts.map +1 -1
  249. package/dist/step-exporter.js +19 -12
  250. package/dist/step-exporter.js.map +1 -1
  251. package/dist/step-georeferencing.d.ts +2 -0
  252. package/dist/step-georeferencing.d.ts.map +1 -1
  253. package/dist/step-georeferencing.js +126 -63
  254. package/dist/step-georeferencing.js.map +1 -1
  255. package/dist/step-header.d.ts.map +1 -1
  256. package/dist/step-header.js +1 -0
  257. package/dist/step-header.js.map +1 -1
  258. package/dist/step-internal-pset-ids.js +1 -1
  259. package/dist/step-internal-pset-ids.js.map +1 -1
  260. package/dist/step-map-unit-normalization.d.ts.map +1 -1
  261. package/dist/step-map-unit-normalization.js +5 -4
  262. package/dist/step-map-unit-normalization.js.map +1 -1
  263. package/dist/step-map-unit.d.ts +8 -1
  264. package/dist/step-map-unit.d.ts.map +1 -1
  265. package/dist/step-map-unit.js +13 -5
  266. package/dist/step-map-unit.js.map +1 -1
  267. package/dist/step-omission-predicates.d.ts.map +1 -1
  268. package/dist/step-omission-predicates.js +1 -0
  269. package/dist/step-omission-predicates.js.map +1 -1
  270. package/dist/step-overlay-entities.d.ts +0 -35
  271. package/dist/step-overlay-entities.d.ts.map +1 -1
  272. package/dist/step-overlay-entities.js +38 -2
  273. package/dist/step-overlay-entities.js.map +1 -1
  274. package/dist/step-pass-builder.d.ts.map +1 -1
  275. package/dist/step-pass-builder.js +59 -7
  276. package/dist/step-pass-builder.js.map +1 -1
  277. package/dist/step-record-frame.d.ts +5 -3
  278. package/dist/step-record-frame.d.ts.map +1 -1
  279. package/dist/step-record-frame.js +12 -8
  280. package/dist/step-record-frame.js.map +1 -1
  281. package/dist/step-ref-scan.d.ts +12 -0
  282. package/dist/step-ref-scan.d.ts.map +1 -1
  283. package/dist/step-ref-scan.js +24 -3
  284. package/dist/step-ref-scan.js.map +1 -1
  285. package/dist/step-serialization.d.ts +12 -0
  286. package/dist/step-serialization.d.ts.map +1 -1
  287. package/dist/step-serialization.js +15 -0
  288. package/dist/step-serialization.js.map +1 -1
  289. package/dist/step-slot-grammar.d.ts +3 -2
  290. package/dist/step-slot-grammar.d.ts.map +1 -1
  291. package/dist/step-slot-grammar.js +5 -5
  292. package/dist/step-slot-grammar.js.map +1 -1
  293. package/dist/step-source-iteration.d.ts.map +1 -1
  294. package/dist/step-source-iteration.js +6 -9
  295. package/dist/step-source-iteration.js.map +1 -1
  296. package/dist/unit-normalize.d.ts +2 -2
  297. package/dist/unit-normalize.d.ts.map +1 -1
  298. package/dist/unit-normalize.js +23 -13
  299. package/dist/unit-normalize.js.map +1 -1
  300. package/dist/viewer-georef-scale.d.ts +14 -0
  301. package/dist/viewer-georef-scale.d.ts.map +1 -0
  302. package/dist/viewer-georef-scale.js +20 -0
  303. package/dist/viewer-georef-scale.js.map +1 -0
  304. package/package.json +41 -8
@@ -4,25 +4,93 @@ import { getSchemaRegistryForVersion, getCanonicalEntityName } from '@ifc-lite/p
4
4
  import { convertEntityType } from './schema-converter.js';
5
5
  import { destabilizingUnknown, isStructuralAssignmentConversion } from './schema-converter-structural.js';
6
6
  import { StructuralAxes } from './schema-converter-structural-axes.js';
7
+ import { CAUSED_BY, StructuralCarriers } from './schema-converter-structural-carriers.js';
8
+ import { conversionMode, namesWithheld, SourceRecords } from './schema-converter-structural-source.js';
9
+ import { holdsValue, withoutComments } from './step-comment-skip.js';
10
+ import { StructuralThickness, THICKNESS_WRITTEN } from './schema-converter-structural-thickness.js';
7
11
  import { StructuralLinks } from './schema-converter-structural-links.js';
8
- import { StructuralVarying } from './schema-converter-structural-varying.js';
12
+ import { SHARED_CONFIGURATION, StructuralVarying, varyingTarget } from './schema-converter-structural-varying.js';
13
+ import { computeWithheldRefIds } from './schema-untranslatable.js';
9
14
  import { readStepSlots } from './step-argument-parser.js';
10
15
  import { referencesAnyExpressId } from './step-ref-scan.js';
16
+ import { finishEffectiveVarying } from './schema-structural-varying-effective.js';
17
+ const NONE = new Set();
18
+ const CAUSED_BY_UNCONVERTED = "IFC2X3 CausedBy of a varying action that stays unconverted is kept only in that IFC2X3 record; no 'Causes' relationship is written";
11
19
  const LINK = 'IfcRelAssignsToProduct linking one structural member to its element is written as IfcRelConnectsStructuralElement, the IFC2X3 physical-to-analytical link';
20
+ /**
21
+ * IFC2X3 -> IFC4: the type the export writes varying action `entity` as when
22
+ * it reports its CausedBy as not coming back: an unconverted action naming a
23
+ * point reaction keeps it only in its IFC2X3 record, and a converted one loses
24
+ * it unless one 'Causes' relationship restores it (`cause`, from `noteCause`).
25
+ * Null when it reports nothing.
26
+ */
27
+ function strandedAs(entity, args, unconverted, reaction, cause) {
28
+ const target = varyingTarget(entity);
29
+ // The export's own warning test (#10779): `$`, `*` or empty, comments aside, is no value.
30
+ if (!target || !holdsValue(args[CAUSED_BY] ?? ''))
31
+ return null;
32
+ // An unconverted action naming no point reaction keeps CausedBy unreported.
33
+ if (unconverted)
34
+ return reaction ? entity : null;
35
+ return cause?.restored ? null : target;
36
+ }
12
37
  export class StructuralDiagnostics {
38
+ roundTrip;
13
39
  axes = new StructuralAxes();
14
40
  links = new StructuralLinks();
15
41
  varying = new StructuralVarying();
42
+ deferredVarying;
43
+ carriers = new StructuralCarriers();
44
+ thickness = new StructuralThickness();
16
45
  losses = new Map();
17
- /** The source prepasses for an IFC2X3 <-> IFC4 export; the caller arms them only for an unedited full export. */
18
- fromStore(store, from, to) {
19
- if (from === 'IFC2X3')
20
- this.axes.fromStore(store);
21
- else
46
+ /** Source record id -> attributes the target holds elsewhere (`note*`), which `inspect` does not report lost. */
47
+ carried = new Map();
48
+ /** Source record id -> attributes the target leaves out or holds elsewhere that the reverse conversion writes back. */
49
+ restored = new Map();
50
+ /** Source record id -> the type an IFC2X3 varying action is written as when the export reports its CausedBy (`strandedAs`). */
51
+ stranded = new Map();
52
+ /** `roundTrip`: also find what the reverse conversion restores (`structuralRoundTrip`); an export does not. */
53
+ constructor(roundTrip = false) {
54
+ this.roundTrip = roundTrip;
55
+ this.carriers.roundTrip = roundTrip;
56
+ }
57
+ /**
58
+ * The source prepasses for an IFC2X3 <-> IFC4 export; the caller arms them
59
+ * only for an unedited full export.
60
+ */
61
+ fromStore(store, from, to, source = new SourceRecords(store)) {
62
+ if (from !== 'IFC2X3')
22
63
  this.links.fromStore(store);
23
- this.varying.fromStore(store, from, to);
64
+ this.varying.fromSource(source, from, to);
65
+ this.axes.fromStore(source, from, to);
66
+ this.carriers.fromStore(source, from, to);
67
+ this.thickness.fromStore(source, from, to);
68
+ }
69
+ /** The exporter's express-id allocator, for the records the prepasses add. */
70
+ set ids(next) { this.varying.ids = next; this.carriers.ids = next; this.thickness.ids = next; this.axes.ids = next; }
71
+ /** Records the prepasses added, to append after the source records. */
72
+ added() { return [...this.varying.added(), ...this.carriers.added(), ...this.thickness.added(), ...this.axes.added()]; }
73
+ /** An already converted IFC2X3 <-> IFC4 line with the values carriers fill in place (`StructuralCarriers.after`). */
74
+ after(line, withheld) {
75
+ if (!this.carriers.rewritesAfter)
76
+ return line;
77
+ const filled = this.carriers.after(Number(/^\s*#(\d+)/.exec(line)?.[1]), line, withheld);
78
+ if (!filled)
79
+ return line;
80
+ if (filled.loss)
81
+ this.record(filled.loss);
82
+ return filled.line;
24
83
  }
25
- inspect(line, from, to) {
84
+ /** Clear one omission once the writer has emitted a replacement property. */
85
+ restoreOmittedValue(entity, attribute, to) {
86
+ const message = entity + '.' + attribute + ' has no slot in ' + to + '; its value is omitted';
87
+ const count = this.losses.get(message);
88
+ if (count === 1)
89
+ this.losses.delete(message);
90
+ else if (count)
91
+ this.losses.set(message, count - 1);
92
+ }
93
+ inspect(id, line, from, to) {
26
94
  const assignment = /^\s*#\d+\s*=\s*IFCRELCONNECTSSTRUCTURALELEMENT\s*\(/i.test(line) ? readStepSlots(line) : null;
27
95
  if (assignment && isStructuralAssignmentConversion(assignment.type, from, to)) {
28
96
  this.record('IfcRelConnectsStructuralElement is mapped to IfcRelAssignsToProduct; the relationship kind is not kept in the target file');
@@ -33,8 +101,14 @@ export class StructuralDiagnostics {
33
101
  if (!/^\s*#\d+\s*=\s*(?:IFCSTRUCTURAL|IFCRELCONNECTSSTRUCTURAL|IFCRELASSOCIATESPROFILEPROPERTIES)/i.test(line))
34
102
  return;
35
103
  const rec = readStepSlots(line);
104
+ if (rec && this.deferredVarying && varyingTarget(rec.type))
105
+ return;
36
106
  if (!rec || !(rec.type.startsWith('IFCSTRUCTURAL') || rec.type.startsWith('IFCRELCONNECTSSTRUCTURAL') || rec.type === 'IFCRELASSOCIATESPROFILEPROPERTIES'))
37
107
  return;
108
+ // Recorded here, where the record takes the generic path, never for one withheld or rewritten.
109
+ const notice = this.thickness.notice(id, rec.type, rec.slots);
110
+ if (notice)
111
+ this.record(notice);
38
112
  const source = getSchemaRegistryForVersion(from), target = getSchemaRegistryForVersion(to);
39
113
  const name = getCanonicalEntityName(source, rec.type);
40
114
  if (!name)
@@ -48,14 +122,19 @@ export class StructuralDiagnostics {
48
122
  return;
49
123
  }
50
124
  const tgt = (meta.allAttributes ?? meta.attributes).map(a => a.name);
125
+ const carried = this.carried.get(id);
126
+ this.carried.delete(id);
51
127
  src.forEach((attr, i) => {
52
128
  // CONST is intrinsic to IFC2X3 linear/planar actions, not lost data.
53
- if (attr.name === 'PredefinedType' && rec.slots[i]?.trim() === '.CONST.'
129
+ if (attr.name === 'PredefinedType' && withoutComments(rec.slots[i] ?? '') === '.CONST.'
54
130
  && ['IFCSTRUCTURALCURVEACTION', 'IFCSTRUCTURALSURFACEACTION', 'IFCSTRUCTURALLINEARACTION', 'IFCSTRUCTURALPLANARACTION'].includes(rec.type))
55
131
  return;
56
- if (attr.name === 'DestabilizingLoad' && rec.slots[i]?.trim() === '$' && to === 'IFC2X3')
132
+ if (attr.name === 'DestabilizingLoad' && withoutComments(rec.slots[i] ?? '') === '$' && to === 'IFC2X3')
57
133
  this.record(destabilizingUnknown(rec.type));
58
- if (!tgt.includes(attr.name) && rec.slots[i] && !['$', '*', ''].includes(rec.slots[i].trim())) {
134
+ if (carried?.has(attr.name))
135
+ return;
136
+ // The dropped count's own test (#10779): a comment-only slot is no value.
137
+ if (!tgt.includes(attr.name) && holdsValue(rec.slots[i] ?? '')) {
59
138
  const effect = attr.name === 'ConditionCoordinateSystem' ? '; restraint directions in that coordinate system are not preserved' : '';
60
139
  this.record(`${rec.type}.${attr.name} has no slot in ${to}; its value is omitted${effect}`);
61
140
  }
@@ -66,19 +145,93 @@ export class StructuralDiagnostics {
66
145
  }
67
146
  /**
68
147
  * A record written as another entity from source-derived facts (`StructuralLinks`,
69
- * `StructuralVarying`, each armed only for its schema pair): the target record body,
70
- * reported because the class changes. A body still naming a `withheld` id is
71
- * refused, and then nothing is reported.
148
+ * `StructuralVarying`, `StructuralCarriers`, `StructuralThickness`, each armed only for its schema pair):
149
+ * the target record body, or `null` for a carrier record the target leaves out.
150
+ * A body still naming a `withheld` id is refused, and then nothing is reported.
72
151
  */
73
- rewrite(entity, args, withheld) {
152
+ rewrite(id, entity, args, withheld) {
153
+ // A record naming a withheld id becomes a proxy, which the reverse conversion derives nothing for.
154
+ if (this.roundTrip && !namesWithheld(args, withheld))
155
+ this.restore(id, this.carriers.restoredFrom(id));
156
+ // An IFC2X3 varying action that stays unconverted is no IFC4 product a 'Causes' relationship could name.
157
+ const unconverted = this.varying.staysUnconverted(entity, args);
158
+ const reaction = this.carriers.causeOf(entity, args, withheld) !== null;
159
+ if (unconverted && reaction)
160
+ this.record(CAUSED_BY_UNCONVERTED);
161
+ const cause = unconverted ? null : this.carriers.noteCause(id, entity, args, withheld);
162
+ const stranded = this.roundTrip ? strandedAs(entity, args, unconverted, reaction, cause) : null;
163
+ if (stranded)
164
+ this.stranded.set(id, stranded);
165
+ const thickness = cause ? [] : this.thickness.note(id, entity, args, withheld);
166
+ const axis = cause || thickness.length ? null : this.axes.hold(id, args, withheld);
167
+ const held = cause ? ['CausedBy'] : axis ? ['Axis'] : thickness;
168
+ let carried = NONE;
169
+ if (held.length) {
170
+ carried = new Set(held);
171
+ this.record(cause?.message ?? axis ?? THICKNESS_WRITTEN);
172
+ this.carried.set(id, carried);
173
+ // The downgrade reads a held thickness back (`StructuralThickness.rewrite`); a cause only when it says so.
174
+ if (this.roundTrip && cause?.restored !== false && (!axis || this.axes.fillWritten(id)))
175
+ this.restore(id, held);
176
+ }
74
177
  const attrs = this.links.link(entity, args);
75
- const rewrite = attrs ? { body: `IFCRELCONNECTSSTRUCTURALELEMENT(${attrs})`, losses: [LINK] } : this.varying.rewrite(entity, args);
76
- if (!rewrite || (withheld && referencesAnyExpressId(rewrite.body, withheld)))
178
+ const rewrite = attrs ? { body: `IFCRELCONNECTSSTRUCTURALELEMENT(${attrs})`, losses: [LINK] }
179
+ : this.varying.rewrite(id, entity, args, carried) ?? this.carriers.rewrite(id, entity, args, withheld)
180
+ ?? this.thickness.rewrite(id, entity, args) ?? this.axes.rewrite(id, args, withheld);
181
+ if (!rewrite || (withheld && rewrite.body !== null && referencesAnyExpressId(rewrite.body, withheld)))
77
182
  return undefined;
78
183
  rewrite.losses.forEach((loss) => this.record(loss));
184
+ rewrite.restored?.forEach(([source, attributes]) => this.restore(source, attributes));
185
+ // A rewritten record skips `inspect`, which would free this.
186
+ this.carried.delete(id);
79
187
  return rewrite.body;
80
188
  }
189
+ restore(id, attributes) {
190
+ if (!this.roundTrip || !attributes.length)
191
+ return;
192
+ const set = this.restored.get(id) ?? new Set();
193
+ attributes.forEach((a) => set.add(a));
194
+ this.restored.set(id, set);
195
+ }
196
+ /** What `rewrite` found: per source record id, the attributes a carrier writes back on the reverse conversion, and the target type of a varying action whose CausedBy the export reports. */
197
+ roundTripResult() { return { restored: this.restored, stranded: this.stranded }; }
198
+ /** Convert retained varying actions and return the number of records appended. */
199
+ finishEffectiveVarying(lines) {
200
+ const deferred = this.deferredVarying;
201
+ return deferred ? finishEffectiveVarying(lines, deferred.includeRelationships, (message) => this.record(message)) : 0;
202
+ }
81
203
  record(message) { this.losses.set(message, (this.losses.get(message) ?? 0) + 1); }
82
204
  warnings() { return [...this.losses].sort(([a], [b]) => a.localeCompare(b)).map(([message, count]) => `${count} structural conversion record(s): ${message} (#9668).`); }
83
205
  }
206
+ /** The round trip of a file the carriers do not run for. */
207
+ export const NO_ROUND_TRIP = { restored: new Map(), stranded: new Map() };
208
+ export function structuralRoundTrip(store, from, to, ids) {
209
+ if (!conversionMode(from, to) || !ids.length)
210
+ return NO_ROUND_TRIP;
211
+ try {
212
+ const source = new SourceRecords(store);
213
+ const records = ids.filter((id) => source.type(id)?.startsWith('IFCSTRUCTURAL'));
214
+ if (!records.length)
215
+ return NO_ROUND_TRIP;
216
+ const run = new StructuralDiagnostics(true);
217
+ run.fromStore(store, from, to, source);
218
+ // Nothing is written, so every added record may take the same id.
219
+ run.ids = () => 0;
220
+ // Only an IFC2X3 target withholds ids.
221
+ const withheld = to === 'IFC2X3' ? computeWithheldRefIds(store, to) : undefined;
222
+ for (const id of records) {
223
+ const slots = source.slots(id);
224
+ if (slots)
225
+ run.rewrite(id, source.type(id), slots, withheld);
226
+ }
227
+ return run.roundTripResult();
228
+ }
229
+ catch (error) {
230
+ // The schema-only preview remains available even when the carrier prepass fails.
231
+ if (!(error instanceof Error && error.message === SHARED_CONFIGURATION)) {
232
+ console.warn('[analyzeConversionLoss] Could not evaluate structural carriers', error);
233
+ }
234
+ return NO_ROUND_TRIP;
235
+ }
236
+ }
84
237
  //# sourceMappingURL=schema-converter-structural-diagnostics.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema-converter-structural-diagnostics.js","sourceRoot":"","sources":["../src/schema-converter-structural-diagnostics.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,wEAAwE;AACxE,OAAO,EAAE,2BAA2B,EAAE,sBAAsB,EAAqB,MAAM,kBAAkB,CAAC;AAC1G,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAC;AAC1G,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,MAAM,IAAI,GAAG,2JAA2J,CAAC;AAEzK,MAAM,OAAO,qBAAqB;IACvB,IAAI,GAAG,IAAI,cAAc,E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YACzB,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YAC/B,IAAI,KAAK;gBAAE,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;QAChE,CAAC;QACD,OAAO,GAAG,CAAC,eAAe,EAAE,CAAC;IAC/B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,iFAAiF;QACjF,IAAI,CAAC,CAAC,KAAK,YAAY,KAAK,IAAI,KAAK,CAAC,OAAO,KAAK,oBAAoB,CAAC,EAAE,CAAC;YACxE,OAAO,CAAC,IAAI,CAAC,gEAAgE,EAAE,KAAK,CAAC,CAAC;QACxF,CAAC;QACD,OAAO,aAAa,CAAC;IACvB,CAAC;AACH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /** Matches rust/export/src/schema_structural_links.rs (#9668). */
2
- import { type IfcDataStore } from '@ifc-lite/parser';
2
+ import { type SourceStore } from './schema-converter-structural-source.js';
3
3
  /**
4
4
  * IFC4 -> IFC2X3: the physical-to-analytical link back to its IFC2X3 entity.
5
5
  * IFC2X3 links an element to its analytical member with
@@ -14,7 +14,7 @@ import { type IfcDataStore } from '@ifc-lite/parser';
14
14
  */
15
15
  export declare class StructuralLinks {
16
16
  private typeOf;
17
- fromStore(store: IfcDataStore): void;
17
+ fromStore(store: SourceStore): void;
18
18
  /** The IfcRelConnectsStructuralElement attributes for an IFC4 `IFCRELASSIGNSTOPRODUCT` record of that shape. */
19
19
  link(entity: string, args: readonly string[]): string | undefined;
20
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"schema-converter-structural-links.d.ts","sourceRoot":"","sources":["../src/schema-converter-structural-links.ts"],"names":[],"mappings":"AACA,kEAAkE;AAClE,OAAO,EAAuD,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAiC1G;;;;;;;;;;;GAWG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAqD;IAEnE,SAAS,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI;IAMpC,gHAAgH;IAChH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS;CAOlE"}
1
+ {"version":3,"file":"schema-converter-structural-links.d.ts","sourceRoot":"","sources":["../src/schema-converter-structural-links.ts"],"names":[],"mappings":"AACA,kEAAkE;AAClE,OAAO,EAAiC,KAAK,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAQ1G;;;;;;;;;;;GAWG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAqD;IAEnE,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAMnC,gHAAgH;IAChH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS;CAOlE"}
@@ -1,35 +1,10 @@
1
1
  /* SPDX-License-Identifier: MPL-2.0 */
2
2
  /** Matches rust/export/src/schema_structural_links.rs (#9668). */
3
- import { getCanonicalEntityName, getSchemaRegistryForVersion } from '@ifc-lite/parser';
3
+ import { isSubtype, slotRef, slotUnset } from './schema-converter-structural-source.js';
4
4
  import { convertEntityType } from './schema-converter.js';
5
5
  import { listItems } from './schema-converter-structural-axes.js';
6
- import { skipStepTrivia } from './step-slot-grammar.js';
7
- /** An entity reference slot, with STEP whitespace and comments around it allowed (#10248). */
8
- function slotRef(token) {
9
- const start = skipStepTrivia(token ?? '', 0);
10
- const m = start < 0 ? null : /^#\s*(\d+)/.exec(token.slice(start));
11
- return m && skipStepTrivia(token, start + m[0].length) === token.length ? Number(m[1]) : null;
12
- }
13
- /** Whether the slot is the unset marker `$`, with STEP whitespace and comments around it allowed (#10248). */
14
- function slotUnset(token) {
15
- const start = skipStepTrivia(token, 0);
16
- return start >= 0 && token[start] === '$' && skipStepTrivia(token, start + 1) === token.length;
17
- }
18
- const BECOMES = new Map();
19
- /** Whether IFC4 `keyword` converts to an IFC2X3 subtype of `parent`, memoized per pair. */
20
- function becomes(keyword, parent) {
21
- if (!keyword)
22
- return false;
23
- const key = `${keyword} ${parent}`;
24
- let known = BECOMES.get(key);
25
- if (known === undefined) {
26
- const registry = getSchemaRegistryForVersion('IFC2X3');
27
- const name = getCanonicalEntityName(registry, convertEntityType(keyword, 'IFC4', 'IFC2X3'));
28
- known = !!name && registry.entities[name]?.inheritanceChain?.includes(parent) === true;
29
- BECOMES.set(key, known);
30
- }
31
- return known;
32
- }
6
+ /** Whether IFC4 `keyword` converts to an IFC2X3 subtype of `parent`. */
7
+ const becomes = (keyword, parent) => !!keyword && isSubtype('IFC2X3', convertEntityType(keyword, 'IFC4', 'IFC2X3'), parent);
33
8
  /**
34
9
  * IFC4 -> IFC2X3: the physical-to-analytical link back to its IFC2X3 entity.
35
10
  * IFC2X3 links an element to its analytical member with
@@ -1 +1 @@
1
- {"version":3,"file":"schema-converter-structural-links.js","sourceRoot":"","sources":["../src/schema-converter-structural-links.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,kEAAkE;AAClE,OAAO,EAAE,sBAAsB,EAAE,2BAA2B,EAAqB,MAAM,kBAAkB,CAAC;AAC1G,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,8FAA8F;AAC9F,SAAS,OAAO,CAAC,KAAyB;IACxC,MAAM,KAAK,GAAG,cAAc,CAAC,KAAK,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IAC7C,MAAM,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,KAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IACpE,OA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AC;CACF"}
1
+ {"version":3,"file":"schema-converter-structural-links.js","sourceRoot":"","sources":["../src/schema-converter-structural-links.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,kEAAkE;AAClE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAoB,MAAM,yCAAyC,CAAC;AAC1G,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAElE,wEAAwE;AACxE,MAAM,OAAO,GAAG,CAAC,OAA2B,EAAE,MAAc,EAAW,EAAE,CACvE,CAAC,CAAC,OAAO,IAAI,SAAS,CAAC,QAAQ,EAAE,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;AAEzF;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,eAAe;IAClB,MAAM,GAAgD,IAAI,CAAC;IAEnE,SAAS,CAAC,KAAkB;QAC1B,mGAAmG;QACnG,MAAM,IAAI,GAAG,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC;IACzD,CAAC;IAED,gHAAgH;IAChH,IAAI,CAAC,MAAc,EAAE,IAAuB;QAC1C,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,MAAM,KAAK,wBAAwB,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAAE,OAAO,SAAS,CAAC;QACtH,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACnC,MAAM,MAAM,GAAG,OAAO,EAAE,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAC9F,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,KAAK,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC;YAAE,OAAO,SAAS,CAAC;QAClK,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,OAAO,KAAK,MAAM,EAAE,CAAC;IAChE,CAAC;CACF"}
@@ -0,0 +1,83 @@
1
+ import { type IfcDataStore } from '@ifc-lite/parser';
2
+ export type ConversionMode = 'upgrade' | 'downgrade' | null;
3
+ /** What the prepasses read: the source index and bytes. */
4
+ export type SourceStore = Pick<IfcDataStore, 'entityIndex' | 'deferredEntityIndex' | 'source'>;
5
+ /** IFC2X3 -> IFC4 is an upgrade, IFC4 -> IFC2X3 a downgrade; the prepasses run for nothing else. */
6
+ export declare const conversionMode: (from: string, to: string) => ConversionMode;
7
+ /** Whether any of `args` names an id this export withholds. */
8
+ export declare const namesWithheld: (args: readonly string[] | undefined, withheld: ReadonlySet<number> | undefined) => boolean;
9
+ /**
10
+ * A target record body, `null` for a source record the target leaves out, and
11
+ * what the change loses or moves. `restored` names, per source record id, the
12
+ * attributes the target holds elsewhere and the reverse conversion writes back;
13
+ * the loss report leaves them out (`structuralRoundTrip`).
14
+ */
15
+ export interface StructuralRewrite {
16
+ readonly body: string | null;
17
+ readonly losses: readonly string[];
18
+ readonly restored?: readonly (readonly [number, readonly string[]])[];
19
+ }
20
+ /** Whether `keyword` names a subtype of `parent` in `schema`, memoized per triple. */
21
+ export declare function isSubtype(schema: 'IFC2X3' | 'IFC4', keyword: string | undefined, parent: string): boolean;
22
+ /** Source records read by id, each decoded once. Lives only for one prepass. */
23
+ export declare class SourceRecords {
24
+ private readonly store;
25
+ private readonly keptIdsByType;
26
+ private readonly cache;
27
+ constructor(store: SourceStore);
28
+ hasIndexedRecords(): boolean;
29
+ private decode;
30
+ /**
31
+ * How many source records name each of `targets`, outside strings and
32
+ * comments. Reads every record, so callers ask only when they have targets.
33
+ */
34
+ referrers(targets: ReadonlySet<number>): Map<number, number>;
35
+ /**
36
+ * Each source record naming any of `targets` outside strings and comments,
37
+ * and which ones. Reads every record and caches nothing, so callers ask only
38
+ * when they have targets.
39
+ */
40
+ naming(targets: ReadonlySet<number>): Generator<{
41
+ id: number;
42
+ named: ReadonlySet<number>;
43
+ }>;
44
+ /** The kept source records, including deferred atoms, without caching their text. */
45
+ texts(): Generator<{
46
+ id: number;
47
+ text: string;
48
+ }>;
49
+ /** A repeated id belongs to its last record, at that record's position. */
50
+ ids(type: string): readonly number[];
51
+ private entry;
52
+ type(id: number | null): string | undefined;
53
+ /** The record's source text, as written. */
54
+ text(id: number): string | undefined;
55
+ slots(id: number | null): readonly string[] | undefined;
56
+ }
57
+ /** An entity reference slot, with STEP whitespace and comments around it allowed (#10248). */
58
+ export declare function slotRef(token: string | undefined): number | null;
59
+ /** Whether the slot is the unset marker `$`, with STEP whitespace and comments around it allowed (#10248). */
60
+ export declare function slotUnset(token: string | undefined): boolean;
61
+ /** The bare number of `token`, given as such or wrapped as `TYPE(n)`, or null when it is not a finite number. */
62
+ export declare function bareMeasure(token: string | undefined, type: string): string | null;
63
+ /** The text of a STEP string token, or null. Only compared with fixed names here, so escapes need no decoding. */
64
+ export declare function stepString(token: string | undefined): string | null;
65
+ /** A property set attached by an IfcRelDefinesByProperties, read from the source. */
66
+ export interface CarrierSet {
67
+ readonly rel: number;
68
+ readonly pset: number;
69
+ readonly related: readonly number[];
70
+ /** Property name -> its id; empty for a set that names two properties alike or lists one it cannot read, or whose relationship lists a non-reference; such a set is never read. */
71
+ readonly props: ReadonlyMap<string, number>;
72
+ /** Whether the set and each of its properties are named by no other source record than this relationship and this set; undefined unless `checkExclusive`. */
73
+ readonly exclusive?: boolean;
74
+ }
75
+ /** Every property set named `name` in the source, with what it relates to; `exclusive`, which reads every record, only with `checkExclusive`. */
76
+ export declare function readCarrierSets(source: SourceRecords, name: string, checkExclusive?: boolean): CarrierSet[];
77
+ /**
78
+ * The records of a property set named `name` holding `properties` (STEP bodies
79
+ * such as `IFCPROPERTYSINGLEVALUE(...)`) and relating it to `object`, with
80
+ * GlobalIds derived from `seed`. `ids` numbers them in the target file.
81
+ */
82
+ export declare function writeCarrierSet(ids: () => number, seed: string, ownerHistory: string, name: string, object: number, properties: readonly string[]): string[];
83
+ //# sourceMappingURL=schema-converter-structural-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-converter-structural-source.d.ts","sourceRoot":"","sources":["../src/schema-converter-structural-source.ts"],"names":[],"mappings":"AAOA,OAAO,EAA8E,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAQjI,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,WAAW,GAAG,IAAI,CAAC;AAE5D,2DAA2D;AAC3D,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,EAAE,aAAa,GAAG,qBAAqB,GAAG,QAAQ,CAAC,CAAC;AAE/F,oGAAoG;AACpG,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,EAAE,IAAI,MAAM,KAAG,cACgD,CAAC;AAE3G,+DAA+D;AAC/D,eAAO,MAAM,aAAa,GAAI,MAAM,SAAS,MAAM,EAAE,GAAG,SAAS,EAAE,UAAU,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,KAAG,OACjC,CAAC;AAE/E;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,C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