@ifc-lite/sdk 9.6.0 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/dist/cost-reference-scan.js +1 -1
  2. package/dist/cost-reference-scan.js.map +1 -1
  3. package/dist/effective-record-overlay.js +1 -1
  4. package/dist/effective-record-overlay.js.map +1 -1
  5. package/dist/headless/backend-query.d.ts.map +1 -1
  6. package/dist/headless/backend-query.js +13 -5
  7. package/dist/headless/backend-query.js.map +1 -1
  8. package/dist/headless/headless-backend-modelling.d.ts +24 -5
  9. package/dist/headless/headless-backend-modelling.d.ts.map +1 -1
  10. package/dist/headless/headless-backend-modelling.js +34 -3
  11. package/dist/headless/headless-backend-modelling.js.map +1 -1
  12. package/dist/headless/headless-backend-roof.d.ts +4 -0
  13. package/dist/headless/headless-backend-roof.d.ts.map +1 -0
  14. package/dist/headless/headless-backend-roof.js +15 -0
  15. package/dist/headless/headless-backend-roof.js.map +1 -0
  16. package/dist/headless/headless-backend-store.d.ts.map +1 -1
  17. package/dist/headless/headless-backend-store.js +8 -2
  18. package/dist/headless/headless-backend-store.js.map +1 -1
  19. package/dist/headless/headless-backend-structural-store.d.ts +23 -20
  20. package/dist/headless/headless-backend-structural-store.d.ts.map +1 -1
  21. package/dist/headless/headless-backend-structural-store.js +12 -0
  22. package/dist/headless/headless-backend-structural-store.js.map +1 -1
  23. package/dist/headless/mutation-base.d.ts.map +1 -1
  24. package/dist/headless/mutation-base.js +4 -5
  25. package/dist/headless/mutation-base.js.map +1 -1
  26. package/dist/headless/overlay.d.ts.map +1 -1
  27. package/dist/headless/overlay.js +7 -5
  28. package/dist/headless/overlay.js.map +1 -1
  29. package/dist/headless/schema-tables.d.ts.map +1 -1
  30. package/dist/headless/schema-tables.js +8 -6
  31. package/dist/headless/schema-tables.js.map +1 -1
  32. package/dist/namespaces/export.d.ts +2 -0
  33. package/dist/namespaces/export.d.ts.map +1 -1
  34. package/dist/namespaces/export.js +11 -2
  35. package/dist/namespaces/export.js.map +1 -1
  36. package/dist/namespaces/store-group.d.ts +2 -2
  37. package/dist/namespaces/store-group.d.ts.map +1 -1
  38. package/dist/namespaces/store-group.js +2 -2
  39. package/dist/namespaces/store-group.js.map +1 -1
  40. package/dist/namespaces/store-modelling.d.ts +19 -4
  41. package/dist/namespaces/store-modelling.d.ts.map +1 -1
  42. package/dist/namespaces/store-modelling.js +32 -1
  43. package/dist/namespaces/store-modelling.js.map +1 -1
  44. package/dist/namespaces/store-roof.d.ts +13 -0
  45. package/dist/namespaces/store-roof.d.ts.map +1 -0
  46. package/dist/namespaces/store-roof.js +19 -0
  47. package/dist/namespaces/store-roof.js.map +1 -0
  48. package/dist/namespaces/store-storey.d.ts +39 -0
  49. package/dist/namespaces/store-storey.d.ts.map +1 -0
  50. package/dist/namespaces/store-storey.js +64 -0
  51. package/dist/namespaces/store-storey.js.map +1 -0
  52. package/dist/namespaces/store-structural.d.ts +49 -0
  53. package/dist/namespaces/store-structural.d.ts.map +1 -0
  54. package/dist/namespaces/store-structural.js +64 -0
  55. package/dist/namespaces/store-structural.js.map +1 -0
  56. package/dist/namespaces/store.d.ts +12 -35
  57. package/dist/namespaces/store.d.ts.map +1 -1
  58. package/dist/namespaces/store.js +10 -54
  59. package/dist/namespaces/store.js.map +1 -1
  60. package/dist/review/portable-analysis.d.ts.map +1 -1
  61. package/dist/review/portable-analysis.js +2 -1
  62. package/dist/review/portable-analysis.js.map +1 -1
  63. package/dist/review/portable-ids-report.d.ts +3 -0
  64. package/dist/review/portable-ids-report.d.ts.map +1 -1
  65. package/dist/review/portable-ids-report.js +4 -11
  66. package/dist/review/portable-ids-report.js.map +1 -1
  67. package/dist/store-authoring-exports.d.ts +6 -1
  68. package/dist/store-authoring-exports.d.ts.map +1 -1
  69. package/dist/store-authoring-exports.js +4 -0
  70. package/dist/store-authoring-exports.js.map +1 -1
  71. package/dist/store-authoring-types.d.ts +3 -1
  72. package/dist/store-authoring-types.d.ts.map +1 -1
  73. package/dist/store-copy-refs.d.ts +20 -0
  74. package/dist/store-copy-refs.d.ts.map +1 -0
  75. package/dist/store-copy-refs.js +9 -0
  76. package/dist/store-copy-refs.js.map +1 -0
  77. package/dist/store-modelling-backend-without-storeys.d.ts +11 -0
  78. package/dist/store-modelling-backend-without-storeys.d.ts.map +1 -0
  79. package/dist/store-modelling-backend-without-storeys.js +198 -0
  80. package/dist/store-modelling-backend-without-storeys.js.map +1 -0
  81. package/dist/store-modelling-backend.d.ts +9 -3
  82. package/dist/store-modelling-backend.d.ts.map +1 -1
  83. package/dist/store-modelling-backend.js +3 -140
  84. package/dist/store-modelling-backend.js.map +1 -1
  85. package/dist/store-modelling-types.d.ts +30 -7
  86. package/dist/store-modelling-types.d.ts.map +1 -1
  87. package/dist/store-ordinary-backend.d.ts +2 -1
  88. package/dist/store-ordinary-backend.d.ts.map +1 -1
  89. package/dist/store-ordinary-backend.js +14 -8
  90. package/dist/store-ordinary-backend.js.map +1 -1
  91. package/dist/store-roof-backend.d.ts +4 -0
  92. package/dist/store-roof-backend.d.ts.map +1 -0
  93. package/dist/store-roof-backend.js +15 -0
  94. package/dist/store-roof-backend.js.map +1 -0
  95. package/dist/store-roof-types.d.ts +8 -0
  96. package/dist/store-roof-types.d.ts.map +1 -0
  97. package/dist/store-roof-types.js +5 -0
  98. package/dist/store-roof-types.js.map +1 -0
  99. package/dist/store-storey-backend.d.ts +5 -0
  100. package/dist/store-storey-backend.d.ts.map +1 -0
  101. package/dist/store-storey-backend.js +54 -0
  102. package/dist/store-storey-backend.js.map +1 -0
  103. package/dist/store-storey-types.d.ts +41 -0
  104. package/dist/store-storey-types.d.ts.map +1 -0
  105. package/dist/store-storey-types.js +5 -0
  106. package/dist/store-storey-types.js.map +1 -0
  107. package/dist/store-structural-backend.d.ts +1 -1
  108. package/dist/store-structural-backend.d.ts.map +1 -1
  109. package/dist/store-structural-backend.js +74 -12
  110. package/dist/store-structural-backend.js.map +1 -1
  111. package/dist/store-structural-derive.d.ts +22 -0
  112. package/dist/store-structural-derive.d.ts.map +1 -0
  113. package/dist/store-structural-derive.js +26 -0
  114. package/dist/store-structural-derive.js.map +1 -0
  115. package/dist/store-structural-types.d.ts +19 -2
  116. package/dist/store-structural-types.d.ts.map +1 -1
  117. package/dist/store-top-types.d.ts +13 -0
  118. package/dist/store-top-types.d.ts.map +1 -0
  119. package/dist/store-top-types.js +5 -0
  120. package/dist/store-top-types.js.map +1 -0
  121. package/dist/types.d.ts +11 -7
  122. package/dist/types.d.ts.map +1 -1
  123. package/package.json +27 -18
@@ -6,22 +6,28 @@ import { addOrdinaryElementInStore, resolveSpatialAnchor } from '@ifc-lite/creat
6
6
  * create's atomic dispatcher (#6232 D5). Anchor resolution retains its strict
7
7
  * existing-placement policy. Hosts add permission, publication and history
8
8
  * behavior outside this factory; MCP supplies its compound-recording draft. */
9
- export function createOrdinaryStoreBackend(resolve) {
10
- const add = (modelId, storeyId, element) => {
9
+ export function createOrdinaryStoreBackend(resolve, wallIndex) {
10
+ const add = (modelId, storeyId, element, top) => {
11
11
  const model = resolve(modelId);
12
12
  const anchor = resolveSpatialAnchor(model.store, storeyId, model.mutationView);
13
- const expressId = addOrdinaryElementInStore(model.editor, anchor, element);
14
- return { modelId: model.modelId, expressId };
13
+ const notices = [];
14
+ const expressId = addOrdinaryElementInStore(model.editor, anchor, element, { store: model.store, top: top ?? 'auto', notices, wallIndex });
15
+ return { modelId: model.modelId, expressId, ...(notices.length ? { notices } : {}) };
16
+ };
17
+ // The top constraint is the SDK's own field: the builders never see it.
18
+ const split = (params) => {
19
+ const { TopConstraint, ...rest } = params;
20
+ return [rest, TopConstraint];
15
21
  };
16
22
  return {
17
- addWall: (modelId, storeyId, params) => add(modelId, storeyId, { kind: 'wall', params }),
18
- addColumn: (modelId, storeyId, params) => add(modelId, storeyId, { kind: 'column', params }),
23
+ addWall: (modelId, storeyId, params) => { const [p, top] = split(params); return add(modelId, storeyId, { kind: 'wall', params: p }, top); },
24
+ addColumn: (modelId, storeyId, params) => { const [p, top] = split(params); return add(modelId, storeyId, { kind: 'column', params: p }, top); },
19
25
  addSlab: (modelId, storeyId, params) => add(modelId, storeyId, { kind: 'slab', params }),
20
- addBeam: (modelId, storeyId, params) => add(modelId, storeyId, { kind: 'beam', params }),
26
+ addBeam: (modelId, storeyId, params) => { const [p, top] = split(params); return add(modelId, storeyId, { kind: 'beam', params: p }, top); },
21
27
  addSpace: (modelId, storeyId, params) => add(modelId, storeyId, { kind: 'space', params }),
22
28
  addRoof: (modelId, storeyId, params) => add(modelId, storeyId, { kind: 'roof', params }),
23
29
  addPlate: (modelId, storeyId, params) => add(modelId, storeyId, { kind: 'plate', params }),
24
- addMember: (modelId, storeyId, params) => add(modelId, storeyId, { kind: 'member', params }),
30
+ addMember: (modelId, storeyId, params) => { const [p, top] = split(params); return add(modelId, storeyId, { kind: 'member', params: p }, top); },
25
31
  };
26
32
  }
27
33
  //# sourceMappingURL=store-ordinary-backend.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"store-ordinary-backend.js","sourceRoot":"","sources":["../src/store-ordinary-backend.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAE/D,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAA+B,MAAM,kBAAkB,CAAC;AAQhH;;;+EAG+E;AAC/E,MAAM,UAAU,0BAA0B,CACxC,OAA6G;IAE7G,MAAM,GAAG,GAAG,CAAC,OAAe,EAAE,QAAgB,EAAE,OAA+B,EAAa,EAAE;QAC5F,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;QAC/B,MAAM,MAAM,GAAG,oBAAoB,CAAC,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;QAC/E,MAAM,SAAS,GAAG,yBAAyB,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,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EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;QACxF,QAAQ,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QAC1F,SAAS,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,GAAG,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;KACjJ,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { CostStoreModelResolution } from './cost-store-backend.js';
2
+ import type { RoofStoreBackendMethods } from './store-roof-types.js';
3
+ export declare function createRoofStoreBackend(resolve: (modelId: string) => Pick<CostStoreModelResolution, 'modelId' | 'store' | 'editor'>): Required<RoofStoreBackendMethods>;
4
+ //# sourceMappingURL=store-roof-backend.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-roof-backend.d.ts","sourceRoot":"","sources":["../src/store-roof-backend.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAErE,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC,wBAAwB,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC,GAC3F,QAAQ,CAAC,uBAAuB,CAAC,CAQnC"}
@@ -0,0 +1,15 @@
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
+ /** `bim.store.editRoof` against a resolved model; hosts add history and re-meshing around it. */
5
+ import { editFootprintRoofInStore } from '@ifc-lite/create';
6
+ export function createRoofStoreBackend(resolve) {
7
+ return {
8
+ editRoof(ref, patch) {
9
+ const model = resolve(ref.modelId);
10
+ editFootprintRoofInStore(model.store, model.editor, ref.expressId, patch);
11
+ return { modelId: model.modelId, expressId: ref.expressId };
12
+ },
13
+ };
14
+ }
15
+ //# sourceMappingURL=store-roof-backend.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-roof-backend.js","sourceRoot":"","sources":["../src/store-roof-backend.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAE/D,iGAAiG;AACjG,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAI5D,MAAM,UAAU,sBAAsB,CACpC,OAA4F;IAE5F,OAAO;QACL,QAAQ,CAAC,GAAG,EAAE,KAAK;YACjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YACnC,wBAAwB,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;YAC1E,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,CAAC,SAAS,EAAE,CAAC;QAC9D,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { RoofFootprintEdit } from '@ifc-lite/create';
2
+ import type { EntityRef } from './types.js';
3
+ /** `bim.store` roofs by footprint (#9296 round 3). */
4
+ export interface RoofStoreBackendMethods {
5
+ /** Change a roof by footprint's slopes, overhang or thickness and rebuild its planes, atomically. */
6
+ editRoof?(ref: EntityRef, patch: RoofFootprintEdit): EntityRef;
7
+ }
8
+ //# sourceMappingURL=store-roof-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-roof-types.d.ts","sourceRoot":"","sources":["../src/store-roof-types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,sDAAsD;AACtD,MAAM,WAAW,uBAAuB;IACtC,qGAAqG;IACrG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,iBAAiB,GAAG,SAAS,CAAC;CAChE"}
@@ -0,0 +1,5 @@
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
+ export {};
5
+ //# sourceMappingURL=store-roof-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-roof-types.js","sourceRoot":"","sources":["../src/store-roof-types.ts"],"names":[],"mappings":"AAAA;;+DAE+D"}
@@ -0,0 +1,5 @@
1
+ import type { ModellingStoreModelResolver } from './store-modelling-backend.js';
2
+ import type { StoreyStoreBackendMethods } from './store-storey-types.js';
3
+ /** Host bookkeeping stays at the edge; planning and graph writes are the shared create functions. */
4
+ export declare function createStoreyStoreBackend(resolve: ModellingStoreModelResolver): Required<StoreyStoreBackendMethods>;
5
+ //# sourceMappingURL=store-storey-backend.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-storey-backend.d.ts","sourceRoot":"","sources":["../src/store-storey-backend.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAGzE,qGAAqG;AACrG,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,2BAA2B,GAAG,QAAQ,CAAC,yBAAyB,CAAC,CA+ClH"}
@@ -0,0 +1,54 @@
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 { addStoreyInStore, applyStoreyDelete, applyStoreyLevelEdit, planStoreyAdd, planStoreyDelete, planStoreyLevelEdit, readStoreyInventory, renameStoreyInStore, setTopConstraintInStore, suggestStorey, summarizeStoreys, } from '@ifc-lite/create';
5
+ /** Host bookkeeping stays at the edge; planning and graph writes are the shared create functions. */
6
+ export function createStoreyStoreBackend(resolve) {
7
+ const refs = (modelId, ids) => [...new Set(ids)].map((expressId) => ({ modelId, expressId }));
8
+ const inventory = (modelId) => {
9
+ const model = resolve(modelId);
10
+ return { model, inventory: readStoreyInventory(model.store, model.mutationView) };
11
+ };
12
+ return {
13
+ listStoreyLevels(modelId) {
14
+ return summarizeStoreys(inventory(modelId).inventory);
15
+ },
16
+ suggestStorey(modelId, referenceStoreyId, side) {
17
+ // The fallback name is English, like every other SDK default; the viewer localises its own.
18
+ return suggestStorey(inventory(modelId).inventory, referenceStoreyId, side, (index) => `Level ${index}`);
19
+ },
20
+ addStorey(modelId, params) {
21
+ const model = resolve(modelId);
22
+ return { modelId: model.modelId, expressId: addStoreyInStore(model.store, model.editor, params).storeyId };
23
+ },
24
+ planAddStorey(modelId, params) {
25
+ return planStoreyAdd(inventory(modelId).inventory, params);
26
+ },
27
+ setTopConstraint(ref, constraint) {
28
+ const model = resolve(ref.modelId);
29
+ return refs(model.modelId, [ref.expressId, ...setTopConstraintInStore(model.store, model.editor, ref.expressId, constraint).remesh]);
30
+ },
31
+ renameStorey(ref, Name) {
32
+ const model = resolve(ref.modelId);
33
+ renameStoreyInStore(model.store, model.editor, ref.expressId, Name);
34
+ return { modelId: model.modelId, expressId: ref.expressId };
35
+ },
36
+ planStoreyEdit(modelId, edit) {
37
+ return planStoreyLevelEdit(inventory(modelId).inventory, edit);
38
+ },
39
+ editStorey(modelId, edit, expected) {
40
+ const model = resolve(modelId);
41
+ const { plan, reshaped } = applyStoreyLevelEdit(model.store, model.editor, edit, expected);
42
+ return refs(model.modelId, [...plan.storeys.map((storey) => storey.expressId), ...plan.moved, ...reshaped]);
43
+ },
44
+ planStoreyDelete(ref, mode) {
45
+ return planStoreyDelete(inventory(ref.modelId).inventory, ref.expressId, mode);
46
+ },
47
+ deleteStorey(ref, mode, expected) {
48
+ const model = resolve(ref.modelId);
49
+ const plan = applyStoreyDelete(model.store, model.editor, ref.expressId, mode, expected);
50
+ return refs(model.modelId, [ref.expressId, ...(mode.kind === 'deleteContents' ? plan.contents : [])]);
51
+ },
52
+ };
53
+ }
54
+ //# sourceMappingURL=store-storey-backend.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-storey-backend.js","sourceRoot":"","sources":["../src/store-storey-backend.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAE/D,OAAO,EACL,gBAAgB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,EAAE,gBAAgB,EAAE,mBAAmB,EAC/G,mBAAmB,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,aAAa,EAAE,gBAAgB,GACnG,MAAM,kBAAkB,CAAC;AAK1B,qGAAqG;AACrG,MAAM,UAAU,wBAAwB,CAAC,OAAoC;IAC3E,MAAM,IAAI,GAAG,CAAC,OAAe,EAAE,GAAsB,EAAe,EAAE,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;IACtI,MAAM,SAAS,GAAG,CAAC,OAAe,EAAE,EAAE;QACpC,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;QAC/B,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,mBAAmB,CAAC,KAAK,CAAC,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AAG,CAAC,SAAS,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;YACzF,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,SAAS,EAAE,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACxG,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,41 @@
1
+ import type { AddStoreyParams, StoreyAddPlan, StoreyDeleteMode, StoreyDeletePlan, StoreyLevelEdit, StoreyLevelPlan, StoreySuggestion, StoreySummary, TopConstraint } from '@ifc-lite/create';
2
+ import type { EntityRef } from './types.js';
3
+ /**
4
+ * Storey authoring in a loaded model (#9013). Every host runs the same
5
+ * `@ifc-lite/create` plan/apply functions; the viewer adds Undo batching and
6
+ * re-meshing at its edge. Lengths are metres.
7
+ */
8
+ export interface StoreyStoreBackendMethods {
9
+ /** Live storeys, highest first, with floor-to-floor height and element count. */
10
+ listStoreyLevels?(modelId: string): StoreySummary[];
11
+ /** The default Name, Elevation and height for a storey above or below `referenceStoreyId`, from its neighbours. Reads only. */
12
+ suggestStorey?(modelId: string, referenceStoreyId: number, side: 'above' | 'below'): StoreySuggestion;
13
+ /**
14
+ * Add a storey. Elements on the storey below it that are attached relatively to the storey above
15
+ * theirs ("home storey + 1") re-bind to it and keep their offset from it; explicit bindings stay.
16
+ */
17
+ addStorey?(modelId: string, params: AddStoreyParams): EntityRef;
18
+ /** Dry run of `addStorey`: its refusal, and the elements it would bind or re-bind (#9296). Writes nothing. */
19
+ planAddStorey?(modelId: string, params: AddStoreyParams): StoreyAddPlan;
20
+ /**
21
+ * Attach an element's top to the storey above its own (relative), a named storey (explicit) or a
22
+ * slab's underside, or make it fixed, and fit it there now. One atomic edit; returns what re-meshes.
23
+ */
24
+ setTopConstraint?(ref: EntityRef, constraint: TopConstraint): EntityRef[];
25
+ renameStorey?(ref: EntityRef, Name: string): EntityRef;
26
+ /** Dry run: what an elevation or floor-to-floor edit would move, and any refusal. Writes nothing. */
27
+ planStoreyEdit?(modelId: string, edit: StoreyLevelEdit): StoreyLevelPlan;
28
+ /**
29
+ * Apply an elevation or floor-to-floor edit atomically; returns every moved product. Throws on a refusal,
30
+ * or when `expected` (the reviewed `planStoreyEdit` result) no longer matches the model.
31
+ */
32
+ editStorey?(modelId: string, edit: StoreyLevelEdit, expected?: StoreyLevelPlan): EntityRef[];
33
+ /** Dry run of a deletion. Writes nothing. */
34
+ planStoreyDelete?(ref: EntityRef, mode: StoreyDeleteMode): StoreyDeletePlan;
35
+ /**
36
+ * Delete a storey atomically; a storey holding elements needs `move` or `deleteContents`. With `expected`
37
+ * (the reviewed `planStoreyDelete` result), a storey whose contents changed since is refused, not re-planned.
38
+ */
39
+ deleteStorey?(ref: EntityRef, mode: StoreyDeleteMode, expected?: StoreyDeletePlan): EntityRef[];
40
+ }
41
+ //# sourceMappingURL=store-storey-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-storey-types.d.ts","sourceRoot":"","sources":["../src/store-storey-types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB,EAAE,aAAa,EAAE,aAAa,EACrJ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,iFAAiF;IACjF,gBAAgB,CAAC,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,EAAE,CAAC;IACpD,+HAA+H;IAC/H,aAAa,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAAC;IACtG;;;OAGG;IACH,SAAS,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,GAAG,SAAS,CAAC;IAChE,8GAA8G;IAC9G,aAAa,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,GAAG,aAAa,CAAC;IACxE;;;OAGG;IACH,gBAAgB,CAAC,CAAC,GAAG,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,GAAG,SAAS,EAAE,CAAC;IAC1E,YAAY,CAAC,CAAC,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACvD,qGAAqG;IACrG,cAAc,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,GAAG,eAAe,CAAC;IACzE;;;OAGG;IACH,UAAU,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,eAAe,GAAG,SAAS,EAAE,CAAC;IAC7F,6CAA6C;IAC7C,gBAAgB,CAAC,CAAC,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,gBAAgB,GAAG,gBAAgB,CAAC;IAC5E;;;OAGG;IACH,YAAY,CAAC,CAAC,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,CAAC,EAAE,gBAAgB,GAAG,SAAS,EAAE,CAAC;CACjG"}
@@ -0,0 +1,5 @@
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
+ export {};
5
+ //# sourceMappingURL=store-storey-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-storey-types.js","sourceRoot":"","sources":["../src/store-storey-types.ts"],"names":[],"mappings":"AAAA;;+DAE+D"}
@@ -6,5 +6,5 @@ import type { StructuralStoreBackendMethods } from './store-structural-types.js'
6
6
  * surface so the structural call sites do not read as cost ones.
7
7
  */
8
8
  export type StructuralStoreModelResolver = (modelId?: string) => CostStoreModelResolution;
9
- export declare function createStructuralStoreBackend(resolve: StructuralStoreModelResolver): StructuralStoreBackendMethods;
9
+ export declare function createStructuralStoreBackend(resolve: StructuralStoreModelResolver): Required<StructuralStoreBackendMethods>;
10
10
  //# sourceMappingURL=store-structural-backend.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"store-structural-backend.d.ts","sourceRoot":"","sources":["../src/store-structural-backend.ts"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AAGjF;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,wBAAwB,CAAC;AAoC1F,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,4BAA4B,GACpC,6BAA6B,CA8D/B"}
1
+ {"version":3,"file":"store-structural-backend.d.ts","sourceRoot":"","sources":["../src/store-structural-backend.ts"],"names":[],"mappings":"AAwDA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AAGjF;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,wBAAwB,CAAC;AA+B1F,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,4BAA4B,GACpC,QAAQ,CAAC,6BAA6B,CAAC,CAiIzC"}
@@ -14,21 +14,16 @@
14
14
  * only breaks every host's typecheck. Spreading this in is what makes
15
15
  * `bim.store.addStructural*` actually reach `@ifc-lite/create`.
16
16
  */
17
- import { addStructuralAnalysisModelToStore, addStructuralCurveMemberToStore, addStructuralLinearActionToStore, addStructuralLoadGroupToStore, addStructuralPointActionToStore, addStructuralPointConnectionToStore, assignToStructuralGroupInStore, connectStructuralActivityToItemInStore, connectStructuralMemberToConnectionInStore, resolveSpatialAnchor, } from '@ifc-lite/create';
17
+ import { addStructuralLoadToStore, addStructuralCurveActionToStore, connectStructuralElementInStore, editStructuralEntityInStore, removeStructuralEntityInStore, addStructuralPlanarActionToStore, addStructuralSurfaceActionToStore, addStructuralPointReactionToStore, addStructuralCurveReactionToStore, addStructuralSurfaceReactionToStore, addStructuralResultGroupToStore, addStructuralAnalysisModelToStore, addStructuralCurveMemberToStore, addStructuralSurfaceMemberToStore, addStructuralCurveConnectionToStore, addStructuralSurfaceConnectionToStore, addStructuralLinearActionToStore, addStructuralLoadGroupToStore, addStructuralPointActionToStore, addStructuralPointConnectionToStore, assignToStructuralGroupInStore, connectStructuralActivityToItemInStore, connectStructuralMemberToConnectionInStore, resolveSpatialAnchor, } from '@ifc-lite/create';
18
18
  function ref(modelId, expressId) {
19
19
  return { modelId, expressId };
20
20
  }
21
- /**
22
- * `IfcStructuralAnalysisModel` and friends do not exist before IFC4, and the
23
- * builders each refuse IFC2X3 individually. Refusing here as well keeps the
24
- * message at the call the caller actually made, and refuses IFC5 — which no
25
- * builder checks, and which `extractStructuralOnDemand` cannot read back.
26
- */
27
- const SUPPORTED_STRUCTURAL_SCHEMAS = new Set(['IFC4', 'IFC4X3']);
21
+ /** Structural authoring follows the loaded model's IFC2X3, IFC4 or IFC4X3 schema. */
22
+ const SUPPORTED_STRUCTURAL_SCHEMAS = new Set(['IFC2X3', 'IFC4', 'IFC4X3']);
28
23
  function assertStructuralSchema(resolved) {
29
24
  const raw = resolved.store.schemaVersion;
30
25
  if (raw !== undefined && !SUPPORTED_STRUCTURAL_SCHEMAS.has(raw)) {
31
- throw new Error(`bim.store structural authoring: schema '${raw}' is not supported; use IFC4 or IFC4X3.`);
26
+ throw new Error(`bim.store structural authoring: schema '${raw}' is not supported; use IFC2X3, IFC4 or IFC4X3.`);
32
27
  }
33
28
  }
34
29
  /**
@@ -50,6 +45,73 @@ export function createStructuralStoreBackend(resolve) {
50
45
  return model;
51
46
  };
52
47
  return {
48
+ editStructuralEntity(modelId, expressId, patch) {
49
+ const model = resolve(modelId);
50
+ editStructuralEntityInStore(model.store, model.editor, expressId, patch);
51
+ return ref(model.modelId, expressId);
52
+ },
53
+ removeStructuralEntity(modelId, expressId) {
54
+ const model = resolve(modelId);
55
+ removeStructuralEntityInStore(model.store, model.editor, expressId);
56
+ return ref(model.modelId, expressId);
57
+ },
58
+ addStructuralPlanarAction(modelId, params) {
59
+ const model = resolved(modelId);
60
+ const result = addStructuralPlanarActionToStore(model.editor, groupAnchor(model), params, model.store);
61
+ return ref(model.modelId, result.activityId);
62
+ },
63
+ addStructuralLoad(modelId, params) {
64
+ const model = resolved(modelId);
65
+ return ref(model.modelId, addStructuralLoadToStore(model.editor, groupAnchor(model), params));
66
+ },
67
+ addStructuralCurveAction(modelId, params) {
68
+ const model = resolved(modelId);
69
+ return ref(model.modelId, addStructuralCurveActionToStore(model.editor, groupAnchor(model), params, model.store));
70
+ },
71
+ connectStructuralElement(modelId, RelatingElement, RelatedStructuralMember) {
72
+ const model = resolved(modelId);
73
+ return ref(model.modelId, connectStructuralElementInStore(model.editor, model.ownerHistoryId, RelatingElement, RelatedStructuralMember));
74
+ },
75
+ addStructuralSurfaceAction(modelId, params) {
76
+ const model = resolved(modelId);
77
+ const result = addStructuralSurfaceActionToStore(model.editor, groupAnchor(model), params, model.store);
78
+ return ref(model.modelId, result.activityId);
79
+ },
80
+ addStructuralPointReaction(modelId, params) {
81
+ const model = resolved(modelId);
82
+ const result = addStructuralPointReactionToStore(model.editor, groupAnchor(model), params);
83
+ return ref(model.modelId, result.activityId);
84
+ },
85
+ addStructuralCurveReaction(modelId, params) {
86
+ const model = resolved(modelId);
87
+ const result = addStructuralCurveReactionToStore(model.editor, groupAnchor(model), params);
88
+ return ref(model.modelId, result.activityId);
89
+ },
90
+ addStructuralSurfaceReaction(modelId, params) {
91
+ const model = resolved(modelId);
92
+ const result = addStructuralSurfaceReactionToStore(model.editor, groupAnchor(model), params);
93
+ return ref(model.modelId, result.activityId);
94
+ },
95
+ addStructuralResultGroup(modelId, params) {
96
+ const model = resolved(modelId);
97
+ const result = addStructuralResultGroupToStore(model.editor, groupAnchor(model), params);
98
+ return ref(model.modelId, result.resultGroupId);
99
+ },
100
+ addStructuralSurfaceMember(modelId, storeyExpressId, params) {
101
+ const model = resolved(modelId);
102
+ const result = addStructuralSurfaceMemberToStore(model.editor, resolveSpatialAnchor(model.store, storeyExpressId), params, model.store);
103
+ return ref(model.modelId, result.memberId);
104
+ },
105
+ addStructuralCurveConnection(modelId, storeyExpressId, params) {
106
+ const model = resolved(modelId);
107
+ const result = addStructuralCurveConnectionToStore(model.editor, resolveSpatialAnchor(model.store, storeyExpressId), params);
108
+ return ref(model.modelId, result.connectionId);
109
+ },
110
+ addStructuralSurfaceConnection(modelId, storeyExpressId, params) {
111
+ const model = resolved(modelId);
112
+ const result = addStructuralSurfaceConnectionToStore(model.editor, resolveSpatialAnchor(model.store, storeyExpressId), params);
113
+ return ref(model.modelId, result.connectionId);
114
+ },
53
115
  addStructuralAnalysisModel(modelId, params) {
54
116
  const model = resolved(modelId);
55
117
  const result = addStructuralAnalysisModelToStore(model.editor, groupAnchor(model), params);
@@ -79,12 +141,12 @@ export function createStructuralStoreBackend(resolve) {
79
141
  },
80
142
  addStructuralLinearAction(modelId, params) {
81
143
  const model = resolved(modelId);
82
- const result = addStructuralLinearActionToStore(model.editor, groupAnchor(model), params);
144
+ const result = addStructuralLinearActionToStore(model.editor, groupAnchor(model), params, model.store);
83
145
  return ref(model.modelId, result.activityId);
84
146
  },
85
- connectStructuralMemberToConnection(modelId, memberExpressId, connectionExpressId) {
147
+ connectStructuralMemberToConnection(modelId, memberExpressId, connectionExpressId, options) {
86
148
  const model = resolved(modelId);
87
- const relId = connectStructuralMemberToConnectionInStore(model.editor, model.ownerHistoryId, memberExpressId, connectionExpressId);
149
+ const relId = connectStructuralMemberToConnectionInStore(model.editor, model.ownerHistoryId, memberExpressId, connectionExpressId, undefined, options);
88
150
  return ref(model.modelId, relId);
89
151
  },
90
152
  connectStructuralActivityToItem(modelId, itemExpressId, activityExpressId) {
@@ -1 +1 @@
1
- {"version":3,"file":"store-structural-backend.js","sourceRoot":"","sources":["../src/store-structural-backend.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAE/D;;;;;;;;;;;;GAYG;AAEH,OAAO,EACL,iCAAiC,EACjC,+BAA+B,EAC/B,gCAAgC,EAChC,6BAA6B,EAC7B,+BAA+B,EAC/B,mCAAmC,EACnC,8BAA8B,EAC9B,sCAAsC,EACtC,0CAA0C,EAC1C,oBAAoB,GAOrB,MAAM,kBAAkB,CAAC;AAY1B,SAAS,GAAG,CAAC,OAAe,EAAE,SAAiB;IAC7C,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AAChC,CAAC;AAED;;;;;GAKG;AACH,MAAM,4BAA4B,GAAwB,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;AAEtF,SAAS,sBAAsB,CAAC,QAAkC;IAChE,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC;IACzC,IAAI,GAAG,KAAK,SAAS,IAAI,CAAC,4BAA4B,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QAChE,MAAM,IAAI,KAAK,CACb,2CAA2C,GAAG,yCAAyC,CACxF,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,SAAS,WAAW,CAAC,QAAkC;IACrD,OAAO;QACL,cAAc,EAAE,QAAQ,CAAC,cAAc;QACvC,UAAU,EAAE,SAAS;QACrB,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,aAA8C;KACtE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,OAAqC;IAErC,MAAM,QAAQ,GAAG,CAAC,OAAe,EAA4B,EAAE;QAC7D,MAAM,KAAK,GAAG,OAAO,CAAC,OA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M,KAAK,GAAG,sCAAsC,CAClD,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,EAAE,aAAa,EAAE,iBAAiB,CACrE,CAAC;YACF,OAAO,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACnC,CAAC;QACD,uBAAuB,CAAC,OAAe,EAAE,cAAsB,EAAE,gBAA0B;YACzF,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;YAChC,MAAM,KAAK,GAAG,8BAA8B,CAC1C,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,EAAE,cAAc,EAAE,gBAAgB,CACrE,CAAC;YACF,OAAO,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACnC,CAAC;KACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"store-structural-backend.js","sourceRoot":"","sources":["../src/store-structural-backend.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAE/D;;;;;;;;;;;;GAYG;AAEH,OAAO,EACL,wBAAwB,EAAE,+BAA+B,EAAE,+BAA+B,EAE1F,2BAA2B,EAAE,6BAA6B,EAC1D,gCAAgC,EAChC,iCAAiC,EACjC,iCAAiC,EACjC,iCAAiC,EACjC,mCAAmC,EACnC,+BAA+B,EAC/B,iCAAiC,EACjC,+BAA+B,EAC/B,iCAAiC,EACjC,mCAAmC,EACnC,qCAAqC,EACrC,gCAAgC,EAChC,6BAA6B,EAC7B,+BAA+B,EAC/B,mCAAmC,EACnC,8BAA8B,EAC9B,sCAAsC,EACtC,0CAA0C,EAC1C,oBAAoB,GAerB,MAAM,kBAAkB,CAAC;AAY1B,SAAS,GAAG,CAAC,OAAe,EAAE,SAAiB;IAC7C,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AAChC,CAAC;AAED,qFAAqF;AACrF,MAAM,4BAA4B,GAAwB,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,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CAAC,cAAc,EAAE,aAAa,EAAE,iBAAiB,CACrE,CAAC;YACF,OAAO,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACnC,CAAC;QACD,uBAAuB,CAAC,OAAe,EAAE,cAAsB,EAAE,gBAA0B;YACzF,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;YAChC,MAAM,KAAK,GAAG,8BAA8B,CAC1C,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,EAAE,cAAc,EAAE,gBAAgB,CACrE,CAAC;YACF,OAAO,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACnC,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * `bim.store.planStructuralDerivation` / `deriveStructuralAnalysisModel`:
3
+ * derive an analytical model from the physical one in the same file (#9668).
4
+ * The rules live in `@ifc-lite/create`'s `structural-derive-types.ts`; this
5
+ * module only resolves the model and calls the three steps.
6
+ */
7
+ import { type StructuralDerivationOptions, type StructuralDerivationPlan, type StructuralDerivationReport } from '@ifc-lite/create';
8
+ import type { StructuralStoreModelResolver } from './store-structural-backend.js';
9
+ import type { EntityRef } from './types.js';
10
+ export interface StructuralDerivationResult {
11
+ /** The new IfcStructuralAnalysisModel. */
12
+ analysisModel: EntityRef;
13
+ report: StructuralDerivationReport;
14
+ }
15
+ export interface StructuralDerivationStoreBackendMethods {
16
+ /** Read the physical model and plan the analytical one. Writes nothing. Optional capability. */
17
+ planStructuralDerivation?(modelId: string, options?: StructuralDerivationOptions): StructuralDerivationPlan;
18
+ /** Plan and write one IfcStructuralAnalysisModel. Refuses when there is nothing to derive. Optional capability. */
19
+ deriveStructuralAnalysisModel?(modelId: string, options?: StructuralDerivationOptions): StructuralDerivationResult;
20
+ }
21
+ export declare function createStructuralDerivationStoreBackend(resolve: StructuralStoreModelResolver): Required<StructuralDerivationStoreBackendMethods>;
22
+ //# sourceMappingURL=store-structural-derive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-structural-derive.d.ts","sourceRoot":"","sources":["../src/store-structural-derive.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AAEH,OAAO,EAIL,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAChC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,WAAW,0BAA0B;IACzC,0CAA0C;IAC1C,aAAa,EAAE,SAAS,CAAC;IACzB,MAAM,EAAE,0BAA0B,CAAC;CACpC;AAED,MAAM,WAAW,uCAAuC;IACtD,gGAAgG;IAChG,wBAAwB,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,2BAA2B,GAAG,wBAAwB,CAAC;IAC5G,mHAAmH;IACnH,6BAA6B,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,2BAA2B,GAAG,0BAA0B,CAAC;CACpH;AAED,wBAAgB,sCAAsC,CACpD,OAAO,EAAE,4BAA4B,GACpC,QAAQ,CAAC,uCAAuC,CAAC,CAcnD"}
@@ -0,0 +1,26 @@
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
+ * `bim.store.planStructuralDerivation` / `deriveStructuralAnalysisModel`:
6
+ * derive an analytical model from the physical one in the same file (#9668).
7
+ * The rules live in `@ifc-lite/create`'s `structural-derive-types.ts`; this
8
+ * module only resolves the model and calls the three steps.
9
+ */
10
+ import { applyStructuralDerivation, planStructuralDerivation, readStructuralDerivationFacts, } from '@ifc-lite/create';
11
+ export function createStructuralDerivationStoreBackend(resolve) {
12
+ const plan = (modelId, options) => {
13
+ const model = resolve(modelId);
14
+ return { model, plan: planStructuralDerivation(readStructuralDerivationFacts(model.store, model.editor), options) };
15
+ };
16
+ return {
17
+ planStructuralDerivation: (modelId, options) => plan(modelId, options).plan,
18
+ deriveStructuralAnalysisModel(modelId, options) {
19
+ const { model, plan: derived } = plan(modelId, options);
20
+ // Apply checks the whole plan first and writes in one atomic edit.
21
+ const { analysisModelId } = applyStructuralDerivation(model.editor, model.store, derived);
22
+ return { analysisModel: { modelId: model.modelId, expressId: analysisModelId }, report: derived.report };
23
+ },
24
+ };
25
+ }
26
+ //# sourceMappingURL=store-structural-derive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-structural-derive.js","sourceRoot":"","sources":["../src/store-structural-derive.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAE/D;;;;;GAKG;AAEH,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,6BAA6B,GAI9B,MAAM,kBAAkB,CAAC;AAiB1B,MAAM,UAAU,sCAAsC,CACpD,OAAqC;IAErC,MAAM,IAAI,GAAG,CAAC,OAAe,EAAE,OAAqC,EAAE,EAAE;QACtE,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;QAC/B,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,wBAAwB,CAAC,6BAA6B,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,EAAE,CAAC;IACtH,CAAC,CAAC;IACF,OAAO;QACL,wBAAwB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI;QAC3E,6BAA6B,CAAC,OAAO,EAAE,OAAO;YAC5C,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACxD,mEAAmE;YACnE,MAAM,EAAE,eAAe,EAAE,GAAG,yBAAyB,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;YAC1F,OAAO,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC;QAC3G,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -11,9 +11,26 @@
11
11
  * `AddColumnInStoreParams`-style physical-element params in `types.ts`) —
12
12
  * there is no SDK-specific divergence to justify a second copy.
13
13
  */
14
- import type { StructuralAnalysisModelInStoreParams, StructuralCurveMemberInStoreParams, StructuralLinearActionInStoreParams, StructuralLoadGroupInStoreParams, StructuralPointActionInStoreParams, StructuralPointConnectionInStoreParams } from '@ifc-lite/create';
14
+ import type { StructuralLoadInStoreParams, StructuralCurveActionInStoreParams, StructuralMemberConnectionOptions, StructuralEntityEdit, StructuralCurveReactionInStoreParams, StructuralPointReactionInStoreParams, StructuralResultGroupInStoreParams, StructuralSurfaceActionInStoreParams, StructuralSurfaceReactionInStoreParams, StructuralAnalysisModelInStoreParams, StructuralCurveMemberInStoreParams, StructuralSurfaceMemberInStoreParams, StructuralCurveConnectionInStoreParams, StructuralSurfaceConnectionInStoreParams, StructuralLinearActionInStoreParams, StructuralLoadGroupInStoreParams, StructuralPointActionInStoreParams, StructuralPointConnectionInStoreParams } from '@ifc-lite/create';
15
15
  import type { EntityRef } from './types.js';
16
16
  export interface StructuralStoreBackendMethods {
17
+ addStructuralLoad?(modelId: string, params: StructuralLoadInStoreParams): EntityRef;
18
+ addStructuralCurveAction?(modelId: string, params: StructuralCurveActionInStoreParams): EntityRef;
19
+ connectStructuralElement?(modelId: string, RelatingElement: number, RelatedStructuralMember: number): EntityRef;
20
+ editStructuralEntity?(modelId: string, expressId: number, patch: StructuralEntityEdit): EntityRef;
21
+ removeStructuralEntity?(modelId: string, expressId: number): EntityRef;
22
+ addStructuralPlanarAction?(modelId: string, params: StructuralSurfaceActionInStoreParams): EntityRef;
23
+ addStructuralSurfaceAction?(modelId: string, params: StructuralSurfaceActionInStoreParams): EntityRef;
24
+ addStructuralPointReaction?(modelId: string, params: StructuralPointReactionInStoreParams): EntityRef;
25
+ addStructuralCurveReaction?(modelId: string, params: StructuralCurveReactionInStoreParams): EntityRef;
26
+ addStructuralSurfaceReaction?(modelId: string, params: StructuralSurfaceReactionInStoreParams): EntityRef;
27
+ addStructuralResultGroup?(modelId: string, params: StructuralResultGroupInStoreParams): EntityRef;
28
+ /** `IfcStructuralSurfaceMember` with planar Face topology, anchored to a storey. Optional capability. */
29
+ addStructuralSurfaceMember?(modelId: string, storeyExpressId: number, params: StructuralSurfaceMemberInStoreParams): EntityRef;
30
+ /** `IfcStructuralCurveConnection` with Edge topology, anchored to a storey. Optional capability. */
31
+ addStructuralCurveConnection?(modelId: string, storeyExpressId: number, params: StructuralCurveConnectionInStoreParams): EntityRef;
32
+ /** `IfcStructuralSurfaceConnection` with planar Face topology, anchored to a storey. Optional capability. */
33
+ addStructuralSurfaceConnection?(modelId: string, storeyExpressId: number, params: StructuralSurfaceConnectionInStoreParams): EntityRef;
17
34
  /** `IfcStructuralAnalysisModel` — no storey anchor (`IfcGroup`, not `IfcProduct`). */
18
35
  addStructuralAnalysisModel(modelId: string, params: StructuralAnalysisModelInStoreParams): EntityRef;
19
36
  /** `IfcStructuralCurveMember`, anchored to a storey for its `ObjectPlacement`. */
@@ -27,7 +44,7 @@ export interface StructuralStoreBackendMethods {
27
44
  /** `IfcStructuralLinearAction` + its `IfcStructuralLoadLinearForce` — no storey anchor. */
28
45
  addStructuralLinearAction(modelId: string, params: StructuralLinearActionInStoreParams): EntityRef;
29
46
  /** `IfcRelConnectsStructuralMember` linking a curve member to a point connection. */
30
- connectStructuralMemberToConnection(modelId: string, memberExpressId: number, connectionExpressId: number): EntityRef;
47
+ connectStructuralMemberToConnection(modelId: string, memberExpressId: number, connectionExpressId: number, options?: StructuralMemberConnectionOptions): EntityRef;
31
48
  /** `IfcRelConnectsStructuralActivity` applying an action/reaction to the member or connection it acts on. */
32
49
  connectStructuralActivityToItem(modelId: string, itemExpressId: number, activityExpressId: number): EntityRef;
33
50
  /** `IfcRelAssignsToGroup` — members/connections into an analysis model, or activities into a load group. */
@@ -1 +1 @@
1
- {"version":3,"file":"store-structural-types.d.ts","sourceRoot":"","sources":["../src/store-structural-types.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EACV,oCAAoC,EACpC,kCAAkC,EAClC,mCAAmC,EACnC,gCAAgC,EAChC,kCAAkC,EAClC,sCAAsC,EACvC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,WAAW,6BAA6B;IAC5C,sFAAsF;IACtF,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,oCAAoC,GAAG,SAAS,CAAC;IACrG,kFAAkF;IAClF,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,kCAAkC,GAAG,SAAS,CAAC;IAC1H,sFAAsF;IACtF,4BAA4B,CAAC,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,sCAAsC,GAAG,SAAS,CAAC;IAClI,0HAA0H;IAC1H,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,gCAAgC,GAAG,SAAS,CAAC;IAC7F,uHAAuH;IACvH,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,kCAAkC,GAAG,SAAS,CAAC;IACjG,2FAA2F;IAC3F,yBAAyB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,mCAAmC,GAAG,SAAS,CAAC;IACnG,qFAAqF;IACrF,mCAAmC,CAAC,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,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AE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,sCAAsC,GAAG,SAAS,CAAC;IAClI,0HAA0H;IAC1H,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,gCAAgC,GAAG,SAAS,CAAC;IAC7F,uHAAuH;IACvH,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,kCAAkC,GAAG,SAAS,CAAC;IACjG,2FAA2F;IAC3F,yBAAyB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,mCAAmC,GAAG,SAAS,CAAC;IACnG,qFAAqF;IACrF,mCAAmC,CAAC,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,iCAAiC,GAAG,SAAS,CAAC;IACnK,6GAA6G;IAC7G,+BAA+B,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9G,4GAA4G;IAC5G,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;CACzG"}
@@ -0,0 +1,13 @@
1
+ import type { TopConstraint } from '@ifc-lite/create';
2
+ /**
3
+ * What a new wall's, column's, beam's, member's or curtain wall's top is
4
+ * attached to (#9296). `auto` (the default) is the Model workspace's "To
5
+ * storey above": an element whose top lands on the storey above its own is
6
+ * attached to it relatively, so it follows later level edits, inserted
7
+ * storeys and copies to other storeys; any other is fixed-height. Pass
8
+ * `{ kind: 'fixed' }` to draw it fixed even when it reaches the storey above.
9
+ */
10
+ export interface TopConstraintParams {
11
+ TopConstraint?: TopConstraint | 'auto';
12
+ }
13
+ //# sourceMappingURL=store-top-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-top-types.d.ts","sourceRoot":"","sources":["../src/store-top-types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,aAAa,CAAC,EAAE,aAAa,GAAG,MAAM,CAAC;CACxC"}
@@ -0,0 +1,5 @@
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
+ export {};
5
+ //# sourceMappingURL=store-top-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-top-types.js","sourceRoot":"","sources":["../src/store-top-types.ts"],"names":[],"mappings":"AAAA;;+DAE+D"}