rm-graphical-computing-node 1.0.123 → 1.0.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +340 -95
- package/package.json +3 -1
package/dist/index.mjs
CHANGED
|
@@ -3953,8 +3953,11 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
|
|
|
3953
3953
|
for (let line2 of lines) {
|
|
3954
3954
|
let allRegion = [];
|
|
3955
3955
|
line2.checkResults = lineReader.getLineCheckReultsById(line2.id);
|
|
3956
|
-
if (!line2.checkResults || line2.checkResults.length <= 0)
|
|
3956
|
+
if (!line2.checkResults || line2.checkResults.length <= 0) {
|
|
3957
|
+
if (line2.mergeCheckRegion && line2.mergeCheckRegion.length > 0)
|
|
3958
|
+
line2.mergeCheckRegion.length = 0;
|
|
3957
3959
|
continue;
|
|
3960
|
+
}
|
|
3958
3961
|
for (let r = 0; r < line2.checkResults.length; r++) {
|
|
3959
3962
|
let find = function(i) {
|
|
3960
3963
|
while (parent[i] !== i) {
|
|
@@ -5261,8 +5264,8 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
|
|
|
5261
5264
|
for (let g = 0; g < findDoorIndexs.length; g++) {
|
|
5262
5265
|
if (j == g)
|
|
5263
5266
|
continue;
|
|
5264
|
-
const start2 = lines[findDoorIndexs[g]].start
|
|
5265
|
-
const end2 = lines[findDoorIndexs[g]].end
|
|
5267
|
+
const start2 = getPt3(lines[findDoorIndexs[g]].start);
|
|
5268
|
+
const end2 = getPt3(lines[findDoorIndexs[g]].end);
|
|
5266
5269
|
start2.z = end2.z = 0;
|
|
5267
5270
|
if (ptIsEqual(start1, start2, tol) || ptIsEqual(start1, end2, tol)) {
|
|
5268
5271
|
startIsEq = true;
|
|
@@ -5701,7 +5704,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
|
|
|
5701
5704
|
newDoorAndBeamIdToCheckResults.push(line4.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length - 1, line4.doorAndBeamIdToCheckResults[h][1]);
|
|
5702
5705
|
}
|
|
5703
5706
|
}
|
|
5704
|
-
let tmpDoorPoints3 = [line3.start, line3.end, line4.start, line4.end];
|
|
5707
|
+
let tmpDoorPoints3 = [getPt3(line3.start), getPt3(line3.end), getPt3(line4.start), getPt3(line4.end)];
|
|
5705
5708
|
let twoPoint3 = getFarthestPoints(tmpDoorPoints3);
|
|
5706
5709
|
const newLine = {
|
|
5707
5710
|
checkResults: newCheckResults,
|
|
@@ -5804,7 +5807,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
|
|
|
5804
5807
|
else
|
|
5805
5808
|
newDoorAndBeamIdToCheckResults.push(line22.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length - 1, line22.doorAndBeamIdToCheckResults[h][1]);
|
|
5806
5809
|
}
|
|
5807
|
-
let tmpDoorPoints3 = [line2.start, line2.end, line22.start, line22.end];
|
|
5810
|
+
let tmpDoorPoints3 = [getPt3(line2.start), getPt3(line2.end), getPt3(line22.start), getPt3(line22.end)];
|
|
5808
5811
|
let twoPoint3 = getFarthestPoints(tmpDoorPoints3);
|
|
5809
5812
|
const newLine = {
|
|
5810
5813
|
checkResults: newCheckResults,
|
|
@@ -5926,7 +5929,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
|
|
|
5926
5929
|
else
|
|
5927
5930
|
newDoorAndBeamIdToCheckResults.push(line22.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length - 1, line22.doorAndBeamIdToCheckResults[h][1]);
|
|
5928
5931
|
}
|
|
5929
|
-
let tmpDoorPoints3 = [line2.start, line2.end, line22.start, line22.end];
|
|
5932
|
+
let tmpDoorPoints3 = [getPt3(line2.start), getPt3(line2.end), getPt3(line22.start), getPt3(line22.end)];
|
|
5930
5933
|
let twoPoint3 = getFarthestPoints(tmpDoorPoints3);
|
|
5931
5934
|
const newLine = {
|
|
5932
5935
|
checkResults: newCheckResults,
|
|
@@ -6001,7 +6004,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
|
|
|
6001
6004
|
else
|
|
6002
6005
|
newDoorAndBeamIdToCheckResults2.push(line4.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length - 1, line4.doorAndBeamIdToCheckResults[h][1]);
|
|
6003
6006
|
}
|
|
6004
|
-
let tmpDoorPoints4 = [line3.start, line3.end, line4.start, line4.end];
|
|
6007
|
+
let tmpDoorPoints4 = [getPt3(line3.start), getPt3(line3.end), getPt3(line4.start), getPt3(line4.end)];
|
|
6005
6008
|
let twoPoint4 = getFarthestPoints(tmpDoorPoints4);
|
|
6006
6009
|
const newLine2 = {
|
|
6007
6010
|
checkResults: newCheckResults2,
|
|
@@ -11983,6 +11986,7 @@ import { Readable, Writable, Duplex as Duplex2 } from "node:stream";
|
|
|
11983
11986
|
var defs_exports = {};
|
|
11984
11987
|
__export(defs_exports, {
|
|
11985
11988
|
Stop: () => Stop,
|
|
11989
|
+
abortSymbol: () => abortSymbol,
|
|
11986
11990
|
clearFunctionList: () => clearFunctionList,
|
|
11987
11991
|
combineMany: () => combineMany,
|
|
11988
11992
|
combineManyMut: () => combineManyMut,
|
|
@@ -12018,6 +12022,7 @@ var stop = /* @__PURE__ */ Symbol.for("object-stream.stop");
|
|
|
12018
12022
|
var finalSymbol = /* @__PURE__ */ Symbol.for("object-stream.final");
|
|
12019
12023
|
var manySymbol = /* @__PURE__ */ Symbol.for("object-stream.many");
|
|
12020
12024
|
var flushSymbol = /* @__PURE__ */ Symbol.for("object-stream.flush");
|
|
12025
|
+
var abortSymbol = /* @__PURE__ */ Symbol.for("object-stream.abort");
|
|
12021
12026
|
var fListSymbol = /* @__PURE__ */ Symbol.for("object-stream.fList");
|
|
12022
12027
|
var finalValue = (value) => ({ [finalSymbol]: 1, value });
|
|
12023
12028
|
var many = (values) => ({ [manySymbol]: 1, values });
|
|
@@ -12028,9 +12033,10 @@ var isFunctionList = (o) => o && o[fListSymbol] === 1;
|
|
|
12028
12033
|
var getFinalValue = (o) => o.value;
|
|
12029
12034
|
var getManyValues = (o) => o.values;
|
|
12030
12035
|
var getFunctionList = (o) => o.fList;
|
|
12031
|
-
var flushable = (write2, final3 = null) => {
|
|
12036
|
+
var flushable = (write2, final3 = null, abort = null) => {
|
|
12032
12037
|
const fn = final3 ? (value) => value === none ? final3() : write2(value) : write2;
|
|
12033
12038
|
fn[flushSymbol] = 1;
|
|
12039
|
+
if (abort) fn[abortSymbol] = abort;
|
|
12034
12040
|
return fn;
|
|
12035
12041
|
};
|
|
12036
12042
|
var setFunctionList = (o, fns) => {
|
|
@@ -12092,14 +12098,48 @@ var isDuplexNodeStream = (obj) => obj && typeof obj.pipe === "function" && obj._
|
|
|
12092
12098
|
var final = finalValue;
|
|
12093
12099
|
|
|
12094
12100
|
// node_modules/stream-chain/src/exec.js
|
|
12101
|
+
var cancelSymbol = /* @__PURE__ */ Symbol("cancel");
|
|
12102
|
+
var stopAtSymbol = /* @__PURE__ */ Symbol("stopAt");
|
|
12103
|
+
var markStop = (error, index) => {
|
|
12104
|
+
if (error instanceof Stop) error[stopAtSymbol] = index;
|
|
12105
|
+
throw error;
|
|
12106
|
+
};
|
|
12107
|
+
var stopIndex = (stop2, fns) => stop2[stopAtSymbol] ?? fns.length;
|
|
12108
|
+
var withCleanupError = (err, cleanupErr) => {
|
|
12109
|
+
if (err == null || err instanceof Stop) return cleanupErr;
|
|
12110
|
+
return err instanceof Error ? new AggregateError([err, cleanupErr], "pipeline error; generator cleanup also failed") : err;
|
|
12111
|
+
};
|
|
12112
|
+
var hasAborters = (fns) => fns.some((fn) => fn[abortSymbol]);
|
|
12113
|
+
var noteFinal = (value, fn, finished) => {
|
|
12114
|
+
if (value && typeof value.then == "function") return value.then((v2) => (finished.add(fn), v2));
|
|
12115
|
+
finished.add(fn);
|
|
12116
|
+
return value;
|
|
12117
|
+
};
|
|
12118
|
+
var abortStages = async (fns, finished, to = fns.length) => {
|
|
12119
|
+
let failure;
|
|
12120
|
+
for (let i = 0; i < to; ++i) {
|
|
12121
|
+
const fn = fns[i], abort = fn[abortSymbol];
|
|
12122
|
+
if (!abort || finished.has(fn)) continue;
|
|
12123
|
+
finished.add(fn);
|
|
12124
|
+
try {
|
|
12125
|
+
await abort();
|
|
12126
|
+
} catch (error) {
|
|
12127
|
+
failure = failure === void 0 ? error : new AggregateError([failure, error], "stage cleanup failed more than once");
|
|
12128
|
+
}
|
|
12129
|
+
}
|
|
12130
|
+
return failure;
|
|
12131
|
+
};
|
|
12095
12132
|
var next = (value, fns, index, push) => {
|
|
12096
12133
|
for (let i = index; ; ) {
|
|
12097
12134
|
if (value && typeof value.then == "function") {
|
|
12098
12135
|
const ii = i;
|
|
12099
|
-
return value.then(
|
|
12136
|
+
return value.then(
|
|
12137
|
+
(v2) => next(v2, fns, ii, push),
|
|
12138
|
+
(e) => markStop(e, ii)
|
|
12139
|
+
);
|
|
12100
12140
|
}
|
|
12101
12141
|
if (value == null || value === none) return;
|
|
12102
|
-
if (value === stop)
|
|
12142
|
+
if (value === stop) markStop(new Stop(), i);
|
|
12103
12143
|
if (isFinalValue(value)) {
|
|
12104
12144
|
return push(getFinalValue(value));
|
|
12105
12145
|
}
|
|
@@ -12112,7 +12152,11 @@ var next = (value, fns, index, push) => {
|
|
|
12112
12152
|
if (i >= fns.length) {
|
|
12113
12153
|
return push(value);
|
|
12114
12154
|
}
|
|
12115
|
-
|
|
12155
|
+
try {
|
|
12156
|
+
value = fns[i++](value);
|
|
12157
|
+
} catch (error) {
|
|
12158
|
+
markStop(error, i);
|
|
12159
|
+
}
|
|
12116
12160
|
}
|
|
12117
12161
|
};
|
|
12118
12162
|
var nextMany = (values, fns, i, push) => {
|
|
@@ -12130,13 +12174,22 @@ var nextMany = (values, fns, i, push) => {
|
|
|
12130
12174
|
var nextGen = (it, fns, i, push) => {
|
|
12131
12175
|
const step = () => {
|
|
12132
12176
|
for (; ; ) {
|
|
12133
|
-
|
|
12177
|
+
if (push[cancelSymbol]) throw push[cancelSymbol];
|
|
12178
|
+
let data;
|
|
12179
|
+
try {
|
|
12180
|
+
data = it.next();
|
|
12181
|
+
} catch (error) {
|
|
12182
|
+
markStop(error, i);
|
|
12183
|
+
}
|
|
12134
12184
|
if (data && typeof data.then == "function") {
|
|
12135
|
-
return data.then(
|
|
12136
|
-
|
|
12137
|
-
|
|
12138
|
-
|
|
12139
|
-
|
|
12185
|
+
return data.then(
|
|
12186
|
+
(d) => {
|
|
12187
|
+
if (d.done) return;
|
|
12188
|
+
const r3 = next(d.value, fns, i, push);
|
|
12189
|
+
return r3 && typeof r3.then == "function" ? r3.then(step) : step();
|
|
12190
|
+
},
|
|
12191
|
+
(e) => markStop(e, i)
|
|
12192
|
+
);
|
|
12140
12193
|
}
|
|
12141
12194
|
if (data.done) return;
|
|
12142
12195
|
const r2 = next(data.value, fns, i, push);
|
|
@@ -12144,7 +12197,7 @@ var nextGen = (it, fns, i, push) => {
|
|
|
12144
12197
|
}
|
|
12145
12198
|
};
|
|
12146
12199
|
const abort = (err) => {
|
|
12147
|
-
const onCleanupError = (cleanupErr) =>
|
|
12200
|
+
const onCleanupError = (cleanupErr) => withCleanupError(err, cleanupErr);
|
|
12148
12201
|
let ret;
|
|
12149
12202
|
try {
|
|
12150
12203
|
ret = it.return ? it.return() : void 0;
|
|
@@ -12171,40 +12224,86 @@ var nextGen = (it, fns, i, push) => {
|
|
|
12171
12224
|
}
|
|
12172
12225
|
return r && typeof r.then == "function" ? r.then(void 0, abort) : r;
|
|
12173
12226
|
};
|
|
12174
|
-
var flush = (fns, index, push) => {
|
|
12227
|
+
var flush = (fns, index, push, finished) => {
|
|
12228
|
+
let stop2 = null;
|
|
12229
|
+
const resume = (error) => {
|
|
12230
|
+
if (!(error instanceof Stop)) throw error;
|
|
12231
|
+
stop2 = error;
|
|
12232
|
+
return step(stopIndex(error, fns));
|
|
12233
|
+
};
|
|
12175
12234
|
const step = (i) => {
|
|
12176
12235
|
for (; i < fns.length; ++i) {
|
|
12177
12236
|
const f = fns[i];
|
|
12178
|
-
if (!isFlushable(f)) continue;
|
|
12179
|
-
|
|
12237
|
+
if (!isFlushable(f) || finished?.has(f)) continue;
|
|
12238
|
+
let r;
|
|
12239
|
+
try {
|
|
12240
|
+
let value;
|
|
12241
|
+
try {
|
|
12242
|
+
value = f(none);
|
|
12243
|
+
} catch (error) {
|
|
12244
|
+
markStop(error, i + 1);
|
|
12245
|
+
}
|
|
12246
|
+
if (finished) value = noteFinal(value, f, finished);
|
|
12247
|
+
r = next(value, fns, i + 1, push);
|
|
12248
|
+
} catch (error) {
|
|
12249
|
+
return resume(error);
|
|
12250
|
+
}
|
|
12180
12251
|
if (r && typeof r.then == "function") {
|
|
12181
12252
|
const ii = i;
|
|
12182
|
-
return r.then(() => step(ii + 1));
|
|
12253
|
+
return r.then(() => step(ii + 1), resume);
|
|
12183
12254
|
}
|
|
12184
12255
|
}
|
|
12256
|
+
if (stop2) throw stop2;
|
|
12185
12257
|
};
|
|
12186
12258
|
return step(index);
|
|
12187
12259
|
};
|
|
12188
|
-
|
|
12189
|
-
|
|
12190
|
-
|
|
12260
|
+
var releaseStopped = async (fns, finished, stop2) => {
|
|
12261
|
+
const failure = await abortStages(fns, finished, stopIndex(stop2, fns));
|
|
12262
|
+
if (failure === void 0) return void 0;
|
|
12263
|
+
const more = await abortStages(fns, finished);
|
|
12264
|
+
return more === void 0 ? failure : new AggregateError([failure, more], "stage cleanup failed more than once");
|
|
12265
|
+
};
|
|
12266
|
+
var finishStop = async (fns, stop2, push, finished) => {
|
|
12267
|
+
let error;
|
|
12268
|
+
try {
|
|
12269
|
+
await flush(fns, stopIndex(stop2, fns), push, finished);
|
|
12270
|
+
} catch (e) {
|
|
12271
|
+
if (e instanceof Stop) stop2 = e;
|
|
12272
|
+
else error = e;
|
|
12273
|
+
}
|
|
12274
|
+
const failure = error === void 0 ? await releaseStopped(fns, finished, stop2) : await abortStages(fns, finished);
|
|
12275
|
+
if (failure !== void 0) error = withCleanupError(error, failure);
|
|
12276
|
+
if (error !== void 0) throw error;
|
|
12277
|
+
};
|
|
12278
|
+
var genBridge = (fns, once) => {
|
|
12191
12279
|
fns = fns.filter((fn) => fn).flat(Infinity).map((fn) => isFunctionList(fn) ? getFunctionList(fn) : fn).flat(Infinity);
|
|
12192
12280
|
if (!fns.length) {
|
|
12193
12281
|
fns = [(x) => x];
|
|
12194
12282
|
}
|
|
12195
|
-
|
|
12283
|
+
const canAbort = hasAborters(fns), finished = /* @__PURE__ */ new Set();
|
|
12284
|
+
let flushed = false, stopAt = 0;
|
|
12285
|
+
const drive = async (value, push) => {
|
|
12286
|
+
try {
|
|
12287
|
+
await next(value, fns, 0, push);
|
|
12288
|
+
} catch (error) {
|
|
12289
|
+
if (!(error instanceof Stop)) throw error;
|
|
12290
|
+
await finishStop(fns, error, push, finished);
|
|
12291
|
+
throw error;
|
|
12292
|
+
}
|
|
12293
|
+
await flush(fns, 0, push, finished);
|
|
12294
|
+
};
|
|
12196
12295
|
let g = async function* (value) {
|
|
12197
12296
|
if (flushed) throw Error("Call to a flushed pipe.");
|
|
12198
|
-
const isFlush = value === none;
|
|
12199
|
-
if (isFlush) flushed = true;
|
|
12297
|
+
const isFlush = !once && value === none;
|
|
12298
|
+
if (isFlush || once) flushed = true;
|
|
12200
12299
|
const pending = [];
|
|
12201
12300
|
let wakeConsumer = null;
|
|
12202
12301
|
let resolveProducer = null;
|
|
12203
12302
|
let rejectProducer = null;
|
|
12204
|
-
let done = false, error = null, cancelled = false;
|
|
12205
|
-
const
|
|
12303
|
+
let done = false, error = null, cancelled = false, completed = false;
|
|
12304
|
+
const CANCEL3 = /* @__PURE__ */ Symbol("cancel");
|
|
12206
12305
|
const push = (v2) => {
|
|
12207
|
-
if (cancelled) throw
|
|
12306
|
+
if (cancelled) throw CANCEL3;
|
|
12208
12307
|
pending.push(v2);
|
|
12209
12308
|
if (wakeConsumer) {
|
|
12210
12309
|
const w = wakeConsumer;
|
|
@@ -12216,11 +12315,15 @@ var gen = (...fns) => {
|
|
|
12216
12315
|
rejectProducer = rej;
|
|
12217
12316
|
});
|
|
12218
12317
|
};
|
|
12219
|
-
Promise.resolve().then(
|
|
12318
|
+
Promise.resolve().then(
|
|
12319
|
+
() => once ? drive(value, push) : isFlush ? flush(fns, stopAt, push, finished) : next(value, fns, 0, push)
|
|
12320
|
+
).then(
|
|
12220
12321
|
() => {
|
|
12221
12322
|
},
|
|
12222
12323
|
(e) => {
|
|
12223
|
-
if (e
|
|
12324
|
+
if (e === CANCEL3) return;
|
|
12325
|
+
error = e;
|
|
12326
|
+
if (!isFlush && e instanceof Stop) stopAt = stopIndex(e, fns);
|
|
12224
12327
|
}
|
|
12225
12328
|
).finally(() => {
|
|
12226
12329
|
done = true;
|
|
@@ -12242,57 +12345,84 @@ var gen = (...fns) => {
|
|
|
12242
12345
|
yield v2;
|
|
12243
12346
|
}
|
|
12244
12347
|
if (error) throw error;
|
|
12245
|
-
if (done)
|
|
12348
|
+
if (done) {
|
|
12349
|
+
completed = true;
|
|
12350
|
+
return;
|
|
12351
|
+
}
|
|
12246
12352
|
await new Promise((res) => wakeConsumer = res);
|
|
12247
12353
|
}
|
|
12248
12354
|
} finally {
|
|
12249
12355
|
cancelled = true;
|
|
12356
|
+
push[cancelSymbol] = CANCEL3;
|
|
12250
12357
|
if (rejectProducer) {
|
|
12251
12358
|
const rj = rejectProducer;
|
|
12252
12359
|
resolveProducer = rejectProducer = null;
|
|
12253
|
-
rj(
|
|
12360
|
+
rj(CANCEL3);
|
|
12361
|
+
}
|
|
12362
|
+
if (!completed && canAbort) {
|
|
12363
|
+
const failure = error instanceof Stop ? await releaseStopped(fns, finished, error) : await abortStages(fns, finished);
|
|
12364
|
+
if (failure !== void 0) throw withCleanupError(error, failure);
|
|
12254
12365
|
}
|
|
12255
12366
|
}
|
|
12256
12367
|
};
|
|
12368
|
+
if (once) return g;
|
|
12257
12369
|
const needToFlush = fns.some((fn) => isFlushable(fn));
|
|
12258
12370
|
if (needToFlush) g = flushable(g);
|
|
12259
12371
|
return setFunctionList(g, fns);
|
|
12260
12372
|
};
|
|
12373
|
+
|
|
12374
|
+
// node_modules/stream-chain/src/gen.js
|
|
12375
|
+
var gen = (...fns) => genBridge(fns, false);
|
|
12261
12376
|
var gen_default = gen;
|
|
12262
12377
|
|
|
12263
12378
|
// node_modules/stream-chain/src/asStream.js
|
|
12264
12379
|
import { Duplex } from "node:stream";
|
|
12380
|
+
var CANCEL = /* @__PURE__ */ Symbol("cancel");
|
|
12265
12381
|
var asStream = (fn, options) => {
|
|
12266
12382
|
if (typeof fn != "function") {
|
|
12267
12383
|
throw TypeError("Only a function is accepted as the first argument");
|
|
12268
12384
|
}
|
|
12269
12385
|
const innerFns = isFunctionList(fn) ? fn.fList : null;
|
|
12386
|
+
const stages = innerFns ?? [fn];
|
|
12387
|
+
const canAbort = hasAborters(stages), finished = /* @__PURE__ */ new Set();
|
|
12270
12388
|
let stopped = false;
|
|
12389
|
+
let destroyed = false;
|
|
12390
|
+
let flushed = false;
|
|
12271
12391
|
let nullPushed = false;
|
|
12272
12392
|
let resolvePaused = null;
|
|
12393
|
+
let rejectPaused = null;
|
|
12273
12394
|
let stream = null;
|
|
12274
12395
|
const resume = () => {
|
|
12275
12396
|
if (!resolvePaused) return;
|
|
12276
12397
|
const resolve = resolvePaused;
|
|
12277
|
-
resolvePaused = null;
|
|
12398
|
+
resolvePaused = rejectPaused = null;
|
|
12278
12399
|
resolve();
|
|
12279
12400
|
};
|
|
12401
|
+
const cancelPaused = () => {
|
|
12402
|
+
if (!rejectPaused) return;
|
|
12403
|
+
const reject = rejectPaused;
|
|
12404
|
+
resolvePaused = rejectPaused = null;
|
|
12405
|
+
reject(CANCEL);
|
|
12406
|
+
};
|
|
12280
12407
|
const signalEnd = () => {
|
|
12281
12408
|
if (nullPushed) return;
|
|
12282
12409
|
nullPushed = true;
|
|
12283
12410
|
stream.push(null);
|
|
12284
12411
|
};
|
|
12285
12412
|
const enqueue = (value) => {
|
|
12286
|
-
if (
|
|
12413
|
+
if (destroyed) throw CANCEL;
|
|
12414
|
+
if (nullPushed) return;
|
|
12287
12415
|
if (!stream.push(value)) {
|
|
12288
|
-
return new Promise((resolve) => {
|
|
12416
|
+
return new Promise((resolve, reject) => {
|
|
12289
12417
|
resolvePaused = resolve;
|
|
12418
|
+
rejectPaused = reject;
|
|
12290
12419
|
});
|
|
12291
12420
|
}
|
|
12292
12421
|
};
|
|
12293
12422
|
const queue = [];
|
|
12294
12423
|
const pump = async () => {
|
|
12295
12424
|
while (queue.length) {
|
|
12425
|
+
if (destroyed) throw CANCEL;
|
|
12296
12426
|
const g = queue[queue.length - 1];
|
|
12297
12427
|
let result = g.next();
|
|
12298
12428
|
if (result && typeof result.then == "function") result = await result;
|
|
@@ -12306,6 +12436,17 @@ var asStream = (fn, options) => {
|
|
|
12306
12436
|
if (r) await r;
|
|
12307
12437
|
}
|
|
12308
12438
|
};
|
|
12439
|
+
const release = async (error) => {
|
|
12440
|
+
while (queue.length) {
|
|
12441
|
+
const g = queue.pop();
|
|
12442
|
+
try {
|
|
12443
|
+
if (g.return) await g.return();
|
|
12444
|
+
} catch (cleanupErr) {
|
|
12445
|
+
error = withCleanupError(error, cleanupErr);
|
|
12446
|
+
}
|
|
12447
|
+
}
|
|
12448
|
+
throw error;
|
|
12449
|
+
};
|
|
12309
12450
|
const processValue = (value) => {
|
|
12310
12451
|
if (value && typeof value.then == "function") {
|
|
12311
12452
|
return value.then(processValue);
|
|
@@ -12331,22 +12472,26 @@ var asStream = (fn, options) => {
|
|
|
12331
12472
|
}
|
|
12332
12473
|
if (value && typeof value.next == "function") {
|
|
12333
12474
|
queue.push(value);
|
|
12334
|
-
return pump();
|
|
12475
|
+
return pump().catch(release);
|
|
12335
12476
|
}
|
|
12336
12477
|
return enqueue(value);
|
|
12337
12478
|
};
|
|
12338
|
-
const
|
|
12339
|
-
if (error
|
|
12479
|
+
const finishWrite = (callback, error) => {
|
|
12480
|
+
if (!error || error === CANCEL) {
|
|
12481
|
+
callback(null);
|
|
12482
|
+
} else if (!(error instanceof Stop)) {
|
|
12483
|
+
callback(error);
|
|
12484
|
+
} else {
|
|
12340
12485
|
stopped = true;
|
|
12341
|
-
|
|
12342
|
-
|
|
12486
|
+
finishStop(stages, error, enqueue, finished).then(
|
|
12487
|
+
() => {
|
|
12488
|
+
flushed = true;
|
|
12489
|
+
signalEnd();
|
|
12490
|
+
callback(null);
|
|
12491
|
+
},
|
|
12492
|
+
(failure) => callback(failure)
|
|
12493
|
+
);
|
|
12343
12494
|
}
|
|
12344
|
-
return false;
|
|
12345
|
-
};
|
|
12346
|
-
const finishWrite = (callback, error) => {
|
|
12347
|
-
if (!error) return callback(null);
|
|
12348
|
-
if (absorbStop(error)) return callback(null);
|
|
12349
|
-
callback(error);
|
|
12350
12495
|
};
|
|
12351
12496
|
stream = new Duplex({
|
|
12352
12497
|
writableObjectMode: true,
|
|
@@ -12388,13 +12533,18 @@ var asStream = (fn, options) => {
|
|
|
12388
12533
|
},
|
|
12389
12534
|
final(callback) {
|
|
12390
12535
|
const onComplete = () => {
|
|
12536
|
+
flushed = true;
|
|
12391
12537
|
signalEnd();
|
|
12392
12538
|
callback(null);
|
|
12393
12539
|
};
|
|
12540
|
+
if (stopped) {
|
|
12541
|
+
onComplete();
|
|
12542
|
+
return;
|
|
12543
|
+
}
|
|
12394
12544
|
if (innerFns) {
|
|
12395
12545
|
let r2;
|
|
12396
12546
|
try {
|
|
12397
|
-
r2 = flush(innerFns, 0, enqueue);
|
|
12547
|
+
r2 = flush(innerFns, 0, enqueue, finished);
|
|
12398
12548
|
} catch (error) {
|
|
12399
12549
|
return finishWrite(callback, error);
|
|
12400
12550
|
}
|
|
@@ -12411,7 +12561,8 @@ var asStream = (fn, options) => {
|
|
|
12411
12561
|
}
|
|
12412
12562
|
let r;
|
|
12413
12563
|
try {
|
|
12414
|
-
|
|
12564
|
+
const value = fn(none, null);
|
|
12565
|
+
r = processValue(noteFinal(value, fn, finished));
|
|
12415
12566
|
} catch (error) {
|
|
12416
12567
|
return finishWrite(callback, error);
|
|
12417
12568
|
}
|
|
@@ -12427,9 +12578,21 @@ var asStream = (fn, options) => {
|
|
|
12427
12578
|
// Unblock any pending paused-promise so an in-flight write can settle —
|
|
12428
12579
|
// mirrors asWebStream's controller.signal listener for writer.abort().
|
|
12429
12580
|
destroy(error, callback) {
|
|
12430
|
-
stopped = true;
|
|
12431
|
-
|
|
12432
|
-
|
|
12581
|
+
stopped = destroyed = true;
|
|
12582
|
+
enqueue[cancelSymbol] = CANCEL;
|
|
12583
|
+
cancelPaused();
|
|
12584
|
+
if (flushed || !canAbort) {
|
|
12585
|
+
callback(error);
|
|
12586
|
+
return;
|
|
12587
|
+
}
|
|
12588
|
+
abortStages(stages, finished).then(
|
|
12589
|
+
(failure) => callback(
|
|
12590
|
+
failure === void 0 ? error : (
|
|
12591
|
+
/** @type {Error} */
|
|
12592
|
+
withCleanupError(error, failure)
|
|
12593
|
+
)
|
|
12594
|
+
)
|
|
12595
|
+
);
|
|
12433
12596
|
}
|
|
12434
12597
|
});
|
|
12435
12598
|
return stream;
|
|
@@ -12437,6 +12600,7 @@ var asStream = (fn, options) => {
|
|
|
12437
12600
|
var asStream_default = asStream;
|
|
12438
12601
|
|
|
12439
12602
|
// node_modules/stream-chain/src/asWebStream.js
|
|
12603
|
+
var CANCEL2 = /* @__PURE__ */ Symbol("cancel");
|
|
12440
12604
|
var asWebStream = (fn, options) => {
|
|
12441
12605
|
if (isDuplexWebStream(fn) || isReadableWebStream(fn) || isWritableWebStream(fn)) {
|
|
12442
12606
|
return fn;
|
|
@@ -12448,18 +12612,30 @@ var asWebStream = (fn, options) => {
|
|
|
12448
12612
|
const readableStrategy = options?.readableStrategy ?? strategy;
|
|
12449
12613
|
const writableStrategy = options?.writableStrategy ?? strategy;
|
|
12450
12614
|
const innerFns = isFunctionList(fn) ? fn.fList : null;
|
|
12615
|
+
const stages = innerFns ?? [fn];
|
|
12616
|
+
const canAbort = hasAborters(stages), finished = /* @__PURE__ */ new Set();
|
|
12451
12617
|
let stopped = false;
|
|
12618
|
+
let cancelled = false;
|
|
12619
|
+
let flushed = false;
|
|
12620
|
+
let releasing = null;
|
|
12452
12621
|
let readableClosed = false;
|
|
12453
12622
|
let writableErrored = false;
|
|
12454
12623
|
let readableController;
|
|
12455
12624
|
let writableController;
|
|
12456
12625
|
let pendingDrain = null;
|
|
12626
|
+
let rejectDrain = null;
|
|
12457
12627
|
const unblockDrain = () => {
|
|
12458
12628
|
if (!pendingDrain) return;
|
|
12459
12629
|
const resolve = pendingDrain;
|
|
12460
|
-
pendingDrain = null;
|
|
12630
|
+
pendingDrain = rejectDrain = null;
|
|
12461
12631
|
resolve();
|
|
12462
12632
|
};
|
|
12633
|
+
const cancelDrain = () => {
|
|
12634
|
+
if (!rejectDrain) return;
|
|
12635
|
+
const reject = rejectDrain;
|
|
12636
|
+
pendingDrain = rejectDrain = null;
|
|
12637
|
+
reject(CANCEL2);
|
|
12638
|
+
};
|
|
12463
12639
|
const closeReadable = () => {
|
|
12464
12640
|
if (readableClosed) return;
|
|
12465
12641
|
readableClosed = true;
|
|
@@ -12484,26 +12660,42 @@ var asWebStream = (fn, options) => {
|
|
|
12484
12660
|
unblockDrain();
|
|
12485
12661
|
},
|
|
12486
12662
|
cancel(reason) {
|
|
12487
|
-
stopped = true;
|
|
12488
12663
|
readableClosed = true;
|
|
12489
|
-
|
|
12664
|
+
cancelProducer();
|
|
12490
12665
|
errorWritable(reason);
|
|
12666
|
+
return releaseStages().then(rethrow);
|
|
12491
12667
|
}
|
|
12492
12668
|
},
|
|
12493
12669
|
readableStrategy
|
|
12494
12670
|
);
|
|
12495
12671
|
const enqueue = (value) => {
|
|
12496
|
-
if (
|
|
12672
|
+
if (cancelled) throw CANCEL2;
|
|
12673
|
+
if (readableClosed) return;
|
|
12497
12674
|
readableController.enqueue(value);
|
|
12498
12675
|
if (readableController.desiredSize <= 0) {
|
|
12499
|
-
return new Promise((resolve) => {
|
|
12676
|
+
return new Promise((resolve, reject) => {
|
|
12500
12677
|
pendingDrain = resolve;
|
|
12678
|
+
rejectDrain = reject;
|
|
12501
12679
|
});
|
|
12502
12680
|
}
|
|
12503
12681
|
};
|
|
12682
|
+
const cancelProducer = () => {
|
|
12683
|
+
stopped = cancelled = true;
|
|
12684
|
+
enqueue[cancelSymbol] = CANCEL2;
|
|
12685
|
+
cancelDrain();
|
|
12686
|
+
};
|
|
12687
|
+
const releaseStages = () => {
|
|
12688
|
+
if (flushed || !canAbort) return Promise.resolve(void 0);
|
|
12689
|
+
releasing ??= abortStages(stages, finished);
|
|
12690
|
+
return releasing;
|
|
12691
|
+
};
|
|
12692
|
+
const rethrow = (failure) => {
|
|
12693
|
+
if (failure !== void 0) throw failure;
|
|
12694
|
+
};
|
|
12504
12695
|
const queue = [];
|
|
12505
12696
|
const pump = async () => {
|
|
12506
12697
|
while (queue.length) {
|
|
12698
|
+
if (cancelled) throw CANCEL2;
|
|
12507
12699
|
const g = queue[queue.length - 1];
|
|
12508
12700
|
let result = g.next();
|
|
12509
12701
|
if (result && typeof result.then == "function") result = await result;
|
|
@@ -12517,6 +12709,17 @@ var asWebStream = (fn, options) => {
|
|
|
12517
12709
|
if (r) await r;
|
|
12518
12710
|
}
|
|
12519
12711
|
};
|
|
12712
|
+
const release = async (error) => {
|
|
12713
|
+
while (queue.length) {
|
|
12714
|
+
const g = queue.pop();
|
|
12715
|
+
try {
|
|
12716
|
+
if (g.return) await g.return();
|
|
12717
|
+
} catch (cleanupErr) {
|
|
12718
|
+
error = withCleanupError(error, cleanupErr);
|
|
12719
|
+
}
|
|
12720
|
+
}
|
|
12721
|
+
throw error;
|
|
12722
|
+
};
|
|
12520
12723
|
const processValue = (value) => {
|
|
12521
12724
|
if (value && typeof value.then == "function") {
|
|
12522
12725
|
return value.then(processValue);
|
|
@@ -12542,16 +12745,20 @@ var asWebStream = (fn, options) => {
|
|
|
12542
12745
|
}
|
|
12543
12746
|
if (value && typeof value.next == "function") {
|
|
12544
12747
|
queue.push(value);
|
|
12545
|
-
return pump();
|
|
12748
|
+
return pump().catch(release);
|
|
12546
12749
|
}
|
|
12547
12750
|
return enqueue(value);
|
|
12548
12751
|
};
|
|
12549
|
-
const
|
|
12550
|
-
|
|
12551
|
-
|
|
12552
|
-
|
|
12752
|
+
const endAfterStop = async (stop2) => {
|
|
12753
|
+
stopped = true;
|
|
12754
|
+
try {
|
|
12755
|
+
await finishStop(stages, stop2, enqueue, finished);
|
|
12756
|
+
} catch (error) {
|
|
12757
|
+
errorReadable(error);
|
|
12758
|
+
throw error;
|
|
12553
12759
|
}
|
|
12554
|
-
|
|
12760
|
+
flushed = true;
|
|
12761
|
+
closeReadable();
|
|
12555
12762
|
};
|
|
12556
12763
|
const writable = new WritableStream(
|
|
12557
12764
|
{
|
|
@@ -12566,10 +12773,7 @@ var asWebStream = (fn, options) => {
|
|
|
12566
12773
|
// Bun, which only loses the abort wakeup.
|
|
12567
12774
|
start(controller) {
|
|
12568
12775
|
writableController = controller;
|
|
12569
|
-
controller.signal?.addEventListener("abort",
|
|
12570
|
-
stopped = true;
|
|
12571
|
-
unblockDrain();
|
|
12572
|
-
});
|
|
12776
|
+
controller.signal?.addEventListener("abort", cancelProducer);
|
|
12573
12777
|
},
|
|
12574
12778
|
async write(chunk) {
|
|
12575
12779
|
if (stopped) return;
|
|
@@ -12582,34 +12786,39 @@ var asWebStream = (fn, options) => {
|
|
|
12582
12786
|
const r = processValue(fn(chunk));
|
|
12583
12787
|
if (r) await r;
|
|
12584
12788
|
} catch (error) {
|
|
12585
|
-
if (
|
|
12789
|
+
if (error === CANCEL2) return;
|
|
12790
|
+
if (error instanceof Stop) return endAfterStop(error);
|
|
12586
12791
|
errorReadable(error);
|
|
12587
|
-
|
|
12792
|
+
const failure = await releaseStages();
|
|
12793
|
+
throw failure === void 0 ? error : withCleanupError(error, failure);
|
|
12588
12794
|
}
|
|
12589
12795
|
},
|
|
12590
12796
|
async close() {
|
|
12591
12797
|
try {
|
|
12592
12798
|
if (!stopped) {
|
|
12593
12799
|
if (innerFns) {
|
|
12594
|
-
const r = flush(innerFns, 0, enqueue);
|
|
12800
|
+
const r = flush(innerFns, 0, enqueue, finished);
|
|
12595
12801
|
if (r) await r;
|
|
12596
12802
|
} else if (isFlushable(fn)) {
|
|
12597
|
-
const r = processValue(fn(none));
|
|
12803
|
+
const r = processValue(noteFinal(fn(none), fn, finished));
|
|
12598
12804
|
if (r) await r;
|
|
12599
12805
|
}
|
|
12806
|
+
flushed = true;
|
|
12600
12807
|
}
|
|
12601
12808
|
} catch (error) {
|
|
12602
|
-
if (
|
|
12809
|
+
if (error instanceof Stop) return endAfterStop(error);
|
|
12810
|
+
if (error !== CANCEL2) {
|
|
12603
12811
|
errorReadable(error);
|
|
12604
|
-
|
|
12812
|
+
const failure = await releaseStages();
|
|
12813
|
+
throw failure === void 0 ? error : withCleanupError(error, failure);
|
|
12605
12814
|
}
|
|
12606
12815
|
}
|
|
12607
12816
|
closeReadable();
|
|
12608
12817
|
},
|
|
12609
12818
|
abort(reason) {
|
|
12610
|
-
|
|
12611
|
-
unblockDrain();
|
|
12819
|
+
cancelProducer();
|
|
12612
12820
|
errorReadable(reason);
|
|
12821
|
+
return releaseStages().then(rethrow);
|
|
12613
12822
|
}
|
|
12614
12823
|
},
|
|
12615
12824
|
writableStrategy
|
|
@@ -12749,7 +12958,13 @@ var chain = (fns, options) => {
|
|
|
12749
12958
|
writable: isWritableNodeStream2(input),
|
|
12750
12959
|
write: writeMethod,
|
|
12751
12960
|
final: finalMethod,
|
|
12752
|
-
read: readMethod
|
|
12961
|
+
read: readMethod,
|
|
12962
|
+
destroy(error, callback) {
|
|
12963
|
+
if (!stream.writableFinished || !stream.readableEnded) {
|
|
12964
|
+
for (const item of streams) item.destroy();
|
|
12965
|
+
}
|
|
12966
|
+
callback(error);
|
|
12967
|
+
}
|
|
12753
12968
|
});
|
|
12754
12969
|
stream.streams = streams;
|
|
12755
12970
|
stream.input = input;
|
|
@@ -12777,6 +12992,7 @@ chain.getManyValues = getManyValues;
|
|
|
12777
12992
|
chain.flushSymbol = flushSymbol;
|
|
12778
12993
|
chain.flushable = flushable;
|
|
12779
12994
|
chain.isFlushable = isFlushable;
|
|
12995
|
+
chain.abortSymbol = abortSymbol;
|
|
12780
12996
|
chain.fListSymbol = fListSymbol;
|
|
12781
12997
|
chain.isFunctionList = isFunctionList;
|
|
12782
12998
|
chain.getFunctionList = getFunctionList;
|
|
@@ -12799,7 +13015,11 @@ var asArray = (...fns) => {
|
|
|
12799
13015
|
if (!fns.length) {
|
|
12800
13016
|
fns = [(x) => x];
|
|
12801
13017
|
}
|
|
12802
|
-
let flushed = false;
|
|
13018
|
+
let flushed = false, stopAt = 0;
|
|
13019
|
+
const noteStop = (error) => {
|
|
13020
|
+
if (error instanceof Stop) stopAt = stopIndex(error, fns);
|
|
13021
|
+
throw error;
|
|
13022
|
+
};
|
|
12803
13023
|
let g = (value) => {
|
|
12804
13024
|
if (flushed) throw Error("Call to a flushed pipe.");
|
|
12805
13025
|
const results = [], push = (v2) => {
|
|
@@ -12807,12 +13027,16 @@ var asArray = (...fns) => {
|
|
|
12807
13027
|
};
|
|
12808
13028
|
let pending;
|
|
12809
13029
|
if (value !== none) {
|
|
12810
|
-
|
|
13030
|
+
try {
|
|
13031
|
+
pending = next(value, fns, 0, push);
|
|
13032
|
+
} catch (error) {
|
|
13033
|
+
noteStop(error);
|
|
13034
|
+
}
|
|
12811
13035
|
} else {
|
|
12812
13036
|
flushed = true;
|
|
12813
|
-
pending = flush(fns,
|
|
13037
|
+
pending = flush(fns, stopAt, push);
|
|
12814
13038
|
}
|
|
12815
|
-
return pending && typeof pending.then == "function" ? pending.then(() => results) : results;
|
|
13039
|
+
return pending && typeof pending.then == "function" ? pending.then(() => results, noteStop) : results;
|
|
12816
13040
|
};
|
|
12817
13041
|
const needToFlush = fns.some((fn) => isFlushable(fn));
|
|
12818
13042
|
if (needToFlush) g = flushable(g);
|
|
@@ -12924,6 +13148,7 @@ chain2.getManyValues = getManyValues;
|
|
|
12924
13148
|
chain2.flushSymbol = flushSymbol;
|
|
12925
13149
|
chain2.flushable = flushable;
|
|
12926
13150
|
chain2.isFlushable = isFlushable;
|
|
13151
|
+
chain2.abortSymbol = abortSymbol;
|
|
12927
13152
|
chain2.fListSymbol = fListSymbol;
|
|
12928
13153
|
chain2.isFunctionList = isFunctionList;
|
|
12929
13154
|
chain2.getFunctionList = getFunctionList;
|
|
@@ -12972,6 +13197,7 @@ chain3.getManyValues = getManyValues;
|
|
|
12972
13197
|
chain3.flushSymbol = flushSymbol;
|
|
12973
13198
|
chain3.flushable = flushable;
|
|
12974
13199
|
chain3.isFlushable = isFlushable;
|
|
13200
|
+
chain3.abortSymbol = abortSymbol;
|
|
12975
13201
|
chain3.fListSymbol = fListSymbol;
|
|
12976
13202
|
chain3.isFunctionList = isFunctionList;
|
|
12977
13203
|
chain3.getFunctionList = getFunctionList;
|
|
@@ -12988,22 +13214,33 @@ chain3.fun = fun_default;
|
|
|
12988
13214
|
chain3.dataSource = dataSource_default;
|
|
12989
13215
|
|
|
12990
13216
|
// node_modules/stream-chain/src/utils/fixUtf8Stream.js
|
|
12991
|
-
var
|
|
12992
|
-
|
|
13217
|
+
var dropBOM = (s) => s.charCodeAt(0) === 65279 ? s.slice(1) : s;
|
|
13218
|
+
var makeTextDecoderImpl = (options) => {
|
|
13219
|
+
const textDecoder = new TextDecoder("utf-8", { ignoreBOM: true });
|
|
13220
|
+
let atStart = !options?.ignoreBOM;
|
|
12993
13221
|
return flushable((chunk) => {
|
|
12994
|
-
|
|
12995
|
-
if (
|
|
12996
|
-
if (chunk
|
|
12997
|
-
|
|
13222
|
+
let s;
|
|
13223
|
+
if (chunk === none) s = textDecoder.decode();
|
|
13224
|
+
else if (typeof chunk == "string") s = chunk;
|
|
13225
|
+
else if (chunk instanceof Uint8Array) s = textDecoder.decode(chunk, { stream: true });
|
|
13226
|
+
else throw new TypeError("Expected a string or a Uint8Array");
|
|
13227
|
+
if (!atStart || !s) return s;
|
|
13228
|
+
atStart = false;
|
|
13229
|
+
return dropBOM(s);
|
|
12998
13230
|
});
|
|
12999
13231
|
};
|
|
13000
|
-
var makeStringDecoderImpl = (StringDecoder) => () => {
|
|
13232
|
+
var makeStringDecoderImpl = (StringDecoder) => (options) => {
|
|
13001
13233
|
const stringDecoder = new StringDecoder();
|
|
13234
|
+
let atStart = !options?.ignoreBOM;
|
|
13002
13235
|
return flushable((chunk) => {
|
|
13003
|
-
|
|
13004
|
-
if (
|
|
13005
|
-
if (chunk
|
|
13006
|
-
|
|
13236
|
+
let s;
|
|
13237
|
+
if (chunk === none) s = stringDecoder.end();
|
|
13238
|
+
else if (typeof chunk == "string") s = chunk;
|
|
13239
|
+
else if (chunk instanceof Uint8Array) s = stringDecoder.write(chunk);
|
|
13240
|
+
else throw new TypeError("Expected a string or a Uint8Array");
|
|
13241
|
+
if (!atStart || !s) return s;
|
|
13242
|
+
atStart = false;
|
|
13243
|
+
return dropBOM(s);
|
|
13007
13244
|
});
|
|
13008
13245
|
};
|
|
13009
13246
|
var impl = makeTextDecoderImpl;
|
|
@@ -13018,7 +13255,7 @@ var readyPromise = isNode ? import("node:string_decoder").then(
|
|
|
13018
13255
|
}
|
|
13019
13256
|
// squelch — stick with TextDecoder
|
|
13020
13257
|
) : Promise.resolve();
|
|
13021
|
-
var fixUtf8Stream = () => impl();
|
|
13258
|
+
var fixUtf8Stream = (options) => impl(options);
|
|
13022
13259
|
var fixUtf8Stream_default = fixUtf8Stream;
|
|
13023
13260
|
|
|
13024
13261
|
// node_modules/stream-json/src/core/parser.js
|
|
@@ -15109,8 +15346,16 @@ var getWindowData = (lines, pcdData, lineReader) => {
|
|
|
15109
15346
|
inRectNum++;
|
|
15110
15347
|
}
|
|
15111
15348
|
let inRectPercentage = inRectNum / checkResultsNum;
|
|
15112
|
-
if (inRectPercentage < 0.8)
|
|
15349
|
+
if (inRectPercentage < 0.8) {
|
|
15350
|
+
pcdData[windowDatas[findDoorDataIndex].index].isFindWindow = false;
|
|
15351
|
+
windowDatas[findDoorDataIndex].isFind = false;
|
|
15113
15352
|
continue;
|
|
15353
|
+
}
|
|
15354
|
+
}
|
|
15355
|
+
if (windowPcd.maxZ < doorAndBeamDataObj.windowBottomSt.z || Math.abs(windowPcd.maxZ - doorAndBeamDataObj.windowBottomSt.z) < 0.3) {
|
|
15356
|
+
pcdData[windowDatas[findDoorDataIndex].index].isFindWindow = false;
|
|
15357
|
+
windowDatas[findDoorDataIndex].isFind = false;
|
|
15358
|
+
continue;
|
|
15114
15359
|
}
|
|
15115
15360
|
line2.windowIdToCheckResults.push([region.index, id]);
|
|
15116
15361
|
if (windowDatas[findDoorDataIndex].findLineIndex.length > 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rm-graphical-computing-node",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.127",
|
|
4
4
|
"description": "墙体/梁线/点云语义计算库(依赖 Python 与 three.js)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
"geojson-minimum-bounding-rectangle": "^2.0.3",
|
|
23
23
|
"rm-gxf-computing-rusts": "^0.0.61",
|
|
24
24
|
"rm-point-cloud-calculation": "^1.0.4",
|
|
25
|
+
"stream-chain": "^4.3.0",
|
|
26
|
+
"stream-json": "^3.7.0",
|
|
25
27
|
"three": "^0.184.0"
|
|
26
28
|
},
|
|
27
29
|
"devDependencies": {
|