@ifc-lite/export 4.13.3 → 5.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 (342) hide show
  1. package/dist/affected-set.d.ts.map +1 -1
  2. package/dist/affected-set.js +9 -2
  3. package/dist/affected-set.js.map +1 -1
  4. package/dist/anonymize-export.js +2 -2
  5. package/dist/anonymize-export.js.map +1 -1
  6. package/dist/anonymize-scrub.js +3 -3
  7. package/dist/anonymize-scrub.js.map +1 -1
  8. package/dist/appearance-dependencies.js +1 -1
  9. package/dist/appearance-dependencies.js.map +1 -1
  10. package/dist/attribute-real-slots.js +1 -1
  11. package/dist/attribute-real-slots.js.map +1 -1
  12. package/dist/attribute-slot-types.d.ts.map +1 -1
  13. package/dist/attribute-slot-types.js +22 -14
  14. package/dist/attribute-slot-types.js.map +1 -1
  15. package/dist/authored-resource-cleanup.js +1 -1
  16. package/dist/authored-resource-cleanup.js.map +1 -1
  17. package/dist/declared-property-type.d.ts.map +1 -1
  18. package/dist/declared-property-type.js +5 -4
  19. package/dist/declared-property-type.js.map +1 -1
  20. package/dist/edit-ownership.d.ts +8 -0
  21. package/dist/edit-ownership.d.ts.map +1 -1
  22. package/dist/edit-ownership.js +58 -44
  23. package/dist/edit-ownership.js.map +1 -1
  24. package/dist/effective-index-created-rows.d.ts +22 -0
  25. package/dist/effective-index-created-rows.d.ts.map +1 -0
  26. package/dist/effective-index-created-rows.js +48 -0
  27. package/dist/effective-index-created-rows.js.map +1 -0
  28. package/dist/effective-index.d.ts.map +1 -1
  29. package/dist/effective-index.js +4 -3
  30. package/dist/effective-index.js.map +1 -1
  31. package/dist/effective-source-record.js +1 -1
  32. package/dist/effective-source-record.js.map +1 -1
  33. package/dist/entity-subgraph.d.ts +6 -2
  34. package/dist/entity-subgraph.d.ts.map +1 -1
  35. package/dist/entity-subgraph.js +70 -5
  36. package/dist/entity-subgraph.js.map +1 -1
  37. package/dist/entity-type-sets.d.ts +2 -19
  38. package/dist/entity-type-sets.d.ts.map +1 -1
  39. package/dist/entity-type-sets.js +14 -4
  40. package/dist/entity-type-sets.js.map +1 -1
  41. package/dist/georef-closure.d.ts +12 -0
  42. package/dist/georef-closure.d.ts.map +1 -1
  43. package/dist/georef-closure.js +3 -1
  44. package/dist/georef-closure.js.map +1 -1
  45. package/dist/ifc4-registry.d.ts +14 -0
  46. package/dist/ifc4-registry.d.ts.map +1 -0
  47. package/dist/ifc4-registry.js +22 -0
  48. package/dist/ifc4-registry.js.map +1 -0
  49. package/dist/ifc5-effective-rows.js +1 -1
  50. package/dist/ifc5-effective-rows.js.map +1 -1
  51. package/dist/ifc5-exporter.d.ts.map +1 -1
  52. package/dist/ifc5-exporter.js +3 -10
  53. package/dist/ifc5-exporter.js.map +1 -1
  54. package/dist/ifc5-tree-scope.js +2 -2
  55. package/dist/ifc5-tree-scope.js.map +1 -1
  56. package/dist/index.d.ts +8 -2
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/index.js +8 -2
  59. package/dist/index.js.map +1 -1
  60. package/dist/lod0-generator.d.ts.map +1 -1
  61. package/dist/lod0-generator.js +14 -8
  62. package/dist/lod0-generator.js.map +1 -1
  63. package/dist/merged-bake.d.ts +32 -0
  64. package/dist/merged-bake.d.ts.map +1 -0
  65. package/dist/merged-bake.js +120 -0
  66. package/dist/merged-bake.js.map +1 -0
  67. package/dist/merged-context.d.ts +49 -6
  68. package/dist/merged-context.d.ts.map +1 -1
  69. package/dist/merged-context.js +165 -53
  70. package/dist/merged-context.js.map +1 -1
  71. package/dist/merged-exporter.d.ts +7 -14
  72. package/dist/merged-exporter.d.ts.map +1 -1
  73. package/dist/merged-exporter.js +48 -113
  74. package/dist/merged-exporter.js.map +1 -1
  75. package/dist/merged-georef-normalize.d.ts +54 -0
  76. package/dist/merged-georef-normalize.d.ts.map +1 -0
  77. package/dist/merged-georef-normalize.js +260 -0
  78. package/dist/merged-georef-normalize.js.map +1 -0
  79. package/dist/merged-project-contexts.d.ts +12 -0
  80. package/dist/merged-project-contexts.d.ts.map +1 -0
  81. package/dist/merged-project-contexts.js +56 -0
  82. package/dist/merged-project-contexts.js.map +1 -0
  83. package/dist/merged-remap.d.ts +2 -0
  84. package/dist/merged-remap.d.ts.map +1 -1
  85. package/dist/merged-remap.js +10 -0
  86. package/dist/merged-remap.js.map +1 -1
  87. package/dist/merged-subcontext.d.ts +22 -0
  88. package/dist/merged-subcontext.d.ts.map +1 -1
  89. package/dist/merged-subcontext.js +14 -18
  90. package/dist/merged-subcontext.js.map +1 -1
  91. package/dist/nonrel-positional-ref-narrowing.js +6 -6
  92. package/dist/nonrel-positional-ref-narrowing.js.map +1 -1
  93. package/dist/nonrel-ref-list-types.d.ts +4 -4
  94. package/dist/nonrel-ref-list-types.d.ts.map +1 -1
  95. package/dist/nonrel-ref-list-types.js +19 -7
  96. package/dist/nonrel-ref-list-types.js.map +1 -1
  97. package/dist/parquet-created-entity-rows.js +1 -1
  98. package/dist/parquet-created-entity-rows.js.map +1 -1
  99. package/dist/parquet-relationship-rows.js +1 -1
  100. package/dist/parquet-relationship-rows.js.map +1 -1
  101. package/dist/reference-collector.d.ts.map +1 -1
  102. package/dist/reference-collector.js +2 -2
  103. package/dist/reference-collector.js.map +1 -1
  104. package/dist/registry-entity-names.d.ts +6 -2
  105. package/dist/registry-entity-names.d.ts.map +1 -1
  106. package/dist/registry-entity-names.js +10 -2
  107. package/dist/registry-entity-names.js.map +1 -1
  108. package/dist/relationship-slot-bounds.js +4 -4
  109. package/dist/relationship-slot-bounds.js.map +1 -1
  110. package/dist/remesh-context-roots.d.ts +13 -6
  111. package/dist/remesh-context-roots.d.ts.map +1 -1
  112. package/dist/remesh-context-roots.js +51 -22
  113. package/dist/remesh-context-roots.js.map +1 -1
  114. package/dist/renumber-step-ids.d.ts +43 -0
  115. package/dist/renumber-step-ids.d.ts.map +1 -0
  116. package/dist/renumber-step-ids.js +237 -0
  117. package/dist/renumber-step-ids.js.map +1 -0
  118. package/dist/retype.d.ts.map +1 -1
  119. package/dist/retype.js +23 -12
  120. package/dist/retype.js.map +1 -1
  121. package/dist/schema-conversion-description.d.ts +6 -0
  122. package/dist/schema-conversion-description.d.ts.map +1 -0
  123. package/dist/schema-conversion-description.js +25 -0
  124. package/dist/schema-conversion-description.js.map +1 -0
  125. package/dist/schema-conversion-loss-report.d.ts +20 -34
  126. package/dist/schema-conversion-loss-report.d.ts.map +1 -1
  127. package/dist/schema-conversion-loss-report.js +177 -14
  128. package/dist/schema-conversion-loss-report.js.map +1 -1
  129. package/dist/schema-converter-attr-maps.d.ts +51 -0
  130. package/dist/schema-converter-attr-maps.d.ts.map +1 -0
  131. package/dist/schema-converter-attr-maps.js +142 -0
  132. package/dist/schema-converter-attr-maps.js.map +1 -0
  133. package/dist/schema-converter-attr-remap.d.ts +8 -0
  134. package/dist/schema-converter-attr-remap.d.ts.map +1 -1
  135. package/dist/schema-converter-attr-remap.js +15 -1
  136. package/dist/schema-converter-attr-remap.js.map +1 -1
  137. package/dist/schema-converter-document-links.d.ts +23 -0
  138. package/dist/schema-converter-document-links.d.ts.map +1 -0
  139. package/dist/schema-converter-document-links.js +146 -0
  140. package/dist/schema-converter-document-links.js.map +1 -0
  141. package/dist/schema-converter-enums.d.ts +13 -1
  142. package/dist/schema-converter-enums.d.ts.map +1 -1
  143. package/dist/schema-converter-enums.js +30 -4
  144. package/dist/schema-converter-enums.js.map +1 -1
  145. package/dist/schema-converter-ifc4-slots.d.ts +4 -3
  146. package/dist/schema-converter-ifc4-slots.d.ts.map +1 -1
  147. package/dist/schema-converter-ifc4-slots.js +4 -3
  148. package/dist/schema-converter-ifc4-slots.js.map +1 -1
  149. package/dist/schema-converter-renames.d.ts +17 -0
  150. package/dist/schema-converter-renames.d.ts.map +1 -1
  151. package/dist/schema-converter-renames.js +34 -2
  152. package/dist/schema-converter-renames.js.map +1 -1
  153. package/dist/schema-converter-retyped.d.ts +17 -0
  154. package/dist/schema-converter-retyped.d.ts.map +1 -0
  155. package/dist/schema-converter-retyped.js +68 -0
  156. package/dist/schema-converter-retyped.js.map +1 -0
  157. package/dist/schema-converter-structural-axes.d.ts +55 -0
  158. package/dist/schema-converter-structural-axes.d.ts.map +1 -0
  159. package/dist/schema-converter-structural-axes.js +378 -0
  160. package/dist/schema-converter-structural-axes.js.map +1 -0
  161. package/dist/schema-converter-structural-carriers.d.ts +76 -0
  162. package/dist/schema-converter-structural-carriers.d.ts.map +1 -0
  163. package/dist/schema-converter-structural-carriers.js +330 -0
  164. package/dist/schema-converter-structural-carriers.js.map +1 -0
  165. package/dist/schema-converter-structural-diagnostics.d.ts +64 -0
  166. package/dist/schema-converter-structural-diagnostics.d.ts.map +1 -0
  167. package/dist/schema-converter-structural-diagnostics.js +219 -0
  168. package/dist/schema-converter-structural-diagnostics.js.map +1 -0
  169. package/dist/schema-converter-structural-links.d.ts +21 -0
  170. package/dist/schema-converter-structural-links.d.ts.map +1 -0
  171. package/dist/schema-converter-structural-links.js +38 -0
  172. package/dist/schema-converter-structural-links.js.map +1 -0
  173. package/dist/schema-converter-structural-source.d.ts +76 -0
  174. package/dist/schema-converter-structural-source.d.ts.map +1 -0
  175. package/dist/schema-converter-structural-source.js +197 -0
  176. package/dist/schema-converter-structural-source.js.map +1 -0
  177. package/dist/schema-converter-structural-thickness.d.ts +33 -0
  178. package/dist/schema-converter-structural-thickness.d.ts.map +1 -0
  179. package/dist/schema-converter-structural-thickness.js +155 -0
  180. package/dist/schema-converter-structural-thickness.js.map +1 -0
  181. package/dist/schema-converter-structural-varying.d.ts +50 -0
  182. package/dist/schema-converter-structural-varying.d.ts.map +1 -0
  183. package/dist/schema-converter-structural-varying.js +170 -0
  184. package/dist/schema-converter-structural-varying.js.map +1 -0
  185. package/dist/schema-converter-structural.d.ts +8 -0
  186. package/dist/schema-converter-structural.d.ts.map +1 -0
  187. package/dist/schema-converter-structural.js +81 -0
  188. package/dist/schema-converter-structural.js.map +1 -0
  189. package/dist/schema-converter-userdefined-label.d.ts +8 -0
  190. package/dist/schema-converter-userdefined-label.d.ts.map +1 -0
  191. package/dist/schema-converter-userdefined-label.js +60 -0
  192. package/dist/schema-converter-userdefined-label.js.map +1 -0
  193. package/dist/schema-converter-userdefined.d.ts +15 -0
  194. package/dist/schema-converter-userdefined.d.ts.map +1 -0
  195. package/dist/schema-converter-userdefined.js +59 -0
  196. package/dist/schema-converter-userdefined.js.map +1 -0
  197. package/dist/schema-converter-value-forms.d.ts +12 -0
  198. package/dist/schema-converter-value-forms.d.ts.map +1 -0
  199. package/dist/schema-converter-value-forms.js +188 -0
  200. package/dist/schema-converter-value-forms.js.map +1 -0
  201. package/dist/schema-converter.d.ts +2 -8
  202. package/dist/schema-converter.d.ts.map +1 -1
  203. package/dist/schema-converter.js +57 -68
  204. package/dist/schema-converter.js.map +1 -1
  205. package/dist/schema-enum-policy.d.ts +5 -1
  206. package/dist/schema-enum-policy.d.ts.map +1 -1
  207. package/dist/schema-enum-policy.js +21 -1
  208. package/dist/schema-enum-policy.js.map +1 -1
  209. package/dist/schema-grid-frames.d.ts +19 -0
  210. package/dist/schema-grid-frames.d.ts.map +1 -0
  211. package/dist/schema-grid-frames.js +84 -0
  212. package/dist/schema-grid-frames.js.map +1 -0
  213. package/dist/schema-ifc2x3-placements.d.ts +12 -0
  214. package/dist/schema-ifc2x3-placements.d.ts.map +1 -0
  215. package/dist/schema-ifc2x3-placements.js +297 -0
  216. package/dist/schema-ifc2x3-placements.js.map +1 -0
  217. package/dist/schema-ifc2x3-records.d.ts +58 -0
  218. package/dist/schema-ifc2x3-records.d.ts.map +1 -0
  219. package/dist/schema-ifc2x3-records.js +179 -0
  220. package/dist/schema-ifc2x3-records.js.map +1 -0
  221. package/dist/schema-style-flatten.d.ts +7 -2
  222. package/dist/schema-style-flatten.d.ts.map +1 -1
  223. package/dist/schema-style-flatten.js +34 -2
  224. package/dist/schema-style-flatten.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 +222 -0
  228. package/dist/schema-value-form-policy.js.map +1 -0
  229. package/dist/section-export.d.ts.map +1 -1
  230. package/dist/section-export.js +3 -2
  231. package/dist/section-export.js.map +1 -1
  232. package/dist/select-qualification.d.ts.map +1 -1
  233. package/dist/select-qualification.js +6 -5
  234. package/dist/select-qualification.js.map +1 -1
  235. package/dist/step-collection.d.ts.map +1 -1
  236. package/dist/step-collection.js +5 -0
  237. package/dist/step-collection.js.map +1 -1
  238. package/dist/step-comment-skip.d.ts +8 -0
  239. package/dist/step-comment-skip.d.ts.map +1 -1
  240. package/dist/step-comment-skip.js +28 -0
  241. package/dist/step-comment-skip.js.map +1 -1
  242. package/dist/step-coordinate-options.d.ts +15 -0
  243. package/dist/step-coordinate-options.d.ts.map +1 -1
  244. package/dist/step-coordinate-options.js +13 -1
  245. package/dist/step-coordinate-options.js.map +1 -1
  246. package/dist/step-derived-quantities.d.ts +23 -0
  247. package/dist/step-derived-quantities.d.ts.map +1 -0
  248. package/dist/step-derived-quantities.js +50 -0
  249. package/dist/step-derived-quantities.js.map +1 -0
  250. package/dist/step-export-types.d.ts +2 -1
  251. package/dist/step-export-types.d.ts.map +1 -1
  252. package/dist/step-export-types.js.map +1 -1
  253. package/dist/step-exporter.d.ts +0 -6
  254. package/dist/step-exporter.d.ts.map +1 -1
  255. package/dist/step-exporter.js +11 -7
  256. package/dist/step-exporter.js.map +1 -1
  257. package/dist/step-georeferencing.d.ts +2 -0
  258. package/dist/step-georeferencing.d.ts.map +1 -1
  259. package/dist/step-georeferencing.js +122 -46
  260. package/dist/step-georeferencing.js.map +1 -1
  261. package/dist/step-header.d.ts.map +1 -1
  262. package/dist/step-header.js +4 -1
  263. package/dist/step-header.js.map +1 -1
  264. package/dist/step-internal-pset-ids.d.ts +7 -0
  265. package/dist/step-internal-pset-ids.d.ts.map +1 -0
  266. package/dist/step-internal-pset-ids.js +25 -0
  267. package/dist/step-internal-pset-ids.js.map +1 -0
  268. package/dist/step-map-unit-normalization.d.ts.map +1 -1
  269. package/dist/step-map-unit-normalization.js +10 -3
  270. package/dist/step-map-unit-normalization.js.map +1 -1
  271. package/dist/step-map-unit.d.ts +8 -1
  272. package/dist/step-map-unit.d.ts.map +1 -1
  273. package/dist/step-map-unit.js +13 -5
  274. package/dist/step-map-unit.js.map +1 -1
  275. package/dist/step-native-set-record.d.ts +2 -0
  276. package/dist/step-native-set-record.d.ts.map +1 -1
  277. package/dist/step-native-set-record.js +10 -0
  278. package/dist/step-native-set-record.js.map +1 -1
  279. package/dist/step-omission-predicates.d.ts.map +1 -1
  280. package/dist/step-omission-predicates.js +1 -0
  281. package/dist/step-omission-predicates.js.map +1 -1
  282. package/dist/step-overlay-entities.d.ts +0 -35
  283. package/dist/step-overlay-entities.d.ts.map +1 -1
  284. package/dist/step-overlay-entities.js +40 -4
  285. package/dist/step-overlay-entities.js.map +1 -1
  286. package/dist/step-overlay-property-base.d.ts +13 -0
  287. package/dist/step-overlay-property-base.d.ts.map +1 -0
  288. package/dist/step-overlay-property-base.js +30 -0
  289. package/dist/step-overlay-property-base.js.map +1 -0
  290. package/dist/step-pass-builder.d.ts.map +1 -1
  291. package/dist/step-pass-builder.js +13 -0
  292. package/dist/step-pass-builder.js.map +1 -1
  293. package/dist/step-property-set-collection.d.ts.map +1 -1
  294. package/dist/step-property-set-collection.js +7 -2
  295. package/dist/step-property-set-collection.js.map +1 -1
  296. package/dist/step-property-set-generators.d.ts.map +1 -1
  297. package/dist/step-property-set-generators.js +8 -4
  298. package/dist/step-property-set-generators.js.map +1 -1
  299. package/dist/step-property-set-index.js +1 -1
  300. package/dist/step-property-set-index.js.map +1 -1
  301. package/dist/step-property-set-readers.d.ts.map +1 -1
  302. package/dist/step-property-set-readers.js +6 -5
  303. package/dist/step-property-set-readers.js.map +1 -1
  304. package/dist/step-pset-copy-on-write.d.ts.map +1 -1
  305. package/dist/step-pset-copy-on-write.js +9 -7
  306. package/dist/step-pset-copy-on-write.js.map +1 -1
  307. package/dist/step-record-frame.d.ts +5 -3
  308. package/dist/step-record-frame.d.ts.map +1 -1
  309. package/dist/step-record-frame.js +12 -8
  310. package/dist/step-record-frame.js.map +1 -1
  311. package/dist/step-ref-scan.d.ts +7 -0
  312. package/dist/step-ref-scan.d.ts.map +1 -1
  313. package/dist/step-ref-scan.js +24 -3
  314. package/dist/step-ref-scan.js.map +1 -1
  315. package/dist/step-serialization.d.ts +13 -1
  316. package/dist/step-serialization.d.ts.map +1 -1
  317. package/dist/step-serialization.js +29 -2
  318. package/dist/step-serialization.js.map +1 -1
  319. package/dist/step-shared-atom-retention.js +1 -1
  320. package/dist/step-shared-atom-retention.js.map +1 -1
  321. package/dist/step-slot-grammar.d.ts +2 -0
  322. package/dist/step-slot-grammar.d.ts.map +1 -1
  323. package/dist/step-slot-grammar.js +5 -0
  324. package/dist/step-slot-grammar.js.map +1 -1
  325. package/dist/step-source-iteration.d.ts.map +1 -1
  326. package/dist/step-source-iteration.js +7 -2
  327. package/dist/step-source-iteration.js.map +1 -1
  328. package/dist/subset-entity-reader.d.ts.map +1 -1
  329. package/dist/subset-entity-reader.js +15 -8
  330. package/dist/subset-entity-reader.js.map +1 -1
  331. package/dist/subset-roots.d.ts +4 -14
  332. package/dist/subset-roots.d.ts.map +1 -1
  333. package/dist/subset-roots.js +14 -4
  334. package/dist/subset-roots.js.map +1 -1
  335. package/dist/unit-normalize.d.ts.map +1 -1
  336. package/dist/unit-normalize.js +4 -3
  337. package/dist/unit-normalize.js.map +1 -1
  338. package/dist/viewer-georef-scale.d.ts +14 -0
  339. package/dist/viewer-georef-scale.d.ts.map +1 -0
  340. package/dist/viewer-georef-scale.js +20 -0
  341. package/dist/viewer-georef-scale.js.map +1 -0
  342. package/package.json +43 -10
@@ -0,0 +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,2BAA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QAClB,uCAAuC;QACvC,MAAM,QAAQ,GAAG,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,qBAAqB,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAChF,KAAK,MAAM,EAAE,IAAI,OAAO,EAAE,CAAC;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"}
@@ -0,0 +1,21 @@
1
+ /** Matches rust/export/src/schema_structural_links.rs (#9668). */
2
+ import { type SourceStore } from './schema-converter-structural-source.js';
3
+ /**
4
+ * IFC4 -> IFC2X3: the physical-to-analytical link back to its IFC2X3 entity.
5
+ * IFC2X3 links an element to its analytical member with
6
+ * IfcRelConnectsStructuralElement (RelatingElement : IfcElement,
7
+ * RelatedStructuralMember : IfcStructuralMember; IFC2X3_TC1.exp:6613). IFC4 has
8
+ * no such entity, and the upgrade writes the link as IfcRelAssignsToProduct
9
+ * (`structuralAttributes`). This is its inverse, for exactly that shape: one
10
+ * related object that becomes an IFC2X3 IfcStructuralMember, no
11
+ * RelatedObjectsType, and a relating product that becomes an IFC2X3 IfcElement.
12
+ * Anything else stays an IfcRelAssignsToProduct. Types come from the source
13
+ * store, so only an unedited full export arms it.
14
+ */
15
+ export declare class StructuralLinks {
16
+ private typeOf;
17
+ fromStore(store: SourceStore): void;
18
+ /** The IfcRelConnectsStructuralElement attributes for an IFC4 `IFCRELASSIGNSTOPRODUCT` record of that shape. */
19
+ link(entity: string, args: readonly string[]): string | undefined;
20
+ }
21
+ //# sourceMappingURL=schema-converter-structural-links.d.ts.map
@@ -0,0 +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,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"}
@@ -0,0 +1,38 @@
1
+ /* SPDX-License-Identifier: MPL-2.0 */
2
+ /** Matches rust/export/src/schema_structural_links.rs (#9668). */
3
+ import { isSubtype, slotRef, slotUnset } from './schema-converter-structural-source.js';
4
+ import { convertEntityType } from './schema-converter.js';
5
+ import { listItems } from './schema-converter-structural-axes.js';
6
+ /** Whether IFC4 `keyword` converts to an IFC2X3 subtype of `parent`. */
7
+ const becomes = (keyword, parent) => !!keyword && isSubtype('IFC2X3', convertEntityType(keyword, 'IFC4', 'IFC2X3'), parent);
8
+ /**
9
+ * IFC4 -> IFC2X3: the physical-to-analytical link back to its IFC2X3 entity.
10
+ * IFC2X3 links an element to its analytical member with
11
+ * IfcRelConnectsStructuralElement (RelatingElement : IfcElement,
12
+ * RelatedStructuralMember : IfcStructuralMember; IFC2X3_TC1.exp:6613). IFC4 has
13
+ * no such entity, and the upgrade writes the link as IfcRelAssignsToProduct
14
+ * (`structuralAttributes`). This is its inverse, for exactly that shape: one
15
+ * related object that becomes an IFC2X3 IfcStructuralMember, no
16
+ * RelatedObjectsType, and a relating product that becomes an IFC2X3 IfcElement.
17
+ * Anything else stays an IfcRelAssignsToProduct. Types come from the source
18
+ * store, so only an unedited full export arms it.
19
+ */
20
+ export class StructuralLinks {
21
+ typeOf = null;
22
+ fromStore(store) {
23
+ // @raw-entity-enumeration-ok conversion prepass is enabled only for an unedited full-source export
24
+ const byId = store.entityIndex.byId;
25
+ this.typeOf = (id) => byId.get(id)?.type.toUpperCase();
26
+ }
27
+ /** The IfcRelConnectsStructuralElement attributes for an IFC4 `IFCRELASSIGNSTOPRODUCT` record of that shape. */
28
+ link(entity, args) {
29
+ if (!this.typeOf || entity !== 'IFCRELASSIGNSTOPRODUCT' || args.length !== 7 || !slotUnset(args[5]))
30
+ return undefined;
31
+ const related = listItems(args[4]);
32
+ const member = related?.length === 1 ? slotRef(related[0]) : null, element = slotRef(args[6]);
33
+ if (member === null || element === null || !becomes(this.typeOf(member), 'IfcStructuralMember') || !becomes(this.typeOf(element), 'IfcElement'))
34
+ return undefined;
35
+ return `${args.slice(0, 4).join(',')},#${element},#${member}`;
36
+ }
37
+ }
38
+ //# sourceMappingURL=schema-converter-structural-links.js.map
@@ -0,0 +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,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,O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OAAO,KAAK,MAAM,EAAE,CAAC;IAChE,CAAC;CACF"}
@@ -0,0 +1,76 @@
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
+ /** A repeated id belongs to its last record, at that record's position. */
45
+ ids(type: string): readonly number[];
46
+ private entry;
47
+ type(id: number | null): string | undefined;
48
+ slots(id: number | null): readonly string[] | undefined;
49
+ }
50
+ /** An entity reference slot, with STEP whitespace and comments around it allowed (#10248). */
51
+ export declare function slotRef(token: string | undefined): number | null;
52
+ /** Whether the slot is the unset marker `$`, with STEP whitespace and comments around it allowed (#10248). */
53
+ export declare function slotUnset(token: string | undefined): boolean;
54
+ /** The bare number of `token`, given as such or wrapped as `TYPE(n)`, or null when it is not a finite number. */
55
+ export declare function bareMeasure(token: string | undefined, type: string): string | null;
56
+ /** The text of a STEP string token, or null. Only compared with fixed names here, so escapes need no decoding. */
57
+ export declare function stepString(token: string | undefined): string | null;
58
+ /** A property set attached by an IfcRelDefinesByProperties, read from the source. */
59
+ export interface CarrierSet {
60
+ readonly rel: number;
61
+ readonly pset: number;
62
+ readonly related: readonly number[];
63
+ /** 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. */
64
+ readonly props: ReadonlyMap<string, number>;
65
+ /** Whether the set and each of its properties are named by no other source record than this relationship and this set; undefined unless `checkExclusive`. */
66
+ readonly exclusive?: boolean;
67
+ }
68
+ /** Every property set named `name` in the source, with what it relates to; `exclusive`, which reads every record, only with `checkExclusive`. */
69
+ export declare function readCarrierSets(source: SourceRecords, name: string, checkExclusive?: boolean): CarrierSet[];
70
+ /**
71
+ * The records of a property set named `name` holding `properties` (STEP bodies
72
+ * such as `IFCPROPERTYSINGLEVALUE(...)`) and relating it to `object`, with
73
+ * GlobalIds derived from `seed`. `ids` numbers them in the target file.
74
+ */
75
+ export declare function writeCarrierSet(ids: () => number, seed: string, ownerHistory: string, name: string, object: number, properties: readonly string[]): string[];
76
+ //# 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-struct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C,EAAE,OAAO,CAAC;CAC9B;AAED,iJAAiJ;AACjJ,wBAAgB,eAAe,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,cAAc,UAAO,GAAG,UAAU,EAAE,CA8BxG;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAW5J"}
@@ -0,0 +1,197 @@
1
+ /* SPDX-License-Identifier: MPL-2.0 */
2
+ /**
3
+ * What the structural conversion prepasses (#9668) share: the schema pair they
4
+ * run for, memoized reads of source records, subtype tests, and the property-set
5
+ * carrier some of them write into the target file and read back from the source.
6
+ */
7
+ import { stepStringLiteralEnd } from '@ifc-lite/encoding';
8
+ import { deterministicGlobalId, getCanonicalEntityName, getSchemaRegistryForVersion } from '@ifc-lite/parser';
9
+ import { listItems } from './schema-converter-structural-axes.js';
10
+ import { decodeRange } from './source-ref-bounds.js';
11
+ import { readStepSlots } from './step-argument-parser.js';
12
+ import { stepRecordHead } from './step-record-frame.js';
13
+ import { parseStepNumber, skipStepTrivia } from './step-slot-grammar.js';
14
+ import { namedExpressIds, referencesAnyExpressId } from './step-ref-scan.js';
15
+ /** IFC2X3 -> IFC4 is an upgrade, IFC4 -> IFC2X3 a downgrade; the prepasses run for nothing else. */
16
+ export const conversionMode = (from, to) => from === 'IFC2X3' && to === 'IFC4' ? 'upgrade' : from === 'IFC4' && to === 'IFC2X3' ? 'downgrade' : null;
17
+ /** Whether any of `args` names an id this export withholds. */
18
+ export const namesWithheld = (args, withheld) => !!withheld?.size && !!args?.some((a) => referencesAnyExpressId(a, withheld));
19
+ const SUBTYPES = new Map();
20
+ /** Whether `keyword` names a subtype of `parent` in `schema`, memoized per triple. */
21
+ export function isSubtype(schema, keyword, parent) {
22
+ if (!keyword)
23
+ return false;
24
+ const key = `${schema} ${keyword} ${parent}`;
25
+ let known = SUBTYPES.get(key);
26
+ if (known === undefined) {
27
+ const registry = getSchemaRegistryForVersion(schema);
28
+ const name = getCanonicalEntityName(registry, keyword);
29
+ known = !!name && registry.entities[name]?.inheritanceChain?.includes(parent) === true;
30
+ SUBTYPES.set(key, known);
31
+ }
32
+ return known;
33
+ }
34
+ /** Source records read by id, each decoded once. Lives only for one prepass. */
35
+ export class SourceRecords {
36
+ store;
37
+ keptIdsByType = new Map();
38
+ cache = new Map();
39
+ constructor(store) {
40
+ this.store = store;
41
+ }
42
+ hasIndexedRecords() {
43
+ // @raw-entity-enumeration-ok distinguish a parsed source index from type-only preview input
44
+ return this.store.entityIndex.byId.size > 0 || (this.store.deferredEntityIndex?.size ?? 0) > 0;
45
+ }
46
+ decode(entry) {
47
+ return decodeRange(this.store.source, entry.byteOffset, entry.byteOffset + entry.byteLength);
48
+ }
49
+ /**
50
+ * How many source records name each of `targets`, outside strings and
51
+ * comments. Reads every record, so callers ask only when they have targets.
52
+ */
53
+ referrers(targets) {
54
+ const uses = new Map();
55
+ for (const { named } of this.naming(targets))
56
+ for (const t of named)
57
+ uses.set(t, (uses.get(t) ?? 0) + 1);
58
+ return uses;
59
+ }
60
+ /**
61
+ * Each source record naming any of `targets` outside strings and comments,
62
+ * and which ones. Reads every record and caches nothing, so callers ask only
63
+ * when they have targets.
64
+ */
65
+ *naming(targets) {
66
+ if (targets.size === 0)
67
+ return;
68
+ const deferred = this.store.deferredEntityIndex;
69
+ // @raw-entity-enumeration-ok same unedited source-only prepass
70
+ const primary = this.store.entityIndex.byId;
71
+ for (const index of deferred ? [primary, deferred] : [primary]) {
72
+ for (const [id, entry] of index) {
73
+ if (deferred && this.entry(id)?.byteOffset !== entry.byteOffset)
74
+ continue;
75
+ const text = this.decode(entry);
76
+ const head = stepRecordHead(text);
77
+ const named = namedExpressIds(text.slice(head?.open ?? skipStepTrivia(text, 0) + 1), targets);
78
+ if (named.size)
79
+ yield { id, named };
80
+ }
81
+ }
82
+ }
83
+ /** A repeated id belongs to its last record, at that record's position. */
84
+ ids(type) {
85
+ const cached = this.keptIdsByType.get(type);
86
+ if (cached)
87
+ return cached;
88
+ // @raw-entity-enumeration-ok conversion prepass is enabled only for an unedited full-source export (step-pass-builder.ts)
89
+ const ids = this.store.entityIndex.byType.get(type) ?? [];
90
+ const last = new Map();
91
+ ids.forEach((id, i) => last.set(id, i));
92
+ const kept = ids.filter((id, i) => last.get(id) === i && this.type(id) === type);
93
+ this.keptIdsByType.set(type, kept);
94
+ return kept;
95
+ }
96
+ entry(id) {
97
+ // @raw-entity-enumeration-ok same unedited source-only prepass
98
+ const primary = this.store.entityIndex.byId.get(id);
99
+ const deferred = this.store.deferredEntityIndex?.get(id);
100
+ return deferred && (!primary || deferred.byteOffset > primary.byteOffset) ? deferred : primary;
101
+ }
102
+ type(id) {
103
+ return id === null ? undefined : this.entry(id)?.type.toUpperCase();
104
+ }
105
+ slots(id) {
106
+ if (id === null)
107
+ return undefined;
108
+ if (!this.cache.has(id)) {
109
+ const entry = this.entry(id);
110
+ this.cache.set(id, entry ? readStepSlots(this.decode(entry))?.slots : undefined);
111
+ }
112
+ return this.cache.get(id);
113
+ }
114
+ }
115
+ /** An entity reference slot, with STEP whitespace and comments around it allowed (#10248). */
116
+ export function slotRef(token) {
117
+ const text = token ?? '';
118
+ const start = skipStepTrivia(text, 0);
119
+ const m = start < 0 ? null : /^#\s*(\d+)/.exec(text.slice(start));
120
+ return m && skipStepTrivia(text, start + m[0].length) === text.length ? Number(m[1]) : null;
121
+ }
122
+ /** Whether the slot is the unset marker `$`, with STEP whitespace and comments around it allowed (#10248). */
123
+ export function slotUnset(token) {
124
+ const text = token ?? '';
125
+ const start = skipStepTrivia(text, 0);
126
+ return start >= 0 && text[start] === '$' && skipStepTrivia(text, start + 1) === text.length;
127
+ }
128
+ /** The bare number of `token`, given as such or wrapped as `TYPE(n)`, or null when it is not a finite number. */
129
+ export function bareMeasure(token, type) {
130
+ const wrapped = new RegExp(`^\\s*${type}\\s*\\((.*)\\)\\s*$`, 'i').exec(token ?? '')?.[1];
131
+ const bare = (wrapped ?? token ?? '').trim();
132
+ return Number.isFinite(parseStepNumber(bare)) ? bare : null;
133
+ }
134
+ /** The text of a STEP string token, or null. Only compared with fixed names here, so escapes need no decoding. */
135
+ export function stepString(token) {
136
+ // STEP whitespace and comments may sit around the string (#10248), never inside the quotes.
137
+ const text = token ?? '';
138
+ const start = skipStepTrivia(text, 0);
139
+ if (start < 0 || text[start] !== "'")
140
+ return null;
141
+ const end = stepStringLiteralEnd(text, start);
142
+ return end > start && skipStepTrivia(text, end) === text.length ? text.slice(start + 1, end - 1) : null;
143
+ }
144
+ /** Every property set named `name` in the source, with what it relates to; `exclusive`, which reads every record, only with `checkExclusive`. */
145
+ export function readCarrierSets(source, name, checkExclusive = true) {
146
+ const rels = source.ids('IFCRELDEFINESBYPROPERTIES');
147
+ const candidates = rels.filter((rel) => {
148
+ const pset = slotRef(source.slots(rel)?.[5]);
149
+ return source.type(pset) === 'IFCPROPERTYSET' && stepString(source.slots(pset)?.[2]) === name;
150
+ });
151
+ if (!candidates.length)
152
+ return [];
153
+ const members = candidates.map((rel) => {
154
+ const pset = slotRef(source.slots(rel)[5]);
155
+ return { rel, pset, propIds: (listItems(source.slots(pset)?.[4] ?? '') ?? []).map(slotRef) };
156
+ });
157
+ // A carrier is exclusive when its relationship is the only record naming its set, and its set the only one naming each property.
158
+ const uses = checkExclusive ? source.referrers(new Set(members.flatMap(({ pset, propIds }) => [pset, ...propIds.filter((p) => p !== null)]))) : undefined;
159
+ return members.map(({ rel, pset, propIds }) => {
160
+ // IfcPropertySet names its properties uniquely (IFC4 UniquePropertyNames, IFC2X3 WR32). A set that does
161
+ // not, that lists a property it cannot read, or whose relationship lists a non-reference, still counts as
162
+ // present for the objects it does name (for ambiguity checks) but gives no property and is never consumed.
163
+ const listed = listItems(source.slots(rel)?.[4] ?? '')?.map(slotRef) ?? [];
164
+ const related = listed.filter((r) => r !== null);
165
+ const props = new Map();
166
+ if (related.length === listed.length) {
167
+ for (const p of propIds) {
168
+ const propName = stepString(source.slots(p)?.[0]);
169
+ if (p === null || propName === null || props.has(propName)) {
170
+ props.clear();
171
+ break;
172
+ }
173
+ props.set(propName, p);
174
+ }
175
+ }
176
+ const exclusive = uses ? uses.get(pset) === 1 && propIds.every((p) => p !== null && uses.get(p) === 1) : undefined;
177
+ return { rel, pset, related, props, exclusive };
178
+ });
179
+ }
180
+ /**
181
+ * The records of a property set named `name` holding `properties` (STEP bodies
182
+ * such as `IFCPROPERTYSINGLEVALUE(...)`) and relating it to `object`, with
183
+ * GlobalIds derived from `seed`. `ids` numbers them in the target file.
184
+ */
185
+ export function writeCarrierSet(ids, seed, ownerHistory, name, object, properties) {
186
+ const lines = [];
187
+ const propIds = properties.map((body) => {
188
+ const id = ids();
189
+ lines.push(`#${id}=${body};`);
190
+ return `#${id}`;
191
+ });
192
+ const pset = ids();
193
+ lines.push(`#${pset}=IFCPROPERTYSET('${deterministicGlobalId(`${seed}:pset`)}',${ownerHistory},'${name}',$,(${propIds.join(',')}));`);
194
+ lines.push(`#${ids()}=IFCRELDEFINESBYPROPERTIES('${deterministicGlobalId(`${seed}:rel`)}',${ownerHistory},$,$,(#${object}),#${pset});`);
195
+ return lines;
196
+ }
197
+ //# sourceMappingURL=schema-converter-structural-source.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-converter-structural-source.js","sourceRoot":"","sources":["../src/schema-converter-structural-source.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC;;;;GAIG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,2BAA2B,EAAqB,MAAM,kBAAkB,CAAC;AACjI,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,WAAW,EAA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AAE,CAAC;IAClD,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,GAAiB,EAAE,IAAY,EAAE,YAAoB,EAAE,IAAY,EAAE,MAAc,EAAE,UAA6B;IAChJ,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACtC,MAAM,EAAE,GAAG,GAAG,EAAE,CAAC;QACjB,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,IAAI,GAAG,CAAC,CAAC;QAC9B,OAAO,IAAI,EAAE,EAAE,CAAC;IAClB,CAAC,CAAC,CAAC;IACH,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC;IACnB,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,oBAAoB,qBAAqB,CAAC,GAAG,IAAI,OAAO,CAAC,KAAK,YAAY,KAAK,IAAI,QAAQ,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACtI,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,EAAE,+BAA+B,qBAAqB,CAAC,GAAG,IAAI,MAAM,CAAC,KAAK,YAAY,UAAU,MAAM,MAAM,IAAI,IAAI,CAAC,CAAC;IACxI,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { SourceRecords, type StructuralRewrite } from './schema-converter-structural-source.js';
2
+ export declare const THICKNESS_WRITTEN = "IFC2X3 SubsequentThickness is held in IFC4 as Pset_StructuralSurfaceMemberVaryingThickness Thickness1 to Thickness3";
3
+ export declare class StructuralThickness {
4
+ /** The exporter's express-id allocator, shared with every other record it appends. */
5
+ ids: (() => number) | null;
6
+ private readonly pending;
7
+ private mode;
8
+ /** IfcProductDefinitionShape id -> the IfcShapeAspects naming it. */
9
+ private readonly aspects;
10
+ /** Aspects IFC2X3 admits as VaryingThicknessLocation: each representation one point (WR62, WR63); both directions require it. */
11
+ private readonly pointAspects;
12
+ /** Member id -> its three thicknesses from a source property set, or [] when it has more than one set. */
13
+ private readonly psets;
14
+ /** Members whose property set gives LocationNLocal/LocationNGlobal, which the aspect order cannot be checked against. */
15
+ private readonly located;
16
+ fromStore(source: SourceRecords, from: string, to: string): void;
17
+ /** The one aspect of a representation slot, or null. */
18
+ private aspectOf;
19
+ /**
20
+ * IFC2X3 -> IFC4: the attributes of a varying member IFC4 holds elsewhere:
21
+ * SubsequentThickness and VaryingThicknessLocation, in a matching property
22
+ * set the member has or one this adds, when the location is the
23
+ * representation's one point aspect (WR62, WR63). None otherwise.
24
+ */
25
+ note(id: number, entity: string, args: readonly string[], withheld: ReadonlySet<number> | undefined): readonly string[];
26
+ /** IFC4 -> IFC2X3: why a member the generic path writes has no IFC2X3 thicknesses (`rewrite` leaves located members to it), or undefined. */
27
+ notice(id: number, entity: string, args: readonly string[]): string | undefined;
28
+ /** IFC4 -> IFC2X3: the IFC2X3 member body from its property set and its one aspect, or undefined. */
29
+ rewrite(id: number, entity: string, args: readonly string[]): StructuralRewrite | undefined;
30
+ /** Records written so far, to append after the source records. */
31
+ added(): string[];
32
+ }
33
+ //# sourceMappingURL=schema-converter-structural-thickness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-converter-structural-thickness.d.ts","sourceRoot":"","sources":["../src/schema-converter-structural-thickness.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAoE,aAAa,EAAwC,KAAK,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAOxM,eAAO,MAAM,iBAAiB,wHAA6F,CAAC;AAiB5H,qBAAa,mBAAmB;IAC9B,sFAAsF;IACtF,GAAG,EAAE,CAAC,MAAM,MAAM,CAAC,GAAG,IAAI,CAAQ;IAClC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgB;IACxC,OAAO,CAAC,IAAI,CAAwB;IACpC,qEAAqE;IACrE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA+B;IACvD,iIAAiI;IACjI,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAqB;IAClD,0GAA0G;IAC1G,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA+B;IACrD,yHAAyH;IACzH,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;IAE7C,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;IAoChE,wDAAwD;IACxD,OAAO,CAAC,QAAQ;IAKhB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,GAAG,SAAS,MAAM,EAAE;IAqBvH,6IAA6I;IAC7I,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS;IAI/E,qGAAqG;IACrG,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,iBAAiB,GAAG,SAAS;IAY3F,kEAAkE;IAClE,KAAK,IAAI,MAAM,EAAE;CAClB"}
@@ -0,0 +1,155 @@
1
+ /* SPDX-License-Identifier: MPL-2.0 */
2
+ /**
3
+ * Varying surface member thickness IFC2X3 <-> IFC4 (#9668). IFC4 deleted
4
+ * IfcStructuralSurfaceMemberVarying.SubsequentThickness and
5
+ * VaryingThicknessLocation and gives the thicknesses by
6
+ * Pset_StructuralSurfaceMemberVaryingThickness (IFC4 IfcStructuralSurfaceMemberVarying:
7
+ * "properties are provided by means of Pset_StructuralSurfaceMemberVaryingThickness"),
8
+ * which holds three: Thickness1 to Thickness3.
9
+ *
10
+ * The upgrade writes an IFC2X3 member with three thicknesses (Thickness and two
11
+ * subsequent ones) as that property set when its location aspect is the one
12
+ * point aspect of the member's representation (WR62, WR63), which is where the
13
+ * downgrade takes it back; otherwise both are reported lost. A matching
14
+ * property set the member already has counts the same way. The property set is
15
+ * valid IFC2X3 too and is kept; a member that has one is not given a second.
16
+ * The downgrade reads a native IFC4 member the same way: its property set and
17
+ * the one point aspect of its representation, the only candidate location.
18
+ *
19
+ * Reads the source store, so only an unedited full export arms it.
20
+ */
21
+ import { listItems } from './schema-converter-structural-axes.js';
22
+ import { bareMeasure, conversionMode, readCarrierSets, slotRef, slotUnset, writeCarrierSet } from './schema-converter-structural-source.js';
23
+ import { parseStepNumber } from './step-slot-grammar.js';
24
+ const THICKNESS_PSET = 'Pset_StructuralSurfaceMemberVaryingThickness';
25
+ const ENTITY = 'IFCSTRUCTURALSURFACEMEMBERVARYING';
26
+ const NAMES = ['Thickness1', 'Thickness2', 'Thickness3'];
27
+ const THICKNESS_LOCATED = `${THICKNESS_PSET} gives Location properties, which cannot be checked against the IfcShapeAspect order; IFC2X3 SubsequentThickness and VaryingThicknessLocation are not written`;
28
+ export const THICKNESS_WRITTEN = `IFC2X3 SubsequentThickness is held in IFC4 as ${THICKNESS_PSET} Thickness1 to Thickness3`;
29
+ const THICKNESS_READ = `${THICKNESS_PSET} Thickness1 to Thickness3 are written as the IFC2X3 Thickness and SubsequentThickness, located by the one IfcShapeAspect of the member's representation`;
30
+ /** Whether a property record is a single or list value with no value: `$` or `()`. Anything else, or unreadable, counts as a value. */
31
+ function emptyValue(type, args) {
32
+ if (!args || (type !== 'IFCPROPERTYSINGLEVALUE' && type !== 'IFCPROPERTYLISTVALUE'))
33
+ return false;
34
+ const value = args[2] ?? '';
35
+ // listItems skips STEP trivia and returns null for anything that is not a readable list.
36
+ return slotUnset(value) || listItems(value)?.length === 0;
37
+ }
38
+ /** The bare number of a thickness token, `0.2` or `IFCPOSITIVELENGTHMEASURE(0.2)`, or null unless positive. */
39
+ function thickness(token) {
40
+ const bare = bareMeasure(token, 'IFCPOSITIVELENGTHMEASURE');
41
+ return bare !== null && parseStepNumber(bare) > 0 ? bare : null;
42
+ }
43
+ export class StructuralThickness {
44
+ /** The exporter's express-id allocator, shared with every other record it appends. */
45
+ ids = null;
46
+ pending = [];
47
+ mode = null;
48
+ /** IfcProductDefinitionShape id -> the IfcShapeAspects naming it. */
49
+ aspects = new Map();
50
+ /** Aspects IFC2X3 admits as VaryingThicknessLocation: each representation one point (WR62, WR63); both directions require it. */
51
+ pointAspects = new Set();
52
+ /** Member id -> its three thicknesses from a source property set, or [] when it has more than one set. */
53
+ psets = new Map();
54
+ /** Members whose property set gives LocationNLocal/LocationNGlobal, which the aspect order cannot be checked against. */
55
+ located = new Set();
56
+ fromStore(source, from, to) {
57
+ const mode = conversionMode(from, to);
58
+ if (!mode || !source.ids(ENTITY).length)
59
+ return;
60
+ this.mode = mode;
61
+ // Only the aspects of a varying member's representation are ever asked for.
62
+ const shapes = new Set(source.ids(ENTITY).map((m) => slotRef(source.slots(m)?.[6])));
63
+ for (const id of source.ids('IFCSHAPEASPECT')) {
64
+ const shape = slotRef(source.slots(id)?.[4]);
65
+ if (shape === null || !shapes.has(shape))
66
+ continue;
67
+ const list = this.aspects.get(shape) ?? [];
68
+ list.push(id);
69
+ this.aspects.set(shape, list);
70
+ const representations = (listItems(source.slots(id)?.[0] ?? '') ?? []).map(slotRef);
71
+ if (representations.length && representations.every((r) => {
72
+ const items = (listItems(source.slots(r)?.[3] ?? '') ?? []).map(slotRef);
73
+ return items.length === 1 && ['IFCCARTESIANPOINT', 'IFCPOINTONSURFACE'].includes(source.type(items[0]) ?? '');
74
+ }))
75
+ this.pointAspects.add(id);
76
+ }
77
+ for (const set of readCarrierSets(source, THICKNESS_PSET, false)) {
78
+ const values = NAMES.map((name) => {
79
+ const prop = set.props.get(name);
80
+ const args = source.type(prop ?? null) === 'IFCPROPERTYSINGLEVALUE' ? source.slots(prop) : undefined;
81
+ // A value in its own unit would need converting; only one in the project's length unit is read.
82
+ return args && slotUnset(args[3] ?? '$') ? thickness(args[2]) : null;
83
+ });
84
+ // A location property counts unless it is a single or list value that is plainly empty.
85
+ const givesLocations = [...set.props].some(([name, prop]) => /^Location[123](?:Local|Global)$/.test(name) && !emptyValue(source.type(prop), source.slots(prop)));
86
+ for (const member of set.related) {
87
+ if (source.type(member) !== ENTITY)
88
+ continue;
89
+ if (givesLocations)
90
+ this.located.add(member);
91
+ // A member with two such property sets keeps neither reading.
92
+ this.psets.set(member, this.psets.has(member) || values.includes(null) ? [] : values);
93
+ }
94
+ }
95
+ }
96
+ /** The one aspect of a representation slot, or null. */
97
+ aspectOf(representation) {
98
+ const found = this.aspects.get(slotRef(representation) ?? -1);
99
+ return found?.length === 1 ? found[0] : null;
100
+ }
101
+ /**
102
+ * IFC2X3 -> IFC4: the attributes of a varying member IFC4 holds elsewhere:
103
+ * SubsequentThickness and VaryingThicknessLocation, in a matching property
104
+ * set the member has or one this adds, when the location is the
105
+ * representation's one point aspect (WR62, WR63). None otherwise.
106
+ */
107
+ note(id, entity, args, withheld) {
108
+ // The added property set names only the member; an IFC4 target withholds none, so none is checked.
109
+ if (this.mode !== 'upgrade' || entity !== ENTITY || !this.ids || withheld?.size || args.length !== 11)
110
+ return [];
111
+ const values = [args[8], ...listItems(args[9]) ?? []].map(thickness);
112
+ if (values.length !== 3 || values.includes(null))
113
+ return [];
114
+ // Held only where the location comes back too, so the round trip is exact.
115
+ const location = slotRef(args[10]);
116
+ if (location === null || this.aspectOf(args[6]) !== location || !this.pointAspects.has(location))
117
+ return [];
118
+ // A set giving locations is not read back by the downgrade, so it does not hold them.
119
+ if (this.located.has(id))
120
+ return [];
121
+ const existing = this.psets.get(id);
122
+ if (existing) {
123
+ // A property set the member already has holds the thicknesses only when its values are these.
124
+ if (existing.length !== 3 || existing.some((v, i) => parseStepNumber(v) !== parseStepNumber(values[i])))
125
+ return [];
126
+ }
127
+ else {
128
+ const properties = values.map((v, i) => `IFCPROPERTYSINGLEVALUE('${NAMES[i]}',$,IFCPOSITIVELENGTHMEASURE(${v}),$)`);
129
+ this.pending.push(...writeCarrierSet(this.ids, `ifc2x3-thickness:${args[0].trim()}`, args[1], THICKNESS_PSET, id, properties));
130
+ }
131
+ return ['SubsequentThickness', 'VaryingThicknessLocation'];
132
+ }
133
+ /** IFC4 -> IFC2X3: why a member the generic path writes has no IFC2X3 thicknesses (`rewrite` leaves located members to it), or undefined. */
134
+ notice(id, entity, args) {
135
+ return this.mode === 'downgrade' && entity === ENTITY && args.length === 9 && this.located.has(id) ? THICKNESS_LOCATED : undefined;
136
+ }
137
+ /** IFC4 -> IFC2X3: the IFC2X3 member body from its property set and its one aspect, or undefined. */
138
+ rewrite(id, entity, args) {
139
+ if (this.mode !== 'downgrade' || entity !== ENTITY || args.length !== 9 || this.located.has(id))
140
+ return undefined;
141
+ const [first, ...rest] = this.psets.get(id) ?? [];
142
+ const aspect = this.aspectOf(args[6]);
143
+ if (first === undefined || aspect === null || !this.pointAspects.has(aspect))
144
+ return undefined;
145
+ // IFC2X3's VaryingThickness starts with Thickness (WR61 requires it).
146
+ const own = thickness(args[8]);
147
+ if (own !== null && parseStepNumber(own) !== parseStepNumber(first))
148
+ return undefined;
149
+ const values = [...args.slice(0, 8), own === null ? first : args[8], `(${rest.join(',')})`, `#${aspect}`];
150
+ return { body: `${ENTITY}(${values.join(',')})`, losses: [THICKNESS_READ] };
151
+ }
152
+ /** Records written so far, to append after the source records. */
153
+ added() { return this.pending.splice(0); }
154
+ }
155
+ //# sourceMappingURL=schema-converter-structural-thickness.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-converter-structural-thickness.js","sourceRoot":"","sources":["../src/schema-converter-structural-thickness.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,OAAO,EAAE,SAAS,EAAiB,eAAe,EAA+C,MAA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