@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
package/dist/unit-normalize.js
CHANGED
|
@@ -37,8 +37,9 @@
|
|
|
37
37
|
* `IfcQuantityVolume.VolumeValue` (× volume).
|
|
38
38
|
* - **Typed measures in property values** — `IFCLENGTHMEASURE(x)` /
|
|
39
39
|
* `IFCPOSITIVELENGTHMEASURE(x)` / `IFCNONNEGATIVELENGTHMEASURE(x)` (× length),
|
|
40
|
-
* `IFCAREAMEASURE(x)` (× area)
|
|
41
|
-
*
|
|
40
|
+
* `IFCAREAMEASURE(x)` (× area) and `IFCVOLUMEMEASURE(x)` (× volume).
|
|
41
|
+
* - **Derived profile measures** — typed values and IFC2X3 profile attributes
|
|
42
|
+
* use the ratio of declared units when available and powers of length otherwise.
|
|
42
43
|
*
|
|
43
44
|
* ## What is NOT rescaled
|
|
44
45
|
* - Unit-definition entities (`IfcSIUnit`, `IfcConversionBasedUnit`,
|
|
@@ -47,15 +48,15 @@
|
|
|
47
48
|
* - Georeferencing (`IfcMapConversion`): its offsets are in the map/CRS unit,
|
|
48
49
|
* independent of the project length unit. The merged exporter keeps every
|
|
49
50
|
* coordinate operation away from this rescale (`merged-georef-normalize.ts`).
|
|
50
|
-
* -
|
|
51
|
-
*
|
|
52
|
-
* already in that unit, not the global one.
|
|
51
|
+
* - Values with an explicit unit (`Unit` for a quantity or property,
|
|
52
|
+
* `DefiningUnit` or `DefinedUnit` for its respective table column).
|
|
53
53
|
* - Angles, direction ratios, plain `IfcReal` ratios and counts — never typed as a
|
|
54
54
|
* length/area/volume measure, so they are excluded automatically.
|
|
55
55
|
*/
|
|
56
|
-
import { getAllAttributesForEntity, STEP_TRIVIA } from '@ifc-lite/parser';
|
|
56
|
+
import { getAllAttributesForEntity, getCanonicalEntityName, getSchemaRegistryForVersion, STEP_TRIVIA } from '@ifc-lite/parser';
|
|
57
57
|
import { formatStepReal } from '@ifc-lite/data';
|
|
58
|
-
import { splitTopLevelStepArguments } from './step-argument-parser.js';
|
|
58
|
+
import { readStepSlots, splitTopLevelStepArguments } from './step-argument-parser.js';
|
|
59
|
+
import { holdsValue } from './step-comment-skip.js';
|
|
59
60
|
import { findOuterArgs, mapOutsideStepStrings } from './step-outer-args.js';
|
|
60
61
|
/** IFC defined types whose values are lengths (STEP writes them as bare reals). */
|
|
61
62
|
const LENGTH_MEASURE_TYPES = new Set([
|
|
@@ -63,6 +64,12 @@ const LENGTH_MEASURE_TYPES = new Set([
|
|
|
63
64
|
'IfcPositiveLengthMeasure',
|
|
64
65
|
'IfcNonNegativeLengthMeasure',
|
|
65
66
|
]);
|
|
67
|
+
export const PROFILE_MEASURE_POWERS = new Map([
|
|
68
|
+
['IFCMASSPERLENGTHMEASURE', -1],
|
|
69
|
+
['IFCMOMENTOFINERTIAMEASURE', 4],
|
|
70
|
+
['IFCSECTIONMODULUSMEASURE', 3],
|
|
71
|
+
['IFCWARPINGCONSTANTMEASURE', 6],
|
|
72
|
+
]);
|
|
66
73
|
/**
|
|
67
74
|
* Entity types whose numeric content must NEVER be rescaled: unit definitions
|
|
68
75
|
* (the numbers *are* the unit) and georeferencing (offsets live in the CRS unit).
|
|
@@ -77,7 +84,7 @@ function isRescaleExcluded(typeUpper) {
|
|
|
77
84
|
return RESCALE_EXCLUDED_TYPES.has(typeUpper) || typeUpper.startsWith('IFCMAPCONVERSION');
|
|
78
85
|
}
|
|
79
86
|
const EMPTY_PLAN = {
|
|
80
|
-
listIdx: [], scalarIdx: [], areaIdx: [], volumeIdx: [], unitGuardIdx: [], empty: true,
|
|
87
|
+
listIdx: [], scalarIdx: [], areaIdx: [], volumeIdx: [], profileMeasures: [], unitGuardIdx: [], empty: true,
|
|
81
88
|
};
|
|
82
89
|
/** Attribute names that hold a self-describing unit override for a value. */
|
|
83
90
|
const UNIT_GUARD_NAMES = new Set(['Unit', 'DefiningUnit', 'DefinedUnit']);
|
|
@@ -97,31 +104,46 @@ function attrBaseType(type, flags) {
|
|
|
97
104
|
return { base, isList };
|
|
98
105
|
}
|
|
99
106
|
/**
|
|
100
|
-
* Derive (and cache) the
|
|
107
|
+
* Derive (and cache) the dimensional attribute plan for an uppercase STEP
|
|
101
108
|
* type name from the generated schema registry. Excluded types (unit definitions,
|
|
102
109
|
* georeferencing) and unknown/abstract types return the empty plan.
|
|
103
110
|
*/
|
|
104
|
-
export function getEntityLengthPlan(typeUpper) {
|
|
105
|
-
const
|
|
111
|
+
export function getEntityLengthPlan(typeUpper, legacySchema) {
|
|
112
|
+
const key = legacySchema ? `${legacySchema}:${typeUpper}` : typeUpper;
|
|
113
|
+
const cached = planCache.get(key);
|
|
106
114
|
if (cached !== undefined)
|
|
107
115
|
return cached;
|
|
108
|
-
const plan = buildEntityLengthPlan(typeUpper);
|
|
109
|
-
planCache.set(
|
|
116
|
+
const plan = buildEntityLengthPlan(typeUpper, legacySchema);
|
|
117
|
+
planCache.set(key, plan);
|
|
110
118
|
return plan;
|
|
111
119
|
}
|
|
112
|
-
function
|
|
120
|
+
function sourceAttributes(typeUpper, legacySchema) {
|
|
121
|
+
if (!legacySchema)
|
|
122
|
+
return getAllAttributesForEntity(typeUpper);
|
|
123
|
+
const registry = getSchemaRegistryForVersion(legacySchema);
|
|
124
|
+
const name = getCanonicalEntityName(registry, typeUpper);
|
|
125
|
+
return name ? registry.entities[name].allAttributes : undefined;
|
|
126
|
+
}
|
|
127
|
+
function buildEntityLengthPlan(typeUpper, legacySchema) {
|
|
113
128
|
if (isRescaleExcluded(typeUpper))
|
|
114
129
|
return EMPTY_PLAN;
|
|
115
|
-
|
|
116
|
-
if (!
|
|
130
|
+
let fields = sourceAttributes(typeUpper, legacySchema);
|
|
131
|
+
if (!legacySchema && !fields?.length && typeUpper.endsWith('PROFILEPROPERTIES')) {
|
|
132
|
+
fields = sourceAttributes(typeUpper, 'IFC2X3');
|
|
133
|
+
}
|
|
134
|
+
if (!fields?.length)
|
|
117
135
|
return EMPTY_PLAN;
|
|
118
136
|
const listIdx = [];
|
|
119
137
|
const scalarIdx = [];
|
|
120
138
|
const areaIdx = [];
|
|
121
139
|
const volumeIdx = [];
|
|
140
|
+
const profileMeasures = [];
|
|
122
141
|
const unitGuardIdx = [];
|
|
123
|
-
|
|
142
|
+
fields.forEach((a, i) => {
|
|
124
143
|
const { base, isList } = attrBaseType(a.type, a);
|
|
144
|
+
const measure = base.toUpperCase();
|
|
145
|
+
if (PROFILE_MEASURE_POWERS.has(measure) && !isList)
|
|
146
|
+
profileMeasures.push({ index: i, measure });
|
|
125
147
|
if (LENGTH_MEASURE_TYPES.has(base)) {
|
|
126
148
|
if (isList)
|
|
127
149
|
listIdx.push(i);
|
|
@@ -135,15 +157,14 @@ function buildEntityLengthPlan(typeUpper) {
|
|
|
135
157
|
volumeIdx.push(i);
|
|
136
158
|
}
|
|
137
159
|
// A quantity's Unit is typed IfcNamedUnit; a property's Unit is the IfcUnit
|
|
138
|
-
// SELECT; an IfcPropertyTableValue uses DefiningUnit/DefinedUnit.
|
|
139
|
-
// when set, means the value carries its own unit.
|
|
160
|
+
// SELECT; an IfcPropertyTableValue uses DefiningUnit/DefinedUnit.
|
|
140
161
|
if (UNIT_GUARD_NAMES.has(a.name) && (base === 'IfcNamedUnit' || base === 'IfcUnit')) {
|
|
141
162
|
unitGuardIdx.push(i);
|
|
142
163
|
}
|
|
143
164
|
});
|
|
144
165
|
const empty = listIdx.length === 0 && scalarIdx.length === 0
|
|
145
|
-
&& areaIdx.length === 0 && volumeIdx.length === 0 && unitGuardIdx.length === 0;
|
|
146
|
-
return empty ? EMPTY_PLAN : { listIdx, scalarIdx, areaIdx, volumeIdx, unitGuardIdx, empty };
|
|
166
|
+
&& areaIdx.length === 0 && volumeIdx.length === 0 && profileMeasures.length === 0 && unitGuardIdx.length === 0;
|
|
167
|
+
return empty ? EMPTY_PLAN : { listIdx, scalarIdx, areaIdx, volumeIdx, profileMeasures, unitGuardIdx, empty };
|
|
147
168
|
}
|
|
148
169
|
/**
|
|
149
170
|
* Format a number as a valid ISO-10303-21 STEP REAL, after a unit multiply.
|
|
@@ -163,92 +184,73 @@ export function toStepRealScaled(v) {
|
|
|
163
184
|
// the shared mantissa/`E` rewrite so scaled and unscaled reals format alike.
|
|
164
185
|
return formatStepReal(parseFloat(v.toPrecision(12)));
|
|
165
186
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
* their digits are never treated as numbers. The number alternative consumes an
|
|
171
|
-
* optional exponent as one token, so `1.E-5` / `-2.5E2` scale the mantissa
|
|
172
|
-
* without touching the exponent digits.
|
|
173
|
-
*/
|
|
174
|
-
const NUMBER_TOKEN_RE = /#\d+|[+-]?(?:\d+\.\d*|\.\d+|\d+)(?:[eE][+-]?\d+)?/g;
|
|
175
|
-
/**
|
|
176
|
-
* Multiply every bare numeric literal in `text` by `factor`, leaving quoted
|
|
177
|
-
* strings and `#`-references untouched. O(n) single pass — safe for the large
|
|
178
|
-
* coordinate lists of tessellated geometry.
|
|
179
|
-
*/
|
|
187
|
+
const NUMBER_SOURCE = /[+-]?(?:\d+\.\d*|\.\d+|\d+)(?:[eE][+-]?\d+)?/.source;
|
|
188
|
+
const COMMENT_SOURCE = /\/\*[\s\S]*?(?:\*\/|$)/.source;
|
|
189
|
+
const NUMBER_TOKEN_RE = new RegExp(String.raw `${COMMENT_SOURCE}|#\d+|${NUMBER_SOURCE}`, 'g');
|
|
190
|
+
/** Scale coordinate literals and leave references, strings and comments intact. */
|
|
180
191
|
export function scaleNumberLiterals(text, factor) {
|
|
181
|
-
return mapOutsideStepStrings(text, (code) => code.replace(NUMBER_TOKEN_RE, (tok) => tok.
|
|
192
|
+
return mapOutsideStepStrings(text, (code) => code.replace(NUMBER_TOKEN_RE, (tok) => tok.startsWith('#') || tok.startsWith('/') ? tok : toStepRealScaled(parseFloat(tok) * factor)));
|
|
182
193
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
* tolerating it the wrapped literal was skipped by this rewriter, leaving
|
|
199
|
-
* the normalized file's other measures scaled but this one still in the
|
|
200
|
-
* source unit.
|
|
201
|
-
*/
|
|
202
|
-
const TYPED_MEASURE_RE = new RegExp(`(^|[^A-Za-z0-9_])(IFC(?:POSITIVE|NONNEGATIVE)?LENGTHMEASURE|IFCAREAMEASURE|IFCVOLUMEMEASURE)${STEP_TRIVIA}\\(([^)]*)\\)`, 'gi');
|
|
203
|
-
export function scaleTypedMeasures(text, lengthFactor, areaFactor, volumeFactor) {
|
|
204
|
-
return mapOutsideStepStrings(text, (code) => code.replace(TYPED_MEASURE_RE, (_full, delim, keyword, num) => {
|
|
194
|
+
const NUMERIC_SLOT = `(${STEP_TRIVIA})(${NUMBER_SOURCE})(${STEP_TRIVIA})`;
|
|
195
|
+
const BARE_MEASURE_RE = new RegExp(`^${NUMERIC_SLOT}$`);
|
|
196
|
+
// Consume other identifiers and comments whole so neither can contain a measure match.
|
|
197
|
+
const TYPED_MEASURE_RE = new RegExp(String.raw `(IFC(?:POSITIVE|NONNEGATIVE)?LENGTHMEASURE|IFCAREAMEASURE|IFCVOLUMEMEASURE|${[...PROFILE_MEASURE_POWERS.keys()].join('|')})(${STEP_TRIVIA})\(${NUMERIC_SLOT}\)|${COMMENT_SOURCE}|[A-Za-z0-9_]+`, 'gi');
|
|
198
|
+
/** A profile measure's factor. NaN (`profileMeasureFactors`) is a declared unit whose scale cannot be resolved. */
|
|
199
|
+
function profileFactor(measure, profileFactors, lengthFactor) {
|
|
200
|
+
const factor = profileFactors?.get(measure) ?? lengthFactor ** (PROFILE_MEASURE_POWERS.get(measure) ?? 1);
|
|
201
|
+
if (Number.isNaN(factor))
|
|
202
|
+
throw new Error(`Cannot normalize ${measure}: its declared unit scale cannot be resolved`);
|
|
203
|
+
return factor;
|
|
204
|
+
}
|
|
205
|
+
export function scaleTypedMeasures(text, lengthFactor, areaFactor, volumeFactor, profileFactors, preserveTrivia = false) {
|
|
206
|
+
return mapOutsideStepStrings(text, (code) => code.replace(TYPED_MEASURE_RE, (full, keyword, separator, before, num, after) => {
|
|
207
|
+
if (keyword === undefined)
|
|
208
|
+
return full;
|
|
205
209
|
const kw = keyword.toUpperCase();
|
|
206
210
|
const factor = kw === 'IFCAREAMEASURE' ? areaFactor
|
|
207
211
|
: kw === 'IFCVOLUMEMEASURE' ? volumeFactor
|
|
208
|
-
: lengthFactor;
|
|
209
|
-
|
|
212
|
+
: profileFactor(kw, profileFactors, lengthFactor);
|
|
213
|
+
if (preserveTrivia && factor === 1)
|
|
214
|
+
return full;
|
|
215
|
+
const scaled = scaleMeasureNumber(before, num, after, factor, preserveTrivia);
|
|
216
|
+
return scaled === undefined ? full : `${keyword}${preserveTrivia ? separator : ''}(${scaled})`;
|
|
210
217
|
}));
|
|
211
218
|
}
|
|
212
|
-
/**
|
|
213
|
-
function scaleMeasureNumber(num, factor) {
|
|
214
|
-
const
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
+
/** Preserve surrounding comments, and whitespace when requested. */
|
|
220
|
+
function scaleMeasureNumber(before, num, after, factor, preserveTrivia = false) {
|
|
221
|
+
const n = Number(num);
|
|
222
|
+
if (!Number.isFinite(n))
|
|
223
|
+
return undefined;
|
|
224
|
+
const value = n * factor;
|
|
225
|
+
const scaled = preserveTrivia && value === n ? num : toStepRealScaled(value);
|
|
226
|
+
if (preserveTrivia)
|
|
227
|
+
return `${before}${scaled}${after}`;
|
|
228
|
+
return `${before.includes('/*') ? before : ''}${scaled}${after.includes('/*') ? after : ''}`;
|
|
219
229
|
}
|
|
220
|
-
/** Scale a single scalar attribute token by `factor` (skips `$`/`*`/non-bare-number). */
|
|
221
230
|
function scaleScalarArg(arg, factor) {
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
return arg;
|
|
225
|
-
const n = Number(trimmed);
|
|
226
|
-
// Only a bare real is a directly-typed length; a typed token (IFC…MEASURE(…))
|
|
227
|
-
// is left to the measure pass, so it is never scaled twice.
|
|
228
|
-
if (!Number.isFinite(n))
|
|
229
|
-
return arg;
|
|
230
|
-
return toStepRealScaled(n * factor);
|
|
231
|
+
const match = BARE_MEASURE_RE.exec(arg);
|
|
232
|
+
return match ? scaleMeasureNumber(match[1], match[2], match[3], factor) ?? arg : arg;
|
|
231
233
|
}
|
|
232
234
|
/**
|
|
233
|
-
* Rescale
|
|
235
|
+
* Rescale the dimensional data of one STEP entity line.
|
|
234
236
|
*
|
|
235
237
|
* `typeUpper` is the entity's uppercase STEP type (used for the schema-derived
|
|
236
238
|
* plan). The line is expected to be a single `#id=TYPE(...);` statement. Returns
|
|
237
239
|
* the input unchanged when all factors are `1`, the type is excluded (unit
|
|
238
240
|
* definition / georeferencing), or there is nothing to scale.
|
|
239
241
|
*/
|
|
240
|
-
export function rescaleEntityLengths(line, typeUpper, lengthFactor, areaFactor, volumeFactor) {
|
|
241
|
-
if (lengthFactor === 1 && areaFactor === 1 && volumeFactor === 1)
|
|
242
|
+
export function rescaleEntityLengths(line, typeUpper, lengthFactor, areaFactor, volumeFactor, profileFactors, legacySchema, normalizeCell) {
|
|
243
|
+
if (lengthFactor === 1 && areaFactor === 1 && volumeFactor === 1 && !profileFactors?.size)
|
|
242
244
|
return line;
|
|
243
245
|
if (!Number.isFinite(lengthFactor) || !Number.isFinite(areaFactor) || !Number.isFinite(volumeFactor))
|
|
244
246
|
return line;
|
|
245
247
|
if (isRescaleExcluded(typeUpper))
|
|
246
248
|
return line;
|
|
247
|
-
const plan = getEntityLengthPlan(typeUpper);
|
|
249
|
+
const plan = getEntityLengthPlan(typeUpper, legacySchema);
|
|
248
250
|
const hasStructural = plan.listIdx.length > 0 || plan.scalarIdx.length > 0
|
|
249
|
-
|| plan.areaIdx.length > 0 || plan.volumeIdx.length > 0;
|
|
250
|
-
// A unit override only matters when there is a
|
|
251
|
-
if (!hasStructural &&
|
|
251
|
+
|| plan.areaIdx.length > 0 || plan.volumeIdx.length > 0 || plan.profileMeasures.length > 0;
|
|
252
|
+
// A unit override only matters when there is a dimensional value to scale.
|
|
253
|
+
if (!hasStructural && !/measure/i.test(line))
|
|
252
254
|
return line;
|
|
253
255
|
const bounds = findOuterArgs(line);
|
|
254
256
|
if (!bounds)
|
|
@@ -266,13 +268,20 @@ export function rescaleEntityLengths(line, typeUpper, lengthFactor, areaFactor,
|
|
|
266
268
|
// conversion: fail loudly rather than leave the data in the wrong unit.
|
|
267
269
|
if (args === null) {
|
|
268
270
|
throw new Error(`rescaleEntityLengths: cannot split "${typeUpper}"'s slots to rescale — refusing `
|
|
269
|
-
+ `to silently leave its
|
|
271
|
+
+ `to silently leave its dimensional data in the wrong unit: ${line}`);
|
|
270
272
|
}
|
|
271
273
|
// A live unit-override reference means the value is already in its own unit.
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
const hasExplicitUnit = (idx) => holdsValue(args[idx] ?? '');
|
|
275
|
+
if (typeUpper === 'IFCPROPERTYTABLEVALUE') {
|
|
276
|
+
// DefiningValues / DefiningUnit and DefinedValues / DefinedUnit.
|
|
277
|
+
for (const [values, unit] of [[2, 5], [3, 6]]) {
|
|
278
|
+
if (args[values] !== undefined && !hasExplicitUnit(unit)) {
|
|
279
|
+
args[values] = scaleTypedMeasures(args[values], lengthFactor, areaFactor, volumeFactor, profileFactors, true);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
return line.slice(0, bounds.open + 1) + args.join(',') + line.slice(bounds.close);
|
|
283
|
+
}
|
|
284
|
+
skipValues = plan.unitGuardIdx.some(hasExplicitUnit);
|
|
276
285
|
if (!skipValues && hasStructural) {
|
|
277
286
|
for (const idx of plan.listIdx) {
|
|
278
287
|
if (args[idx] !== undefined)
|
|
@@ -290,13 +299,31 @@ export function rescaleEntityLengths(line, typeUpper, lengthFactor, areaFactor,
|
|
|
290
299
|
if (args[idx] !== undefined)
|
|
291
300
|
args[idx] = scaleScalarArg(args[idx], volumeFactor);
|
|
292
301
|
}
|
|
302
|
+
for (const { index, measure } of plan.profileMeasures) {
|
|
303
|
+
if (args[index] !== undefined && BARE_MEASURE_RE.test(args[index]))
|
|
304
|
+
args[index] = scaleScalarArg(args[index], profileFactor(measure, profileFactors, lengthFactor));
|
|
305
|
+
}
|
|
293
306
|
inner = args.join(',');
|
|
294
307
|
}
|
|
295
308
|
}
|
|
296
309
|
// Typed measures live in property/quantity value slots (an IfcValue SELECT is
|
|
297
310
|
// written with its explicit type). Skipped when the entity declares its own unit.
|
|
298
|
-
if (!skipValues &&
|
|
299
|
-
|
|
311
|
+
if (!skipValues && /measure/i.test(inner)) {
|
|
312
|
+
const scale = (text) => scaleTypedMeasures(text, lengthFactor, areaFactor, volumeFactor, profileFactors, true);
|
|
313
|
+
if (normalizeCell) {
|
|
314
|
+
const args = splitTopLevelStepArguments(inner);
|
|
315
|
+
// Frame RowCells as a record to preserve aggregate and cell trivia verbatim.
|
|
316
|
+
const prefix = '#0=IFCTABLEROW';
|
|
317
|
+
const cells = args && readStepSlots(prefix + args[0] + ';');
|
|
318
|
+
if (args && cells) {
|
|
319
|
+
args[0] = cells.prefix.slice(prefix.length)
|
|
320
|
+
+ cells.slots.map((cell, i) => normalizeCell(cell, i, scale)).join(',')
|
|
321
|
+
+ cells.suffix.slice(0, -1);
|
|
322
|
+
inner = args.join(',');
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
else
|
|
326
|
+
inner = scale(inner);
|
|
300
327
|
}
|
|
301
328
|
return line.slice(0, bounds.open + 1) + inner + line.slice(bounds.close);
|
|
302
329
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit-normalize.js","sourceRoot":"","sources":["../src/unit-normalize.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AAEH,OAAO,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE5E,mFAAmF;AACnF,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAAC;IACnC,kBAAkB;IAClB,0BAA0B;IAC1B,6BAA6B;CAC9B,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC;IACrC,mBAAmB,EAAE,WAAW,EAAE,wBAAwB,EAAE,yBAAyB;IACrF,gBAAgB,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,iBAAiB;IACvF,oBAAoB;CACrB,CAAC,CAAC;AAEH,SAAS,iBAAiB,CAAC,SAAiB;IAC1C,OAAO,sBAAsB,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC,UAAU,CAAC,kBAAkB,CAA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AAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;gBAC9B,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACzB,CAAC;QACH,CAAC;;YAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC3E,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CAAC,UAAkB,EAAE,YAAoB;IAC7E,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC;QAAE,OAAO,CAAC,CAAC;IAC7E,IAAI,UAAU,IAAI,CAAC,IAAI,YAAY,IAAI,CAAC;QAAE,OAAO,CAAC,CAAC;IACnD,IAAI,UAAU,KAAK,YAAY;QAAE,OAAO,CAAC,CAAC;IAC1C,OAAO,UAAU,GAAG,YAAY,CAAC;AACnC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A name for the single worksheet in an XLSX export. Replaces illegal
|
|
3
|
+
* characters, removes outer apostrophes, and fits within 31 UTF-16 units
|
|
4
|
+
* without splitting a surrogate pair. Excel reserves the name History.
|
|
5
|
+
*/
|
|
6
|
+
export declare function sanitizeSheetName(name: string, fallback?: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* `text` cut to Excel's per-cell limit, ending in an ellipsis when cut so the
|
|
9
|
+
* truncation is visible rather than silent.
|
|
10
|
+
*/
|
|
11
|
+
export declare function clampXlsxCellText(text: string): string;
|
|
12
|
+
//# sourceMappingURL=xlsx-limits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xlsx-limits.d.ts","sourceRoot":"","sources":["../src/xlsx-limits.ts"],"names":[],"mappings":"AA8BA;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,SAAW,GAAG,MAAM,CAG3E;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMtD"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
2
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
3
|
+
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
4
|
+
/**
|
|
5
|
+
* Excel's hard limits for an `.xlsx` workbook, shared by every TypeScript
|
|
6
|
+
* writer. The `exceljs` writer enforces none of them gracefully: an illegal
|
|
7
|
+
* character in a sheet name makes `addWorksheet` THROW (the whole export fails
|
|
8
|
+
* for a list called "Rooms [Draft]"), and a cell over 32,767 characters is
|
|
9
|
+
* written verbatim, which Excel answers with "We found a problem with some
|
|
10
|
+
* content ... Do you want us to try to recover as much as we can?".
|
|
11
|
+
*/
|
|
12
|
+
/** Excel's maximum worksheet-name length. */
|
|
13
|
+
const XLSX_MAX_SHEET_NAME = 31;
|
|
14
|
+
/** Excel's maximum characters in one cell. */
|
|
15
|
+
const XLSX_MAX_CELL_CHARS = 32767;
|
|
16
|
+
// Excel sheet names cannot contain ASCII controls.
|
|
17
|
+
// eslint-disable-next-line no-control-regex
|
|
18
|
+
const ILLEGAL_SHEET_CHARS = /[\\/?*[\]:\u0000-\u001f]/g;
|
|
19
|
+
const OUTER_SHEET_CHARS = /^[\s']+|[\s']+$/g;
|
|
20
|
+
function trimSheetName(name) {
|
|
21
|
+
const clean = name.replace(ILLEGAL_SHEET_CHARS, '-').replace(OUTER_SHEET_CHARS, '');
|
|
22
|
+
return clean.slice(0, XLSX_MAX_SHEET_NAME)
|
|
23
|
+
.replace(/[\uD800-\uDBFF]$/, '')
|
|
24
|
+
.replace(OUTER_SHEET_CHARS, '');
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A name for the single worksheet in an XLSX export. Replaces illegal
|
|
28
|
+
* characters, removes outer apostrophes, and fits within 31 UTF-16 units
|
|
29
|
+
* without splitting a surrogate pair. Excel reserves the name History.
|
|
30
|
+
*/
|
|
31
|
+
export function sanitizeSheetName(name, fallback = 'Sheet1') {
|
|
32
|
+
const base = trimSheetName(name) || trimSheetName(fallback) || 'Sheet1';
|
|
33
|
+
return base.toLowerCase() === 'history' ? `${base} (1)` : base;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* `text` cut to Excel's per-cell limit, ending in an ellipsis when cut so the
|
|
37
|
+
* truncation is visible rather than silent.
|
|
38
|
+
*/
|
|
39
|
+
export function clampXlsxCellText(text) {
|
|
40
|
+
if (text.length <= XLSX_MAX_CELL_CHARS)
|
|
41
|
+
return text;
|
|
42
|
+
let end = XLSX_MAX_CELL_CHARS - 1;
|
|
43
|
+
const last = text.charCodeAt(end - 1);
|
|
44
|
+
if (last >= 0xd800 && last <= 0xdbff)
|
|
45
|
+
end -= 1; // never split a surrogate pair
|
|
46
|
+
return `${text.slice(0, end)}…`;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=xlsx-limits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xlsx-limits.js","sourceRoot":"","sources":["../src/xlsx-limits.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAE/D;;;;;;;GAOG;AAEH,6CAA6C;AAC7C,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,8CAA8C;AAC9C,MAAM,mBAAmB,GAAG,KAAK,CAAC;AAElC,mDAAmD;AACnD,4CAA4C;AAC5C,MAAM,mBAAmB,GAAG,2BAA2B,CAAC;AACxD,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAE7C,SAAS,aAAa,CAAC,IAAY;IACjC,MA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ffects": [
|
|
@@ -49,20 +49,20 @@
|
|
|
49
49
|
"apache-arrow": "^21.2.0",
|
|
50
50
|
"fflate": "^0.8.3",
|
|
51
51
|
"parquet-wasm": "^0.9.0",
|
|
52
|
-
"@ifc-lite/codegen": "^1.
|
|
53
|
-
"@ifc-lite/data": "^7.
|
|
52
|
+
"@ifc-lite/codegen": "^1.21.0",
|
|
53
|
+
"@ifc-lite/data": "^7.1.0",
|
|
54
54
|
"@ifc-lite/encoding": "^2.4.0",
|
|
55
|
-
"@ifc-lite/geometry": "^
|
|
55
|
+
"@ifc-lite/geometry": "^9.0.0",
|
|
56
56
|
"@ifc-lite/ifcx": "^4.7.1",
|
|
57
|
-
"@ifc-lite/mutations": "^4.
|
|
58
|
-
"@ifc-lite/parser": "^11.
|
|
57
|
+
"@ifc-lite/mutations": "^4.2.0",
|
|
58
|
+
"@ifc-lite/parser": "^11.1.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@mergifyio/vitest": "^2026.11.8",
|
|
62
62
|
"jszip": "^3.10.2",
|
|
63
63
|
"typescript": "^6.0.3",
|
|
64
64
|
"vitest": "^5.1.0",
|
|
65
|
-
"@ifc-lite/wasm": "^
|
|
65
|
+
"@ifc-lite/wasm": "^14.0.0"
|
|
66
66
|
},
|
|
67
67
|
"license": "MPL-2.0",
|
|
68
68
|
"author": "Louis True",
|