@bldrs-ai/conway 1.337.1075 → 1.339.1081
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/compiled/examples/browser-bundled.cjs +1 -1
- package/compiled/examples/cli-bundled.cjs +1 -1
- package/compiled/examples/cli-step-bundled.cjs +1 -1
- package/compiled/examples/validator-bundled.cjs +1 -1
- package/compiled/src/compat/web-ifc/ifc_api_model_passthrough_factory.d.ts.map +1 -1
- package/compiled/src/compat/web-ifc/ifc_api_model_passthrough_factory.js +8 -0
- package/compiled/src/format_detection/model_format_detector.d.ts +2 -1
- package/compiled/src/format_detection/model_format_detector.d.ts.map +1 -1
- package/compiled/src/format_detection/model_format_detector.js +15 -1
- package/compiled/src/format_detection/model_format_detector.test.js +25 -0
- package/compiled/src/loaders/conway_model_loader.d.ts.map +1 -1
- package/compiled/src/loaders/conway_model_loader.js +9 -1
- package/compiled/src/version/version.js +1 -1
- package/compiled/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -69608,7 +69608,7 @@ var IfcStepParser = class extends StepParser {
|
|
|
69608
69608
|
IfcStepParser.Instance = new IfcStepParser();
|
|
69609
69609
|
|
|
69610
69610
|
// compiled/src/version/version.js
|
|
69611
|
-
var versionString = "Conway Web-Ifc Shim v1.
|
|
69611
|
+
var versionString = "Conway Web-Ifc Shim v1.339.1081";
|
|
69612
69612
|
|
|
69613
69613
|
// compiled/src/statistics/statistics.js
|
|
69614
69614
|
var Statistics = class {
|
|
@@ -85869,7 +85869,7 @@ var IfcSceneBuilder = class {
|
|
|
85869
85869
|
};
|
|
85870
85870
|
|
|
85871
85871
|
// compiled/src/version/version.js
|
|
85872
|
-
var versionString = "Conway Web-Ifc Shim v1.
|
|
85872
|
+
var versionString = "Conway Web-Ifc Shim v1.339.1081";
|
|
85873
85873
|
|
|
85874
85874
|
// compiled/src/statistics/statistics.js
|
|
85875
85875
|
var Statistics = class {
|
|
@@ -79320,7 +79320,7 @@ var ExtractResult;
|
|
|
79320
79320
|
})(ExtractResult || (ExtractResult = {}));
|
|
79321
79321
|
|
|
79322
79322
|
// compiled/src/version/version.js
|
|
79323
|
-
var versionString = "Conway Web-Ifc Shim v1.
|
|
79323
|
+
var versionString = "Conway Web-Ifc Shim v1.339.1081";
|
|
79324
79324
|
|
|
79325
79325
|
// compiled/src/statistics/statistics.js
|
|
79326
79326
|
var Statistics = class {
|
|
@@ -69606,7 +69606,7 @@ var IfcStepParser = class extends StepParser {
|
|
|
69606
69606
|
IfcStepParser.Instance = new IfcStepParser();
|
|
69607
69607
|
|
|
69608
69608
|
// compiled/src/version/version.js
|
|
69609
|
-
var versionString = "Conway Web-Ifc Shim v1.
|
|
69609
|
+
var versionString = "Conway Web-Ifc Shim v1.339.1081";
|
|
69610
69610
|
|
|
69611
69611
|
// compiled/src/statistics/statistics.js
|
|
69612
69612
|
var Statistics = class {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ifc_api_model_passthrough_factory.d.ts","sourceRoot":"","sources":["../../../../src/compat/web-ifc/ifc_api_model_passthrough_factory.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AAKpE;;GAEG;AACH,qBAAa,6BAA6B;IAExC;;;;;;;OAOG;WACW,IAAI,CACd,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,UAAU,EAChB,UAAU,EAAE,GAAG,EACf,QAAQ,CAAC,EAAE,cAAc,GAAI,sBAAsB,GAAG,SAAS;
|
|
1
|
+
{"version":3,"file":"ifc_api_model_passthrough_factory.d.ts","sourceRoot":"","sources":["../../../../src/compat/web-ifc/ifc_api_model_passthrough_factory.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AAKpE;;GAEG;AACH,qBAAa,6BAA6B;IAExC;;;;;;;OAOG;WACW,IAAI,CACd,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,UAAU,EAChB,UAAU,EAAE,GAAG,EACf,QAAQ,CAAC,EAAE,cAAc,GAAI,sBAAsB,GAAG,SAAS;CA0EpE"}
|
|
@@ -26,6 +26,14 @@ export class IfcApiModelPassthroughFactory {
|
|
|
26
26
|
case ModelFormatType.AP203:
|
|
27
27
|
Logger.warning("AP203 Step Detected, using AP214 loader");
|
|
28
28
|
// falls through
|
|
29
|
+
case ModelFormatType.AP242:
|
|
30
|
+
// Interim: AP242 reuses the AP214 engine for the metadata-1.0
|
|
31
|
+
// product-structure/property subset. See
|
|
32
|
+
// design/new/step-metadata-nist.md §"The AP242 wrinkle".
|
|
33
|
+
if (modelFormat === ModelFormatType.AP242) {
|
|
34
|
+
Logger.warning("AP242 Step Detected, using AP214 loader (interim)");
|
|
35
|
+
}
|
|
36
|
+
// falls through
|
|
29
37
|
case ModelFormatType.AP214:
|
|
30
38
|
try {
|
|
31
39
|
return new IfcApiProxyAP214(modelID, data, wasmModule, settings);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model_format_detector.d.ts","sourceRoot":"","sources":["../../../src/format_detection/model_format_detector.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,OAAO,aAAa,MAAM,2BAA2B,CAAA;AAIrD,oBAAY,eAAe;IAEzB,GAAG,IAAI;IAEP,KAAK,IAAI;IAET,KAAK,IAAI;CACV;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,mBAAmB;IAEtC;;;;;;OAMG;WACW,MAAM,CAAE,KAAK,EAAE,aAAa,GAAI,eAAe,GAAG,SAAS;
|
|
1
|
+
{"version":3,"file":"model_format_detector.d.ts","sourceRoot":"","sources":["../../../src/format_detection/model_format_detector.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,OAAO,aAAa,MAAM,2BAA2B,CAAA;AAIrD,oBAAY,eAAe;IAEzB,GAAG,IAAI;IAEP,KAAK,IAAI;IAET,KAAK,IAAI;IAET,KAAK,IAAI;CACV;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,mBAAmB;IAEtC;;;;;;OAMG;WACW,MAAM,CAAE,KAAK,EAAE,aAAa,GAAI,eAAe,GAAG,SAAS;CA+C1E"}
|
|
@@ -7,6 +7,7 @@ export var ModelFormatType;
|
|
|
7
7
|
ModelFormatType[ModelFormatType["IFC"] = 0] = "IFC";
|
|
8
8
|
ModelFormatType[ModelFormatType["AP214"] = 1] = "AP214";
|
|
9
9
|
ModelFormatType[ModelFormatType["AP203"] = 2] = "AP203";
|
|
10
|
+
ModelFormatType[ModelFormatType["AP242"] = 3] = "AP242";
|
|
10
11
|
})(ModelFormatType || (ModelFormatType = {}));
|
|
11
12
|
/**
|
|
12
13
|
* Format detector for finding the format of a model from a buffer in conway.
|
|
@@ -34,9 +35,22 @@ export default class ModelFormatDetector {
|
|
|
34
35
|
if (entryNoSpaces.startsWith("AUTOMOTIVE_DESIGN")) {
|
|
35
36
|
return ModelFormatType.AP214;
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
+
// AP203 ships under two schema names: the legacy CONFIG_CONTROL_DESIGN
|
|
39
|
+
// and the explicit AP203_CONFIGURATION_CONTROLLED_3D_DESIGN_*_MIM_LF
|
|
40
|
+
// form the NIST "AP203 geometry only" exports use. Match both.
|
|
41
|
+
if (entryNoSpaces.startsWith("CONFIG_CONTROL_DESIGN") ||
|
|
42
|
+
entryNoSpaces.startsWith("AP203")) {
|
|
38
43
|
return ModelFormatType.AP203;
|
|
39
44
|
}
|
|
45
|
+
// AP242 (ISO 10303-242, e.g. AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_*)
|
|
46
|
+
// is detected so it can be routed; for the metadata-1.0 interim it
|
|
47
|
+
// reuses the AP214 engine (their MIM product-structure/property
|
|
48
|
+
// entities overlap). Full AP242-only entity support is a follow-up —
|
|
49
|
+
// see design/new/step-metadata-nist.md §"The AP242 wrinkle" and
|
|
50
|
+
// step-support.md Phase 5.
|
|
51
|
+
if (entryNoSpaces.startsWith("AP242")) {
|
|
52
|
+
return ModelFormatType.AP242;
|
|
53
|
+
}
|
|
40
54
|
}
|
|
41
55
|
}
|
|
42
56
|
}
|
|
@@ -6,12 +6,16 @@ const indexIfcBuffer = fs.readFileSync("data/index.ifc");
|
|
|
6
6
|
const tubeBuffer = fs.readFileSync("data/create-a-tube.step");
|
|
7
7
|
const gearBuffer = fs.readFileSync("data/a-gear-with-3-inch-diameter-and-20-curved-teeth.step");
|
|
8
8
|
const configControlDesignBuffer = fs.readFileSync("data/config-control-design-min.step");
|
|
9
|
+
const ap242Buffer = fs.readFileSync("data/ap242-header-min.step");
|
|
10
|
+
const ap203MimBuffer = fs.readFileSync("data/ap203-mim-header-min.step");
|
|
9
11
|
const nativeHDBuffer = fs.readFileSync("data/native_hd.m3u8");
|
|
10
12
|
const emptyBuffer = new Uint8Array(0);
|
|
11
13
|
const indexIfcBufferInput = new ParsingBuffer(indexIfcBuffer);
|
|
12
14
|
const tubeBufferInput = new ParsingBuffer(tubeBuffer);
|
|
13
15
|
const gearBufferInput = new ParsingBuffer(gearBuffer);
|
|
14
16
|
const configControlDesignBufferInput = new ParsingBuffer(configControlDesignBuffer);
|
|
17
|
+
const ap242BufferInput = new ParsingBuffer(ap242Buffer);
|
|
18
|
+
const ap203MimBufferInput = new ParsingBuffer(ap203MimBuffer);
|
|
15
19
|
const nativeHDBufferInput = new ParsingBuffer(nativeHDBuffer);
|
|
16
20
|
const emptyBufferInput = new ParsingBuffer(emptyBuffer);
|
|
17
21
|
/**
|
|
@@ -38,6 +42,21 @@ function testGearStep() {
|
|
|
38
42
|
function testConfigControlDesignStep() {
|
|
39
43
|
return ModelFormatDetector.detect(configControlDesignBufferInput);
|
|
40
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* @return {ModelFormatType} The type for model formats, should be AP242.
|
|
47
|
+
*/
|
|
48
|
+
function testAp242Step() {
|
|
49
|
+
return ModelFormatDetector.detect(ap242BufferInput);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* NIST "AP203 geometry only" exports use the explicit AP203_*_MIM_LF schema
|
|
53
|
+
* name rather than CONFIG_CONTROL_DESIGN.
|
|
54
|
+
*
|
|
55
|
+
* @return {ModelFormatType} The type for model formats, should be AP203.
|
|
56
|
+
*/
|
|
57
|
+
function testAp203MimStep() {
|
|
58
|
+
return ModelFormatDetector.detect(ap203MimBufferInput);
|
|
59
|
+
}
|
|
41
60
|
/**
|
|
42
61
|
* @return {ModelFormatType} The type for model formats, should be AP214.
|
|
43
62
|
*/
|
|
@@ -63,6 +82,12 @@ describe("Model Format Detector", () => {
|
|
|
63
82
|
test("testConfigControlDesignStep()", () => {
|
|
64
83
|
expect(testConfigControlDesignStep()).toBe(ModelFormatType.AP203);
|
|
65
84
|
});
|
|
85
|
+
test("testAp242Step()", () => {
|
|
86
|
+
expect(testAp242Step()).toBe(ModelFormatType.AP242);
|
|
87
|
+
});
|
|
88
|
+
test("testAp203MimStep()", () => {
|
|
89
|
+
expect(testAp203MimStep()).toBe(ModelFormatType.AP203);
|
|
90
|
+
});
|
|
66
91
|
test("testNotAModel()", () => {
|
|
67
92
|
expect(testNotAModel()).toBe(void 0);
|
|
68
93
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conway_model_loader.d.ts","sourceRoot":"","sources":["../../../src/loaders/conway_model_loader.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAcrC;;;;GAIG;AACH,qBAAa,iBAAiB;IAE5B;;;;;;;;OAQG;WACiB,kBAAkB,CAClC,IAAI,EAAE,UAAU,EAChB,aAAa,GAAE,OAAc,EAC7B,eAAe,GAAE,MAAW,EAC5B,OAAO,GAAE,MAAU,GAAI,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"conway_model_loader.d.ts","sourceRoot":"","sources":["../../../src/loaders/conway_model_loader.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAcrC;;;;GAIG;AACH,qBAAa,iBAAiB;IAE5B;;;;;;;;OAQG;WACiB,kBAAkB,CAClC,IAAI,EAAE,UAAU,EAChB,aAAa,GAAE,OAAc,EAC7B,eAAe,GAAE,MAAW,EAC5B,OAAO,GAAE,MAAU,GAAI,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;CAwYnD"}
|
|
@@ -36,8 +36,16 @@ export class ConwayModelLoader {
|
|
|
36
36
|
console.log("AP203 Step Detected, using AP214 loader");
|
|
37
37
|
is203 = true;
|
|
38
38
|
// falls through
|
|
39
|
+
case ModelFormatType.AP242:
|
|
40
|
+
// Interim: AP242 reuses the AP214 engine for the metadata-1.0
|
|
41
|
+
// product-structure/property subset. See
|
|
42
|
+
// design/new/step-metadata-nist.md §"The AP242 wrinkle".
|
|
43
|
+
if (modelFormat === ModelFormatType.AP242) {
|
|
44
|
+
console.log("AP242 Step Detected, using AP214 loader (interim)");
|
|
45
|
+
}
|
|
46
|
+
// falls through
|
|
39
47
|
case ModelFormatType.AP214:
|
|
40
|
-
if (!is203) {
|
|
48
|
+
if (!is203 && modelFormat !== ModelFormatType.AP242) {
|
|
41
49
|
console.log("AP214 Step Detected");
|
|
42
50
|
}
|
|
43
51
|
try {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const versionString = 'Conway Web-Ifc Shim v1.
|
|
1
|
+
const versionString = 'Conway Web-Ifc Shim v1.339.1081';
|
|
2
2
|
export { versionString };
|