@ifc-lite/create 3.2.0 → 5.1.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 (426) hide show
  1. package/README.md +43 -0
  2. package/dist/in-store/align-boxes.d.ts +38 -0
  3. package/dist/in-store/align-boxes.d.ts.map +1 -0
  4. package/dist/in-store/align-boxes.js +97 -0
  5. package/dist/in-store/align-boxes.js.map +1 -0
  6. package/dist/in-store/anchor.d.ts.map +1 -1
  7. package/dist/in-store/anchor.js +13 -2
  8. package/dist/in-store/anchor.js.map +1 -1
  9. package/dist/in-store/auto-space-detect.d.ts +1 -1
  10. package/dist/in-store/auto-space-detect.js +1 -1
  11. package/dist/in-store/beam.d.ts +10 -1
  12. package/dist/in-store/beam.d.ts.map +1 -1
  13. package/dist/in-store/beam.js +17 -35
  14. package/dist/in-store/beam.js.map +1 -1
  15. package/dist/in-store/column.d.ts +10 -1
  16. package/dist/in-store/column.d.ts.map +1 -1
  17. package/dist/in-store/column.js +23 -22
  18. package/dist/in-store/column.js.map +1 -1
  19. package/dist/in-store/copy-array.d.ts +17 -0
  20. package/dist/in-store/copy-array.d.ts.map +1 -0
  21. package/dist/in-store/copy-array.js +47 -0
  22. package/dist/in-store/copy-array.js.map +1 -0
  23. package/dist/in-store/copy-batch.d.ts +27 -0
  24. package/dist/in-store/copy-batch.d.ts.map +1 -0
  25. package/dist/in-store/copy-batch.js +101 -0
  26. package/dist/in-store/copy-batch.js.map +1 -0
  27. package/dist/in-store/copy-dependent-walk.d.ts +27 -0
  28. package/dist/in-store/copy-dependent-walk.d.ts.map +1 -0
  29. package/dist/in-store/copy-dependent-walk.js +61 -0
  30. package/dist/in-store/copy-dependent-walk.js.map +1 -0
  31. package/dist/in-store/copy-frame.d.ts +53 -0
  32. package/dist/in-store/copy-frame.d.ts.map +1 -0
  33. package/dist/in-store/copy-frame.js +112 -0
  34. package/dist/in-store/copy-frame.js.map +1 -0
  35. package/dist/in-store/copy-product.d.ts +76 -0
  36. package/dist/in-store/copy-product.d.ts.map +1 -0
  37. package/dist/in-store/copy-product.js +318 -0
  38. package/dist/in-store/copy-product.js.map +1 -0
  39. package/dist/in-store/curtain-wall.d.ts +87 -0
  40. package/dist/in-store/curtain-wall.d.ts.map +1 -0
  41. package/dist/in-store/curtain-wall.js +237 -0
  42. package/dist/in-store/curtain-wall.js.map +1 -0
  43. package/dist/in-store/edit/effective-mutation-view.d.ts +6 -0
  44. package/dist/in-store/edit/effective-mutation-view.d.ts.map +1 -0
  45. package/dist/in-store/edit/effective-mutation-view.js +45 -0
  46. package/dist/in-store/edit/effective-mutation-view.js.map +1 -0
  47. package/dist/in-store/edit/effective-storey.d.ts +13 -0
  48. package/dist/in-store/edit/effective-storey.d.ts.map +1 -0
  49. package/dist/in-store/edit/effective-storey.js +36 -0
  50. package/dist/in-store/edit/effective-storey.js.map +1 -0
  51. package/dist/in-store/edit/effective-storeys.d.ts +9 -0
  52. package/dist/in-store/edit/effective-storeys.d.ts.map +1 -0
  53. package/dist/in-store/edit/effective-storeys.js +16 -0
  54. package/dist/in-store/edit/effective-storeys.js.map +1 -0
  55. package/dist/in-store/edit/hosted-opening-refit.d.ts +29 -0
  56. package/dist/in-store/edit/hosted-opening-refit.d.ts.map +1 -0
  57. package/dist/in-store/edit/hosted-opening-refit.js +168 -0
  58. package/dist/in-store/edit/hosted-opening-refit.js.map +1 -0
  59. package/dist/in-store/edit/length-unit-scale.d.ts +24 -0
  60. package/dist/in-store/edit/length-unit-scale.d.ts.map +1 -0
  61. package/dist/in-store/edit/length-unit-scale.js +37 -0
  62. package/dist/in-store/edit/length-unit-scale.js.map +1 -0
  63. package/dist/in-store/edit/linear-element-edit.d.ts +131 -0
  64. package/dist/in-store/edit/linear-element-edit.d.ts.map +1 -0
  65. package/dist/in-store/edit/linear-element-edit.js +259 -0
  66. package/dist/in-store/edit/linear-element-edit.js.map +1 -0
  67. package/dist/in-store/edit/metadata-clone-effective.d.ts +5 -0
  68. package/dist/in-store/edit/metadata-clone-effective.d.ts.map +1 -0
  69. package/dist/in-store/edit/metadata-clone-effective.js +47 -0
  70. package/dist/in-store/edit/metadata-clone-effective.js.map +1 -0
  71. package/dist/in-store/edit/metadata-clone.d.ts +40 -0
  72. package/dist/in-store/edit/metadata-clone.d.ts.map +1 -0
  73. package/dist/in-store/edit/metadata-clone.js +107 -0
  74. package/dist/in-store/edit/metadata-clone.js.map +1 -0
  75. package/dist/in-store/edit/placement-core.d.ts +140 -0
  76. package/dist/in-store/edit/placement-core.d.ts.map +1 -0
  77. package/dist/in-store/edit/placement-core.js +317 -0
  78. package/dist/in-store/edit/placement-core.js.map +1 -0
  79. package/dist/in-store/edit/polygon-clip.d.ts +58 -0
  80. package/dist/in-store/edit/polygon-clip.d.ts.map +1 -0
  81. package/dist/in-store/edit/polygon-clip.js +153 -0
  82. package/dist/in-store/edit/polygon-clip.js.map +1 -0
  83. package/dist/in-store/edit/read-profile.d.ts +6 -0
  84. package/dist/in-store/edit/read-profile.d.ts.map +1 -0
  85. package/dist/in-store/edit/read-profile.js +95 -0
  86. package/dist/in-store/edit/read-profile.js.map +1 -0
  87. package/dist/in-store/edit/slab-edit-frame.d.ts +40 -0
  88. package/dist/in-store/edit/slab-edit-frame.d.ts.map +1 -0
  89. package/dist/in-store/edit/slab-edit-frame.js +146 -0
  90. package/dist/in-store/edit/slab-edit-frame.js.map +1 -0
  91. package/dist/in-store/edit/slab-edit.d.ts +112 -0
  92. package/dist/in-store/edit/slab-edit.d.ts.map +1 -0
  93. package/dist/in-store/edit/slab-edit.js +275 -0
  94. package/dist/in-store/edit/slab-edit.js.map +1 -0
  95. package/dist/in-store/edit/slab-opening-carry.d.ts +10 -0
  96. package/dist/in-store/edit/slab-opening-carry.d.ts.map +1 -0
  97. package/dist/in-store/edit/slab-opening-carry.js +65 -0
  98. package/dist/in-store/edit/slab-opening-carry.js.map +1 -0
  99. package/dist/in-store/edit/split-guid.d.ts +29 -0
  100. package/dist/in-store/edit/split-guid.d.ts.map +1 -0
  101. package/dist/in-store/edit/split-guid.js +64 -0
  102. package/dist/in-store/edit/split-guid.js.map +1 -0
  103. package/dist/in-store/edit/split-target.d.ts +90 -0
  104. package/dist/in-store/edit/split-target.d.ts.map +1 -0
  105. package/dist/in-store/edit/split-target.js +116 -0
  106. package/dist/in-store/edit/split-target.js.map +1 -0
  107. package/dist/in-store/edit/target.d.ts +8 -0
  108. package/dist/in-store/edit/target.d.ts.map +1 -0
  109. package/dist/in-store/edit/target.js +5 -0
  110. package/dist/in-store/edit/target.js.map +1 -0
  111. package/dist/in-store/edit/trim-extend-geometry.d.ts +99 -0
  112. package/dist/in-store/edit/trim-extend-geometry.d.ts.map +1 -0
  113. package/dist/in-store/edit/trim-extend-geometry.js +105 -0
  114. package/dist/in-store/edit/trim-extend-geometry.js.map +1 -0
  115. package/dist/in-store/edit/wall-axis-edit.d.ts +16 -0
  116. package/dist/in-store/edit/wall-axis-edit.d.ts.map +1 -0
  117. package/dist/in-store/edit/wall-axis-edit.js +40 -0
  118. package/dist/in-store/edit/wall-axis-edit.js.map +1 -0
  119. package/dist/in-store/edit/wall-edit.d.ts +157 -0
  120. package/dist/in-store/edit/wall-edit.d.ts.map +1 -0
  121. package/dist/in-store/edit/wall-edit.js +276 -0
  122. package/dist/in-store/edit/wall-edit.js.map +1 -0
  123. package/dist/in-store/edit/wall-hosted-cuts.d.ts +35 -0
  124. package/dist/in-store/edit/wall-hosted-cuts.d.ts.map +1 -0
  125. package/dist/in-store/edit/wall-hosted-cuts.js +27 -0
  126. package/dist/in-store/edit/wall-hosted-cuts.js.map +1 -0
  127. package/dist/in-store/edit/wall-opening-reassign.d.ts +18 -0
  128. package/dist/in-store/edit/wall-opening-reassign.d.ts.map +1 -0
  129. package/dist/in-store/edit/wall-opening-reassign.js +50 -0
  130. package/dist/in-store/edit/wall-opening-reassign.js.map +1 -0
  131. package/dist/in-store/element-align.d.ts +13 -0
  132. package/dist/in-store/element-align.d.ts.map +1 -0
  133. package/dist/in-store/element-align.js +90 -0
  134. package/dist/in-store/element-align.js.map +1 -0
  135. package/dist/in-store/element-replacement.d.ts +26 -0
  136. package/dist/in-store/element-replacement.d.ts.map +1 -0
  137. package/dist/in-store/element-replacement.js +68 -0
  138. package/dist/in-store/element-replacement.js.map +1 -0
  139. package/dist/in-store/element-size-edit.d.ts +40 -0
  140. package/dist/in-store/element-size-edit.d.ts.map +1 -0
  141. package/dist/in-store/element-size-edit.js +103 -0
  142. package/dist/in-store/element-size-edit.js.map +1 -0
  143. package/dist/in-store/element-split-axis.d.ts +6 -0
  144. package/dist/in-store/element-split-axis.d.ts.map +1 -0
  145. package/dist/in-store/element-split-axis.js +87 -0
  146. package/dist/in-store/element-split-axis.js.map +1 -0
  147. package/dist/in-store/element-split-joined.d.ts +13 -0
  148. package/dist/in-store/element-split-joined.d.ts.map +1 -0
  149. package/dist/in-store/element-split-joined.js +74 -0
  150. package/dist/in-store/element-split-joined.js.map +1 -0
  151. package/dist/in-store/element-split-placement.d.ts +19 -0
  152. package/dist/in-store/element-split-placement.d.ts.map +1 -0
  153. package/dist/in-store/element-split-placement.js +48 -0
  154. package/dist/in-store/element-split-placement.js.map +1 -0
  155. package/dist/in-store/element-split-slab.d.ts +19 -0
  156. package/dist/in-store/element-split-slab.d.ts.map +1 -0
  157. package/dist/in-store/element-split-slab.js +86 -0
  158. package/dist/in-store/element-split-slab.js.map +1 -0
  159. package/dist/in-store/element-split.d.ts +49 -0
  160. package/dist/in-store/element-split.d.ts.map +1 -0
  161. package/dist/in-store/element-split.js +52 -0
  162. package/dist/in-store/element-split.js.map +1 -0
  163. package/dist/in-store/element-transform-edit.d.ts +33 -0
  164. package/dist/in-store/element-transform-edit.d.ts.map +1 -0
  165. package/dist/in-store/element-transform-edit.js +97 -0
  166. package/dist/in-store/element-transform-edit.js.map +1 -0
  167. package/dist/in-store/element-transform-frames.d.ts +58 -0
  168. package/dist/in-store/element-transform-frames.d.ts.map +1 -0
  169. package/dist/in-store/element-transform-frames.js +110 -0
  170. package/dist/in-store/element-transform-frames.js.map +1 -0
  171. package/dist/in-store/element-transform-joins.d.ts +4 -0
  172. package/dist/in-store/element-transform-joins.d.ts.map +1 -0
  173. package/dist/in-store/element-transform-joins.js +62 -0
  174. package/dist/in-store/element-transform-joins.js.map +1 -0
  175. package/dist/in-store/element-transform-plan.d.ts +38 -0
  176. package/dist/in-store/element-transform-plan.d.ts.map +1 -0
  177. package/dist/in-store/element-transform-plan.js +115 -0
  178. package/dist/in-store/element-transform-plan.js.map +1 -0
  179. package/dist/in-store/element-trim-extend.d.ts +25 -0
  180. package/dist/in-store/element-trim-extend.d.ts.map +1 -0
  181. package/dist/in-store/element-trim-extend.js +97 -0
  182. package/dist/in-store/element-trim-extend.js.map +1 -0
  183. package/dist/in-store/extract-grids.d.ts +36 -0
  184. package/dist/in-store/extract-grids.d.ts.map +1 -0
  185. package/dist/in-store/extract-grids.js +220 -0
  186. package/dist/in-store/extract-grids.js.map +1 -0
  187. package/dist/in-store/extract-walls.d.ts +12 -23
  188. package/dist/in-store/extract-walls.d.ts.map +1 -1
  189. package/dist/in-store/extract-walls.js +6 -69
  190. package/dist/in-store/extract-walls.js.map +1 -1
  191. package/dist/in-store/generate-spaces.d.ts +1 -1
  192. package/dist/in-store/grid-column.d.ts +23 -0
  193. package/dist/in-store/grid-column.d.ts.map +1 -0
  194. package/dist/in-store/grid-column.js +73 -0
  195. package/dist/in-store/grid-column.js.map +1 -0
  196. package/dist/in-store/grid-intersection-read.d.ts +10 -0
  197. package/dist/in-store/grid-intersection-read.d.ts.map +1 -0
  198. package/dist/in-store/grid-intersection-read.js +45 -0
  199. package/dist/in-store/grid-intersection-read.js.map +1 -0
  200. package/dist/in-store/grid.d.ts +124 -0
  201. package/dist/in-store/grid.d.ts.map +1 -0
  202. package/dist/in-store/grid.js +204 -0
  203. package/dist/in-store/grid.js.map +1 -0
  204. package/dist/in-store/group-evidence.d.ts +49 -0
  205. package/dist/in-store/group-evidence.d.ts.map +1 -0
  206. package/dist/in-store/group-evidence.js +111 -0
  207. package/dist/in-store/group-evidence.js.map +1 -0
  208. package/dist/in-store/group-graph.d.ts +51 -0
  209. package/dist/in-store/group-graph.d.ts.map +1 -0
  210. package/dist/in-store/group-graph.js +213 -0
  211. package/dist/in-store/group-graph.js.map +1 -0
  212. package/dist/in-store/group.d.ts +34 -0
  213. package/dist/in-store/group.d.ts.map +1 -0
  214. package/dist/in-store/group.js +181 -0
  215. package/dist/in-store/group.js.map +1 -0
  216. package/dist/in-store/host-geometry-frame.d.ts +48 -0
  217. package/dist/in-store/host-geometry-frame.d.ts.map +1 -0
  218. package/dist/in-store/host-geometry-frame.js +190 -0
  219. package/dist/in-store/host-geometry-frame.js.map +1 -0
  220. package/dist/in-store/hosted-element-edit.d.ts +29 -0
  221. package/dist/in-store/hosted-element-edit.d.ts.map +1 -0
  222. package/dist/in-store/hosted-element-edit.js +120 -0
  223. package/dist/in-store/hosted-element-edit.js.map +1 -0
  224. package/dist/in-store/hosted-element.d.ts +41 -0
  225. package/dist/in-store/hosted-element.d.ts.map +1 -0
  226. package/dist/in-store/hosted-element.js +124 -0
  227. package/dist/in-store/hosted-element.js.map +1 -0
  228. package/dist/in-store/hosted-fill-read.d.ts +56 -0
  229. package/dist/in-store/hosted-fill-read.d.ts.map +1 -0
  230. package/dist/in-store/hosted-fill-read.js +197 -0
  231. package/dist/in-store/hosted-fill-read.js.map +1 -0
  232. package/dist/in-store/hosted-global-id.d.ts +8 -0
  233. package/dist/in-store/hosted-global-id.d.ts.map +1 -0
  234. package/dist/in-store/hosted-global-id.js +53 -0
  235. package/dist/in-store/hosted-global-id.js.map +1 -0
  236. package/dist/in-store/hosted-placement-edit.d.ts +30 -0
  237. package/dist/in-store/hosted-placement-edit.d.ts.map +1 -0
  238. package/dist/in-store/hosted-placement-edit.js +123 -0
  239. package/dist/in-store/hosted-placement-edit.js.map +1 -0
  240. package/dist/in-store/hosted-scale-chain.d.ts +12 -0
  241. package/dist/in-store/hosted-scale-chain.d.ts.map +1 -0
  242. package/dist/in-store/hosted-scale-chain.js +74 -0
  243. package/dist/in-store/hosted-scale-chain.js.map +1 -0
  244. package/dist/in-store/hosted-shape-edit.d.ts +9 -0
  245. package/dist/in-store/hosted-shape-edit.d.ts.map +1 -0
  246. package/dist/in-store/hosted-shape-edit.js +79 -0
  247. package/dist/in-store/hosted-shape-edit.js.map +1 -0
  248. package/dist/in-store/index.d.ts +66 -0
  249. package/dist/in-store/index.d.ts.map +1 -0
  250. package/dist/in-store/index.js +71 -0
  251. package/dist/in-store/index.js.map +1 -0
  252. package/dist/in-store/linear-profile-frame.d.ts +10 -0
  253. package/dist/in-store/linear-profile-frame.d.ts.map +1 -0
  254. package/dist/in-store/linear-profile-frame.js +17 -0
  255. package/dist/in-store/linear-profile-frame.js.map +1 -0
  256. package/dist/in-store/material.d.ts.map +1 -1
  257. package/dist/in-store/material.js +17 -6
  258. package/dist/in-store/material.js.map +1 -1
  259. package/dist/in-store/member.d.ts +8 -2
  260. package/dist/in-store/member.d.ts.map +1 -1
  261. package/dist/in-store/member.js +15 -21
  262. package/dist/in-store/member.js.map +1 -1
  263. package/dist/in-store/ordinary-element.d.ts +47 -0
  264. package/dist/in-store/ordinary-element.d.ts.map +1 -0
  265. package/dist/in-store/ordinary-element.js +38 -0
  266. package/dist/in-store/ordinary-element.js.map +1 -0
  267. package/dist/in-store/placement-frame.d.ts +15 -5
  268. package/dist/in-store/placement-frame.d.ts.map +1 -1
  269. package/dist/in-store/placement-frame.js +25 -36
  270. package/dist/in-store/placement-frame.js.map +1 -1
  271. package/dist/in-store/profile.d.ts +141 -0
  272. package/dist/in-store/profile.d.ts.map +1 -0
  273. package/dist/in-store/profile.js +174 -0
  274. package/dist/in-store/profile.js.map +1 -0
  275. package/dist/in-store/railing.d.ts +65 -0
  276. package/dist/in-store/railing.d.ts.map +1 -0
  277. package/dist/in-store/railing.js +112 -0
  278. package/dist/in-store/railing.js.map +1 -0
  279. package/dist/in-store/rel-connects-path.d.ts +43 -0
  280. package/dist/in-store/rel-connects-path.d.ts.map +1 -0
  281. package/dist/in-store/rel-connects-path.js +65 -0
  282. package/dist/in-store/rel-connects-path.js.map +1 -0
  283. package/dist/in-store/resolve-anchor.d.ts +3 -2
  284. package/dist/in-store/resolve-anchor.d.ts.map +1 -1
  285. package/dist/in-store/resolve-anchor.js +7 -5
  286. package/dist/in-store/resolve-anchor.js.map +1 -1
  287. package/dist/in-store/resolve-host.d.ts +12 -1
  288. package/dist/in-store/resolve-host.d.ts.map +1 -1
  289. package/dist/in-store/resolve-host.js +169 -85
  290. package/dist/in-store/resolve-host.js.map +1 -1
  291. package/dist/in-store/resolve-relations.d.ts +3 -1
  292. package/dist/in-store/resolve-relations.d.ts.map +1 -1
  293. package/dist/in-store/resolve-relations.js +8 -3
  294. package/dist/in-store/resolve-relations.js.map +1 -1
  295. package/dist/in-store/resolve-source.d.ts.map +1 -1
  296. package/dist/in-store/resolve-source.js +39 -59
  297. package/dist/in-store/resolve-source.js.map +1 -1
  298. package/dist/in-store/room-candidates.d.ts +58 -0
  299. package/dist/in-store/room-candidates.d.ts.map +1 -0
  300. package/dist/in-store/room-candidates.js +135 -0
  301. package/dist/in-store/room-candidates.js.map +1 -0
  302. package/dist/in-store/room-creation-plan.d.ts +16 -0
  303. package/dist/in-store/room-creation-plan.d.ts.map +1 -0
  304. package/dist/in-store/room-creation-plan.js +28 -0
  305. package/dist/in-store/room-creation-plan.js.map +1 -0
  306. package/dist/in-store/room-floor-height.d.ts +24 -0
  307. package/dist/in-store/room-floor-height.d.ts.map +1 -0
  308. package/dist/in-store/room-floor-height.js +32 -0
  309. package/dist/in-store/room-floor-height.js.map +1 -0
  310. package/dist/in-store/room-footprint-native.d.ts +19 -0
  311. package/dist/in-store/room-footprint-native.d.ts.map +1 -0
  312. package/dist/in-store/room-footprint-native.js +117 -0
  313. package/dist/in-store/room-footprint-native.js.map +1 -0
  314. package/dist/in-store/room-layout-cache.d.ts +23 -0
  315. package/dist/in-store/room-layout-cache.d.ts.map +1 -0
  316. package/dist/in-store/room-layout-cache.js +84 -0
  317. package/dist/in-store/room-layout-cache.js.map +1 -0
  318. package/dist/in-store/room-layout-core.d.ts +68 -0
  319. package/dist/in-store/room-layout-core.d.ts.map +1 -0
  320. package/dist/in-store/room-layout-core.js +153 -0
  321. package/dist/in-store/room-layout-core.js.map +1 -0
  322. package/dist/in-store/room-population.d.ts +5 -0
  323. package/dist/in-store/room-population.d.ts.map +1 -0
  324. package/dist/in-store/room-population.js +28 -0
  325. package/dist/in-store/room-population.js.map +1 -0
  326. package/dist/in-store/room-space-meshes.d.ts +15 -0
  327. package/dist/in-store/room-space-meshes.d.ts.map +1 -0
  328. package/dist/in-store/room-space-meshes.js +38 -0
  329. package/dist/in-store/room-space-meshes.js.map +1 -0
  330. package/dist/in-store/room-store.d.ts +55 -0
  331. package/dist/in-store/room-store.d.ts.map +1 -0
  332. package/dist/in-store/room-store.js +173 -0
  333. package/dist/in-store/room-store.js.map +1 -0
  334. package/dist/in-store/room-storey-elevation.d.ts +5 -0
  335. package/dist/in-store/room-storey-elevation.d.ts.map +1 -0
  336. package/dist/in-store/room-storey-elevation.js +42 -0
  337. package/dist/in-store/room-storey-elevation.js.map +1 -0
  338. package/dist/in-store/room-storey-frame.d.ts +47 -0
  339. package/dist/in-store/room-storey-frame.d.ts.map +1 -0
  340. package/dist/in-store/room-storey-frame.js +48 -0
  341. package/dist/in-store/room-storey-frame.js.map +1 -0
  342. package/dist/in-store/room-wall-rects.d.ts +117 -0
  343. package/dist/in-store/room-wall-rects.d.ts.map +1 -0
  344. package/dist/in-store/room-wall-rects.js +157 -0
  345. package/dist/in-store/room-wall-rects.js.map +1 -0
  346. package/dist/in-store/schema-attributes.d.ts +8 -3
  347. package/dist/in-store/schema-attributes.d.ts.map +1 -1
  348. package/dist/in-store/schema-attributes.js +18 -9
  349. package/dist/in-store/schema-attributes.js.map +1 -1
  350. package/dist/in-store/slab.d.ts.map +1 -1
  351. package/dist/in-store/slab.js +1 -4
  352. package/dist/in-store/slab.js.map +1 -1
  353. package/dist/in-store/space-footprints.d.ts +55 -0
  354. package/dist/in-store/space-footprints.d.ts.map +1 -0
  355. package/dist/in-store/space-footprints.js +260 -0
  356. package/dist/in-store/space-footprints.js.map +1 -0
  357. package/dist/in-store/space.d.ts.map +1 -1
  358. package/dist/in-store/space.js +15 -3
  359. package/dist/in-store/space.js.map +1 -1
  360. package/dist/in-store/spatial-children.d.ts +1 -1
  361. package/dist/in-store/spatial-children.js +1 -1
  362. package/dist/in-store/stair-edit.d.ts +24 -0
  363. package/dist/in-store/stair-edit.d.ts.map +1 -0
  364. package/dist/in-store/stair-edit.js +190 -0
  365. package/dist/in-store/stair-edit.js.map +1 -0
  366. package/dist/in-store/stair-removal.d.ts +17 -0
  367. package/dist/in-store/stair-removal.d.ts.map +1 -0
  368. package/dist/in-store/stair-removal.js +134 -0
  369. package/dist/in-store/stair-removal.js.map +1 -0
  370. package/dist/in-store/stair.d.ts +58 -0
  371. package/dist/in-store/stair.d.ts.map +1 -0
  372. package/dist/in-store/stair.js +156 -0
  373. package/dist/in-store/stair.js.map +1 -0
  374. package/dist/in-store/storey-plan-frame.d.ts +2 -1
  375. package/dist/in-store/storey-plan-frame.d.ts.map +1 -1
  376. package/dist/in-store/storey-plan-frame.js +20 -11
  377. package/dist/in-store/storey-plan-frame.js.map +1 -1
  378. package/dist/in-store/storey-reassignment-plan.d.ts +53 -0
  379. package/dist/in-store/storey-reassignment-plan.d.ts.map +1 -0
  380. package/dist/in-store/storey-reassignment-plan.js +237 -0
  381. package/dist/in-store/storey-reassignment-plan.js.map +1 -0
  382. package/dist/in-store/storey-reassignment.d.ts +8 -0
  383. package/dist/in-store/storey-reassignment.d.ts.map +1 -0
  384. package/dist/in-store/storey-reassignment.js +52 -0
  385. package/dist/in-store/storey-reassignment.js.map +1 -0
  386. package/dist/in-store/trim-extend-plan.d.ts +27 -0
  387. package/dist/in-store/trim-extend-plan.d.ts.map +1 -0
  388. package/dist/in-store/trim-extend-plan.js +49 -0
  389. package/dist/in-store/trim-extend-plan.js.map +1 -0
  390. package/dist/in-store/wall-join-apply.d.ts +74 -0
  391. package/dist/in-store/wall-join-apply.d.ts.map +1 -0
  392. package/dist/in-store/wall-join-apply.js +137 -0
  393. package/dist/in-store/wall-join-apply.js.map +1 -0
  394. package/dist/in-store/wall-join-edit.d.ts +53 -0
  395. package/dist/in-store/wall-join-edit.d.ts.map +1 -0
  396. package/dist/in-store/wall-join-edit.js +251 -0
  397. package/dist/in-store/wall-join-edit.js.map +1 -0
  398. package/dist/in-store/wall-join-read.d.ts +60 -0
  399. package/dist/in-store/wall-join-read.d.ts.map +1 -0
  400. package/dist/in-store/wall-join-read.js +230 -0
  401. package/dist/in-store/wall-join-read.js.map +1 -0
  402. package/dist/in-store/wall-join.d.ts +122 -0
  403. package/dist/in-store/wall-join.d.ts.map +1 -0
  404. package/dist/in-store/wall-join.js +231 -0
  405. package/dist/in-store/wall-join.js.map +1 -0
  406. package/dist/in-store/wall-opening-fit.d.ts +11 -0
  407. package/dist/in-store/wall-opening-fit.d.ts.map +1 -0
  408. package/dist/in-store/wall-opening-fit.js +27 -0
  409. package/dist/in-store/wall-opening-fit.js.map +1 -0
  410. package/dist/in-store/wall-section-edit.d.ts +16 -0
  411. package/dist/in-store/wall-section-edit.d.ts.map +1 -0
  412. package/dist/in-store/wall-section-edit.js +75 -0
  413. package/dist/in-store/wall-section-edit.js.map +1 -0
  414. package/dist/in-store/wall-size-edit.d.ts +29 -0
  415. package/dist/in-store/wall-size-edit.d.ts.map +1 -0
  416. package/dist/in-store/wall-size-edit.js +65 -0
  417. package/dist/in-store/wall-size-edit.js.map +1 -0
  418. package/dist/in-store/wall.d.ts +32 -0
  419. package/dist/in-store/wall.d.ts.map +1 -1
  420. package/dist/in-store/wall.js +77 -13
  421. package/dist/in-store/wall.js.map +1 -1
  422. package/dist/index.d.ts +25 -38
  423. package/dist/index.d.ts.map +1 -1
  424. package/dist/index.js +25 -40
  425. package/dist/index.js.map +1 -1
  426. package/package.json +9 -8
@@ -0,0 +1,112 @@
1
+ /* This Source Code Form is subject to the terms of the Mozilla Public
2
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
+ import { assertFinitePoint3 } from '../ifc-creator-math.js';
5
+ import { toNativeLength, toNativePoint3 } from './anchor.js';
6
+ import { assertPositiveFinite, emitLocalPlacement, emitRelContainedInSpatialStructure, ownerHistoryRef, productGuid, } from './_emit-helpers.js';
7
+ import { schemaAttributes, schemaRegistry } from './schema-attributes.js';
8
+ const DEFAULT_RAIL_DIAMETER = 0.05;
9
+ const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];
10
+ const lerp = (a, b, t) => [a[0] + (b[0] - a[0]) * t, a[1] + (b[1] - a[1]) * t, a[2] + (b[2] - a[2]) * t];
11
+ /**
12
+ * Post base points along `path` (vertices, plus intermediates at `spacing`).
13
+ * `spacing`, when given, must be finite and positive: a zero spacing would
14
+ * need infinitely many posts, and NaN would silently drop segment ends.
15
+ */
16
+ export function railingPostPoints(path, spacing) {
17
+ if (spacing !== undefined)
18
+ assertPositiveFinite([spacing], 'railingPostPoints: spacing must be a finite positive number');
19
+ const posts = [path[0]];
20
+ for (let i = 1; i < path.length; i++) {
21
+ const a = path[i - 1];
22
+ const b = path[i];
23
+ const bays = spacing === undefined ? 1 : Math.max(1, Math.ceil(Math.hypot(...sub(b, a)) / spacing - 1e-9));
24
+ for (let k = 1; k <= bays; k++)
25
+ posts.push(lerp(a, b, k / bays));
26
+ }
27
+ return posts;
28
+ }
29
+ function assertRailingParams(params, op) {
30
+ if (!Array.isArray(params.Path) || params.Path.length < 2) {
31
+ throw new Error(`${op}: Path needs at least two points`);
32
+ }
33
+ params.Path.forEach((p, i) => assertFinitePoint3({ [`Path[${i}]`]: p }, op));
34
+ for (let i = 1; i < params.Path.length; i++) {
35
+ if (Math.hypot(...sub(params.Path[i], params.Path[i - 1])) <= 1e-9) {
36
+ throw new Error(`${op}: Path[${i - 1}] and Path[${i}] must be distinct points`);
37
+ }
38
+ }
39
+ const rail = params.RailDiameter ?? DEFAULT_RAIL_DIAMETER;
40
+ assertPositiveFinite([params.Height, rail, params.PostDiameter ?? rail], `${op}: Height, RailDiameter and PostDiameter must be finite positive numbers`);
41
+ if (params.Height <= rail)
42
+ throw new Error(`${op}: Height must be greater than RailDiameter`);
43
+ if (params.PostSpacing !== undefined) {
44
+ assertPositiveFinite([params.PostSpacing], `${op}: PostSpacing must be a finite positive number`);
45
+ }
46
+ }
47
+ export function addRailingToStore(editor, anchor, params) {
48
+ const op = 'addRailingToStore';
49
+ assertRailingParams(params, op);
50
+ const registry = schemaRegistry(anchor.schema, op);
51
+ const isIfc2x3 = registry.name.toUpperCase() === 'IFC2X3';
52
+ const railDiameter = params.RailDiameter ?? DEFAULT_RAIL_DIAMETER;
53
+ const railRadius = toNativeLength(anchor, railDiameter / 2);
54
+ const postRadius = toNativeLength(anchor, (params.PostDiameter ?? railDiameter) / 2);
55
+ const railAxisHeight = toNativeLength(anchor, params.Height - railDiameter / 2);
56
+ const path = params.Path.map((p) => toNativePoint3(anchor, p));
57
+ const origin = path[0];
58
+ const local = path.map((p) => sub(p, origin));
59
+ const spacing = params.PostSpacing === undefined ? undefined : toNativeLength(anchor, params.PostSpacing);
60
+ // Lay the railing record out before the first emit so a bad PredefinedType
61
+ // or a missing IFC2X3 OwnerHistory refuses cleanly.
62
+ const globalId = productGuid(params, anchor.guidRandom);
63
+ const railingValues = (placement, shape) => ({
64
+ GlobalId: globalId,
65
+ OwnerHistory: ownerHistoryRef(anchor.ownerHistoryId),
66
+ Name: params.Name ?? 'Railing',
67
+ Description: params.Description,
68
+ ObjectType: params.ObjectType,
69
+ ObjectPlacement: placement,
70
+ Representation: shape,
71
+ Tag: params.Tag,
72
+ PredefinedType: params.PredefinedType ?? 'HANDRAIL',
73
+ });
74
+ schemaAttributes(registry, 'IfcRailing', railingValues(null, null), op);
75
+ // Placement at the first path point, explicit axes so it can be turned later.
76
+ const placementId = emitLocalPlacement(editor, anchor.storeyPlacementId, origin, [0, 0, 1], [1, 0, 0]);
77
+ // Handrail: a disk swept along the path lifted to the rail's centreline.
78
+ const directrixPoints = local.map((p) => editor.addEntity('IfcCartesianPoint', [[p[0], p[1], p[2] + railAxisHeight]]).expressId);
79
+ const directrix = editor.addEntity('IfcPolyline', [directrixPoints.map((id) => `#${id}`)]).expressId;
80
+ const railSolidId = editor.addEntity('IfcSweptDiskSolid', schemaAttributes(registry, 'IfcSweptDiskSolid', {
81
+ Directrix: `#${directrix}`,
82
+ Radius: railRadius,
83
+ // IfcPolyline's parameter is the point index; IFC2X3 requires the range.
84
+ ...(isIfc2x3 ? { StartParam: 0, EndParam: local.length - 1 } : {}),
85
+ }, op)).expressId;
86
+ // Posts: circular, from the path up to the rail's centreline. One shared
87
+ // profile and extrusion direction.
88
+ const postOriginPt = editor.addEntity('IfcCartesianPoint', [[0, 0]]).expressId;
89
+ const postProfilePos = editor.addEntity('IfcAxis2Placement2D', [`#${postOriginPt}`, null]).expressId;
90
+ const postProfile = editor.addEntity('IfcCircleProfileDef', schemaAttributes(registry, 'IfcCircleProfileDef', {
91
+ ProfileType: 'AREA',
92
+ Position: `#${postProfilePos}`,
93
+ Radius: postRadius,
94
+ }, op)).expressId;
95
+ const up = editor.addEntity('IfcDirection', [[0, 0, 1]]).expressId;
96
+ const postSolidIds = railingPostPoints(local, spacing).map((p) => {
97
+ const pt = editor.addEntity('IfcCartesianPoint', [p]).expressId;
98
+ const position = editor.addEntity('IfcAxis2Placement3D', [`#${pt}`, null, null]).expressId;
99
+ return editor.addEntity('IfcExtrudedAreaSolid', [`#${postProfile}`, `#${position}`, `#${up}`, railAxisHeight]).expressId;
100
+ });
101
+ const shapeRepId = editor.addEntity('IfcShapeRepresentation', [
102
+ `#${anchor.bodyContextId}`,
103
+ 'Body',
104
+ 'SolidModel',
105
+ [railSolidId, ...postSolidIds].map((id) => `#${id}`),
106
+ ]).expressId;
107
+ const productShapeId = editor.addEntity('IfcProductDefinitionShape', [null, null, [`#${shapeRepId}`]]).expressId;
108
+ const railingId = editor.addEntity('IfcRailing', schemaAttributes(registry, 'IfcRailing', railingValues(`#${placementId}`, `#${productShapeId}`), op)).expressId;
109
+ const relContainedId = emitRelContainedInSpatialStructure(editor, anchor.ownerHistoryId, railingId, anchor.storeyId, anchor.guidRandom);
110
+ return { railingId, placementId, railSolidId, postSolidIds, shapeRepId, productShapeId, relContainedId };
111
+ }
112
+ //# sourceMappingURL=railing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"railing.js","sourceRoot":"","sources":["../../src/in-store/railing.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAsB/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,cAAc,EAAsB,MAAM,aAAa,CAAC;AACjF,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,kCAAkC,EAClC,eAAe,EACf,WAAW,GACZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAK1E,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAuCnC,MAAM,GAAG,GAAG,CAAC,CAAO,EAAE,CAAO,EAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAChF,MAAM,IAAI,GAAG,CAAC,CAAO,EAAE,CAAO,EAAE,CAAS,EAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC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UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC;AAC3G,CAAC"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * `IfcRelConnectsPathElements`: two path elements (walls) joined at their
3
+ * start, end or along the path (#6232 D1). The attribute layout comes from the
4
+ * target schema's registry, so IFC2X3, IFC4 and IFC4X3 are all written right;
5
+ * IFC5 / IFCX are refused.
6
+ *
7
+ * GlobalId, OwnerHistory?, Name?, Description?, ConnectionGeometry?,
8
+ * RelatingElement, RelatedElement, RelatingPriorities, RelatedPriorities,
9
+ * RelatedConnectionType, RelatingConnectionType
10
+ *
11
+ * The priorities are the material-layer priorities at the joint; they are
12
+ * mandatory lists, written empty when the caller has none.
13
+ *
14
+ * Pure: writes through the editor only.
15
+ */
16
+ import { type RandomSource } from '@ifc-lite/encoding';
17
+ import type { StoreEditor } from '@ifc-lite/mutations';
18
+ import type { SpatialAnchorSchema } from './anchor.js';
19
+ import type { WallConnectionType } from './wall-join.js';
20
+ /** The anchor fields the relationship needs. A full `SpatialAnchor` or an `AuthoringAnchor` both fit. */
21
+ export interface RelConnectsAnchor {
22
+ ownerHistoryId: number | null;
23
+ /** Default IFC4. */
24
+ schema?: SpatialAnchorSchema;
25
+ guidRandom?: RandomSource;
26
+ }
27
+ export interface RelConnectsPathElementsParams {
28
+ /** The element that runs through (for a T, the one whose path is joined). */
29
+ RelatingElement: number;
30
+ RelatedElement: number;
31
+ RelatingConnectionType: WallConnectionType;
32
+ RelatedConnectionType: WallConnectionType;
33
+ /** Layer priorities of the relating element at the joint. Default empty. */
34
+ RelatingPriorities?: readonly number[];
35
+ /** Layer priorities of the related element at the joint. Default empty. */
36
+ RelatedPriorities?: readonly number[];
37
+ Name?: string;
38
+ Description?: string;
39
+ }
40
+ export declare function addRelConnectsPathElementsToStore(editor: StoreEditor, anchor: RelConnectsAnchor, params: RelConnectsPathElementsParams): number;
41
+ /** Validate `params` and lay out the relationship's attributes, without writing anything. */
42
+ export declare function relConnectsPathElementsAttributes(editor: StoreEditor, anchor: RelConnectsAnchor, params: RelConnectsPathElementsParams, op: string): unknown[];
43
+ //# sourceMappingURL=rel-connects-path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rel-connects-path.d.ts","sourceRoot":"","sources":["../../src/in-store/rel-connects-path.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,yGAAyG;AACzG,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,oBAAoB;IACpB,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,UAAU,CAAC,EAAE,YAAY,CAAC;CAC3B;AAED,MAAM,WAAW,6BAA6B;IAC5C,6EAA6E;IAC7E,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,sBAAsB,EAAE,kBAAkB,CAAC;IAC3C,qBAAqB,EAAE,kBAAkB,CAAC;IAC1C,4EAA4E;IAC5E,kBAAkB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAID,wBAAgB,iCAAiC,CAC/C,MAAM,EAAE,WAAW,EACnB,MAAM,EAAE,iBAAiB,EACzB,MAAM,EAAE,6BAA6B,GACpC,MAAM,CAGR;AAED,6FAA6F;AAC7F,wBAAgB,iCAAiC,CAC/C,MAAM,EAAE,WAAW,EACnB,MAAM,EAAE,iBAAiB,EACzB,MAAM,EAAE,6BAA6B,EACrC,EAAE,EAAE,MAAM,GACT,OAAO,EAAE,CAiCX"}
@@ -0,0 +1,65 @@
1
+ /* This Source Code Form is subject to the terms of the Mozilla Public
2
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
+ /**
5
+ * `IfcRelConnectsPathElements`: two path elements (walls) joined at their
6
+ * start, end or along the path (#6232 D1). The attribute layout comes from the
7
+ * target schema's registry, so IFC2X3, IFC4 and IFC4X3 are all written right;
8
+ * IFC5 / IFCX are refused.
9
+ *
10
+ * GlobalId, OwnerHistory?, Name?, Description?, ConnectionGeometry?,
11
+ * RelatingElement, RelatedElement, RelatingPriorities, RelatedPriorities,
12
+ * RelatedConnectionType, RelatingConnectionType
13
+ *
14
+ * The priorities are the material-layer priorities at the joint; they are
15
+ * mandatory lists, written empty when the caller has none.
16
+ *
17
+ * Pure: writes through the editor only.
18
+ */
19
+ import { generateIfcGuid } from '@ifc-lite/encoding';
20
+ import { ownerHistoryRef } from './_emit-helpers.js';
21
+ import { conformsTo, schemaAttributes, schemaRegistry } from './schema-attributes.js';
22
+ const CONNECTION_TYPES = ['ATSTART', 'ATEND', 'ATPATH'];
23
+ export function addRelConnectsPathElementsToStore(editor, anchor, params) {
24
+ const attributes = relConnectsPathElementsAttributes(editor, anchor, params, 'addRelConnectsPathElementsToStore');
25
+ return editor.addEntity('IfcRelConnectsPathElements', attributes).expressId;
26
+ }
27
+ /** Validate `params` and lay out the relationship's attributes, without writing anything. */
28
+ export function relConnectsPathElementsAttributes(editor, anchor, params, op) {
29
+ const registry = schemaRegistry(anchor.schema, op);
30
+ const { RelatingElement: relating, RelatedElement: related } = params;
31
+ for (const id of [relating, related]) {
32
+ if (!Number.isInteger(id) || id <= 0 || !editor.hasEntity(id))
33
+ throw new Error(`${op}: #${id} is not a live entity`);
34
+ const type = editor.getEntityType(id);
35
+ if (!type || !conformsTo(registry, type, 'IfcElement')) {
36
+ throw new Error(`${op}: #${id} is ${type ?? 'unknown'}, not an IfcElement`);
37
+ }
38
+ }
39
+ if (relating === related)
40
+ throw new Error(`${op}: an element cannot connect to itself`);
41
+ for (const value of [params.RelatingConnectionType, params.RelatedConnectionType]) {
42
+ if (!CONNECTION_TYPES.includes(value))
43
+ throw new Error(`${op}: connection type must be ATSTART, ATEND or ATPATH; got ${String(value)}`);
44
+ }
45
+ const priorities = (list, name) => {
46
+ const values = [...(list ?? [])];
47
+ if (values.some((v) => !Number.isInteger(v) || v < 0 || v > 100)) {
48
+ throw new Error(`${op}: ${name} must be integers between 0 and 100`);
49
+ }
50
+ return values;
51
+ };
52
+ return schemaAttributes(registry, 'IfcRelConnectsPathElements', {
53
+ GlobalId: generateIfcGuid(anchor.guidRandom),
54
+ OwnerHistory: ownerHistoryRef(anchor.ownerHistoryId),
55
+ Name: params.Name,
56
+ Description: params.Description,
57
+ RelatingElement: `#${relating}`,
58
+ RelatedElement: `#${related}`,
59
+ RelatingPriorities: priorities(params.RelatingPriorities, 'RelatingPriorities'),
60
+ RelatedPriorities: priorities(params.RelatedPriorities, 'RelatedPriorities'),
61
+ RelatedConnectionType: params.RelatedConnectionType,
62
+ RelatingConnectionType: params.RelatingConnectionType,
63
+ }, op);
64
+ }
65
+ //# sourceMappingURL=rel-connects-path.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rel-connects-path.js","sourceRoot":"","sources":["../../src/in-store/rel-connects-path.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAE/D;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,eAAe,EAAqB,MAAM,oBAAoB,CAAC;AAGxE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAyBtF,MAAM,gBAAgB,GAAsB,CAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAE3E,MAA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,7 @@
7
7
  * 3D IfcGeometricRepresentationContext), and the target storey's
8
8
  * IfcLocalPlacement.
9
9
  */
10
- import { type EffectiveEntityRecord, type IfcDataStore } from '@ifc-lite/parser';
10
+ import { type EffectiveEntityRecord, type IfcDataStore, type SchemaEntityNameSnapshot } from '@ifc-lite/parser';
11
11
  import { type MutablePropertyView } from '@ifc-lite/mutations';
12
12
  import type { SpatialAnchor } from './anchor.js';
13
13
  export declare function resolveSpatialAnchor(store: IfcDataStore, storeyExpressId: number, view?: MutablePropertyView | null): SpatialAnchor;
@@ -19,8 +19,9 @@ export declare function resolveSpatialAnchor(store: IfcDataStore, storeyExpressI
19
19
  export declare class AnchorEntityReader {
20
20
  private readonly store;
21
21
  private readonly view;
22
+ private readonly schemaNames?;
22
23
  private readonly extractor;
23
- constructor(store: IfcDataStore, view: MutablePropertyView | null | undefined);
24
+ constructor(store: IfcDataStore | null, view: MutablePropertyView | null | undefined, schemaNames?: SchemaEntityNameSnapshot | undefined);
24
25
  ids(type: string): IterableIterator<number>;
25
26
  firstId(type: string): number | null;
26
27
  /** Prefer the named subcontext, then the root 3D context. */
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-anchor.d.ts","sourceRoot":"","sources":["../../src/in-store/resolve-anchor.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AAEH,OAAO,EAAiD,KAAK,qBAAqB,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChI,OAAO,EAA6B,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1F,OAAO,KAAK,EAAE,aAAa,EAAuB,MAAM,aAAa,CAAC;AAGtE,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,YAAY,EACnB,eAAe,EAAE,MAAM,EACvB,IAAI,CAAC,EAAE,mBAAmB,GAAG,IAAI,GAChC,aAAa,CAiDf;AAED;;;;GAIG;AACH,qBAAa,kBAAkB;IAI3B,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAA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CAAC,QAAQ,CAAC,SAAS,CAAyB;gBAGhC,KAAK,EAAE,YAAY,GAAG,IAAI,EAC1B,IAAI,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,EAC5C,WAAW,CAAC,EAAE,wBAAwB,YAAA;IAKxD,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC;IAM5C,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAIpC,6DAA6D;IAC7D,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI;IASnF,uDAAuD;IACvD,aAAa,IAAI,MAAM,GAAG,IAAI;IAW9B,6EAA6E;IAC7E,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAgBlD,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,qBAAqB,GAAG,IAAI;CAcjD"}
@@ -61,14 +61,16 @@ export function resolveSpatialAnchor(store, storeyExpressId, view) {
61
61
  export class AnchorEntityReader {
62
62
  store;
63
63
  view;
64
+ schemaNames;
64
65
  extractor;
65
- constructor(store, view) {
66
+ constructor(store, view, schemaNames) {
66
67
  this.store = store;
67
68
  this.view = view;
68
- this.extractor = store.source.byteLength > 0 ? new EntityExtractor(store.source) : null;
69
+ this.schemaNames = schemaNames;
70
+ this.extractor = store && store.source.byteLength > 0 ? new EntityExtractor(store.source) : null;
69
71
  }
70
72
  *ids(type) {
71
- for (const { expressId } of iterateEffectiveEntityIds(this.store, this.view, [type])) {
73
+ for (const { expressId } of iterateEffectiveEntityIds(this.store ?? { entityIndex: { byType: new Map(), byId: new Map() } }, this.view, [type])) {
72
74
  yield expressId;
73
75
  }
74
76
  }
@@ -120,7 +122,7 @@ export class AnchorEntityReader {
120
122
  return null;
121
123
  const created = this.view?.getNewEntity(id);
122
124
  // @raw-entity-enumeration-ok point lookup after effective enumeration; source bytes are needed only for this candidate's attributes
123
- const ref = created ? undefined : this.store.entityIndex.byId.get(id);
125
+ const ref = created ? undefined : this.store?.entityIndex.byId.get(id);
124
126
  const source = ref && this.extractor ? this.extractor.extractEntity(ref) : null;
125
127
  const entity = created ?? source;
126
128
  if (!entity)
@@ -129,7 +131,7 @@ export class AnchorEntityReader {
129
131
  retype: this.view?.getEntityTypeMutation(id)?.newType,
130
132
  named: this.view?.getAttributeMutationsForEntity(id).map(({ name, value }) => [name, value]) ?? [],
131
133
  positional: this.view?.getPositionalMutationsForEntity(id) ?? [],
132
- }, this.store.schemaVersion);
134
+ }, this.store?.schemaVersion, this.schemaNames);
133
135
  }
134
136
  }
135
137
  //# sourceMappingURL=resolve-anchor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-anchor.js","sourceRoot":"","sources":["../../src/in-store/resolve-anchor.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAE/D;;;;;;;;GAQG;AAEH,OAAO,EAAE,eAAe,EAAE,4BAA4B,EAAiD,MAAM,kBAAkB,CAAC;AAChI,OAAO,EAAE,yBAAyB,EAA4B,MAAM,qBAAqB,CAAC;AAE1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,MAAM,UAAU,oBAAoB,CAClC,KAAmB,EACnB,eAAuB,EACvB,IAAiC;IAEjC,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACnD,uEAAuE;IACvE,wEAAwE;IACxE,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAEzD,MAAM,aAAa,GAAG,MAAM,CAAC,aAAa,EAAE,CAAC;IAC7C,MAAM,aAAa,GAAG,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAC9D,IAAI,aAAa,KAAK,IAAI,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,gGAAgG,CAAC,C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CAAC,EAAE,OAAO;YACrD,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,8BAA8B,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,CAAU,CAAC,IAAI,EAAE;YAC3G,UAAU,EAAE,IAAI,CAAC,IAAI,EAAE,+BAA+B,CAAC,EAAE,CAAC,IAAI,EAAE;SACjE,EAAE,IAAI,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAClD,CAAC;CACF"}
@@ -1,5 +1,16 @@
1
1
  import type { IfcDataStore } from '@ifc-lite/parser';
2
2
  import type { MutablePropertyView } from '@ifc-lite/mutations';
3
- import type { HostAnchor } from './anchor.js';
3
+ import type { HostAnchor, HostBounds } from './anchor.js';
4
4
  export declare function resolveHostAnchor(store: IfcDataStore, hostExpressId: number, view?: MutablePropertyView | null): HostAnchor;
5
+ /**
6
+ * The extent of `productId`'s Body geometry in its PARENT placement's frame
7
+ * (native units): the body bounds taken through the product's own
8
+ * RelativePlacement. For an opening placed relative to its host, that is the
9
+ * cut's extent in the host's frame, whatever profile or orientation the
10
+ * authoring tool gave it. Null when the product has no readable body.
11
+ */
12
+ export declare function placedBodyExtent(store: IfcDataStore, productId: number, view?: MutablePropertyView | null): HostBounds | null;
13
+ /** Package-private Model Body bounds before ObjectPlacement. Plan annotation
14
+ * representations are not physical volume; unreadable 3D parts still refuse. */
15
+ export declare function localBodyExtent(store: IfcDataStore, productId: number, view?: MutablePropertyView | null): HostBounds | null;
5
16
  //# sourceMappingURL=resolve-host.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-host.d.ts","sourceRoot":"","sources":["../../src/in-store/resolve-host.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAwB,MAAM,aAAa,CAAC;AAepE,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,YAAY,EACnB,aAAa,EAAE,MAAM,EACrB,IAAI,CAAC,EAAE,mBAAmB,GAAG,IAAI,GAChC,UAAU,CAuBZ"}
1
+ {"version":3,"file":"resolve-host.d.ts","sourceRoot":"","sources":["../../src/in-store/resolve-host.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAY,MAAM,aAAa,CAAC;AAYpE,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,YAAY,EACnB,aAAa,EAAE,MAAM,EACrB,IAAI,CAAC,EAAE,mBAAmB,GAAG,IAAI,GAChC,UAAU,CAuBZ;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,MAAM,EACjB,IAAI,CAAC,EAAE,mBAAmB,GAAG,IAAI,GAChC,UAAU,GAAG,IAAI,CAYnB;AAED;gFACgF;AAChF,wBAAgB,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,mBAAmB,GAAG,IAAI,GAAG,UAAU,GAAG,IAAI,CAK5H"}