@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,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
+ import { editOwnershipRefusal, expandAffectedSet } from '@ifc-lite/export';
5
+ import { readWallJoinRels, readWallJoinTarget } from './wall-join-read.js';
6
+ import { reshapeWallsInStore, resolveWallJoinAnchor } from './wall-join-edit.js';
7
+ import { toNativeLength } from './anchor.js';
8
+ import { resolveWallEditChain } from './edit/wall-edit.js';
9
+ import { getModelLengthUnitScale } from './edit/length-unit-scale.js';
10
+ export function readWallMetres(ctx, expressId) {
11
+ // The chain reads in metres when given the model's scale (#6233).
12
+ const scale = getModelLengthUnitScale(ctx.dataStore);
13
+ const chain = resolveWallEditChain(ctx.dataStore, ctx.view, ctx.editor, expressId, scale);
14
+ const read = readWallJoinTarget(ctx.dataStore, ctx.view, expressId, scale);
15
+ if (read) {
16
+ const z = read.location[2] * scale;
17
+ return { start: [...read.wall.start, z], end: [...read.wall.end, z], thickness: read.wall.thickness, height: read.height, chain, read };
18
+ }
19
+ if (!chain)
20
+ return null;
21
+ const start = [...chain.startCoordinates];
22
+ const length = chain.wallLength;
23
+ const [dx, dy, dz] = chain.refDirection;
24
+ const end = [start[0] + dx * length, start[1] + dy * length, start[2] + dz * length];
25
+ return { start, end, thickness: chain.thickness, height: chain.height, chain, read: null };
26
+ }
27
+ /** Caller owns an atomic transaction. Coordinates are storey-local IFC Z-up metres. */
28
+ export function resizeWallInStore(ctx, expressId, newStart, newEnd, options = {}) {
29
+ if (![...newStart, ...newEnd].every(Number.isFinite))
30
+ return { ok: false, reason: 'Wall endpoints must be finite' };
31
+ const wall = readWallMetres(ctx, expressId);
32
+ if (!wall)
33
+ return { ok: false, reason: 'Wall does not have a simple IfcRectangleProfileDef → IfcExtrudedAreaSolid representation' };
34
+ const dx = newEnd[0] - newStart[0];
35
+ const dy = newEnd[1] - newStart[1];
36
+ const dz = newEnd[2] - newStart[2];
37
+ const length = Math.hypot(dx, dy);
38
+ if (length < 1e-6)
39
+ return { ok: false, reason: 'Wall length must be greater than zero' };
40
+ if (Math.abs(dz) > Math.max(1e-6 * length, 1e-9)) {
41
+ return { ok: false, reason: 'Start and end must lie on the same storey plane' };
42
+ }
43
+ const { chain, read } = wall;
44
+ const joined = read !== null && readWallJoinRels(ctx.dataStore, ctx.view, new Set([expressId])).length > 0;
45
+ if (chain && (read === null || (read.plain && read.axisRepId === null && !joined))) {
46
+ const unit = { lengthUnitScale: getModelLengthUnitScale(ctx.dataStore) };
47
+ const n = (value) => toNativeLength(unit, value);
48
+ const nativeLength = n(length);
49
+ const updates = [
50
+ { entityId: chain.startPointId, index: 0, value: [n(newStart[0]), n(newStart[1]), n(newStart[2])] },
51
+ { entityId: chain.refDirectionId, index: 0, value: [dx / length, dy / length, 0] },
52
+ { entityId: chain.profileId, index: 3, value: nativeLength },
53
+ { entityId: chain.profileOriginPointId, index: 0, value: [nativeLength / 2, 0] },
54
+ ];
55
+ const ownership = editOwnershipRefusal(ctx.dataStore, ctx.view, updates.map(update => update.entityId), expandAffectedSet(ctx.dataStore, ctx.view, [expressId], 'hostsChanged'));
56
+ if (ownership)
57
+ return { ok: false, reason: ownership };
58
+ for (const update of updates)
59
+ ctx.editor.setPositionalAttribute(update.entityId, update.index, update.value);
60
+ return { ok: true, newLength: length, walls: [expressId] };
61
+ }
62
+ const result = reshapeWallsInStore(ctx.editor, ctx.dataStore, resolveWallJoinAnchor(ctx.dataStore, ctx.view), [{ wallId: expressId, start: [newStart[0], newStart[1]], end: [newEnd[0], newEnd[1]] }], options);
63
+ return { ok: true, newLength: length, walls: result.walls };
64
+ }
65
+ //# sourceMappingURL=wall-size-edit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wall-size-edit.js","sourceRoot":"","sources":["../../src/in-store/wall-size-edit.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAE/D,O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,SAAS,EAAE,qBAAqB,CAAC,GAAG,CAAC,SAAS,EAAE,GAAG,CAAC,IAAI,CAAC,EAC1G,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;IACpG,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC;AAC9D,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { StoreEditor } from '@ifc-lite/mutations';
2
2
  import { type SpatialAnchor } from './anchor.js';
3
+ import { type WallAlignment, type WallEndCut, type WallJoinWall } from './wall-join.js';
3
4
  export interface WallInStoreParams {
4
5
  /** Start of the wall axis, in storey-local coordinates (metres). */
5
6
  Start: [number, number, number];
@@ -15,15 +16,46 @@ export interface WallInStoreParams {
15
16
  Tag?: string;
16
17
  /** Explicit GlobalId (22-char IFC GUID); generated when omitted. */
17
18
  GlobalId?: string;
19
+ /** Which face the axis runs along (`left`/`right` of Start -> End). Default `center`. */
20
+ Alignment?: WallAlignment;
21
+ /** Extra shift of the body across the axis, metres, positive to the left. Default 0. */
22
+ Offset?: number;
23
+ /** Body end at Start (metres past the axis end at each face). Default square at Start. */
24
+ StartCut?: WallEndCut;
25
+ /** Body end at End. Default square at End. */
26
+ EndCut?: WallEndCut;
27
+ /**
28
+ * Write an `Axis` representation beside the Body. Default true: it is the
29
+ * centreline other tools and `extractWallSegmentsForStorey` read, and a
30
+ * joined body no longer tells where the axis ends. The viewer's resize and
31
+ * joins keep it current. Pass false for a body-only wall.
32
+ */
33
+ Axis?: boolean;
18
34
  }
19
35
  export interface WallBuildResult {
20
36
  wallId: number;
21
37
  placementId: number;
22
38
  profileId: number;
23
39
  solidId: number;
40
+ /** The `Body` IfcShapeRepresentation (first in the product shape). */
24
41
  shapeRepId: number;
42
+ /** The `Axis` IfcShapeRepresentation (second in the product shape), or null with `Axis: false`. */
43
+ axisRepId: number | null;
25
44
  productShapeId: number;
26
45
  relContainedId: number;
27
46
  }
47
+ /** The plan view of a wall's params, in metres, as `computeWallJoin` takes it. */
48
+ export declare function wallJoinWallFromParams(params: WallInStoreParams): WallJoinWall;
49
+ /**
50
+ * Emit the body profile of `wall` (metres) in a wall frame whose origin sits
51
+ * `startX` metres before the wall's Start along the axis (0 when the placement
52
+ * origin is Start). Coordinates are converted to the anchor's native unit.
53
+ */
54
+ export declare function emitWallBodyProfile(editor: StoreEditor, anchor: Pick<SpatialAnchor, 'lengthUnitScale'>, wall: WallJoinWall, startX?: number): number;
55
+ /**
56
+ * Emit the `Axis` representation: a 2D IfcPolyline from `fromX` to `toX`
57
+ * (metres) along the wall frame's X.
58
+ */
59
+ export declare function emitWallAxisRepresentation(editor: StoreEditor, anchor: Pick<SpatialAnchor, 'axisContextId' | 'lengthUnitScale'>, fromX: number, toX: number): number;
28
60
  export declare function addWallToStore(editor: StoreEditor, anchor: SpatialAnchor, params: WallInStoreParams): WallBuildResult;
29
61
  //# sourceMappingURL=wall.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wall.d.ts","sourceRoot":"","sources":["../../src/in-store/wall.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD,OAAO,EAAkC,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjF,MAAM,WAAW,iBAAiB;IAChC,oEAAoE;IACpE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,kEAAkE;IAClE,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,kEAAkE;IAClE,SAAS,EAAE,MAAM,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MAAM,EAAE,iBAAiB,GACxB,eAAe,CAyHjB"}
@@ -12,13 +12,69 @@
12
12
  * so the solid spans `Start → End` along local X and is centred
13
13
  * on the thickness axis
14
14
  * - extruded upward (local +Z) by `Height`
15
+ * - unless `Axis: false`, an `Axis` representation (`Curve2D` IfcPolyline,
16
+ * Start -> End in the wall's frame) beside the `Body`: the centreline
17
+ * other tools and `extractWallSegmentsForStorey` read
18
+ *
19
+ * `Alignment`/`Offset` shift the body across the axis, and `StartCut`/`EndCut`
20
+ * reach past or stop short of the axis ends (see `./wall-join.ts`). Square
21
+ * ends keep the rectangle profile; a slanted end, as a join at an angle other
22
+ * than 90 degrees leaves, needs a four-point IfcArbitraryClosedProfileDef.
15
23
  *
16
24
  * Pure: no I/O, no parser access — operates entirely through the editor.
17
25
  */
18
26
  import { generateIfcGuid } from '@ifc-lite/encoding';
19
27
  import { vecNorm, assertFinitePoint3 } from '../ifc-creator-math.js';
20
28
  import { toNativeLength, toNativePoint3 } from './anchor.js';
21
- import { assertPositiveFinite, emitLocalPlacement, ownerHistoryRef, productGuid } from './_emit-helpers.js';
29
+ import { assertPositiveFinite, emitLocalPlacement, emitPolygonProfile, emitRectangleProfile, ownerHistoryRef, productGuid, } from './_emit-helpers.js';
30
+ import { wallBodyOutline } from './wall-join.js';
31
+ /** Round away the float noise sums of metre values pick up (0.05 + 0.1 - 0.2 = -0.05000000000000001). */
32
+ function roundLength(v) {
33
+ return Math.round(v * 1e9) / 1e9;
34
+ }
35
+ /** The plan view of a wall's params, in metres, as `computeWallJoin` takes it. */
36
+ export function wallJoinWallFromParams(params) {
37
+ return {
38
+ start: [params.Start[0], params.Start[1]],
39
+ end: [params.End[0], params.End[1]],
40
+ thickness: params.Thickness,
41
+ alignment: params.Alignment,
42
+ offset: params.Offset,
43
+ startCut: params.StartCut,
44
+ endCut: params.EndCut,
45
+ };
46
+ }
47
+ /**
48
+ * Emit the body profile of `wall` (metres) in a wall frame whose origin sits
49
+ * `startX` metres before the wall's Start along the axis (0 when the placement
50
+ * origin is Start). Coordinates are converted to the anchor's native unit.
51
+ */
52
+ export function emitWallBodyProfile(editor, anchor, wall, startX = 0) {
53
+ const outline = wallBodyOutline(wall);
54
+ const native = (v) => roundLength(toNativeLength(anchor, v));
55
+ if (outline.rectangular) {
56
+ const [x0, y0] = outline.corners[0];
57
+ const [x1, y1] = outline.corners[2];
58
+ // YDim straight from the thickness: y1 - y0 can pick up float noise.
59
+ return emitRectangleProfile(editor, native(x1 - x0), native(wall.thickness), native(startX + (x0 + x1) / 2), native((y0 + y1) / 2));
60
+ }
61
+ return emitPolygonProfile(editor, outline.corners.map(([x, y]) => [native(startX + x), native(y)]));
62
+ }
63
+ /**
64
+ * Emit the `Axis` representation: a 2D IfcPolyline from `fromX` to `toX`
65
+ * (metres) along the wall frame's X.
66
+ */
67
+ export function emitWallAxisRepresentation(editor, anchor, fromX, toX) {
68
+ const from = editor.addEntity('IfcCartesianPoint', [[roundLength(toNativeLength(anchor, fromX)), 0]]).expressId;
69
+ const to = editor.addEntity('IfcCartesianPoint', [[roundLength(toNativeLength(anchor, toX)), 0]]).expressId;
70
+ const polyline = editor.addEntity('IfcPolyline', [[`#${from}`, `#${to}`]]).expressId;
71
+ return editor.addEntity('IfcShapeRepresentation', [
72
+ `#${anchor.axisContextId}`,
73
+ 'Axis',
74
+ 'Curve2D',
75
+ [`#${polyline}`],
76
+ ]).expressId;
77
+ }
22
78
  export function addWallToStore(editor, anchor, params) {
23
79
  const { ownerHistoryId, bodyContextId, storeyId, storeyPlacementId } = anchor;
24
80
  assertPositiveFinite([params.Thickness, params.Height], 'addWallToStore: Thickness and Height must be positive');
@@ -26,6 +82,15 @@ export function addWallToStore(editor, anchor, params) {
26
82
  // `NaN <= 0` is false, so the distinct-points check below never fires.
27
83
  // Validate the source coordinates instead of trusting the derived value.
28
84
  assertFinitePoint3({ Start: params.Start, End: params.End }, 'addWallToStore');
85
+ const cuts = [params.Offset ?? 0, params.StartCut?.left ?? 0, params.StartCut?.right ?? 0, params.EndCut?.left ?? 0, params.EndCut?.right ?? 0];
86
+ if (cuts.some((v) => !Number.isFinite(v))) {
87
+ throw new Error('addWallToStore: Offset, StartCut and EndCut must be finite');
88
+ }
89
+ // The plan outline in metres, before the unit conversion below; throws when
90
+ // the cuts leave the body with no length.
91
+ const plan = wallJoinWallFromParams(params);
92
+ if (Math.hypot(plan.end[0] - plan.start[0], plan.end[1] - plan.start[1]) > 0)
93
+ wallBodyOutline(plan);
29
94
  // Params are metres; convert dimensioned fields to the file's native
30
95
  // length unit so the emitted STEP coordinates are correctly scaled
31
96
  // (see SpatialAnchor.lengthUnitScale). Directions normalise the scale
@@ -55,17 +120,10 @@ export function addWallToStore(editor, anchor, params) {
55
120
  // Placement at Start with local X = wall direction and local Z up. The
56
121
  // Axis is written explicitly: IFC forbids a RefDirection without it (#5469).
57
122
  const placementId = emitLocalPlacement(editor, storeyPlacementId, params.Start, undefined, dir);
58
- // Rectangle profile centred at (wallLen/2, 0) so the swept solid
59
- // spans 0..wallLen along local X and -thickness/2..+thickness/2 on Y.
60
- const profileOriginPt = editor.addEntity('IfcCartesianPoint', [[wallLen / 2, 0]]).expressId;
61
- const profilePos = editor.addEntity('IfcAxis2Placement2D', [`#${profileOriginPt}`, null]).expressId;
62
- const profileId = editor.addEntity('IfcRectangleProfileDef', [
63
- '.AREA.',
64
- null,
65
- `#${profilePos}`,
66
- wallLen,
67
- params.Thickness,
68
- ]).expressId;
123
+ // Body profile in the wall frame: by default a rectangle centred at
124
+ // (wallLen/2, 0), so the solid spans 0..wallLen along local X and
125
+ // -thickness/2..+thickness/2 on Y; alignment, offset and end cuts move it.
126
+ const profileId = emitWallBodyProfile(editor, anchor, plan);
69
127
  // Extruded along +Z by Height.
70
128
  const solidOriginPt = editor.addEntity('IfcCartesianPoint', [[0, 0, 0]]).expressId;
71
129
  const solidAxis = editor.addEntity('IfcAxis2Placement3D', [`#${solidOriginPt}`, null, null]).expressId;
@@ -82,10 +140,15 @@ export function addWallToStore(editor, anchor, params) {
82
140
  'SweptSolid',
83
141
  [`#${solidId}`],
84
142
  ]).expressId;
143
+ // Axis in metres (the emitter converts): Start is the frame origin.
144
+ const axisRepId = params.Axis !== false
145
+ ? emitWallAxisRepresentation(editor, anchor, 0, Math.hypot(plan.end[0] - plan.start[0], plan.end[1] - plan.start[1]))
146
+ : null;
147
+ // Body first: readers such as the viewer's wall edit take Representations[0] as the body.
85
148
  const productShapeId = editor.addEntity('IfcProductDefinitionShape', [
86
149
  null,
87
150
  null,
88
- [`#${shapeRepId}`],
151
+ axisRepId === null ? [`#${shapeRepId}`] : [`#${shapeRepId}`, `#${axisRepId}`],
89
152
  ]).expressId;
90
153
  // `IfcWall.PredefinedType` only exists from IFC4 onward.
91
154
  const wallAttrs = [
@@ -119,6 +182,7 @@ export function addWallToStore(editor, anchor, params) {
119
182
  profileId,
120
183
  solidId,
121
184
  shapeRepId,
185
+ axisRepId,
122
186
  productShapeId,
123
187
  relContainedId,
124
188
  };
@@ -1 +1 @@
1
- {"version":3,"file":"wall.js","sourceRoot":"","sources":["../../src/in-store/wall.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAE/D;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAsB,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AA6B5G,MAAM,UAAU,cAAc,CAC5B,MAAmB,EACnB,MAAqB,EACrB,MAAyB;IAEzB,MAAM,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,iBAAiB,EAAE,GAAG,MAAM,CAAC;IAE9E,oBAAoB,CAClB,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,CA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C,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC;QACtC,eAAe,CAAC,cAAc,CAAC;QAC/B,MAAM,CAAC,IAAI,IAAI,MAAM;QACrB,MAAM,CAAC,WAAW,IAAI,IAAI;QAC1B,MAAM,CAAC,UAAU,IAAI,IAAI;QACzB,IAAI,WAAW,EAAE;QACjB,IAAI,cAAc,EAAE;QACpB,MAAM,CAAC,GAAG,IAAI,IAAI;KACnB,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,KAAK,QAAQ,EAAE,CAAC;QAC3C,gEAAgE;QAChE,uDAAuD;QACvD,2DAA2D;QAC3D,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IACjC,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,SAAoD,CAAC,CAAC,SAAS,CAAC;IAE3G,MAAM,cAAc,GAAG,MAAM,CAAC,SAAS,CAAC,mCAAmC,EAAE;QAC3E,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC;QAClC,eAAe,CAAC,cAAc,CAAC;QAC/B,IAAI;QACJ,IAAI;QACJ,CAAC,IAAI,MAAM,EAAE,CAAC;QACd,IAAI,QAAQ,EAAE;KACf,CAAC,CAAC,SAAS,CAAC;IAEb,OAAO;QACL,MAAM;QACN,WAAW;QACX,SAAS;QACT,OAAO;QACP,UAAU;QACV,SAAS;QACT,cAAc;QACd,cAAc;KACf,CAAC;AACJ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -33,44 +33,31 @@ export type { VerticalSegment, VerticalSegmentType } from './landxml/profile-geo
33
33
  export type { StationEquationParams } from './ifc-creator-alignment-referents.js';
34
34
  export type * from './landxml/source-types.js';
35
35
  export type * from './landxml/result-types.js';
36
- export { addColumnToStore, type ColumnInStoreParams, type ColumnBuildResult } from './in-store/column.js';
37
- export { addWallToStore, type WallInStoreParams, type WallBuildResult } from './in-store/wall.js';
38
- export { addSlabToStore, type SlabInStoreParams, type SlabRectangleParams, type SlabPolygonParams, type SlabBuildResult } from './in-store/slab.js';
39
- export { addBeamToStore, type BeamInStoreParams, type BeamBuildResult } from './in-store/beam.js';
40
- export { addDoorToStore, type DoorInStoreParams, type DoorBuildResult } from './in-store/door.js';
41
- export { addWindowToStore, type WindowInStoreParams, type WindowBuildResult } from './in-store/window.js';
42
- export { addOpeningToStore, type OpeningInStoreParams, type WallOpeningInStoreParams, type SlabOpeningInStoreParams, type OpeningBuildResult, } from './in-store/opening.js';
43
- export { addHostedDoorToStore, addHostedWindowToStore, type HostedDoorInStoreParams, type HostedWindowInStoreParams, type HostedFillBuildResult, } from './in-store/hosted-fill.js';
44
- export { addElementTypeToStore, assignTypeInStore, type AuthoringAnchor, type ElementTypeInStoreParams, type ElementTypeBuildResult, } from './in-store/element-type.js';
45
- export { addMaterialToStore, addMaterialLayerSetToStore, addMaterialLayerSetUsageToStore, assignMaterialInStore, type MaterialInStoreParams, type MaterialLayerInStoreParams, type MaterialLayerSetInStoreParams, type MaterialLayerSetBuildResult, type MaterialLayerSetUsageInStoreParams, } from './in-store/material.js';
46
- export type { OneToManyResult } from './in-store/relate.js';
47
- export { resolveAuthoringAnchor, readRelatedLists, liveEntityType, liveEntityConforms } from './in-store/resolve-relations.js';
48
- export { addSpaceToStore, type SpaceInStoreParams, type SpaceRectangleParams, type SpacePolygonParams, type SpaceBuildResult } from './in-store/space.js';
49
- export { addSpatialZonesToStore, spatialZonesSupported, type SpatialZoneInput, type SpatialZoneInStoreParams, type SpatialZoneBuildResult, type SpatialZoneType, } from './in-store/spatial-zone.js';
50
- export { applyStylesInStore, collectLeafRepresentationItems, type ApplyStyleOptions, type ApplyStyleResult, type StyleBatch, type SurfaceStyleColor, } from './in-store/apply-style.js';
51
- export { addRoofToStore, type RoofInStoreParams, type RoofRectangleParams, type RoofPolygonParams, type RoofBuildResult } from './in-store/roof.js';
52
- export { addPlateToStore, type PlateInStoreParams, type PlateRectangleParams, type PlatePolygonParams, type PlateBuildResult } from './in-store/plate.js';
53
- export { addMemberToStore, type MemberInStoreParams, type MemberBuildResult } from './in-store/member.js';
54
- export { addCostScheduleToStore, addCostItemToStore, addCostValueToStore, addCostQuantityToStore, nestCostItemsInStore, assignCostItemsToScheduleInStore, assignObjectsToCostItemInStore, attachCostValuesToItemInStore, type CostAnchor, type ExistingRelatedList, } from './in-store/cost.js';
55
- export { removeCostEntityInStore, type CostRemovalReferrers } from './in-store/cost-removal.js';
56
- export { resolveSpatialAnchor } from './in-store/resolve-anchor.js';
57
- export { resolveHostAnchor } from './in-store/resolve-host.js';
58
- export { toNativeLength, fromNativeLength } from './in-store/anchor.js';
59
- export type { SpatialAnchor, HostAnchor, HostBounds, HostKind } from './in-store/anchor.js';
60
- export { duplicateInStore, type SourceAttributes, type DuplicateInStoreOptions, type DuplicateBuildResult, type Vec3 as DuplicateVec3, } from './in-store/duplicate.js';
61
- export { resolveDuplicateSource } from './in-store/resolve-source.js';
62
- export { detectEnclosedAreas, type Vec2 as AutoSpaceVec2, type Segment as AutoSpaceSegment, type DetectedSpace, type DetectOptions as AutoSpaceDetectOptions, } from './in-store/auto-space-detect.js';
63
- export { extractWallSegmentsForStorey, existingSpaceFootprintsByStorey, type OverlayWallReader, type WallExtractionResult, } from './in-store/extract-walls.js';
64
- export { storeyPlanFrame, toStoreyLocal, fromStoreyLocal, type StoreyPlanFrame, } from './in-store/storey-plan-frame.js';
65
- export { generateSpacesFromWalls, offsetRoomFootprint, GENERATED_SPACE_OBJECTTYPE, type GenerateSpacesOptions, type GenerateSpacesResult, type BoundaryMode, } from './in-store/generate-spaces.js';
66
- export { generateSpaces, listStoreys, type GenerateSpacesAllOptions, type GenerateSpacesAllResult, type GenerateSpacesStoreyResult, type StoreyInfo, } from './in-store/generate-spaces-all.js';
67
- export { addStructuralAnalysisModelToStore, type StructuralAnalysisModelInStoreParams, type StructuralAnalysisModelBuildResult, type StructuralAnalysisModelType, } from './in-store/structural-analysis-model.js';
68
- export { addStructuralCurveMemberToStore, type StructuralCurveMemberInStoreParams, type StructuralCurveMemberBuildResult, type StructuralCurveMemberType, } from './in-store/structural-curve-member.js';
69
- export { addStructuralPointConnectionToStore, type StructuralPointConnectionInStoreParams, type StructuralPointConnectionBuildResult, type StructuralBoundaryConditionParams, } from './in-store/structural-point-connection.js';
70
- export { addStructuralLoadGroupToStore, type StructuralLoadGroupInStoreParams, type StructuralLoadGroupBuildResult, type StructuralLoadGroupType, type StructuralActionType, type StructuralActionSourceType, } from './in-store/structural-load-group.js';
71
- export { addStructuralPointActionToStore, addStructuralLinearActionToStore, type StructuralPointActionInStoreParams, type StructuralPointActionBuildResult, type StructuralLinearActionInStoreParams, type StructuralLinearActionBuildResult, type StructuralGlobalOrLocal, } from './in-store/structural-action.js';
72
- export { connectStructuralMemberToConnectionInStore, connectStructuralActivityToItemInStore, assignToStructuralGroupInStore, } from './in-store/structural-relationships.js';
73
- export { addDrawingMarkupToStore, addMeasureMarkupToStore, addPolygonAreaMarkupToStore, addTextMarkupToStore, addCloudMarkupToStore, DRAWING_MARKUP_OBJECTTYPE, DRAWING_MARKUP_PSET_NAME, DRAWING_MARKUP_QSET_NAME, type DrawingMarkupObjectType, type MarkupAnchor, type MarkupPoint2D, type MeasureMarkupParams, type MeasureMarkupResult, type PolygonAreaMarkupParams, type PolygonAreaMarkupResult, type TextMarkupParams, type TextMarkupResult, type CloudMarkupParams, type CloudMarkupResult, type DrawingMarkupBatchInput, type DrawingMarkupBatchResult, } from './in-store/drawing-markup.js';
36
+ export * from './in-store/index.js';
74
37
  export type { Point3D, Point2D, Placement3D, RectangleProfile, ArbitraryProfile, CircleProfile, CircleHollowProfile, IShapeProfile, LShapeProfile, TShapeProfile, UShapeProfile, CShapeProfile, RectangleHollowProfile, ProfileDef, RectangularOpening, GenericElementParams, AxisElementParams, ElementAttributes, WallParams, SlabParams, ColumnParams, BeamParams, StairParams, RoofParams, GableRoofParams, WallDoorParams, WallWindowParams, DoorParams, WindowParams, RampParams, RailingParams, PlateParams, MemberParams, FootingParams, PileParams, SpaceParams, CurtainWallParams, FurnishingParams, ProxyParams, PropertyType, PropertyMeasureType, PropertyDef, PropertySetDef, QuantityKind, QuantityDef, QuantitySetDef, MaterialLayerDef, MaterialDef, ProjectParams, SiteParams, BuildingParams, StoreyParams, IfcWorkScheduleParams, IfcWorkPlanParams, IfcTaskParams, IfcRelSequenceParams, IfcWorkCalendarParams, IfcWorkTimeParams, IfcRecurrencePatternParams, IfcTimePeriodParams, IfcWorkScheduleType, IfcTaskPredefinedType, IfcTaskDurationType, IfcRelSequenceType, IfcWorkCalendarType, IfcRecurrenceType, WorkScheduleParams, WorkPlanParams, TaskParams, SequenceParams, WorkCalendarParams, WorkTimeParams, RecurrencePatternParams, TimePeriodParams, WorkScheduleType, TaskPredefinedType, TaskDurationType, SequenceType, WorkCalendarType, RecurrenceType, CreatedEntity, CreateResult, } from './types.js';
75
38
  export type { CostArithmeticOperator, CostItemParams, CostItemPredefinedType, CostMeasureType, CostQuantityKind, CostQuantityParams, CostScheduleParams, CostSchedulePredefinedType, CostSIUnitType, CostTypedValue, CostValueParams, SIUnitParams, } from './types-cost.js';
39
+ export { copyBatchInStore, copySourcesInStore, copiedProductsInStore } from './in-store/copy-batch.js';
40
+ export { arrayCopyTransforms, type CopyArrayParams } from './in-store/copy-array.js';
41
+ export type { CopyTransform } from './in-store/copy-product.js';
42
+ export { setElementSizeInStore } from './in-store/element-size-edit.js';
43
+ export { resizeWallInStore } from './in-store/wall-size-edit.js';
44
+ export { transformElementsInStore, type ElementTransformInput, type StoreyTransformOp } from './in-store/element-transform-edit.js';
45
+ export { splitElementsInStore, type ElementSplitRequest, type ElementSplitOptions } from './in-store/element-split.js';
46
+ export { trimExtendElementInStore, type ElementTrimExtendParams } from './in-store/element-trim-extend.js';
47
+ export { RoomLayoutCache } from './in-store/room-layout-cache.js';
48
+ export { readFaces, applyLayoutOp, filterRoomFaces, type LayoutOp, type RoomPlateFactory } from './in-store/room-layout-core.js';
49
+ export { roomOutline, roomCandidatesFromFaces, occupancyTest, type RoomCandidate, type RoomBoundary } from './in-store/room-candidates.js';
50
+ export { createRoomsInStore, updateRoomOutlineInStore, syncRoomLayoutInStore } from './in-store/room-store.js';
51
+ export { storeyFootprintFaceInStore, type RoomWallRect } from './in-store/room-footprint-native.js';
52
+ export { planRoomCreation } from './in-store/room-creation-plan.js';
53
+ export { wallRectsFromMeshes, roomFrameToModelWorld, roomFramePlanOffsets } from './in-store/room-wall-rects.js';
54
+ export { floorToFloorHeight } from './in-store/room-floor-height.js';
55
+ export { effectiveStoreyElevation } from './in-store/room-storey-elevation.js';
56
+ export { effectiveStoreyIds } from './in-store/edit/effective-storeys.js';
57
+ export { effectiveRoomIdsByStorey } from './in-store/room-population.js';
58
+ export { spaceMeshTriangles } from './in-store/room-space-meshes.js';
59
+ export { ALIGN_MODES, alignsAlongU, planBoxOf, pickBox, edgeOf, alignShift, shiftBox, alignMoves, type AlignMode, type PlanBox } from './in-store/align-boxes.js';
60
+ export { alignmentStoreyInStore, alignElementsInStore, type ElementAlignParams } from './in-store/element-align.js';
61
+ export { planStoreyReassignment, planStoreyReassignmentCandidates, type StoreyReassignmentPlan } from './in-store/storey-reassignment-plan.js';
62
+ export { reassignElementsToStoreyInStore } from './in-store/storey-reassignment.js';
76
63
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAI9C,YAAY,EACV,oBAAoB,EAAE,iBAAiB,EAAE,uBAAuB,EAChE,oBAAoB,EAAE,oBAAoB,EAAE,aAAa,GAC1D,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EACL,2BAA2B,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,iBAAiB,GACnF,MAAM,6BAA6B,CAAC;AACrC,OAAO,E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,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAC/G,OAAO,EAAE,0BAA0B,EAAE,KAAK,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACpG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACjH,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,SAAS,EAAE,KAAK,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAClK,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEpH,OAAO,EAAE,sBAAsB,EAAE,gCAAgC,EAAE,KAAK,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAC/I,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC"}
package/dist/index.js CHANGED
@@ -30,44 +30,29 @@ export { LANDXML_IFC_MAPPING_VERSION, landXmlGlobalId, landXmlToIfc, } from './l
30
30
  export { TRANSVERSE_MERCATOR_BOUNDS, checkCoordinateOrder, } from './landxml/coordinate-plausibility.js';
31
31
  export { alignmentMappingOf, alignmentRefusalMessage, collectRefusals, isMappableSurface, refusalReason, } from './landxml/refusals.js';
32
32
  export { ALIGNMENT_POSITION_TOLERANCE_M, cogoPointResolver, isAlignmentRecord, mapAlignments, } from './landxml/alignment-mapping.js';
33
- // In-store builders — emit elements into an existing parsed IfcDataStore
34
- // via a `StoreEditor` overlay (closes the merge-roundtrip gap from #592).
35
- export { addColumnToStore } from './in-store/column.js';
36
- export { addWallToStore } from './in-store/wall.js';
37
- export { addSlabToStore } from './in-store/slab.js';
38
- export { addBeamToStore } from './in-store/beam.js';
39
- export { addDoorToStore } from './in-store/door.js';
40
- export { addWindowToStore } from './in-store/window.js';
41
- export { addOpeningToStore, } from './in-store/opening.js';
42
- export { addHostedDoorToStore, addHostedWindowToStore, } from './in-store/hosted-fill.js';
43
- export { addElementTypeToStore, assignTypeInStore, } from './in-store/element-type.js';
44
- export { addMaterialToStore, addMaterialLayerSetToStore, addMaterialLayerSetUsageToStore, assignMaterialInStore, } from './in-store/material.js';
45
- export { resolveAuthoringAnchor, readRelatedLists, liveEntityType, liveEntityConforms } from './in-store/resolve-relations.js';
46
- export { addSpaceToStore } from './in-store/space.js';
47
- export { addSpatialZonesToStore, spatialZonesSupported, } from './in-store/spatial-zone.js';
48
- export { applyStylesInStore, collectLeafRepresentationItems, } from './in-store/apply-style.js';
49
- export { addRoofToStore } from './in-store/roof.js';
50
- export { addPlateToStore } from './in-store/plate.js';
51
- export { addMemberToStore } from './in-store/member.js';
52
- export { addCostScheduleToStore, addCostItemToStore, addCostValueToStore, addCostQuantityToStore, nestCostItemsInStore, assignCostItemsToScheduleInStore, assignObjectsToCostItemInStore, attachCostValuesToItemInStore, } from './in-store/cost.js';
53
- export { removeCostEntityInStore } from './in-store/cost-removal.js';
54
- export { resolveSpatialAnchor } from './in-store/resolve-anchor.js';
55
- export { resolveHostAnchor } from './in-store/resolve-host.js';
56
- export { toNativeLength, fromNativeLength } from './in-store/anchor.js';
57
- export { duplicateInStore, } from './in-store/duplicate.js';
58
- export { resolveDuplicateSource } from './in-store/resolve-source.js';
59
- export { detectEnclosedAreas, } from './in-store/auto-space-detect.js';
60
- export { extractWallSegmentsForStorey, existingSpaceFootprintsByStorey, } from './in-store/extract-walls.js';
61
- export { storeyPlanFrame, toStoreyLocal, fromStoreyLocal, } from './in-store/storey-plan-frame.js';
62
- export { generateSpacesFromWalls, offsetRoomFootprint, GENERATED_SPACE_OBJECTTYPE, } from './in-store/generate-spaces.js';
63
- export { generateSpaces, listStoreys, } from './in-store/generate-spaces-all.js';
64
- // Structural analysis authoring (#5167 task S.1) — IfcStructuralAnalysisModel
65
- // and its members/connections/loads/relationships.
66
- export { addStructuralAnalysisModelToStore, } from './in-store/structural-analysis-model.js';
67
- export { addStructuralCurveMemberToStore, } from './in-store/structural-curve-member.js';
68
- export { addStructuralPointConnectionToStore, } from './in-store/structural-point-connection.js';
69
- export { addStructuralLoadGroupToStore, } from './in-store/structural-load-group.js';
70
- export { addStructuralPointActionToStore, addStructuralLinearActionToStore, } from './in-store/structural-action.js';
71
- export { connectStructuralMemberToConnectionInStore, connectStructuralActivityToItemInStore, assignToStructuralGroupInStore, } from './in-store/structural-relationships.js';
72
- export { addDrawingMarkupToStore, addMeasureMarkupToStore, addPolygonAreaMarkupToStore, addTextMarkupToStore, addCloudMarkupToStore, DRAWING_MARKUP_OBJECTTYPE, DRAWING_MARKUP_PSET_NAME, DRAWING_MARKUP_QSET_NAME, } from './in-store/drawing-markup.js';
33
+ // In-store authoring API, kept separate from create-from-scratch types.
34
+ export * from './in-store/index.js';
35
+ export { copyBatchInStore, copySourcesInStore, copiedProductsInStore } from './in-store/copy-batch.js';
36
+ export { arrayCopyTransforms } from './in-store/copy-array.js';
37
+ export { setElementSizeInStore } from './in-store/element-size-edit.js';
38
+ export { resizeWallInStore } from './in-store/wall-size-edit.js';
39
+ export { transformElementsInStore } from './in-store/element-transform-edit.js';
40
+ export { splitElementsInStore } from './in-store/element-split.js';
41
+ export { trimExtendElementInStore } from './in-store/element-trim-extend.js';
42
+ export { RoomLayoutCache } from './in-store/room-layout-cache.js';
43
+ export { readFaces, applyLayoutOp, filterRoomFaces } from './in-store/room-layout-core.js';
44
+ export { roomOutline, roomCandidatesFromFaces, occupancyTest } from './in-store/room-candidates.js';
45
+ export { createRoomsInStore, updateRoomOutlineInStore, syncRoomLayoutInStore } from './in-store/room-store.js';
46
+ export { storeyFootprintFaceInStore } from './in-store/room-footprint-native.js';
47
+ export { planRoomCreation } from './in-store/room-creation-plan.js';
48
+ export { wallRectsFromMeshes, roomFrameToModelWorld, roomFramePlanOffsets } from './in-store/room-wall-rects.js';
49
+ export { floorToFloorHeight } from './in-store/room-floor-height.js';
50
+ export { effectiveStoreyElevation } from './in-store/room-storey-elevation.js';
51
+ export { effectiveStoreyIds } from './in-store/edit/effective-storeys.js';
52
+ export { effectiveRoomIdsByStorey } from './in-store/room-population.js';
53
+ export { spaceMeshTriangles } from './in-store/room-space-meshes.js';
54
+ export { ALIGN_MODES, alignsAlongU, planBoxOf, pickBox, edgeOf, alignShift, shiftBox, alignMoves } from './in-store/align-boxes.js';
55
+ export { alignmentStoreyInStore, alignElementsInStore } from './in-store/element-align.js';
56
+ export { planStoreyReassignment, planStoreyReassignmentCandidates } from './in-store/storey-reassignment-plan.js';
57
+ export { reassignElementsToStoreyInStore } from './in-store/storey-reassignment.js';
73
58
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAE/D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAS9C,gFAAgF;AAChF,OAAO,EACL,2BAA2B,EAAE,eAAe,EAAE,YAAY,GAC3D,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,0BAA0B,EAAE,oBAAoB,GACjD,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,kBAAkB,EAAE,uBAAuB,EAAE,eAAe,EAAE,iBAAiB,EAAE,aAAa,GAC/F,MAAM,uBAAuB,CAAC;AAC/B,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EAAE,aAAa,EAAyC,MAAM,+BAA+B,CAAC;AAC3I,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAC/G,OAAO,EAAE,0BAA0B,EAAqB,MAAM,qCAAqC,CAAC;AACpG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACjH,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAgC,MAAM,2BAA2B,CAAC;AAClK,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAA2B,MAAM,6BAA6B,CAAC;AAEpH,OAAO,EAAE,sBAAsB,EAAE,gCAAgC,EAA+B,MAAM,wCAAwC,CAAC;AAC/I,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ifc-lite/create",
3
- "version": "3.2.0",
3
+ "version": "5.1.0",
4
4
  "description": "IFC creation from scratch — walls, slabs, beams, columns, stairs, roofs with geometry, properties and quantities",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -13,16 +13,17 @@
13
13
  }
14
14
  },
15
15
  "dependencies": {
16
- "@ifc-lite/data": "^6.1.0",
17
- "@ifc-lite/mutations": "^3.0.0",
18
- "@ifc-lite/parser": "^9.1.0",
19
- "@ifc-lite/encoding": "^2.3.0"
16
+ "@ifc-lite/data": "^6.2.0",
17
+ "@ifc-lite/encoding": "^2.3.0",
18
+ "@ifc-lite/mutations": "^3.2.0",
19
+ "@ifc-lite/parser": "^9.5.0",
20
+ "@ifc-lite/export": "^4.11.0",
21
+ "@ifc-lite/geometry": "^7.8.1"
20
22
  },
21
23
  "devDependencies": {
22
24
  "typescript": "^6.0.3",
23
- "vitest": "^5.0.2",
24
- "@ifc-lite/export": "^4.8.0",
25
- "@ifc-lite/wasm": "^10.2.0"
25
+ "vitest": "^5.0.3",
26
+ "@ifc-lite/wasm": "^10.4.0"
26
27
  },
27
28
  "license": "MPL-2.0",
28
29
  "author": "Louis True",