@ifc-lite/export 5.0.0 → 7.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/README.md +42 -20
- 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/anonymize-types.d.ts +2 -0
- package/dist/anonymize-types.d.ts.map +1 -1
- package/dist/declared-property-type.d.ts +2 -110
- package/dist/declared-property-type.d.ts.map +1 -1
- package/dist/declared-property-type.js +15 -0
- package/dist/declared-property-type.js.map +1 -1
- package/dist/energy-artifact.d.ts +6 -0
- package/dist/energy-artifact.d.ts.map +1 -0
- package/dist/energy-artifact.js +33 -0
- package/dist/energy-artifact.js.map +1 -0
- 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/generated/ifc4-required-slots.d.ts +4 -1
- package/dist/generated/ifc4-required-slots.d.ts.map +1 -1
- package/dist/generated/ifc4-required-slots.js +704 -0
- package/dist/generated/ifc4-required-slots.js.map +1 -1
- package/dist/geometry-diagnostics.d.ts +14 -0
- package/dist/geometry-diagnostics.d.ts.map +1 -0
- package/dist/geometry-diagnostics.js +29 -0
- package/dist/geometry-diagnostics.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/merged-exporter.d.ts +1 -4
- package/dist/merged-exporter.d.ts.map +1 -1
- package/dist/merged-exporter.js +99 -81
- package/dist/merged-exporter.js.map +1 -1
- 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 +7 -0
- package/dist/merged-header.d.ts.map +1 -1
- package/dist/merged-header.js +14 -0
- package/dist/merged-header.js.map +1 -1
- package/dist/merged-inherited-units.d.ts +8 -0
- package/dist/merged-inherited-units.d.ts.map +1 -0
- package/dist/merged-inherited-units.js +117 -0
- package/dist/merged-inherited-units.js.map +1 -0
- package/dist/merged-inverse-claims.d.ts +5 -6
- package/dist/merged-inverse-claims.d.ts.map +1 -1
- package/dist/merged-inverse-claims.js +32 -12
- 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-profile-units.d.ts +9 -0
- package/dist/merged-profile-units.d.ts.map +1 -0
- package/dist/merged-profile-units.js +44 -0
- package/dist/merged-profile-units.js.map +1 -0
- package/dist/merged-remap.d.ts +1 -1
- package/dist/merged-remap.d.ts.map +1 -1
- package/dist/merged-remap.js +5 -1
- package/dist/merged-remap.js.map +1 -1
- package/dist/related-entities.d.ts.map +1 -1
- package/dist/related-entities.js +11 -9
- package/dist/related-entities.js.map +1 -1
- package/dist/rust-artifact.d.ts +4 -0
- package/dist/rust-artifact.d.ts.map +1 -0
- package/dist/rust-artifact.js +15 -0
- package/dist/rust-artifact.js.map +1 -0
- package/dist/schema-calendar-date-values.d.ts +16 -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 +26 -0
- package/dist/schema-calendar-dates.d.ts.map +1 -0
- package/dist/schema-calendar-dates.js +226 -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 +26 -0
- package/dist/schema-conversion-loss-description.js.map +1 -0
- package/dist/schema-conversion-loss-report.d.ts +7 -12
- package/dist/schema-conversion-loss-report.d.ts.map +1 -1
- package/dist/schema-conversion-loss-report.js +98 -76
- package/dist/schema-conversion-loss-report.js.map +1 -1
- package/dist/schema-conversion-loss-varying.d.ts +11 -0
- package/dist/schema-conversion-loss-varying.d.ts.map +1 -0
- package/dist/schema-conversion-loss-varying.js +44 -0
- package/dist/schema-conversion-loss-varying.js.map +1 -0
- package/dist/schema-converter-attr-maps.d.ts +18 -5
- package/dist/schema-converter-attr-maps.d.ts.map +1 -1
- package/dist/schema-converter-attr-maps.js +59 -13
- package/dist/schema-converter-attr-maps.js.map +1 -1
- 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 +4 -4
- package/dist/schema-converter-attr-remap.js.map +1 -1
- package/dist/schema-converter-document-links.d.ts +1 -1
- package/dist/schema-converter-document-links.d.ts.map +1 -1
- package/dist/schema-converter-document-links.js +2 -2
- package/dist/schema-converter-document-links.js.map +1 -1
- package/dist/schema-converter-durations.d.ts +6 -0
- package/dist/schema-converter-durations.d.ts.map +1 -0
- package/dist/schema-converter-durations.js +42 -0
- package/dist/schema-converter-durations.js.map +1 -0
- package/dist/schema-converter-enums.d.ts +11 -1
- package/dist/schema-converter-enums.d.ts.map +1 -1
- package/dist/schema-converter-enums.js +36 -10
- 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 +10 -5
- package/dist/schema-converter-ifc4-slots.d.ts.map +1 -1
- package/dist/schema-converter-ifc4-slots.js +17 -20
- package/dist/schema-converter-ifc4-slots.js.map +1 -1
- package/dist/schema-converter-ifc4x3-upgrade.d.ts +6 -0
- package/dist/schema-converter-ifc4x3-upgrade.d.ts.map +1 -0
- package/dist/schema-converter-ifc4x3-upgrade.js +48 -0
- package/dist/schema-converter-ifc4x3-upgrade.js.map +1 -0
- package/dist/schema-converter-material-referent.d.ts +58 -0
- package/dist/schema-converter-material-referent.d.ts.map +1 -0
- package/dist/schema-converter-material-referent.js +202 -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-space-boundary.d.ts +47 -0
- package/dist/schema-converter-space-boundary.d.ts.map +1 -0
- package/dist/schema-converter-space-boundary.js +108 -0
- package/dist/schema-converter-space-boundary.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 +28 -0
- package/dist/schema-converter-step-finish.js.map +1 -0
- package/dist/schema-converter-structural-axes.d.ts +1 -1
- package/dist/schema-converter-structural-axes.d.ts.map +1 -1
- package/dist/schema-converter-structural-axes.js +2 -2
- package/dist/schema-converter-structural-axes.js.map +1 -1
- package/dist/schema-converter-structural-carriers.d.ts +2 -0
- package/dist/schema-converter-structural-carriers.d.ts.map +1 -1
- package/dist/schema-converter-structural-carriers.js +6 -0
- package/dist/schema-converter-structural-carriers.js.map +1 -1
- package/dist/schema-converter-structural-diagnostics.d.ts +13 -0
- package/dist/schema-converter-structural-diagnostics.d.ts.map +1 -1
- package/dist/schema-converter-structural-diagnostics.js +37 -4
- package/dist/schema-converter-structural-diagnostics.js.map +1 -1
- package/dist/schema-converter-structural-source.d.ts +10 -0
- package/dist/schema-converter-structural-source.d.ts.map +1 -1
- package/dist/schema-converter-structural-source.js +16 -6
- package/dist/schema-converter-structural-source.js.map +1 -1
- package/dist/schema-converter-structural-varying.d.ts +15 -2
- package/dist/schema-converter-structural-varying.d.ts.map +1 -1
- package/dist/schema-converter-structural-varying.js +51 -21
- package/dist/schema-converter-structural-varying.js.map +1 -1
- package/dist/schema-converter-structural.d.ts +3 -0
- package/dist/schema-converter-structural.d.ts.map +1 -1
- package/dist/schema-converter-structural.js +13 -5
- 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 +172 -0
- package/dist/schema-converter-typed-properties.js.map +1 -0
- package/dist/schema-converter-unrooted-upgrade.d.ts +31 -0
- package/dist/schema-converter-unrooted-upgrade.d.ts.map +1 -0
- package/dist/schema-converter-unrooted-upgrade.js +278 -0
- package/dist/schema-converter-unrooted-upgrade.js.map +1 -0
- package/dist/schema-converter-userdefined-label.d.ts +1 -1
- package/dist/schema-converter-userdefined-label.d.ts.map +1 -1
- package/dist/schema-converter-userdefined-label.js +7 -6
- package/dist/schema-converter-userdefined-label.js.map +1 -1
- package/dist/schema-converter-value-forms.d.ts +32 -1
- package/dist/schema-converter-value-forms.d.ts.map +1 -1
- package/dist/schema-converter-value-forms.js +73 -23
- package/dist/schema-converter-value-forms.js.map +1 -1
- package/dist/schema-converter.d.ts +8 -12
- package/dist/schema-converter.d.ts.map +1 -1
- package/dist/schema-converter.js +61 -58
- package/dist/schema-converter.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-project-time-unit.d.ts +8 -0
- package/dist/schema-project-time-unit.d.ts.map +1 -0
- package/dist/schema-project-time-unit.js +123 -0
- package/dist/schema-project-time-unit.js.map +1 -0
- package/dist/schema-structural-varying-constant.d.ts +16 -0
- package/dist/schema-structural-varying-constant.d.ts.map +1 -0
- package/dist/schema-structural-varying-constant.js +36 -0
- package/dist/schema-structural-varying-constant.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 +85 -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 +87 -6
- package/dist/schema-untranslatable.js.map +1 -1
- package/dist/schema-value-form-policy.d.ts +1 -1
- package/dist/schema-value-form-policy.d.ts.map +1 -1
- package/dist/schema-value-form-policy.js +37 -4
- package/dist/schema-value-form-policy.js.map +1 -1
- package/dist/schema-work-control-durations.d.ts +13 -0
- package/dist/schema-work-control-durations.d.ts.map +1 -0
- package/dist/schema-work-control-durations.js +74 -0
- package/dist/schema-work-control-durations.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-comment-skip.d.ts.map +1 -1
- package/dist/step-comment-skip.js +3 -1
- package/dist/step-comment-skip.js.map +1 -1
- package/dist/step-export-types.d.ts +6 -6
- 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.map +1 -1
- package/dist/step-exporter.js +12 -6
- package/dist/step-exporter.js.map +1 -1
- package/dist/step-georeferencing.d.ts.map +1 -1
- package/dist/step-georeferencing.js +4 -17
- package/dist/step-georeferencing.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-omission-predicates.d.ts.map +1 -1
- package/dist/step-omission-predicates.js +3 -1
- package/dist/step-omission-predicates.js.map +1 -1
- package/dist/step-outer-args.d.ts +1 -1
- package/dist/step-outer-args.d.ts.map +1 -1
- package/dist/step-outer-args.js +10 -3
- package/dist/step-outer-args.js.map +1 -1
- package/dist/step-overlay-entities.d.ts.map +1 -1
- package/dist/step-overlay-entities.js +9 -0
- 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 +63 -1
- package/dist/step-pass-builder.js.map +1 -1
- package/dist/step-property-set-readers.d.ts +4 -4
- package/dist/step-property-set-readers.d.ts.map +1 -1
- package/dist/step-property-set-readers.js +13 -13
- package/dist/step-property-set-readers.js.map +1 -1
- package/dist/step-ref-scan.d.ts +5 -0
- package/dist/step-ref-scan.d.ts.map +1 -1
- package/dist/step-ref-scan.js +1 -1
- package/dist/step-ref-scan.js.map +1 -1
- package/dist/step-retype-type-link.d.ts +7 -0
- package/dist/step-retype-type-link.d.ts.map +1 -0
- package/dist/step-retype-type-link.js +95 -0
- package/dist/step-retype-type-link.js.map +1 -0
- 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 +12 -6
- package/dist/step-source-iteration.js.map +1 -1
- package/dist/step-subset-relations.d.ts +131 -0
- package/dist/step-subset-relations.d.ts.map +1 -0
- package/dist/step-subset-relations.js +342 -0
- package/dist/step-subset-relations.js.map +1 -0
- package/dist/step-subset-spatial-ancestors.d.ts +26 -0
- package/dist/step-subset-spatial-ancestors.d.ts.map +1 -0
- package/dist/step-subset-spatial-ancestors.js +103 -0
- package/dist/step-subset-spatial-ancestors.js.map +1 -0
- package/dist/step-subset-storey.d.ts +21 -0
- package/dist/step-subset-storey.d.ts.map +1 -0
- package/dist/step-subset-storey.js +319 -0
- package/dist/step-subset-storey.js.map +1 -0
- package/dist/step-subset.d.ts +68 -0
- package/dist/step-subset.d.ts.map +1 -0
- package/dist/step-subset.js +388 -0
- package/dist/step-subset.js.map +1 -0
- package/dist/unit-normalize.d.ts +15 -14
- package/dist/unit-normalize.d.ts.map +1 -1
- package/dist/unit-normalize.js +118 -91
- package/dist/unit-normalize.js.map +1 -1
- package/dist/xlsx-limits.d.ts +12 -0
- package/dist/xlsx-limits.d.ts.map +1 -0
- package/dist/xlsx-limits.js +48 -0
- package/dist/xlsx-limits.js.map +1 -0
- package/package.json +7 -7
|
@@ -1,12 +1,43 @@
|
|
|
1
|
+
import { CalendarDates } from './schema-calendar-dates.js';
|
|
2
|
+
import { WorkControlDurations } from './schema-work-control-durations.js';
|
|
3
|
+
interface Rule {
|
|
4
|
+
readonly index: number;
|
|
5
|
+
readonly where: string;
|
|
6
|
+
readonly required: boolean;
|
|
7
|
+
/** The target aggregate may be empty. */
|
|
8
|
+
readonly empty: boolean;
|
|
9
|
+
/** Slots emptied together when a positional member is rejected. */
|
|
10
|
+
readonly whole: readonly number[];
|
|
11
|
+
/** Form -> null (drop), `T:NAME` (wrap), `U` (unwrap), `U1` (one member) or an integer form (`I`, `AI`). */
|
|
12
|
+
readonly forms: ReadonlyMap<string, string | null>;
|
|
13
|
+
/** Typed forms with a payload row (`T:NAME(F)`), the only ones whose payload is read. */
|
|
14
|
+
readonly payload: ReadonlySet<string>;
|
|
15
|
+
readonly hasCalendar: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** A target type's attribute count and its rules. */
|
|
18
|
+
interface Rules {
|
|
19
|
+
readonly arity: number;
|
|
20
|
+
readonly rules: readonly Rule[];
|
|
21
|
+
}
|
|
22
|
+
export declare function rulesFor(from: string, to: string, type: string): Rules;
|
|
1
23
|
/** Value-form reconciliation for one export: rewrites, and names what it dropped. */
|
|
2
24
|
export declare class ValueForms {
|
|
25
|
+
private readonly deferred;
|
|
3
26
|
/** Per `TYPE.Attribute`: values dropped, and those that left a required slot `$`. */
|
|
4
27
|
private readonly dropped;
|
|
5
28
|
private readonly emptied;
|
|
29
|
+
private readonly narrowedDates;
|
|
30
|
+
/** Times written with a minute or second the IFC2X3 source left unset (#11199). */
|
|
31
|
+
private readonly filledDates;
|
|
32
|
+
readonly dates: CalendarDates;
|
|
33
|
+
readonly durations: WorkControlDurations;
|
|
34
|
+
constructor(deferred?: boolean);
|
|
6
35
|
/** `line`, already converted from `from` to `to`, with every slot in a form the target accepts. */
|
|
7
|
-
apply(line: string, from: string, to: string): string;
|
|
36
|
+
apply(line: string, from: string, to: string, maxReferenceId?: number): string;
|
|
37
|
+
omitStoreyAttributes(type: string, values: readonly string[], source: readonly string[], target: readonly string[]): void;
|
|
8
38
|
private count;
|
|
9
39
|
/** One warning per kind, naming every slot a value was dropped from (#10847). */
|
|
10
40
|
warnings(): string[];
|
|
11
41
|
}
|
|
42
|
+
export {};
|
|
12
43
|
//# sourceMappingURL=schema-converter-value-forms.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-converter-value-forms.d.ts","sourceRoot":"","sources":["../src/schema-converter-value-forms.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema-converter-value-forms.d.ts","sourceRoot":"","sources":["../src/schema-converter-value-forms.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAQ3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAI1E,UAAU,IAAI;IACZ,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,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I,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI;IAMzH,OAAO,CAAC,KAAK;IAIb,iFAAiF;IACjF,QAAQ,IAAI,MAAM,EAAE;CAcrB"}
|
|
@@ -13,17 +13,21 @@
|
|
|
13
13
|
* `generated/value_forms.rs` (`scripts/generate-value-forms.mjs --check`).
|
|
14
14
|
*/
|
|
15
15
|
import { getCanonicalEntityName, getSchemaRegistryForVersion } from '@ifc-lite/parser';
|
|
16
|
+
import { CalendarDates } from './schema-calendar-dates.js';
|
|
16
17
|
import { valueForm, valueFormSlotsOf } from './schema-value-form-policy.js';
|
|
17
18
|
import { getAttrMaps } from './schema-converter-attr-maps.js';
|
|
18
|
-
import { withoutComments } from './step-comment-skip.js';
|
|
19
|
+
import { holdsValue, withoutComments } from './step-comment-skip.js';
|
|
19
20
|
import { listItems } from './schema-converter-structural-axes.js';
|
|
20
21
|
import { readStepSlots } from './step-argument-parser.js';
|
|
22
|
+
import { durationFromSeconds, durationToSeconds } from './schema-converter-durations.js';
|
|
23
|
+
import { slotRef } from './schema-converter-structural-source.js';
|
|
24
|
+
import { WorkControlDurations } from './schema-work-control-durations.js';
|
|
21
25
|
import { stepRecordHead } from './step-record-frame.js';
|
|
22
|
-
import { parseStepNumber, skipStepTrivia } from './step-slot-grammar.js';
|
|
26
|
+
import { isStepValue, parseStepNumber, skipStepTrivia } from './step-slot-grammar.js';
|
|
23
27
|
const SCHEMAS = new Set(['IFC2X3', 'IFC4', 'IFC4X3']);
|
|
24
28
|
const RULES = new Map();
|
|
25
29
|
const NONE = { arity: 0, rules: [] };
|
|
26
|
-
function rulesFor(from, to, type) {
|
|
30
|
+
export function rulesFor(from, to, type) {
|
|
27
31
|
const key = `${from}>${to}`;
|
|
28
32
|
let byType = RULES.get(key);
|
|
29
33
|
if (!byType)
|
|
@@ -43,6 +47,7 @@ function rulesFor(from, to, type) {
|
|
|
43
47
|
empty: slot.empty,
|
|
44
48
|
whole: slot.whole,
|
|
45
49
|
forms: new Map(slot.rejected.map((f) => [f.split('>')[0], f.split('>')[1] ?? null])),
|
|
50
|
+
hasCalendar: slot.rejected.some((f) => f.includes('>C')),
|
|
46
51
|
payload: new Set(slot.rejected.filter((f) => f.split('>')[0].endsWith(')')).map((f) => f.slice(0, f.indexOf('(')))),
|
|
47
52
|
})) };
|
|
48
53
|
byType.set(type, rules);
|
|
@@ -55,17 +60,21 @@ function wholeDecimal(token) {
|
|
|
55
60
|
return !!m && /^0*$/.test(`${m[1]}${m[2] ?? ''}`.slice(Math.max(m[1].length + Number(m[3] ?? 0), 0)));
|
|
56
61
|
}
|
|
57
62
|
/** How many values a slot holds: its members, or one unless it is `$`. */
|
|
58
|
-
function valueCount(slot) {
|
|
59
|
-
return listItems(slot)?.length ?? (valueForm(withoutComments(slot)) === null ? 0 : 1);
|
|
63
|
+
function valueCount(slot, maxReferenceId) {
|
|
64
|
+
return listItems(slot, maxReferenceId)?.length ?? (valueForm(withoutComments(slot)) === null ? 0 : 1);
|
|
60
65
|
}
|
|
61
66
|
/** A typed value's argument, `NAME(arg)` -> `arg`. */
|
|
62
67
|
function unwrapped(body) {
|
|
63
68
|
const close = body.lastIndexOf(')');
|
|
64
69
|
return close < 0 ? null : body.slice(body.indexOf('(') + 1, close).trim();
|
|
65
70
|
}
|
|
71
|
+
/** Retype exactly one STEP string without decoding its escapes. */
|
|
72
|
+
function asText(value) {
|
|
73
|
+
return value?.startsWith("'") && isStepValue(value) ? 'IFCTEXT(' + value + ')' : null;
|
|
74
|
+
}
|
|
66
75
|
/** The one member of an aggregate; null for any other count. */
|
|
67
|
-
function onlyMember(list) {
|
|
68
|
-
const members = list === null ? null : listItems(list);
|
|
76
|
+
function onlyMember(list, maxReferenceId) {
|
|
77
|
+
const members = list === null ? null : listItems(list, maxReferenceId);
|
|
69
78
|
return members?.length === 1 ? members[0].trim() : null;
|
|
70
79
|
}
|
|
71
80
|
/** A whole STEP real as an integer token; null for a fraction or one past the safe range. */
|
|
@@ -83,18 +92,18 @@ function narrowed(value, body, form, rule) {
|
|
|
83
92
|
return int === null ? { value: null, lost: 1 } : { value: `${body.slice(0, body.indexOf('(')).trimEnd()}(${int})`, lost: 0 };
|
|
84
93
|
}
|
|
85
94
|
/** `value` in the target's form (null to drop it), and how many values that lost. */
|
|
86
|
-
function fix(value, prefix, rule) {
|
|
95
|
+
function fix(value, prefix, rule, markDuration, maxReferenceId) {
|
|
87
96
|
const start = skipStepTrivia(value, 0);
|
|
88
97
|
if (start < 0)
|
|
89
98
|
return { value, lost: 0 };
|
|
90
99
|
if (value[start] === '(') {
|
|
91
|
-
const members = listItems(value);
|
|
100
|
+
const members = listItems(value, maxReferenceId);
|
|
92
101
|
if (!members)
|
|
93
102
|
return { value, lost: 0 };
|
|
94
103
|
const kept = [];
|
|
95
104
|
let lost = 0;
|
|
96
105
|
for (const member of members) {
|
|
97
|
-
const fixed = fix(member, `${prefix}A`, rule);
|
|
106
|
+
const fixed = fix(member, `${prefix}A`, rule, markDuration, maxReferenceId);
|
|
98
107
|
lost += fixed.lost;
|
|
99
108
|
if (fixed.value !== null)
|
|
100
109
|
kept.push(fixed.value);
|
|
@@ -112,28 +121,48 @@ function fix(value, prefix, rule) {
|
|
|
112
121
|
// The shared STEP number grammar gates the integer form; `wholeDecimal` reads the digits.
|
|
113
122
|
const fixed = to === null ? null
|
|
114
123
|
: to.startsWith('T:') ? `${to.slice(2)}(${body})`
|
|
115
|
-
: to === '
|
|
116
|
-
: to === '
|
|
117
|
-
:
|
|
124
|
+
: to === 'TEXT' ? asText(unwrapped(body))
|
|
125
|
+
: to === 'D+' ? durationFromSeconds(body)
|
|
126
|
+
: to === 'D-' ? durationToSeconds(body)
|
|
127
|
+
: to === 'U' ? unwrapped(body)
|
|
128
|
+
: to === 'U1' ? onlyMember(unwrapped(body), maxReferenceId)
|
|
129
|
+
: asInteger(body); // an integer form, `I` or `AI`
|
|
118
130
|
// A set of references that could not be unwrapped loses each of them, and at least one value,
|
|
119
131
|
// so an emptied slot is always named.
|
|
132
|
+
if (fixed !== null && (to === 'D+' || to === 'D-'))
|
|
133
|
+
markDuration();
|
|
120
134
|
const inner = to === 'U1' ? unwrapped(body) : null;
|
|
121
|
-
const lost = fixed === null ? Math.max(1, inner === null ? 1 : valueCount(inner)) : 0;
|
|
135
|
+
const lost = fixed === null ? Math.max(1, inner === null ? 1 : valueCount(inner, maxReferenceId)) : 0;
|
|
122
136
|
return { value: fixed, lost };
|
|
123
137
|
}
|
|
124
138
|
/** Value-form reconciliation for one export: rewrites, and names what it dropped. */
|
|
125
139
|
export class ValueForms {
|
|
140
|
+
deferred;
|
|
126
141
|
/** Per `TYPE.Attribute`: values dropped, and those that left a required slot `$`. */
|
|
127
142
|
dropped = new Map();
|
|
128
143
|
emptied = new Map();
|
|
144
|
+
narrowedDates = new Map();
|
|
145
|
+
/** Times written with a minute or second the IFC2X3 source left unset (#11199). */
|
|
146
|
+
filledDates = new Map();
|
|
147
|
+
dates;
|
|
148
|
+
durations = new WorkControlDurations();
|
|
149
|
+
constructor(deferred = false) {
|
|
150
|
+
this.deferred = deferred;
|
|
151
|
+
this.dates = new CalendarDates(deferred);
|
|
152
|
+
}
|
|
129
153
|
/** `line`, already converted from `from` to `to`, with every slot in a form the target accepts. */
|
|
130
|
-
apply(line, from, to) {
|
|
154
|
+
apply(line, from, to, maxReferenceId) {
|
|
131
155
|
if (!SCHEMAS.has(from) || !SCHEMAS.has(to) || from === to)
|
|
132
156
|
return line;
|
|
133
157
|
// The head names the type; most records stop before their slots are split.
|
|
134
158
|
const head = stepRecordHead(line);
|
|
135
|
-
|
|
136
|
-
|
|
159
|
+
if (!head)
|
|
160
|
+
return line;
|
|
161
|
+
const type = line.slice(head.typeStart, head.typeEnd).toUpperCase();
|
|
162
|
+
if (from === 'IFC2X3' && (to === 'IFC4' || to === 'IFC4X3'))
|
|
163
|
+
this.dates.noteUpgraded(type, to); // #11199
|
|
164
|
+
const { arity, rules } = rulesFor(from, to, type);
|
|
165
|
+
const record = rules.length ? readStepSlots(line, maxReferenceId) : null;
|
|
137
166
|
// A record whose arity is not the target's is left alone: slot i need not be attribute i.
|
|
138
167
|
if (!record || record.slots.length !== arity)
|
|
139
168
|
return line;
|
|
@@ -142,12 +171,20 @@ export class ValueForms {
|
|
|
142
171
|
for (const rule of rules) {
|
|
143
172
|
if (rule.index >= slots.length)
|
|
144
173
|
continue;
|
|
145
|
-
const
|
|
174
|
+
const form = rule.hasCalendar ? valueForm(withoutComments(slots[rule.index])) : null;
|
|
175
|
+
const calendar = form === null ? null : rule.forms.get(form);
|
|
176
|
+
if (calendar?.startsWith('C') && this.dates.defer(line, rule.index, calendar, (loss) => this.count(loss === 'narrowed' ? this.narrowedDates : loss === 'filled' ? this.filledDates : rule.required ? this.emptied : this.dropped, rule.where, 1)))
|
|
177
|
+
continue;
|
|
178
|
+
const fixed = fix(slots[rule.index], '', rule, () => {
|
|
179
|
+
const id = this.deferred ? slotRef(line.slice(0, head.eq)) : null;
|
|
180
|
+
if (id !== null)
|
|
181
|
+
this.durations.capture(id, rule.index, from === 'IFC2X3');
|
|
182
|
+
}, maxReferenceId);
|
|
146
183
|
if (fixed.lost && rule.whole.length) {
|
|
147
184
|
// Positional members: every slot of the group goes whole, each named for what it held.
|
|
148
185
|
for (const i of rule.whole) {
|
|
149
186
|
// The generator gives every slot of a group a row like this one.
|
|
150
|
-
const own = rules.find((r) => r.index === i), held = own ? valueCount(slots[i]) : 0;
|
|
187
|
+
const own = rules.find((r) => r.index === i), held = own ? valueCount(slots[i], maxReferenceId) : 0;
|
|
151
188
|
if (!own || !held)
|
|
152
189
|
continue;
|
|
153
190
|
const emptied = own.empty && own.required ? '()' : '$';
|
|
@@ -168,20 +205,33 @@ export class ValueForms {
|
|
|
168
205
|
changed = true;
|
|
169
206
|
}
|
|
170
207
|
}
|
|
208
|
+
if (to === 'IFC2X3' && record.type === 'IFCPROPERTYBOUNDEDVALUE' && !holdsValue(slots[2]) && !holdsValue(slots[3])) {
|
|
209
|
+
// Leaving out the record could strand references from property sets or other resources.
|
|
210
|
+
const instance = line.slice(0, head.eq).trim();
|
|
211
|
+
throw new Error(`Cannot convert ${instance} (IfcPropertyBoundedValue) to IFC2X3: WR22 requires UpperBoundValue or LowerBoundValue, and neither bound can be carried.`);
|
|
212
|
+
}
|
|
171
213
|
return changed ? `${record.prefix}${slots.join(',')}${record.suffix}` : line;
|
|
172
214
|
}
|
|
215
|
+
omitStoreyAttributes(type, values, source, target) {
|
|
216
|
+
source.forEach((name, i) => {
|
|
217
|
+
if (!target.includes(name) && holdsValue(values[i] ?? ''))
|
|
218
|
+
this.count(this.dropped, `${type}.${name}`, 1);
|
|
219
|
+
});
|
|
220
|
+
}
|
|
173
221
|
count(into, where, n) {
|
|
174
222
|
into.set(where, (into.get(where) ?? 0) + n);
|
|
175
223
|
}
|
|
176
224
|
/** One warning per kind, naming every slot a value was dropped from (#10847). */
|
|
177
225
|
warnings() {
|
|
178
|
-
const
|
|
179
|
-
|
|
180
|
-
return where.size ? [`${total} value(s) of a type the target slot does not accept ${what}: ${[...where.keys()].sort().join(', ')} (#10847).`] : [];
|
|
181
|
-
};
|
|
226
|
+
const sites = (where, what) => where.size ? [what([...where.values()].reduce((a, b) => a + b, 0), [...where.keys()].sort().join(', '))] : [];
|
|
227
|
+
const line = (where, what) => sites(where, (total, list) => `${total} value(s) of a type the target slot does not accept ${what}: ${list} (#10847).`);
|
|
182
228
|
return [
|
|
183
229
|
...line(this.dropped, 'were dropped'),
|
|
184
230
|
...line(this.emptied, 'left a slot the target requires as $, so the file is not valid against its header'),
|
|
231
|
+
...this.dates.warnings(),
|
|
232
|
+
...sites(this.narrowedDates, (total, list) => `${total} date value(s) kept the calendar date and dropped the time and any timezone: ${list} (#10879).`),
|
|
233
|
+
...sites(this.filledDates, (total, list) => `${total} time value(s) wrote an unset minute or second as 00, a precision the IFC2X3 source does not state: ${list} (#11199).`),
|
|
234
|
+
...this.durations.warnings(),
|
|
185
235
|
];
|
|
186
236
|
}
|
|
187
237
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-converter-value-forms.js","sourceRoot":"","sources":["../src/schema-converter-value-forms.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAE/D;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,sBAAsB,EAAE,2BAA2B,EAAkC,MAAM,kBAAkB,CAAC;AACvH,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAgBzE,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;AAItD,MAAM,KAAK,GAAG,IAAI,GAAG,EAA8B,CAAC;AACpD,MAAM,IAAI,GAAU,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;AAE5C,SAAS,QAAQ,CAAC,IAAY,EAAE,EAAU,EAAE,IAAY;IACtD,MAAM,GAAG,GAAG,GAAG,IAAI,IAAI,EAAE,EAAE,CAAC;IAC5B,IAAI,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC5B,IAAI,CAAC,MAAM;QAAE,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,MAAM,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC;IAClD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I,KAAK,IAAI,YAAY,CAAC,CAAC;QAC1H,OAAO;YACL,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC;YACrC,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,mFAAmF,CAAC;YAC1G,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;YACxB,GAAG,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,KAAK,gFAAgF,IAAI,YAAY,CAAC;YACvJ,GAAG,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,KAAK,uGAAuG,IAAI,YAAY,CAAC;YAC5K,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE;SAC7B,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
* Handles entity type renaming and attribute rewriting when converting
|
|
5
5
|
* between IFC schema versions (IFC2X3, IFC4, IFC4X3, IFC5).
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
* and adjusts attribute counts via regex replacement on raw STEP lines.
|
|
7
|
+
* Rewrites entity type names and slot layouts in STEP text.
|
|
9
8
|
*/
|
|
10
9
|
import { type RandomSource } from '@ifc-lite/encoding';
|
|
11
10
|
import { Ifc2x3SlotFill } from './schema-converter-ifc2x3-slots.js';
|
|
@@ -36,22 +35,19 @@ export declare function attrNameTable(schema: IfcSchemaVersion): Map<string, rea
|
|
|
36
35
|
* @param toSchema - Target schema version
|
|
37
36
|
* @param random - Optional seeded `RandomSource` for the GlobalId of any IFCPROXY
|
|
38
37
|
* placeholder minted here; pass one when output must be byte-reproducible.
|
|
39
|
-
* @param slots -
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* still written but the OwnerHistory reuse and both counts are lost.
|
|
43
|
-
* @param ifc4Slots - Counts IFC4-required slots left `$` (IFC4X3/IFC5 → IFC4, #5202; mapped or structural IFC2X3 → IFC4, #10763).
|
|
38
|
+
* @param slots - Reuses OwnerHistory (#4686) and counts unsettled slots.
|
|
39
|
+
* Without a collector, required-slot filling uses the generated defaults.
|
|
40
|
+
* @param ifc4Slots - Counts required slots left `$` against the target (IFC4X3/IFC5 → IFC4, #5202; mapped or structural IFC2X3 → IFC4, #10763, or → IFC4X3, #11135).
|
|
44
41
|
* @param enums - Resolves enum members the target lacks and reports losses (#5365).
|
|
45
42
|
* @param withheldRefIds - Express ids this export is OMITTING outright
|
|
46
43
|
* ({@link computeWithheldRefIds}, #4206) — a record whose attributes name
|
|
47
44
|
* one is redirected to the same "no representation" resolution as its own
|
|
48
45
|
* unmapped type would get, so it cannot ship a now-dangling `#N`.
|
|
49
|
-
* @
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* for — the caller must not write a `null` result.
|
|
46
|
+
* @param maxReferenceId - Bound for remapped STEP ids; source conversion uses the parser's u32 bound.
|
|
47
|
+
* @returns A converted STEP line (possibly an IFCPROXY), or null for an omitted record, including unbound
|
|
48
|
+
* space boundaries on upgrade and IfcMaterialProperties without a single material (#10763).
|
|
53
49
|
*/
|
|
54
|
-
export declare function convertStepLine(line: string, fromSchema: IfcSchemaVersion, toSchema: IfcSchemaVersion, random?: RandomSource, slots?: Ifc2x3SlotFill, withheldRefIds?: ReadonlySet<number>, ifc4Slots?: Ifc4SlotCheck, enums?: EnumReconciliation): string | null;
|
|
50
|
+
export declare function convertStepLine(line: string, fromSchema: IfcSchemaVersion, toSchema: IfcSchemaVersion, random?: RandomSource, slots?: Ifc2x3SlotFill, withheldRefIds?: ReadonlySet<number>, ifc4Slots?: Ifc4SlotCheck, enums?: EnumReconciliation, maxReferenceId?: number): string | null;
|
|
55
51
|
/**
|
|
56
52
|
* Check if an entity type should be skipped for the target schema: these
|
|
57
53
|
* IFC4X3 types have no STEP representation in IFC2X3 or IFC4, so they are
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-converter.d.ts","sourceRoot":"","sources":["../src/schema-converter.ts"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"schema-converter.d.ts","sourceRoot":"","sources":["../src/schema-converter.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAKH,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAOxE,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAUtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AAiHrE;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,gBAAgB,EAC5B,QAAQ,EAAE,gBAAgB,GACzB,MAAM,CAWR;AA6DD,wBAAgB,aAAa,CAAC,MAAM,EAAE,gBAAgB,GAAG,GAAG,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,GAAG,IAAI,CAU7F;AAUD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,gBAAgB,EAC5B,QAAQ,EAAE,gBAAgB,EAC1B,MAAM,CAAC,EAAE,YAAY,EACrB,KAAK,CAAC,EAAE,cAAc,EACtB,cAAc,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,EACpC,SAAS,CAAC,EAAE,aAAa,EACzB,KAAK,CAAC,EAAE,kBAAkB,EAC1B,cAAc,CAAC,EAAE,MAAM,GACtB,MAAM,GAAG,IAAI,CAcf;AAqID;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,gBAAgB,GAAG,OAAO,CAExF;AAUD,sFAAsF;AACtF,wBAAgB,eAAe,CAC7B,UAAU,EAAE,gBAAgB,EAC5B,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAET"}
|
package/dist/schema-converter.js
CHANGED
|
@@ -7,33 +7,29 @@
|
|
|
7
7
|
* Handles entity type renaming and attribute rewriting when converting
|
|
8
8
|
* between IFC schema versions (IFC2X3, IFC4, IFC4X3, IFC5).
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
* and adjusts attribute counts via regex replacement on raw STEP lines.
|
|
10
|
+
* Rewrites entity type names and slot layouts in STEP text.
|
|
12
11
|
*/
|
|
12
|
+
import { withoutComments } from './step-comment-skip.js';
|
|
13
|
+
import { needsUpgradeSlotMap, remapUpgradeSlots, upgradeNamedType } from './schema-converter-ifc4x3-upgrade.js';
|
|
13
14
|
import { structuralAttributes } from './schema-converter-structural.js';
|
|
14
15
|
import { generateIfcGuid } from '@ifc-lite/encoding';
|
|
15
16
|
import { deterministicGlobalId, getSchemaRegistryForVersion } from '@ifc-lite/parser';
|
|
16
|
-
import { resolveUnrepresentedEntity } from './schema-untranslatable.js';
|
|
17
|
+
import { missingTypeRoute, resolveUnrepresentedEntity } from './schema-untranslatable.js';
|
|
17
18
|
import { BY_NAME_ATTR_REMAP_TYPES, isGridPlacementInSourceLayout, remapRenamedAttributesByName } from './schema-converter-attr-remap.js';
|
|
18
19
|
import { splitTopLevelStepArguments } from './step-argument-parser.js';
|
|
19
20
|
import { frameArgs, stepRecordFrame } from './step-record-frame.js';
|
|
20
21
|
import { skipStepTrivia } from './step-slot-grammar.js';
|
|
21
22
|
import { Ifc2x3SlotFill } from './schema-converter-ifc2x3-slots.js';
|
|
23
|
+
import { MaterialReferents } from './schema-converter-material-referent.js';
|
|
24
|
+
import { SpaceBoundaryElements } from './schema-converter-space-boundary.js';
|
|
22
25
|
import { referencesAnyExpressId } from './step-ref-scan.js';
|
|
23
26
|
import { productProxy } from './schema-converter-product-proxy.js';
|
|
24
27
|
import { MEP_IFC2X3_TYPES } from './schema-converter-mep.js';
|
|
25
28
|
import { isStrictAttrPrefix, replacedSlot } from './schema-converter-renames.js';
|
|
26
29
|
import { carryUserDefinedLabel } from './schema-converter-userdefined-label.js';
|
|
27
|
-
import { attrMapFor, remapByAttrMap,
|
|
30
|
+
import { attrMapFor, DELETED_SUBTYPES, remapByAttrMap, upgradeCountsSlots, upgradeRename } from './schema-converter-attr-maps.js';
|
|
28
31
|
import { retypeInPlace } from './schema-converter-retyped.js';
|
|
29
32
|
export { computeWithheldRefIds } from './schema-untranslatable.js';
|
|
30
|
-
/**
|
|
31
|
-
* Entity type name mappings between schema versions.
|
|
32
|
-
*
|
|
33
|
-
* Maps (sourceSchema, entityType) → targetEntityType.
|
|
34
|
-
* Only entries that actually differ are listed — types that are the same
|
|
35
|
-
* across all schemas are passed through unchanged.
|
|
36
|
-
*/
|
|
37
33
|
// ─── IFC2X3 → IFC4 type renames ────────────────────────────────────────────
|
|
38
34
|
const IFC2X3_TO_IFC4 = new Map([
|
|
39
35
|
['IFCELECTRICDISTRIBUTIONPOINT', 'IFCELECTRICDISTRIBUTIONBOARD'],
|
|
@@ -41,6 +37,7 @@ const IFC2X3_TO_IFC4 = new Map([
|
|
|
41
37
|
['IFCEQUIPMENTELEMENT', 'IFCBUILDINGELEMENTPROXY'],
|
|
42
38
|
['IFCRELCONNECTSSTRUCTURALELEMENT', 'IFCRELASSIGNSTOPRODUCT'],
|
|
43
39
|
]);
|
|
40
|
+
const IFC2X3_UP = new Map([...IFC2X3_TO_IFC4, ...DELETED_SUBTYPES]); // + the subtypes IFC4 deleted, not for IFC5 (#10902)
|
|
44
41
|
// ─── IFC4 → IFC2X3 type renames (reverse) ──────────────────────────────────
|
|
45
42
|
const IFC4_TO_IFC2X3 = new Map([
|
|
46
43
|
['IFCBURNERTYPE', 'IFCGASTERMINALTYPE'],
|
|
@@ -83,7 +80,8 @@ const IFC4_TO_IFC2X3 = new Map([
|
|
|
83
80
|
// of the other — `BY_NAME_ATTR_REMAP_TYPES` reconciles both by name.
|
|
84
81
|
['IFCSTRUCTURALCURVEACTION', 'IFCSTRUCTURALLINEARACTION'],
|
|
85
82
|
['IFCSTRUCTURALSURFACEACTION', 'IFCSTRUCTURALPLANARACTION'],
|
|
86
|
-
// #10763: IFC4 deleted
|
|
83
|
+
// #10763: IFC4 deleted these subtypes for their now-concrete supertypes (see the reviewed attribute maps).
|
|
84
|
+
['IFCMATERIALPROPERTIES', 'IFCEXTENDEDMATERIALPROPERTIES'],
|
|
87
85
|
['IFCPROFILEPROPERTIES', 'IFCGENERALPROFILEPROPERTIES'],
|
|
88
86
|
// IFC4X3 spatial structure → IFC2X3 equivalents
|
|
89
87
|
['IFCFACILITY', 'IFCBUILDING'],
|
|
@@ -105,6 +103,7 @@ const IFC4_TO_IFC4X3 = new Map([
|
|
|
105
103
|
// IfcBuildingElement → IfcBuiltElement (IFC4X3 rename)
|
|
106
104
|
// Note: both exist in IFC4X3 for backwards compat, but IfcBuiltElement is canonical
|
|
107
105
|
]);
|
|
106
|
+
let ifc2x3ToIfc4x3, ifc2x3ToIfc5;
|
|
108
107
|
// ─── IFC4X3 → IFC4 type renames ────────────────────────────────────────────
|
|
109
108
|
const IFC4X3_TO_IFC4 = new Map([
|
|
110
109
|
// IFC4X3-specific types that have no IFC4 equivalent → fallback
|
|
@@ -152,9 +151,12 @@ export function convertEntityType(entityType, fromSchema, toSchema) {
|
|
|
152
151
|
if (fromSchema === toSchema)
|
|
153
152
|
return entityType;
|
|
154
153
|
const upper = entityType.toUpperCase();
|
|
155
|
-
const
|
|
156
|
-
if (
|
|
157
|
-
return
|
|
154
|
+
const upgraded = upgradeNamedType(upper, fromSchema, toSchema);
|
|
155
|
+
if (upgraded)
|
|
156
|
+
return upgraded;
|
|
157
|
+
const target = (toSchema === 'IFC2X3' ? MEP_IFC2X3_TYPES.get(upper) : undefined) ?? upgradeRename(upper, fromSchema, toSchema);
|
|
158
|
+
if (target)
|
|
159
|
+
return target;
|
|
158
160
|
const map = getConversionMap(fromSchema, toSchema);
|
|
159
161
|
return map?.get(upper) ?? upper;
|
|
160
162
|
}
|
|
@@ -164,7 +166,7 @@ export function convertEntityType(entityType, fromSchema, toSchema) {
|
|
|
164
166
|
*/
|
|
165
167
|
function getConversionMap(from, to) {
|
|
166
168
|
if (from === 'IFC2X3' && to === 'IFC4')
|
|
167
|
-
return
|
|
169
|
+
return IFC2X3_UP;
|
|
168
170
|
if (from === 'IFC4' && to === 'IFC2X3')
|
|
169
171
|
return IFC4_TO_IFC2X3;
|
|
170
172
|
if (from === 'IFC4' && to === 'IFC4X3')
|
|
@@ -181,9 +183,10 @@ function getConversionMap(from, to) {
|
|
|
181
183
|
if (from === 'IFC4' && to === 'IFC5')
|
|
182
184
|
return IFC4_TO_IFC4X3;
|
|
183
185
|
// Multi-step: IFC2X3 → IFC4X3 = IFC2X3 → IFC4 → IFC4X3
|
|
184
|
-
if (from === 'IFC2X3' &&
|
|
185
|
-
return chainMaps(
|
|
186
|
-
|
|
186
|
+
if (from === 'IFC2X3' && to === 'IFC4X3')
|
|
187
|
+
return ifc2x3ToIfc4x3 ??= chainMaps(IFC2X3_UP, IFC4_TO_IFC4X3);
|
|
188
|
+
if (from === 'IFC2X3' && to === 'IFC5')
|
|
189
|
+
return ifc2x3ToIfc5 ??= chainMaps(IFC2X3_TO_IFC4, IFC4_TO_IFC4X3);
|
|
187
190
|
// Multi-step: IFC4X3 → IFC2X3 = IFC4X3 → IFC4 → IFC2X3
|
|
188
191
|
if ((from === 'IFC4X3' || from === 'IFC5') && to === 'IFC2X3') {
|
|
189
192
|
return chainMaps(IFC4X3_TO_IFC4, IFC4_TO_IFC2X3);
|
|
@@ -226,8 +229,8 @@ export function attrNameTable(schema) {
|
|
|
226
229
|
}
|
|
227
230
|
/** Count top-level (comma-separated) STEP attributes, respecting nested
|
|
228
231
|
* parentheses and single-quoted strings. Empty list → 0. */
|
|
229
|
-
function requireTopLevelAttributes(attrsRaw) {
|
|
230
|
-
const attrs = splitTopLevelStepArguments(attrsRaw);
|
|
232
|
+
function requireTopLevelAttributes(attrsRaw, maxReferenceId) {
|
|
233
|
+
const attrs = splitTopLevelStepArguments(attrsRaw, maxReferenceId);
|
|
231
234
|
if (attrs === null)
|
|
232
235
|
throw new Error('Schema conversion refused an invalid STEP argument list.');
|
|
233
236
|
return attrs;
|
|
@@ -245,39 +248,42 @@ function requireTopLevelAttributes(attrsRaw) {
|
|
|
245
248
|
* @param toSchema - Target schema version
|
|
246
249
|
* @param random - Optional seeded `RandomSource` for the GlobalId of any IFCPROXY
|
|
247
250
|
* placeholder minted here; pass one when output must be byte-reproducible.
|
|
248
|
-
* @param slots -
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
* still written but the OwnerHistory reuse and both counts are lost.
|
|
252
|
-
* @param ifc4Slots - Counts IFC4-required slots left `$` (IFC4X3/IFC5 → IFC4, #5202; mapped or structural IFC2X3 → IFC4, #10763).
|
|
251
|
+
* @param slots - Reuses OwnerHistory (#4686) and counts unsettled slots.
|
|
252
|
+
* Without a collector, required-slot filling uses the generated defaults.
|
|
253
|
+
* @param ifc4Slots - Counts required slots left `$` against the target (IFC4X3/IFC5 → IFC4, #5202; mapped or structural IFC2X3 → IFC4, #10763, or → IFC4X3, #11135).
|
|
253
254
|
* @param enums - Resolves enum members the target lacks and reports losses (#5365).
|
|
254
255
|
* @param withheldRefIds - Express ids this export is OMITTING outright
|
|
255
256
|
* ({@link computeWithheldRefIds}, #4206) — a record whose attributes name
|
|
256
257
|
* one is redirected to the same "no representation" resolution as its own
|
|
257
258
|
* unmapped type would get, so it cannot ship a now-dangling `#N`.
|
|
258
|
-
* @
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
* for — the caller must not write a `null` result.
|
|
259
|
+
* @param maxReferenceId - Bound for remapped STEP ids; source conversion uses the parser's u32 bound.
|
|
260
|
+
* @returns A converted STEP line (possibly an IFCPROXY), or null for an omitted record, including unbound
|
|
261
|
+
* space boundaries on upgrade and IfcMaterialProperties without a single material (#10763).
|
|
262
262
|
*/
|
|
263
|
-
export function convertStepLine(line, fromSchema, toSchema, random, slots, withheldRefIds, ifc4Slots, enums) {
|
|
263
|
+
export function convertStepLine(line, fromSchema, toSchema, random, slots, withheldRefIds, ifc4Slots, enums, maxReferenceId) {
|
|
264
264
|
if (fromSchema === toSchema)
|
|
265
265
|
return line;
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
if ((enums?.boundaries ?? new SpaceBoundaryElements()).apply(line, fromSchema, toSchema) === null)
|
|
267
|
+
return null; // an IfcRelSpaceBoundary IFC4 cannot take without its element
|
|
268
|
+
const kept = (enums?.materials ?? new MaterialReferents()).apply(line, fromSchema, toSchema); // #10763: null when Material names no one IfcMaterial
|
|
269
|
+
let converted = kept === null ? null : retypeInPlace(convertRecord(kept, fromSchema, toSchema, random, withheldRefIds, fromSchema === 'IFC2X3' && toSchema === 'IFC4' ? enums?.structural.axes.axis(kept) : undefined, enums, maxReferenceId), fromSchema, toSchema);
|
|
270
|
+
converted = carryUserDefinedLabel(line, converted, fromSchema, toSchema, maxReferenceId); // #10824
|
|
268
271
|
if (converted === null)
|
|
269
272
|
return null;
|
|
270
273
|
if (enums && toSchema !== 'IFC5')
|
|
271
|
-
converted = enums.structural.after(enums.documents.apply(enums.apply(enums.forms.apply(converted, fromSchema, toSchema), toSchema)), withheldRefIds);
|
|
274
|
+
converted = enums.structural.after(enums.documents.apply(enums.apply(enums.forms.apply(converted, fromSchema, toSchema, maxReferenceId), toSchema, maxReferenceId, line, fromSchema), maxReferenceId), withheldRefIds);
|
|
272
275
|
if (toSchema === 'IFC2X3')
|
|
273
|
-
return (slots ?? new Ifc2x3SlotFill()).apply(converted);
|
|
274
|
-
if (
|
|
275
|
-
|
|
276
|
+
return (slots ?? new Ifc2x3SlotFill()).apply(converted, maxReferenceId);
|
|
277
|
+
if (enums?.typedProperties.capture(line, converted, fromSchema, toSchema, maxReferenceId))
|
|
278
|
+
return converted;
|
|
279
|
+
// Every record to IFC4; an IFC2X3 upgrade's mapped records to IFC4 or IFC4X3, each against its own target (#11135).
|
|
280
|
+
const target = toSchema === 'IFC4' || toSchema === 'IFC4X3' ? toSchema : undefined;
|
|
281
|
+
if (ifc4Slots && target && (fromSchema === 'IFC2X3' ? upgradeCountsSlots(converted, target) : target === 'IFC4'))
|
|
282
|
+
ifc4Slots.apply(converted, target);
|
|
276
283
|
return converted;
|
|
277
284
|
}
|
|
278
|
-
/**
|
|
279
|
-
|
|
280
|
-
function convertRecord(line, fromSchema, toSchema, random, withheldRefIds, structuralAxis, structuralDiagnostics) {
|
|
285
|
+
/** Convert before applying required-slot fills. */
|
|
286
|
+
function convertRecord(line, fromSchema, toSchema, random, withheldRefIds, structuralAxis, diagnostics, maxReferenceId) {
|
|
281
287
|
const frame = stepRecordFrame(line, { allowMissingSemicolon: true });
|
|
282
288
|
if (frame === null)
|
|
283
289
|
return line;
|
|
@@ -288,11 +294,11 @@ function convertRecord(line, fromSchema, toSchema, random, withheldRefIds, struc
|
|
|
288
294
|
// Validate before choosing any conversion branch. A malformed slot list
|
|
289
295
|
// must not still receive a type rename, proxy replacement, trim, or padding:
|
|
290
296
|
// that would partially convert a record whose positions are untrustworthy.
|
|
291
|
-
const args = requireTopLevelAttributes(attrsRaw);
|
|
297
|
+
const args = requireTopLevelAttributes(attrsRaw, maxReferenceId);
|
|
292
298
|
const newType = convertEntityType(entityType, fromSchema, toSchema);
|
|
293
299
|
// A structural rewrite replaces the withheld reference it was written for (an IFC4
|
|
294
300
|
// load configuration); one still naming a withheld id falls to the check below.
|
|
295
|
-
const rewritten =
|
|
301
|
+
const rewritten = diagnostics?.structural.rewrite(expressId, entityType, args, withheldRefIds);
|
|
296
302
|
if (rewritten !== undefined)
|
|
297
303
|
return rewritten === null ? null : `${prefix}${rewritten};`;
|
|
298
304
|
// A record whose attribute list references an id this export is OMITTING
|
|
@@ -302,9 +308,9 @@ function convertRecord(line, fromSchema, toSchema, random, withheldRefIds, struc
|
|
|
302
308
|
// proxy. Checked before `shouldSkipEntity` and the attribute-table lookup
|
|
303
309
|
// below so it wins over both.
|
|
304
310
|
if (withheldRefIds && withheldRefIds.size > 0 && referencesAnyExpressId(attrsRaw, withheldRefIds)) {
|
|
305
|
-
return resolveUnrepresentedEntity(prefix, entityType, attrsRaw, toSchema,
|
|
311
|
+
return resolveUnrepresentedEntity(prefix, entityType, attrsRaw, args, toSchema, expressId, true);
|
|
306
312
|
}
|
|
307
|
-
|
|
313
|
+
diagnostics?.structural.inspect(expressId, line, fromSchema, toSchema);
|
|
308
314
|
if (structuralAxis)
|
|
309
315
|
return `${prefix}${newType}(${args.join(',')},${structuralAxis});`;
|
|
310
316
|
const structural = structuralAttributes(entityType, args, fromSchema, toSchema);
|
|
@@ -356,30 +362,25 @@ function convertRecord(line, fromSchema, toSchema, random, withheldRefIds, struc
|
|
|
356
362
|
// [Name, Description, Properties, Material]), and trimming the tail or
|
|
357
363
|
// appending `$` there would leave values in the wrong, type-invalid slots.
|
|
358
364
|
// Those take a reviewed attribute map (#10763) or are left alone.
|
|
359
|
-
// Appended attributes are optional, so `$` is a valid pad.
|
|
360
|
-
//
|
|
361
|
-
// Source attrs keyed on the ORIGINAL type; target on the (possibly renamed) type.
|
|
362
365
|
let finalAttrs = attrsRaw;
|
|
363
366
|
const targetTable = attrNameTable(toSchema);
|
|
364
367
|
const srcAttrs = attrNameTable(fromSchema)?.get(entityType);
|
|
365
368
|
const tgtAttrs = targetTable?.get(newType);
|
|
366
369
|
// `shouldSkipEntity` above only catches its hand-listed alignment types;
|
|
367
|
-
//
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
// On IFC2X3 even with no source entry, as Rust's `has_representation`: a
|
|
371
|
-
// non-entity head (`#1=IFCLABEL('x');`) fails closed (#7683, D3).
|
|
372
|
-
if (targetTable && !tgtAttrs && (toSchema === 'IFC2X3' || (toSchema === 'IFC4' && fromSchema === 'IFC4X3' && srcAttrs))) {
|
|
373
|
-
return resolveUnrepresentedEntity(prefix, entityType, attrsRaw, toSchema, random, withheldRefIds !== undefined);
|
|
370
|
+
// The same missing-type policy governs exports and loss previews (#10902).
|
|
371
|
+
if (missingTypeRoute(entityType, fromSchema, toSchema, srcAttrs !== undefined, !targetTable || tgtAttrs !== undefined) === 'unrepresented') {
|
|
372
|
+
return resolveUnrepresentedEntity(prefix, entityType, attrsRaw, args, toSchema, expressId, withheldRefIds !== undefined);
|
|
374
373
|
}
|
|
375
374
|
if (srcAttrs && tgtAttrs) {
|
|
376
375
|
const mapped = args.length > 0 ? attrMapFor(entityType, newType, fromSchema, toSchema) : undefined; // #10763
|
|
377
376
|
const replaced = mapped ? undefined : replacedSlot(entityType, srcAttrs, tgtAttrs); // #10758: no value carries there
|
|
378
|
-
if (replaced !== undefined && replaced < args.length && args[replaced]
|
|
377
|
+
if (replaced !== undefined && replaced < args.length && withoutComments(args[replaced]) !== '$') {
|
|
379
378
|
args[replaced] = '$';
|
|
380
379
|
finalAttrs = args.join(',');
|
|
381
380
|
}
|
|
382
|
-
if (
|
|
381
|
+
if (entityType !== newType && needsUpgradeSlotMap(entityType, fromSchema, toSchema))
|
|
382
|
+
finalAttrs = remapUpgradeSlots(entityType, srcAttrs, tgtAttrs, args);
|
|
383
|
+
else if (mapped)
|
|
383
384
|
finalAttrs = remapByAttrMap(mapped.map, mapped.up, args, srcAttrs, tgtAttrs);
|
|
384
385
|
else if (isStrictAttrPrefix(tgtAttrs, srcAttrs, entityType)) {
|
|
385
386
|
finalAttrs = trimAttributes(attrsRaw, args, tgtAttrs.length);
|
|
@@ -391,9 +392,11 @@ function convertRecord(line, fromSchema, toSchema, random, withheldRefIds, struc
|
|
|
391
392
|
}
|
|
392
393
|
}
|
|
393
394
|
else if (isGridPlacementInSourceLayout(entityType, args.length, tgtAttrs.length) || (entityType !== newType
|
|
394
|
-
&& (BY_NAME_ATTR_REMAP_TYPES.has(entityType) || (toSchema === 'IFC2X3' && MEP_IFC2X3_TYPES.has(entityType))))) {
|
|
395
|
+
&& (newType === 'IFCBUILDINGSTOREY' || BY_NAME_ATTR_REMAP_TYPES.has(entityType) || (toSchema === 'IFC2X3' && MEP_IFC2X3_TYPES.has(entityType))))) {
|
|
395
396
|
// MEP controls need ControlElementId, never the source PredefinedType (#8019).
|
|
396
|
-
|
|
397
|
+
if (newType === 'IFCBUILDINGSTOREY')
|
|
398
|
+
diagnostics?.forms.omitStoreyAttributes(entityType, args, srcAttrs, tgtAttrs);
|
|
399
|
+
const remapped = remapRenamedAttributesByName(finalAttrs, srcAttrs, tgtAttrs, maxReferenceId);
|
|
397
400
|
if (remapped === null)
|
|
398
401
|
throw new Error('Schema conversion refused an invalid STEP argument list.');
|
|
399
402
|
finalAttrs = remapped;
|