@ifc-lite/export 4.14.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/anonymize-placement.d.ts.map +1 -1
- package/dist/anonymize-placement.js +2 -2
- package/dist/anonymize-placement.js.map +1 -1
- package/dist/attribute-slot-types.d.ts.map +1 -1
- package/dist/attribute-slot-types.js +3 -1
- package/dist/attribute-slot-types.js.map +1 -1
- package/dist/effective-index-created-rows.d.ts +3 -0
- package/dist/effective-index-created-rows.d.ts.map +1 -1
- package/dist/effective-index-created-rows.js +16 -5
- package/dist/effective-index-created-rows.js.map +1 -1
- package/dist/effective-index.d.ts.map +1 -1
- package/dist/effective-index.js +2 -1
- package/dist/effective-index.js.map +1 -1
- package/dist/entity-iteration.d.ts +1 -1
- package/dist/entity-iteration.d.ts.map +1 -1
- package/dist/entity-iteration.js.map +1 -1
- package/dist/generated/ifc2x3-typed-properties.d.ts +11 -0
- package/dist/generated/ifc2x3-typed-properties.d.ts.map +1 -0
- package/dist/generated/ifc2x3-typed-properties.js +49 -0
- package/dist/generated/ifc2x3-typed-properties.js.map +1 -0
- package/dist/georef-closure.d.ts +12 -0
- package/dist/georef-closure.d.ts.map +1 -1
- package/dist/georef-closure.js +3 -1
- package/dist/georef-closure.js.map +1 -1
- package/dist/ifc5-exporter.d.ts.map +1 -1
- package/dist/ifc5-exporter.js +3 -10
- package/dist/ifc5-exporter.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/merged-bake.d.ts +32 -0
- package/dist/merged-bake.d.ts.map +1 -0
- package/dist/merged-bake.js +120 -0
- package/dist/merged-bake.js.map +1 -0
- package/dist/merged-context.d.ts +49 -6
- package/dist/merged-context.d.ts.map +1 -1
- package/dist/merged-context.js +165 -53
- package/dist/merged-context.js.map +1 -1
- package/dist/merged-exporter.d.ts +7 -14
- package/dist/merged-exporter.d.ts.map +1 -1
- package/dist/merged-exporter.js +112 -178
- package/dist/merged-exporter.js.map +1 -1
- package/dist/merged-georef-normalize.d.ts +54 -0
- package/dist/merged-georef-normalize.d.ts.map +1 -0
- package/dist/merged-georef-normalize.js +260 -0
- package/dist/merged-georef-normalize.js.map +1 -0
- package/dist/merged-guid.d.ts +5 -7
- package/dist/merged-guid.d.ts.map +1 -1
- package/dist/merged-guid.js +37 -42
- package/dist/merged-guid.js.map +1 -1
- package/dist/merged-header.d.ts +6 -0
- package/dist/merged-header.d.ts.map +1 -1
- package/dist/merged-header.js +6 -0
- package/dist/merged-header.js.map +1 -1
- package/dist/merged-inverse-claims.d.ts.map +1 -1
- package/dist/merged-inverse-claims.js +3 -2
- package/dist/merged-inverse-claims.js.map +1 -1
- package/dist/merged-planner-guids.d.ts +1 -0
- package/dist/merged-planner-guids.d.ts.map +1 -1
- package/dist/merged-planner-guids.js +5 -6
- package/dist/merged-planner-guids.js.map +1 -1
- package/dist/merged-project-contexts.d.ts +12 -0
- package/dist/merged-project-contexts.d.ts.map +1 -0
- package/dist/merged-project-contexts.js +56 -0
- package/dist/merged-project-contexts.js.map +1 -0
- package/dist/merged-remap.d.ts +3 -1
- package/dist/merged-remap.d.ts.map +1 -1
- package/dist/merged-remap.js +15 -1
- package/dist/merged-remap.js.map +1 -1
- package/dist/merged-subcontext.d.ts +22 -0
- package/dist/merged-subcontext.d.ts.map +1 -1
- package/dist/merged-subcontext.js +14 -18
- package/dist/merged-subcontext.js.map +1 -1
- package/dist/schema-calendar-date-values.d.ts +15 -0
- package/dist/schema-calendar-date-values.d.ts.map +1 -0
- package/dist/schema-calendar-date-values.js +107 -0
- package/dist/schema-calendar-date-values.js.map +1 -0
- package/dist/schema-calendar-dates.d.ts +11 -0
- package/dist/schema-calendar-dates.d.ts.map +1 -0
- package/dist/schema-calendar-dates.js +127 -0
- package/dist/schema-calendar-dates.js.map +1 -0
- package/dist/schema-conversion-loss-description.d.ts +3 -0
- package/dist/schema-conversion-loss-description.d.ts.map +1 -0
- package/dist/schema-conversion-loss-description.js +23 -0
- package/dist/schema-conversion-loss-description.js.map +1 -0
- package/dist/schema-conversion-loss-report.d.ts +22 -19
- package/dist/schema-conversion-loss-report.d.ts.map +1 -1
- package/dist/schema-conversion-loss-report.js +223 -61
- package/dist/schema-conversion-loss-report.js.map +1 -1
- package/dist/schema-converter-attr-maps.d.ts +63 -0
- package/dist/schema-converter-attr-maps.d.ts.map +1 -0
- package/dist/schema-converter-attr-maps.js +186 -0
- package/dist/schema-converter-attr-maps.js.map +1 -0
- package/dist/schema-converter-attr-remap.d.ts +2 -2
- package/dist/schema-converter-attr-remap.d.ts.map +1 -1
- package/dist/schema-converter-attr-remap.js +9 -5
- package/dist/schema-converter-attr-remap.js.map +1 -1
- package/dist/schema-converter-document-links.d.ts +23 -0
- package/dist/schema-converter-document-links.d.ts.map +1 -0
- package/dist/schema-converter-document-links.js +146 -0
- package/dist/schema-converter-document-links.js.map +1 -0
- package/dist/schema-converter-durations.d.ts +9 -0
- package/dist/schema-converter-durations.d.ts.map +1 -0
- package/dist/schema-converter-durations.js +60 -0
- package/dist/schema-converter-durations.js.map +1 -0
- package/dist/schema-converter-enums.d.ts +18 -2
- package/dist/schema-converter-enums.d.ts.map +1 -1
- package/dist/schema-converter-enums.js +39 -6
- package/dist/schema-converter-enums.js.map +1 -1
- package/dist/schema-converter-ifc2x3-slots.d.ts +1 -1
- package/dist/schema-converter-ifc2x3-slots.d.ts.map +1 -1
- package/dist/schema-converter-ifc2x3-slots.js +6 -5
- package/dist/schema-converter-ifc2x3-slots.js.map +1 -1
- package/dist/schema-converter-ifc4-slots.d.ts +4 -3
- package/dist/schema-converter-ifc4-slots.d.ts.map +1 -1
- package/dist/schema-converter-ifc4-slots.js +4 -3
- package/dist/schema-converter-ifc4-slots.js.map +1 -1
- package/dist/schema-converter-ifc4x3-upgrade.d.ts +5 -0
- package/dist/schema-converter-ifc4x3-upgrade.d.ts.map +1 -0
- package/dist/schema-converter-ifc4x3-upgrade.js +41 -0
- package/dist/schema-converter-ifc4x3-upgrade.js.map +1 -0
- package/dist/schema-converter-material-referent.d.ts +55 -0
- package/dist/schema-converter-material-referent.d.ts.map +1 -0
- package/dist/schema-converter-material-referent.js +184 -0
- package/dist/schema-converter-material-referent.js.map +1 -0
- package/dist/schema-converter-owner-history.d.ts +1 -1
- package/dist/schema-converter-owner-history.d.ts.map +1 -1
- package/dist/schema-converter-owner-history.js +4 -3
- package/dist/schema-converter-owner-history.js.map +1 -1
- package/dist/schema-converter-product-proxy.d.ts +0 -23
- package/dist/schema-converter-product-proxy.d.ts.map +1 -1
- package/dist/schema-converter-product-proxy.js +2 -1
- package/dist/schema-converter-product-proxy.js.map +1 -1
- package/dist/schema-converter-renames.d.ts +17 -0
- package/dist/schema-converter-renames.d.ts.map +1 -1
- package/dist/schema-converter-renames.js +34 -2
- package/dist/schema-converter-renames.js.map +1 -1
- package/dist/schema-converter-retyped.d.ts +17 -0
- package/dist/schema-converter-retyped.d.ts.map +1 -0
- package/dist/schema-converter-retyped.js +68 -0
- package/dist/schema-converter-retyped.js.map +1 -0
- package/dist/schema-converter-step-finish.d.ts +4 -0
- package/dist/schema-converter-step-finish.d.ts.map +1 -0
- package/dist/schema-converter-step-finish.js +27 -0
- package/dist/schema-converter-step-finish.js.map +1 -0
- package/dist/schema-converter-structural-axes.d.ts +48 -4
- package/dist/schema-converter-structural-axes.d.ts.map +1 -1
- package/dist/schema-converter-structural-axes.js +350 -31
- package/dist/schema-converter-structural-axes.js.map +1 -1
- package/dist/schema-converter-structural-carriers.d.ts +78 -0
- package/dist/schema-converter-structural-carriers.d.ts.map +1 -0
- package/dist/schema-converter-structural-carriers.js +336 -0
- package/dist/schema-converter-structural-carriers.js.map +1 -0
- package/dist/schema-converter-structural-diagnostics.d.ts +56 -9
- package/dist/schema-converter-structural-diagnostics.d.ts.map +1 -1
- package/dist/schema-converter-structural-diagnostics.js +170 -17
- package/dist/schema-converter-structural-diagnostics.js.map +1 -1
- package/dist/schema-converter-structural-links.d.ts +2 -2
- package/dist/schema-converter-structural-links.d.ts.map +1 -1
- package/dist/schema-converter-structural-links.js +3 -28
- package/dist/schema-converter-structural-links.js.map +1 -1
- package/dist/schema-converter-structural-source.d.ts +83 -0
- package/dist/schema-converter-structural-source.d.ts.map +1 -0
- package/dist/schema-converter-structural-source.js +207 -0
- package/dist/schema-converter-structural-source.js.map +1 -0
- package/dist/schema-converter-structural-thickness.d.ts +33 -0
- package/dist/schema-converter-structural-thickness.d.ts.map +1 -0
- package/dist/schema-converter-structural-thickness.js +155 -0
- package/dist/schema-converter-structural-thickness.js.map +1 -0
- package/dist/schema-converter-structural-varying.d.ts +21 -9
- package/dist/schema-converter-structural-varying.d.ts.map +1 -1
- package/dist/schema-converter-structural-varying.js +83 -54
- package/dist/schema-converter-structural-varying.js.map +1 -1
- package/dist/schema-converter-structural.d.ts +2 -2
- package/dist/schema-converter-structural.d.ts.map +1 -1
- package/dist/schema-converter-structural.js +9 -6
- package/dist/schema-converter-structural.js.map +1 -1
- package/dist/schema-converter-typed-properties.d.ts +30 -0
- package/dist/schema-converter-typed-properties.d.ts.map +1 -0
- package/dist/schema-converter-typed-properties.js +173 -0
- package/dist/schema-converter-typed-properties.js.map +1 -0
- package/dist/schema-converter-unrooted-upgrade.d.ts +14 -0
- package/dist/schema-converter-unrooted-upgrade.d.ts.map +1 -0
- package/dist/schema-converter-unrooted-upgrade.js +228 -0
- package/dist/schema-converter-unrooted-upgrade.js.map +1 -0
- package/dist/schema-converter-userdefined-label.d.ts +8 -0
- package/dist/schema-converter-userdefined-label.d.ts.map +1 -0
- package/dist/schema-converter-userdefined-label.js +61 -0
- package/dist/schema-converter-userdefined-label.js.map +1 -0
- package/dist/schema-converter-userdefined.d.ts +15 -0
- package/dist/schema-converter-userdefined.d.ts.map +1 -0
- package/dist/schema-converter-userdefined.js +59 -0
- package/dist/schema-converter-userdefined.js.map +1 -0
- package/dist/schema-converter-value-forms.d.ts +20 -0
- package/dist/schema-converter-value-forms.d.ts.map +1 -0
- package/dist/schema-converter-value-forms.js +225 -0
- package/dist/schema-converter-value-forms.js.map +1 -0
- package/dist/schema-converter.d.ts +10 -15
- package/dist/schema-converter.d.ts.map +1 -1
- package/dist/schema-converter.js +87 -83
- package/dist/schema-converter.js.map +1 -1
- package/dist/schema-enum-policy.d.ts +5 -1
- package/dist/schema-enum-policy.d.ts.map +1 -1
- package/dist/schema-enum-policy.js +21 -1
- package/dist/schema-enum-policy.js.map +1 -1
- package/dist/schema-ifc2x3-placements.d.ts.map +1 -1
- package/dist/schema-ifc2x3-placements.js +20 -31
- package/dist/schema-ifc2x3-placements.js.map +1 -1
- package/dist/schema-ifc2x3-records.d.ts.map +1 -1
- package/dist/schema-ifc2x3-records.js +3 -2
- package/dist/schema-ifc2x3-records.js.map +1 -1
- package/dist/schema-ifc2x3-style-assignments.d.ts +4 -0
- package/dist/schema-ifc2x3-style-assignments.d.ts.map +1 -0
- package/dist/schema-ifc2x3-style-assignments.js +33 -0
- package/dist/schema-ifc2x3-style-assignments.js.map +1 -0
- package/dist/schema-structural-varying-effective.d.ts +2 -0
- package/dist/schema-structural-varying-effective.d.ts.map +1 -0
- package/dist/schema-structural-varying-effective.js +95 -0
- package/dist/schema-structural-varying-effective.js.map +1 -0
- package/dist/schema-untranslatable.d.ts +22 -13
- package/dist/schema-untranslatable.d.ts.map +1 -1
- package/dist/schema-untranslatable.js +84 -6
- package/dist/schema-untranslatable.js.map +1 -1
- package/dist/schema-value-form-policy.d.ts +129 -0
- package/dist/schema-value-form-policy.d.ts.map +1 -0
- package/dist/schema-value-form-policy.js +255 -0
- package/dist/schema-value-form-policy.js.map +1 -0
- package/dist/step-argument-parser.d.ts +3 -3
- package/dist/step-argument-parser.d.ts.map +1 -1
- package/dist/step-argument-parser.js +6 -6
- package/dist/step-argument-parser.js.map +1 -1
- package/dist/step-collection.d.ts.map +1 -1
- package/dist/step-collection.js +2 -0
- package/dist/step-collection.js.map +1 -1
- package/dist/step-comment-skip.d.ts +8 -0
- package/dist/step-comment-skip.d.ts.map +1 -1
- package/dist/step-comment-skip.js +30 -0
- package/dist/step-comment-skip.js.map +1 -1
- package/dist/step-coordinate-options.d.ts +15 -0
- package/dist/step-coordinate-options.d.ts.map +1 -1
- package/dist/step-coordinate-options.js +13 -1
- package/dist/step-coordinate-options.js.map +1 -1
- package/dist/step-export-types.d.ts +5 -7
- package/dist/step-export-types.d.ts.map +1 -1
- package/dist/step-export-types.js.map +1 -1
- package/dist/step-exporter.d.ts +0 -6
- package/dist/step-exporter.d.ts.map +1 -1
- package/dist/step-exporter.js +19 -12
- package/dist/step-exporter.js.map +1 -1
- package/dist/step-georeferencing.d.ts +2 -0
- package/dist/step-georeferencing.d.ts.map +1 -1
- package/dist/step-georeferencing.js +126 -63
- package/dist/step-georeferencing.js.map +1 -1
- package/dist/step-header.d.ts.map +1 -1
- package/dist/step-header.js +1 -0
- package/dist/step-header.js.map +1 -1
- package/dist/step-internal-pset-ids.js +1 -1
- package/dist/step-internal-pset-ids.js.map +1 -1
- package/dist/step-map-unit-normalization.d.ts.map +1 -1
- package/dist/step-map-unit-normalization.js +5 -4
- package/dist/step-map-unit-normalization.js.map +1 -1
- package/dist/step-map-unit.d.ts +8 -1
- package/dist/step-map-unit.d.ts.map +1 -1
- package/dist/step-map-unit.js +13 -5
- package/dist/step-map-unit.js.map +1 -1
- package/dist/step-omission-predicates.d.ts.map +1 -1
- package/dist/step-omission-predicates.js +1 -0
- package/dist/step-omission-predicates.js.map +1 -1
- package/dist/step-overlay-entities.d.ts +0 -35
- package/dist/step-overlay-entities.d.ts.map +1 -1
- package/dist/step-overlay-entities.js +38 -2
- package/dist/step-overlay-entities.js.map +1 -1
- package/dist/step-pass-builder.d.ts.map +1 -1
- package/dist/step-pass-builder.js +59 -7
- package/dist/step-pass-builder.js.map +1 -1
- package/dist/step-record-frame.d.ts +5 -3
- package/dist/step-record-frame.d.ts.map +1 -1
- package/dist/step-record-frame.js +12 -8
- package/dist/step-record-frame.js.map +1 -1
- package/dist/step-ref-scan.d.ts +12 -0
- package/dist/step-ref-scan.d.ts.map +1 -1
- package/dist/step-ref-scan.js +24 -3
- package/dist/step-ref-scan.js.map +1 -1
- package/dist/step-serialization.d.ts +12 -0
- package/dist/step-serialization.d.ts.map +1 -1
- package/dist/step-serialization.js +15 -0
- package/dist/step-serialization.js.map +1 -1
- package/dist/step-slot-grammar.d.ts +3 -2
- package/dist/step-slot-grammar.d.ts.map +1 -1
- package/dist/step-slot-grammar.js +5 -5
- package/dist/step-slot-grammar.js.map +1 -1
- package/dist/step-source-iteration.d.ts.map +1 -1
- package/dist/step-source-iteration.js +6 -9
- package/dist/step-source-iteration.js.map +1 -1
- package/dist/unit-normalize.d.ts +2 -2
- package/dist/unit-normalize.d.ts.map +1 -1
- package/dist/unit-normalize.js +23 -13
- package/dist/unit-normalize.js.map +1 -1
- package/dist/viewer-georef-scale.d.ts +14 -0
- package/dist/viewer-georef-scale.d.ts.map +1 -0
- package/dist/viewer-georef-scale.js +20 -0
- package/dist/viewer-georef-scale.js.map +1 -0
- package/package.json +41 -8
|
@@ -2,33 +2,27 @@
|
|
|
2
2
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
3
3
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* `schema-converter.ts`'s `convertStepLine` already makes every one of these
|
|
9
|
-
* decisions per RECORD, but only as a side effect of producing bytes (or, for
|
|
10
|
-
* a non-rooted type with no target representation, throwing —
|
|
11
|
-
* `resolveUnrepresentedEntity`'s documented, intentional behaviour for e.g.
|
|
12
|
-
* `IFCTRIANGULATEDFACESET` into IFC2X3: there is no valid IFC2X3 substitute
|
|
13
|
-
* for a representation item, so guessing one would ship a differently-broken
|
|
14
|
-
* file). Before this module, a caller's only way to learn what a conversion
|
|
15
|
-
* would do — or that it cannot complete at all — was to attempt the full
|
|
16
|
-
* export and either inspect `stats.warnings` after the fact or catch the
|
|
17
|
-
* exception with no indication of what ELSE in the file has the same
|
|
18
|
-
* problem, since the export aborts on the FIRST record it cannot represent.
|
|
19
|
-
*
|
|
20
|
-
* `IfcDataStore.entityIndex.byType` already gives every distinct type
|
|
21
|
-
* present with its express ids, and `classifyEntityTypeConversion`'s
|
|
22
|
-
* decision depends only on the TYPE (the generated attribute tables are
|
|
23
|
-
* positional-name lists, not per-instance data) — so a complete, honest loss
|
|
24
|
-
* report is one pass over the distinct types, not the whole file (#4206: the
|
|
25
|
-
* "the loss report ... names each attribute it could not carry" bar).
|
|
5
|
+
* Preview schema conversion without writing the export. Classify each source
|
|
6
|
+
* type once, then look up the kept IDs for types with potential losses (#4206).
|
|
26
7
|
*/
|
|
27
|
-
import {
|
|
8
|
+
import { isStructuralStiffnessConversion, isStructuralAssignmentConversion } from './schema-converter-structural.js';
|
|
9
|
+
import { NO_ROUND_TRIP, structuralRoundTrip } from './schema-converter-structural-diagnostics.js';
|
|
10
|
+
import { varyingTarget } from './schema-converter-structural-varying.js';
|
|
11
|
+
import { DocumentLinks } from './schema-converter-document-links.js';
|
|
12
|
+
import { SourceRecords } from './schema-converter-structural-source.js';
|
|
13
|
+
import { describeEntry } from './schema-conversion-loss-description.js';
|
|
14
|
+
import { materialPropertiesNotWritten } from './schema-converter-material-referent.js';
|
|
15
|
+
import { EMPTY_SOURCE_BYTES } from '@ifc-lite/parser';
|
|
28
16
|
import { convertEntityType, attrNameTable, shouldSkipEntity, } from './schema-converter.js';
|
|
29
17
|
import { BY_NAME_ATTR_REMAP_TYPES } from './schema-converter-attr-remap.js';
|
|
30
|
-
import { isStrictAttrPrefix } from './schema-converter-renames.js';
|
|
31
|
-
import {
|
|
18
|
+
import { isStrictAttrPrefix, replacedSlot } from './schema-converter-renames.js';
|
|
19
|
+
import { previewTypedPropertyNames } from './schema-converter-typed-properties.js';
|
|
20
|
+
import { getCompleteEntityIndex } from './entity-iteration.js';
|
|
21
|
+
import { attrMapFor, attrsDroppedByMap, dropsSetMembers, DELETED_SUBTYPES } from './schema-converter-attr-maps.js';
|
|
22
|
+
import { droppedIfc4x3SlotNames, needsIfc4x3SlotMap } from './schema-converter-ifc4x3-upgrade.js';
|
|
23
|
+
import { previewUpgradeDependents } from './schema-converter-unrooted-upgrade.js';
|
|
24
|
+
import { holdsValue } from './step-comment-skip.js';
|
|
25
|
+
import { isRootedEntityType, missingTypeRoute } from './schema-untranslatable.js';
|
|
32
26
|
/**
|
|
33
27
|
* Classify what converting entities of `entityType` from `fromSchema` to
|
|
34
28
|
* `toSchema` will do, mirroring `schema-converter.ts`'s `convertRecord`
|
|
@@ -43,10 +37,10 @@ export function classifyEntityTypeConversion(entityType, fromSchema, toSchema) {
|
|
|
43
37
|
const srcAttrs = attrNameTable(fromSchema)?.get(upper);
|
|
44
38
|
// #9668: stiffness fields survive by semantic position and unit, despite
|
|
45
39
|
// renamed Linear/Translational attributes and SELECT wrappers.
|
|
46
|
-
if (
|
|
47
|
-
// IFC2X3 cannot retain the
|
|
40
|
+
if (isStructuralStiffnessConversion(upper, fromSchema, toSchema))
|
|
41
|
+
// IFC2X3 cannot retain the stiffness SELECT member: boolean false and a zero
|
|
48
42
|
// measure both become 0, preserving stiffness but losing that distinction.
|
|
49
|
-
return { targetType: upper, kind:
|
|
43
|
+
return { targetType: upper, kind: toSchema === 'IFC2X3' ? 'lossy' : 'renamed', droppedAttributes: [] };
|
|
50
44
|
// #9668: the two linked objects survive in IFC4's analytical assignment,
|
|
51
45
|
// under differently named roles, but their original relationship kind is lost.
|
|
52
46
|
if (isStructuralAssignmentConversion(upper, fromSchema, toSchema))
|
|
@@ -65,19 +59,25 @@ export function classifyEntityTypeConversion(entityType, fromSchema, toSchema) {
|
|
|
65
59
|
}
|
|
66
60
|
const targetTable = attrNameTable(toSchema);
|
|
67
61
|
const tgtAttrs = targetTable?.get(newType);
|
|
68
|
-
//
|
|
69
|
-
|
|
70
|
-
if (
|
|
62
|
+
// `convertRecord`'s own route for a type the target lacks (#10902).
|
|
63
|
+
const route = missingTypeRoute(upper, fromSchema, toSchema, srcAttrs !== undefined, !targetTable || tgtAttrs !== undefined);
|
|
64
|
+
if (route === 'unrepresented') {
|
|
71
65
|
const dropped = srcAttrs ?? [];
|
|
72
66
|
return isRootedEntityType(upper)
|
|
73
|
-
? { targetType: 'IFCPROXY', kind: 'proxied', droppedAttributes: dropped }
|
|
67
|
+
? { targetType: 'IFCPROXY', kind: 'proxied', droppedAttributes: dropped.filter((name) => name !== 'GlobalId' && name !== 'Name') }
|
|
74
68
|
: { targetType: newType, kind: 'blocked', droppedAttributes: dropped };
|
|
75
69
|
}
|
|
70
|
+
// A type the target does not declare loses all of its attributes (D59, #10970, #10971).
|
|
71
|
+
if ((route === 'verbatim' || route === 'omitted') && srcAttrs)
|
|
72
|
+
return { targetType: newType, kind: 'lossy', droppedAttributes: srcAttrs };
|
|
76
73
|
if (!srcAttrs || !tgtAttrs) {
|
|
77
74
|
// Unknown to one of the tables (IFC5 has none) — the per-line converter
|
|
78
75
|
// passes such lines through unexamined; nothing to report either way.
|
|
79
76
|
return { targetType: newType, kind: upper === newType ? 'identity' : 'renamed', droppedAttributes: [] };
|
|
80
77
|
}
|
|
78
|
+
if (toSchema === 'IFC4X3' && upper !== newType && needsIfc4x3SlotMap(upper)) {
|
|
79
|
+
return { targetType: newType, kind: 'lossy', droppedAttributes: droppedIfc4x3SlotNames(upper, srcAttrs, tgtAttrs) };
|
|
80
|
+
}
|
|
81
81
|
if (srcAttrs.length === tgtAttrs.length && srcAttrs.every((name, i) => name === tgtAttrs[i])) {
|
|
82
82
|
// Neither list is a STRICT prefix of the other when they are equal
|
|
83
83
|
// (`isStrictAttrPrefix` requires shorter.length < longer.length) — the
|
|
@@ -85,17 +85,24 @@ export function classifyEntityTypeConversion(entityType, fromSchema, toSchema) {
|
|
|
85
85
|
// gets reassigned there. Matches, not a rename or a loss.
|
|
86
86
|
return { targetType: newType, kind: upper === newType ? 'identity' : 'renamed', droppedAttributes: [] };
|
|
87
87
|
}
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
const mapped = attrMapFor(upper, newType, fromSchema, toSchema);
|
|
89
|
+
if (mapped) {
|
|
90
|
+
// #10763: what the reviewed map carries survives; every other source attribute is dropped.
|
|
91
|
+
const dropped = attrsDroppedByMap(mapped.map, mapped.up, srcAttrs, tgtAttrs);
|
|
92
|
+
return { targetType: newType, kind: dropped.length > 0 ? 'lossy' : upper === newType ? 'identity' : 'renamed', droppedAttributes: dropped };
|
|
93
|
+
}
|
|
94
|
+
// #10758: the converter writes `$` where a schema replaced an attribute in place.
|
|
95
|
+
const replaced = replacedSlot(upper, srcAttrs, tgtAttrs);
|
|
96
|
+
const replacedName = replaced === undefined ? [] : [srcAttrs[replaced]];
|
|
97
|
+
// A pad drops nothing past the source's own length, so one branch serves both.
|
|
98
|
+
if (isStrictAttrPrefix(tgtAttrs, srcAttrs, upper) || isStrictAttrPrefix(srcAttrs, tgtAttrs, upper)) {
|
|
99
|
+
const dropped = [...replacedName, ...srcAttrs.slice(tgtAttrs.length)];
|
|
90
100
|
return {
|
|
91
101
|
targetType: newType,
|
|
92
102
|
kind: dropped.length > 0 ? 'lossy' : upper === newType ? 'identity' : 'renamed',
|
|
93
103
|
droppedAttributes: dropped,
|
|
94
104
|
};
|
|
95
105
|
}
|
|
96
|
-
if (isStrictAttrPrefix(srcAttrs, tgtAttrs, upper)) {
|
|
97
|
-
return { targetType: newType, kind: upper === newType ? 'identity' : 'renamed', droppedAttributes: [] };
|
|
98
|
-
}
|
|
99
106
|
if (upper !== newType && BY_NAME_ATTR_REMAP_TYPES.has(upper)) {
|
|
100
107
|
const dropped = srcAttrs.filter((name) => !tgtAttrs.includes(name));
|
|
101
108
|
return { targetType: newType, kind: dropped.length > 0 ? 'lossy' : 'renamed', droppedAttributes: dropped };
|
|
@@ -109,43 +116,197 @@ export function classifyEntityTypeConversion(entityType, fromSchema, toSchema) {
|
|
|
109
116
|
droppedAttributes: srcAttrs.filter((name) => !tgtAttrs.includes(name)),
|
|
110
117
|
};
|
|
111
118
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
119
|
+
function addDependentOmissions(entries, omittedByType, from, to) {
|
|
120
|
+
const existing = new Map(entries.map(entry => [entry.sourceType, entry]));
|
|
121
|
+
for (const [sourceType, expressIds] of omittedByType) {
|
|
122
|
+
const group = { targetType: convertEntityType(sourceType, from, to), expressIds, count: expressIds.length,
|
|
123
|
+
droppedAttributes: attrNameTable(from)?.get(sourceType) ?? [] };
|
|
124
|
+
const entry = existing.get(sourceType);
|
|
125
|
+
if (!entry) {
|
|
126
|
+
entries.push({ ...group, sourceType, kind: 'lossy' });
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
entry.recordGroups = [...(entry.recordGroups ?? [{ ...entry }]), group];
|
|
130
|
+
entry.expressIds = [...entry.expressIds, ...expressIds];
|
|
131
|
+
entry.count = entry.expressIds.length;
|
|
132
|
+
entry.droppedAttributes = [...new Set([...entry.droppedAttributes, ...group.droppedAttributes])];
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
/** Group records by attributes no carrier restores. Records with no loss need no lossy entry. */
|
|
136
|
+
function entryAfterRestoration(sourceType, expressIds, info, isRetained) {
|
|
137
|
+
const groups = new Map();
|
|
138
|
+
for (const id of expressIds) {
|
|
139
|
+
const dropped = info.droppedAttributes.filter((attribute) => !isRetained(id, attribute));
|
|
140
|
+
if (info.kind === 'lossy' && !dropped.length)
|
|
141
|
+
continue;
|
|
142
|
+
const key = dropped.join(',');
|
|
143
|
+
const group = groups.get(key) ?? { dropped, ids: [] };
|
|
144
|
+
group.ids.push(id);
|
|
145
|
+
groups.set(key, group);
|
|
127
146
|
}
|
|
147
|
+
if (!groups.size)
|
|
148
|
+
return undefined;
|
|
149
|
+
const recordGroups = [...groups.values()].map(({ dropped, ids }) => ({
|
|
150
|
+
droppedAttributes: dropped,
|
|
151
|
+
count: ids.length,
|
|
152
|
+
expressIds: ids,
|
|
153
|
+
}));
|
|
154
|
+
const lost = new Set(recordGroups.flatMap((group) => group.droppedAttributes));
|
|
155
|
+
const omitted = new Set(recordGroups.flatMap((group) => group.expressIds));
|
|
156
|
+
const reportedIds = expressIds.filter((id) => omitted.has(id));
|
|
157
|
+
return {
|
|
158
|
+
...info,
|
|
159
|
+
droppedAttributes: info.droppedAttributes.filter((attribute) => lost.has(attribute)),
|
|
160
|
+
sourceType,
|
|
161
|
+
count: reportedIds.length,
|
|
162
|
+
expressIds: reportedIds,
|
|
163
|
+
...(recordGroups.length > 1 ? { recordGroups } : {}),
|
|
164
|
+
};
|
|
128
165
|
}
|
|
129
166
|
/**
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
* full export would have aborted on.
|
|
167
|
+
* Preview conversion losses across the whole source file, even when export would refuse a record.
|
|
168
|
+
* Source bytes distinguish populated slots, narrowed sets and values preserved by structural
|
|
169
|
+
* carriers in an unedited full export (#9668).
|
|
134
170
|
*/
|
|
135
171
|
export function analyzeConversionLoss(store, fromSchema, toSchema) {
|
|
136
172
|
const entries = [];
|
|
173
|
+
const { entityIndex, deferredEntityIndex, source } = store;
|
|
174
|
+
const dependent = source?.byteLength
|
|
175
|
+
? previewUpgradeDependents({ entityIndex, deferredEntityIndex, source }, fromSchema, toSchema)
|
|
176
|
+
: undefined;
|
|
137
177
|
if (fromSchema !== toSchema) {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
178
|
+
const index = new SourceRecords({ entityIndex, deferredEntityIndex, source: source ?? EMPTY_SOURCE_BYTES });
|
|
179
|
+
let inventory = index.hasIndexedRecords() ? index : undefined;
|
|
180
|
+
const typed = [];
|
|
181
|
+
const omittedByType = new Map();
|
|
182
|
+
// An IFC2X3 varying action classifies as identity, but the upgrade can report its CausedBy (`strandedAs`).
|
|
183
|
+
const varying = [];
|
|
184
|
+
// @raw-entity-enumeration-ok this report describes the parsed file's schema-conversion losses
|
|
185
|
+
for (const [sourceType, ids] of entityIndex.byType) {
|
|
186
|
+
if (ids.length === 0)
|
|
141
187
|
continue;
|
|
142
188
|
const info = classifyEntityTypeConversion(sourceType, fromSchema, toSchema);
|
|
143
|
-
|
|
189
|
+
const isLoss = info.kind !== 'identity' && info.kind !== 'renamed';
|
|
190
|
+
const varyingAction = fromSchema === 'IFC2X3' && varyingTarget(sourceType.toUpperCase());
|
|
191
|
+
if (!dependent?.size && !isLoss && !varyingAction)
|
|
144
192
|
continue;
|
|
145
|
-
|
|
193
|
+
let expressIds = ids;
|
|
194
|
+
try {
|
|
195
|
+
expressIds = inventory?.ids(sourceType) ?? ids;
|
|
196
|
+
}
|
|
197
|
+
catch (error) {
|
|
198
|
+
console.warn('[analyzeConversionLoss] Could not resolve kept source records', error);
|
|
199
|
+
inventory = undefined;
|
|
200
|
+
}
|
|
201
|
+
if (dependent?.size) {
|
|
202
|
+
const omitted = expressIds.filter(id => dependent.has(id));
|
|
203
|
+
if (omitted.length) {
|
|
204
|
+
omittedByType.set(sourceType.toUpperCase(), omitted);
|
|
205
|
+
expressIds = expressIds.filter(id => !dependent.has(id));
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
if (expressIds.length === 0)
|
|
209
|
+
continue;
|
|
210
|
+
if (isLoss)
|
|
211
|
+
typed.push([sourceType.toUpperCase(), expressIds, info]);
|
|
212
|
+
else if (varyingAction)
|
|
213
|
+
varying.push([sourceType.toUpperCase(), expressIds]);
|
|
214
|
+
}
|
|
215
|
+
// #9668: what an IFC2X3 <-> IFC4 structural carrier writes back on the round trip is not lost.
|
|
216
|
+
// Only IfcStructural* records carry anything, and reading them needs the source bytes.
|
|
217
|
+
// #10846: nor is a document link the export moves to the other record.
|
|
218
|
+
const carrying = (type, info) => /^IFC(STRUCTURAL|DOCUMENT(INFORMATION|REFERENCE)$)/.test(type) && info.droppedAttributes.length > 0;
|
|
219
|
+
const records = source ? inventory : undefined;
|
|
220
|
+
const round = records && source
|
|
221
|
+
? structuralRoundTrip({ entityIndex, deferredEntityIndex, source }, fromSchema, toSchema, [...typed.flatMap(([type, ids, info]) => (carrying(type, info) ? ids : [])), ...varying.flatMap(([, ids]) => ids)])
|
|
222
|
+
: NO_ROUND_TRIP;
|
|
223
|
+
const links = new DocumentLinks();
|
|
224
|
+
try {
|
|
225
|
+
if (records)
|
|
226
|
+
links.fromSource(records, fromSchema, toSchema);
|
|
227
|
+
}
|
|
228
|
+
catch (error) {
|
|
229
|
+
// As for the carriers: the schema-only preview stands if the prepass fails.
|
|
230
|
+
console.warn('[analyzeConversionLoss] Could not evaluate document links', error);
|
|
231
|
+
}
|
|
232
|
+
const { stranded } = round;
|
|
233
|
+
const restored = new Map([...round.restored, ...links.restored]);
|
|
234
|
+
const typedUpgrade = fromSchema === 'IFC2X3' && (toSchema === 'IFC4' || toSchema === 'IFC4X3');
|
|
235
|
+
const retainedTyped = records && typedUpgrade
|
|
236
|
+
? previewTypedPropertyNames(records, getCompleteEntityIndex(store), typed.flatMap(([type, ids, info]) => {
|
|
237
|
+
const reference = info.targetType === 'IFCMATERIALPROPERTIES' ? 'Material'
|
|
238
|
+
: info.targetType === 'IFCPROFILEPROPERTIES' ? 'ProfileDefinition' : undefined;
|
|
239
|
+
const referenceSlot = reference ? attrNameTable(fromSchema)?.get(type)?.indexOf(reference) ?? -1 : -1;
|
|
240
|
+
return referenceSlot >= 0 ? [{ type, ids, referenceSlot }] : [];
|
|
241
|
+
}))
|
|
242
|
+
: undefined;
|
|
243
|
+
for (const [sourceType, expressIds, info] of typed) {
|
|
244
|
+
const mapped = records && toSchema === 'IFC2X3' ? attrMapFor(sourceType, info.targetType, fromSchema, toSchema) : undefined;
|
|
245
|
+
// A SET declared for an upgrade can still be dropped entirely on downgrade.
|
|
246
|
+
const setAttribute = mapped?.map.setOfOne?.[1];
|
|
247
|
+
const narrowedSet = setAttribute && !mapped?.map.upOnly.includes(setAttribute) ? setAttribute : undefined;
|
|
248
|
+
const attributes = attrNameTable(fromSchema)?.get(sourceType);
|
|
249
|
+
const slot = narrowedSet ? attributes?.indexOf(narrowedSet) ?? -1 : -1;
|
|
250
|
+
// #11326: an IFC4-deleted subtype's own attributes have no IfcTask slot, so only a populated one is lost.
|
|
251
|
+
const unsetSlots = records && DELETED_SUBTYPES.has(sourceType) && attrMapFor(sourceType, info.targetType, fromSchema, toSchema)?.up
|
|
252
|
+
? attributes : undefined;
|
|
253
|
+
const isRetained = (id, attribute) => {
|
|
254
|
+
if (restored.get(id)?.has(attribute) || retainedTyped?.get(id)?.has(attribute))
|
|
255
|
+
return true;
|
|
256
|
+
const own = unsetSlots ? records?.slots(id)?.[unsetSlots.indexOf(attribute)] : undefined;
|
|
257
|
+
if (own !== undefined && !holdsValue(own))
|
|
258
|
+
return true;
|
|
259
|
+
if (attribute !== narrowedSet)
|
|
260
|
+
return false;
|
|
261
|
+
const value = records?.slots(id)?.[slot];
|
|
262
|
+
return value !== undefined && !dropsSetMembers(value);
|
|
263
|
+
};
|
|
264
|
+
const entry = carrying(sourceType, info) || slot >= 0 || unsetSlots || expressIds.some((id) => retainedTyped?.has(id))
|
|
265
|
+
? entryAfterRestoration(sourceType, expressIds, info, isRetained)
|
|
266
|
+
: { ...info, sourceType, count: expressIds.length, expressIds };
|
|
267
|
+
if (entry)
|
|
268
|
+
entries.push(entry);
|
|
146
269
|
}
|
|
270
|
+
// #10846: the classifier sees no IfcDocumentReference loss on an upgrade, but linking one drops its Name for WR1.
|
|
271
|
+
if (links.unnamed.size > 0) {
|
|
272
|
+
const expressIds = [...links.unnamed].sort((a, b) => a - b);
|
|
273
|
+
entries.push({ targetType: 'IFCDOCUMENTREFERENCE', kind: 'lossy', droppedAttributes: ['Name'], sourceType: 'IFCDOCUMENTREFERENCE', count: expressIds.length, expressIds });
|
|
274
|
+
}
|
|
275
|
+
// #10763: an IfcMaterialProperties whose Material names no single IfcMaterial is not written.
|
|
276
|
+
const notWritten = materialPropertiesNotWritten(store, fromSchema, toSchema);
|
|
277
|
+
if (notWritten.ids.length) {
|
|
278
|
+
entries.push({ sourceType: 'IFCMATERIALPROPERTIES', targetType: 'IFCEXTENDEDMATERIALPROPERTIES', kind: 'lossy', droppedAttributes: [...notWritten.attributes], count: notWritten.ids.length, expressIds: notWritten.ids });
|
|
279
|
+
}
|
|
280
|
+
for (const [sourceType, ids] of varying) {
|
|
281
|
+
const byTarget = new Map();
|
|
282
|
+
for (const id of ids) {
|
|
283
|
+
const targetType = stranded.get(id);
|
|
284
|
+
if (!targetType)
|
|
285
|
+
continue;
|
|
286
|
+
const list = byTarget.get(targetType) ?? [];
|
|
287
|
+
list.push(id);
|
|
288
|
+
byTarget.set(targetType, list);
|
|
289
|
+
}
|
|
290
|
+
const groups = [...byTarget].map(([targetType, expressIds]) => ({ targetType, droppedAttributes: ['CausedBy'], count: expressIds.length, expressIds }));
|
|
291
|
+
if (!groups.length)
|
|
292
|
+
continue;
|
|
293
|
+
const expressIds = groups.flatMap((group) => group.expressIds);
|
|
294
|
+
// Several groups: each names its own target, and the entry keeps the classifier's (the source type).
|
|
295
|
+
const targetType = groups.length > 1 ? sourceType : groups[0].targetType;
|
|
296
|
+
entries.push({ targetType, kind: 'lossy', droppedAttributes: ['CausedBy'], sourceType, count: expressIds.length, expressIds, ...(groups.length > 1 ? { recordGroups: groups } : {}) });
|
|
297
|
+
}
|
|
298
|
+
if (omittedByType.size)
|
|
299
|
+
addDependentOmissions(entries, omittedByType, fromSchema, toSchema);
|
|
147
300
|
entries.sort((a, b) => a.sourceType.localeCompare(b.sourceType));
|
|
148
301
|
}
|
|
302
|
+
const describe = (entry) => {
|
|
303
|
+
if (dependent?.has(entry.expressIds[0]))
|
|
304
|
+
return describeEntry(entry, `a required ${toSchema} attribute lost a reference`);
|
|
305
|
+
const sourceKnown = attrNameTable(fromSchema)?.has(entry.sourceType) ?? false;
|
|
306
|
+
const target = attrNameTable(toSchema);
|
|
307
|
+
const route = missingTypeRoute(entry.sourceType, fromSchema, toSchema, sourceKnown, !target || target.has(entry.targetType));
|
|
308
|
+
return describeEntry(entry, route === 'omitted' ? `${toSchema} does not declare its type` : undefined);
|
|
309
|
+
};
|
|
149
310
|
const hasBlocking = entries.some((e) => e.kind === 'blocked');
|
|
150
311
|
return {
|
|
151
312
|
fromSchema,
|
|
@@ -153,7 +314,8 @@ export function analyzeConversionLoss(store, fromSchema, toSchema) {
|
|
|
153
314
|
entries,
|
|
154
315
|
hasLoss: entries.length > 0,
|
|
155
316
|
hasBlocking,
|
|
156
|
-
describe: () => entries.
|
|
317
|
+
describe: () => entries.flatMap((entry) => entry.recordGroups
|
|
318
|
+
?.map((group) => describe({ ...entry, ...group })) ?? [describe(entry)]),
|
|
157
319
|
};
|
|
158
320
|
}
|
|
159
321
|
//# sourceMappingURL=schema-conversion-loss-report.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-conversion-loss-report.js","sourceRoot":"","sources":["../src/schema-conversion-loss-report.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAE/D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,6BAA6B,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAC;AAEnH,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,gBAAgB,GAEjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAwChE;;;;;GAKG;AACH,MAAM,UAAU,4BAA4B,CAC1C,UAAkB,EAClB,UAA4B,EAC5B,QAA0B;IAE1B,MAAM,KAAK,GAAG,UAAU,CAAC,WAAW,EAAE,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AACJ,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entities whose attributes IFC4 INSERTED, REORDERED or RETYPED mid-list
|
|
3
|
+
* relative to IFC2X3 (#10763), reconciled by a reviewed per-type map.
|
|
4
|
+
*
|
|
5
|
+
* The trim and pad in `schema-converter.ts` are only safe when one list is a
|
|
6
|
+
* strict name prefix of the other. These types fail that test, so before
|
|
7
|
+
* #10763 the converter kept the source layout: an IFC2X3 `IfcApproval`
|
|
8
|
+
* upgraded to IFC4 put its `Description` in `Identifier`. A target slot takes
|
|
9
|
+
* the source value of the same or the listed renamed attribute; every other
|
|
10
|
+
* target slot is `$`. IFC4X3 declares the IFC4 lists for every mapped type.
|
|
11
|
+
*
|
|
12
|
+
* Twin of Rust `schema_attr_maps.rs`; both are held to
|
|
13
|
+
* `rust/export/tests/fixtures/schema_attribute_maps.json`, which quotes the
|
|
14
|
+
* IFC4 change note behind each map.
|
|
15
|
+
*/
|
|
16
|
+
import type { IfcSchemaVersion } from './schema-converter.js';
|
|
17
|
+
/** One reviewed IFC2X3 <-> IFC4 map. A same-named attribute in both lists is
|
|
18
|
+
* carried unless listed in `retyped` or, on a downgrade, `upOnly`. */
|
|
19
|
+
export interface AttrMap {
|
|
20
|
+
readonly ifc2x3: string;
|
|
21
|
+
/** The IFC4 (and IFC4X3) type. */
|
|
22
|
+
readonly ifc4: string;
|
|
23
|
+
/** `[IFC2X3 name, IFC4 name]`: one concept and one STEP value type. */
|
|
24
|
+
readonly renamed: readonly (readonly [string, string])[];
|
|
25
|
+
/** Same name, but a value of one type is not valid in the other. */
|
|
26
|
+
readonly retyped: readonly string[];
|
|
27
|
+
/** Same name; IFC4 widened the reference type, so only an upgrade carries it. */
|
|
28
|
+
readonly upOnly: readonly string[];
|
|
29
|
+
/** `[IFC2X3 single reference, IFC4 SET of them]`. */
|
|
30
|
+
readonly setOfOne: readonly [string, string] | null;
|
|
31
|
+
}
|
|
32
|
+
/** The reviewed supertype of an IFC2X3 property subtype (#10777). */
|
|
33
|
+
export declare function upgradeRename(type: string, fromSchema: IfcSchemaVersion, toSchema: IfcSchemaVersion): string | undefined;
|
|
34
|
+
export declare function getAttrMaps(): readonly AttrMap[];
|
|
35
|
+
/**
|
|
36
|
+
* IFC2X3 subtypes IFC4 deleted, written as their IFC4 supertype on an upgrade
|
|
37
|
+
* to IFC4 or IFC4X3 (#10902): IfcMove and IfcOrderAction through their map
|
|
38
|
+
* above, the relationships by the prefix trim (identical lists, or TimeForTask
|
|
39
|
+
* lost and reported). Not IfcRelOverridesProperties, which as
|
|
40
|
+
* IfcRelDefinesByProperties would attach the values it overrides, nor IFC5,
|
|
41
|
+
* which has no table to reconcile the attributes in. Twin of Rust
|
|
42
|
+
* `schema_attr_maps::upgrade_type`.
|
|
43
|
+
*/
|
|
44
|
+
export declare const DELETED_SUBTYPES: ReadonlyMap<string, string>;
|
|
45
|
+
/** True when an IFC4 `line` upgraded from IFC2X3 gets its required slots
|
|
46
|
+
* counted: a structural record, or one a map wrote, which can leave a
|
|
47
|
+
* required slot with no source value (#10763). The type is read from the
|
|
48
|
+
* record head. Twin of Rust `upgrade_counts_ifc4_slots`. */
|
|
49
|
+
export declare function upgradeCountsIfc4Slots(line: string): boolean;
|
|
50
|
+
/** The map for writing `entityType` as `newType`, and whether it runs upward. */
|
|
51
|
+
export declare function attrMapFor(entityType: string, newType: string, fromSchema: IfcSchemaVersion, toSchema: IfcSchemaVersion): {
|
|
52
|
+
map: AttrMap;
|
|
53
|
+
up: boolean;
|
|
54
|
+
} | undefined;
|
|
55
|
+
/** `values` (in the source layout `src`) written in the target layout `tgt`.
|
|
56
|
+
* Same output as Rust `schema_attr_maps::remap`. */
|
|
57
|
+
export declare function remapByAttrMap(map: AttrMap, up: boolean, values: readonly string[], src: readonly string[], tgt: readonly string[]): string;
|
|
58
|
+
/** Whether narrowing this SET to one value discards any held member. */
|
|
59
|
+
export declare function dropsSetMembers(value: string): boolean;
|
|
60
|
+
/** Source attributes with no target slot for their values, including a SET
|
|
61
|
+
* that could lose members. The model report checks that SET per record. */
|
|
62
|
+
export declare function attrsDroppedByMap(map: AttrMap, up: boolean, src: readonly string[], tgt: readonly string[]): string[];
|
|
63
|
+
//# sourceMappingURL=schema-converter-attr-maps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-converter-attr-maps.d.ts","sourceRoot":"","sources":["../src/schema-converter-attr-maps.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAK9D;uEACuE;AACvE,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,kCAAkC;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,uEAAuE;IACvE,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC;IACzD,oEAAoE;IACpE,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,iFAAiF;IACjF,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,qDAAqD;IACrD,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;CACrD;AAsFD,qEAAqE;AACrE,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,QAAQ,EAAE,gBAAgB,GAAG,MAAM,GAAG,SAAS,CAIxH;AAED,wBAAgB,WAAW,IAAI,SAAS,OAAO,EAAE,CAEhD;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAKvD,CAAC;AAEH;;;6DAG6D;AAC7D,wBAAgB,sBAAsB,CAAC,IAAI,EAAE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