@bldrs-ai/conway 1.443.1325 → 1.445.1339
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/Dist/ConwayGeomWasmNode.js +0 -0
- package/compiled/Dist/ConwayGeomWasmNodeMT.js +0 -0
- package/compiled/Dist/ConwayGeomWasmWeb.js +0 -0
- package/compiled/Dist/ConwayGeomWasmWebMT.wasm +0 -0
- package/compiled/dependencies/conway-geom/Dist/ConwayGeomWasmNode.js +0 -0
- package/compiled/dependencies/conway-geom/Dist/ConwayGeomWasmNodeMT.js +0 -0
- package/compiled/dependencies/conway-geom/Dist/ConwayGeomWasmWeb.js +0 -0
- package/compiled/dependencies/conway-geom/Dist/ConwayGeomWasmWebMT.wasm +0 -0
- package/compiled/examples/browser-bundled.cjs +62 -8
- package/compiled/examples/cli-bundled.cjs +137 -23
- package/compiled/examples/cli-step-bundled.cjs +156 -28
- package/compiled/examples/validator-bundled.cjs +62 -8
- package/compiled/src/AP214E3_2010/ap214_geometry_extraction.d.ts.map +1 -1
- package/compiled/src/AP214E3_2010/ap214_geometry_extraction.js +153 -23
- package/compiled/src/AP214E3_2010/ap214_geometry_extraction.test.js +6 -1
- package/compiled/src/compat/web-ifc/coordination_f64.d.ts +12 -0
- package/compiled/src/compat/web-ifc/coordination_f64.d.ts.map +1 -1
- package/compiled/src/compat/web-ifc/coordination_f64.js +13 -0
- package/compiled/src/compat/web-ifc/ifc_api.d.ts +13 -0
- package/compiled/src/compat/web-ifc/ifc_api.d.ts.map +1 -1
- package/compiled/src/compat/web-ifc/ifc_api.js +19 -0
- package/compiled/src/compat/web-ifc/ifc_api_model_passthrough.d.ts +9 -0
- package/compiled/src/compat/web-ifc/ifc_api_model_passthrough.d.ts.map +1 -1
- package/compiled/src/compat/web-ifc/ifc_api_preview_coordination.test.d.ts +2 -0
- package/compiled/src/compat/web-ifc/ifc_api_preview_coordination.test.d.ts.map +1 -0
- package/compiled/src/compat/web-ifc/ifc_api_preview_coordination.test.js +124 -0
- package/compiled/src/compat/web-ifc/ifc_api_proxy_ap214.d.ts +10 -0
- package/compiled/src/compat/web-ifc/ifc_api_proxy_ap214.d.ts.map +1 -1
- package/compiled/src/compat/web-ifc/ifc_api_proxy_ap214.js +35 -2
- package/compiled/src/compat/web-ifc/ifc_api_proxy_ifc.d.ts +20 -0
- package/compiled/src/compat/web-ifc/ifc_api_proxy_ifc.d.ts.map +1 -1
- package/compiled/src/compat/web-ifc/ifc_api_proxy_ifc.js +56 -2
- package/compiled/src/ifc/ifc_geometry_extraction.d.ts +5 -4
- package/compiled/src/ifc/ifc_geometry_extraction.d.ts.map +1 -1
- package/compiled/src/ifc/ifc_geometry_extraction.js +60 -16
- package/compiled/src/step/parsing/decode_utf8.d.ts +15 -0
- package/compiled/src/step/parsing/decode_utf8.d.ts.map +1 -1
- package/compiled/src/step/parsing/decode_utf8.js +28 -0
- package/compiled/src/step/parsing/step_string_parser.js +8 -8
- package/compiled/src/step/parsing/uint32_sink.d.ts +37 -0
- package/compiled/src/step/parsing/uint32_sink.d.ts.map +1 -0
- package/compiled/src/step/parsing/uint32_sink.js +50 -0
- package/compiled/src/step/parsing/uint32_sink.test.d.ts +2 -0
- package/compiled/src/step/parsing/uint32_sink.test.d.ts.map +1 -0
- package/compiled/src/step/parsing/uint32_sink.test.js +77 -0
- package/compiled/src/step/step_entity_base.d.ts +20 -0
- package/compiled/src/step/step_entity_base.d.ts.map +1 -1
- package/compiled/src/step/step_entity_base.js +42 -1
- package/compiled/src/version/version.js +1 -1
- package/compiled/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -30,7 +30,7 @@ var import_node_process = require("node:process");
|
|
|
30
30
|
var readline = __toESM(require("node:readline"), 1);
|
|
31
31
|
|
|
32
32
|
// compiled/src/version/version.js
|
|
33
|
-
var versionString = "Conway v1.
|
|
33
|
+
var versionString = "Conway v1.445.1339";
|
|
34
34
|
|
|
35
35
|
// compiled/dependencies/conway-geom/interface/conway_geometry.js
|
|
36
36
|
var wasmType = "";
|
|
@@ -1127,6 +1127,19 @@ function copyOutOfResizable(view) {
|
|
|
1127
1127
|
function decodeUtf8(view) {
|
|
1128
1128
|
return decoder.decode(decodeNeedsCopy(view.buffer) ? view.slice() : view);
|
|
1129
1129
|
}
|
|
1130
|
+
var strictUtf8Decoder = new TextDecoder("utf-8", { fatal: true });
|
|
1131
|
+
function decodeStepString(view) {
|
|
1132
|
+
const bytes = decodeNeedsCopy(view.buffer) ? view.slice() : view;
|
|
1133
|
+
try {
|
|
1134
|
+
return strictUtf8Decoder.decode(bytes);
|
|
1135
|
+
} catch {
|
|
1136
|
+
let result = "";
|
|
1137
|
+
for (let where = 0; where < bytes.length; ++where) {
|
|
1138
|
+
result += String.fromCharCode(bytes[where]);
|
|
1139
|
+
}
|
|
1140
|
+
return result;
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1130
1143
|
var shimInstalled = false;
|
|
1131
1144
|
function installResizableTextDecoderShim() {
|
|
1132
1145
|
if (shimInstalled || typeof TextDecoder === "undefined") {
|
|
@@ -1814,14 +1827,14 @@ var StepStringParser = class extends ParsingDfa16Table {
|
|
|
1814
1827
|
if (nextCursor < endCursor && input2[nextCursor] === QUOTE) {
|
|
1815
1828
|
result ??= "";
|
|
1816
1829
|
if (cursor > reificationIndex) {
|
|
1817
|
-
result +=
|
|
1830
|
+
result += decodeStepString(input2.subarray(reificationIndex, cursor - 1));
|
|
1818
1831
|
}
|
|
1819
1832
|
result += "'";
|
|
1820
1833
|
cursor = nextCursor + 1;
|
|
1821
1834
|
reificationIndex = cursor;
|
|
1822
1835
|
} else {
|
|
1823
1836
|
result ??= "";
|
|
1824
|
-
result +=
|
|
1837
|
+
result += decodeStepString(input2.subarray(reificationIndex, cursor));
|
|
1825
1838
|
return result;
|
|
1826
1839
|
}
|
|
1827
1840
|
}
|
|
@@ -1847,7 +1860,7 @@ var StepStringParser = class extends ParsingDfa16Table {
|
|
|
1847
1860
|
const nextChar2 = input2[nextCursor2];
|
|
1848
1861
|
if (nextChar2 !== BSLASH) {
|
|
1849
1862
|
result ??= "";
|
|
1850
|
-
result +=
|
|
1863
|
+
result += decodeStepString(input2.subarray(reificationIndex, cursor));
|
|
1851
1864
|
cursor = nextCursor2 + 1;
|
|
1852
1865
|
break;
|
|
1853
1866
|
}
|
|
@@ -1860,7 +1873,7 @@ var StepStringParser = class extends ParsingDfa16Table {
|
|
|
1860
1873
|
return result;
|
|
1861
1874
|
}
|
|
1862
1875
|
result ??= "";
|
|
1863
|
-
result +=
|
|
1876
|
+
result += decodeStepString(input2.subarray(reificationIndex, cursor));
|
|
1864
1877
|
codePage = nextChar3 - A2;
|
|
1865
1878
|
cursor = nextCursor3 + 1;
|
|
1866
1879
|
reificationIndex = cursor;
|
|
@@ -1874,7 +1887,7 @@ var StepStringParser = class extends ParsingDfa16Table {
|
|
|
1874
1887
|
const nextChar2 = input2[nextCursor2];
|
|
1875
1888
|
if (nextChar2 !== BSLASH) {
|
|
1876
1889
|
result ??= "";
|
|
1877
|
-
result +=
|
|
1890
|
+
result += decodeStepString(input2.subarray(reificationIndex, cursor));
|
|
1878
1891
|
cursor = nextCursor2 + 1;
|
|
1879
1892
|
break;
|
|
1880
1893
|
}
|
|
@@ -1884,7 +1897,7 @@ var StepStringParser = class extends ParsingDfa16Table {
|
|
|
1884
1897
|
}
|
|
1885
1898
|
const nextChar3 = input2[nextCursor3];
|
|
1886
1899
|
result ??= "";
|
|
1887
|
-
result +=
|
|
1900
|
+
result += decodeStepString(input2.subarray(reificationIndex, cursor));
|
|
1888
1901
|
if (nextChar3 < 127) {
|
|
1889
1902
|
result += String.fromCharCode(nextChar3);
|
|
1890
1903
|
} else if (nextChar >= 161 && nextChar <= 255) {
|
|
@@ -1903,7 +1916,7 @@ var StepStringParser = class extends ParsingDfa16Table {
|
|
|
1903
1916
|
}
|
|
1904
1917
|
const nextChar2 = input2[nextCursor2];
|
|
1905
1918
|
result ??= "";
|
|
1906
|
-
result +=
|
|
1919
|
+
result += decodeStepString(input2.subarray(reificationIndex, cursor));
|
|
1907
1920
|
const hexParserTil0 = (count) => {
|
|
1908
1921
|
if (nextCursor2 + 1 >= endCursor || input2[nextCursor2 + 1] !== BSLASH) {
|
|
1909
1922
|
return false;
|
|
@@ -10749,6 +10762,47 @@ var StepEntityBase = class {
|
|
|
10749
10762
|
module2.HEAPU8.set(buffer.subarray(cursor, endCursor), dataPtr);
|
|
10750
10763
|
return true;
|
|
10751
10764
|
}
|
|
10765
|
+
/**
|
|
10766
|
+
* Append an unsigned-integer list field straight from the STEP buffer
|
|
10767
|
+
* into `sink`, without materialising an intermediate `Array< number >`.
|
|
10768
|
+
*
|
|
10769
|
+
* Semantically identical to the generated array getters (same
|
|
10770
|
+
* optional handling, same element extraction, same "incorrectly
|
|
10771
|
+
* typed" error), but it neither allocates nor caches a per-record
|
|
10772
|
+
* array — the caller owns one reusable sink for the whole batch. On
|
|
10773
|
+
* tessellated models this removes millions of short-lived arrays and
|
|
10774
|
+
* the retained heap that goes with them; see Uint32Sink.
|
|
10775
|
+
*
|
|
10776
|
+
* @param offset The offset in the vtable to extract from.
|
|
10777
|
+
* @param baseOffset The base offset of the class in the vtable.
|
|
10778
|
+
* @param depth The depth in the inheritance hierarchy.
|
|
10779
|
+
* @param sink Receives the appended values.
|
|
10780
|
+
* @return {number} How many values were appended (0 when the field is
|
|
10781
|
+
* unset/optional-null).
|
|
10782
|
+
*/
|
|
10783
|
+
extractIntegerArrayInto(offset, baseOffset, depth, sink) {
|
|
10784
|
+
let cursor = this.getOffsetCursor(offset, baseOffset, depth);
|
|
10785
|
+
const buffer = this.buffer;
|
|
10786
|
+
const endCursor = buffer.length;
|
|
10787
|
+
if (stepExtractOptional(buffer, cursor, endCursor) === null) {
|
|
10788
|
+
return 0;
|
|
10789
|
+
}
|
|
10790
|
+
let count = 0;
|
|
10791
|
+
let signedCursor0 = stepExtractArrayBegin(buffer, cursor, endCursor);
|
|
10792
|
+
cursor = Math.abs(signedCursor0);
|
|
10793
|
+
while (signedCursor0 >= 0) {
|
|
10794
|
+
const value = stepExtractNumber(buffer, cursor, endCursor);
|
|
10795
|
+
if (value === void 0) {
|
|
10796
|
+
throw new Error("Value in STEP was incorrectly typed");
|
|
10797
|
+
}
|
|
10798
|
+
cursor = skipValue(buffer, cursor, endCursor);
|
|
10799
|
+
sink.push(value);
|
|
10800
|
+
++count;
|
|
10801
|
+
signedCursor0 = stepExtractArrayToken(buffer, cursor, endCursor);
|
|
10802
|
+
cursor = Math.abs(signedCursor0);
|
|
10803
|
+
}
|
|
10804
|
+
return count;
|
|
10805
|
+
}
|
|
10752
10806
|
/**
|
|
10753
10807
|
* Extract a number at the particular vtable offset (i.e. the position
|
|
10754
10808
|
* in the matching step object).
|