@itwin/ecschema-rpcinterface-tests 3.3.0-dev.85 → 3.3.0-dev.88
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/lib/dist/_c41d.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +51 -17
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/dist/core_frontend_lib_esm_ApproximateTerrainHeightsProps_js.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_5_node_modules_loaders_gl_draco_di-e0b0bc.bundled-tests.js.map +1 -1
- package/package.json +17 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_c41d.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\
|
|
1
|
+
{"version":3,"file":"_c41d.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\1147\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.2.5\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -86460,6 +86460,7 @@ class IpcWebSocketBackend extends IpcWebSocket {
|
|
|
86460
86460
|
constructor() {
|
|
86461
86461
|
super();
|
|
86462
86462
|
this._handlers = new Map();
|
|
86463
|
+
this._processingQueue = [];
|
|
86463
86464
|
IpcWebSocket.receivers.add(async (e, m) => this.dispatch(e, m));
|
|
86464
86465
|
}
|
|
86465
86466
|
send(channel, ...data) {
|
|
@@ -86473,22 +86474,35 @@ class IpcWebSocketBackend extends IpcWebSocket {
|
|
|
86473
86474
|
};
|
|
86474
86475
|
}
|
|
86475
86476
|
async dispatch(_evt, message) {
|
|
86476
|
-
if (message.type !== IpcWebSocketMessageType.Invoke
|
|
86477
|
+
if (message.type !== IpcWebSocketMessageType.Invoke)
|
|
86477
86478
|
return;
|
|
86478
|
-
|
|
86479
|
-
|
|
86479
|
+
this._processingQueue.push(message);
|
|
86480
|
+
await this.processMessages();
|
|
86481
|
+
}
|
|
86482
|
+
async processMessages() {
|
|
86483
|
+
if (this._processing || !this._processingQueue.length) {
|
|
86480
86484
|
return;
|
|
86481
|
-
|
|
86482
|
-
|
|
86483
|
-
|
|
86484
|
-
|
|
86485
|
-
|
|
86486
|
-
|
|
86487
|
-
|
|
86488
|
-
|
|
86489
|
-
|
|
86490
|
-
|
|
86491
|
-
|
|
86485
|
+
}
|
|
86486
|
+
const message = this._processingQueue.shift();
|
|
86487
|
+
if (message && message.method) {
|
|
86488
|
+
const handler = this._handlers.get(message.channel);
|
|
86489
|
+
if (handler) {
|
|
86490
|
+
this._processing = message;
|
|
86491
|
+
let args = message.data;
|
|
86492
|
+
if (typeof (args) === "undefined")
|
|
86493
|
+
args = [];
|
|
86494
|
+
const response = await handler({}, message.method, ...args);
|
|
86495
|
+
IpcWebSocket.transport.send({
|
|
86496
|
+
type: IpcWebSocketMessageType.Response,
|
|
86497
|
+
channel: message.channel,
|
|
86498
|
+
response: message.request,
|
|
86499
|
+
data: response,
|
|
86500
|
+
sequence: -1,
|
|
86501
|
+
});
|
|
86502
|
+
this._processing = undefined;
|
|
86503
|
+
}
|
|
86504
|
+
}
|
|
86505
|
+
await this.processMessages();
|
|
86492
86506
|
}
|
|
86493
86507
|
}
|
|
86494
86508
|
|
|
@@ -252841,7 +252855,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
252841
252855
|
* * Circular or elliptical pipe cross sections can be specified by supplying either a radius, a pair of semi-axis lengths, or a full Arc3d.
|
|
252842
252856
|
* * For semi-axis length input, x corresponds to an ellipse local axis nominally situated parallel to the xy-plane.
|
|
252843
252857
|
* * The center of Arc3d input is translated to the centerline start point to act as initial cross section.
|
|
252844
|
-
* @param centerline centerline of pipe
|
|
252858
|
+
* @param centerline centerline of pipe. If curved, it will be stroked using the builder's StrokeOptions.
|
|
252845
252859
|
* @param sectionData circle radius, ellipse semi-axis lengths, or full Arc3d
|
|
252846
252860
|
* @param numFacetAround how many equal parameter-space chords around each section
|
|
252847
252861
|
*/
|
|
@@ -252860,7 +252874,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
252860
252874
|
}
|
|
252861
252875
|
else if (centerline instanceof _curve_GeometryQuery__WEBPACK_IMPORTED_MODULE_32__.GeometryQuery) {
|
|
252862
252876
|
const linestring = _curve_LineString3d__WEBPACK_IMPORTED_MODULE_11__.LineString3d.create();
|
|
252863
|
-
centerline.emitStrokes(linestring);
|
|
252877
|
+
centerline.emitStrokes(linestring, this._options);
|
|
252864
252878
|
this.addMiteredPipesFromPoints(linestring.packedPoints, sectionData, numFacetAround);
|
|
252865
252879
|
}
|
|
252866
252880
|
}
|
|
@@ -263904,6 +263918,26 @@ class Sample {
|
|
|
263904
263918
|
}
|
|
263905
263919
|
return result;
|
|
263906
263920
|
}
|
|
263921
|
+
/** Create various orders of non-rational B-spline curves with helical poles */
|
|
263922
|
+
static createBsplineCurveHelices(radius, height, numTurns, numSamplesPerTurn) {
|
|
263923
|
+
const pts = [];
|
|
263924
|
+
const zDelta = (height / numTurns) / numSamplesPerTurn;
|
|
263925
|
+
const aDelta = 2 * Math.PI / numSamplesPerTurn;
|
|
263926
|
+
for (let iTurn = 0; iTurn < numTurns; ++iTurn) {
|
|
263927
|
+
for (let iSample = 0; iSample < numSamplesPerTurn; iSample++) {
|
|
263928
|
+
pts.push(_geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(radius * Math.cos(iSample * aDelta), radius * Math.sin(iSample * aDelta), pts.length * zDelta));
|
|
263929
|
+
}
|
|
263930
|
+
}
|
|
263931
|
+
const result = [];
|
|
263932
|
+
for (const order of [2, 3, 4, 9, 16, 25]) {
|
|
263933
|
+
if (order > pts.length)
|
|
263934
|
+
continue;
|
|
263935
|
+
const curve = _bspline_BSplineCurve__WEBPACK_IMPORTED_MODULE_9__.BSplineCurve3d.createUniformKnots(pts, order);
|
|
263936
|
+
if (curve !== undefined)
|
|
263937
|
+
result.push(curve);
|
|
263938
|
+
}
|
|
263939
|
+
return result;
|
|
263940
|
+
}
|
|
263907
263941
|
/** Create weighted bsplines for circular arcs.
|
|
263908
263942
|
*/
|
|
263909
263943
|
static createBspline3dHArcs() {
|
|
@@ -305206,7 +305240,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
305206
305240
|
/***/ ((module) => {
|
|
305207
305241
|
|
|
305208
305242
|
"use strict";
|
|
305209
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.3.0-dev.
|
|
305243
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.3.0-dev.88","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs","build:ci":"npm run -s build && npm run -s build:esm","build:cjs":"tsc 1>&2 --outDir lib/cjs","build:esm":"tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-eslintrc -c \\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^3.3.0-dev.88","@itwin/core-bentley":"workspace:^3.3.0-dev.88","@itwin/core-common":"workspace:^3.3.0-dev.88","@itwin/core-geometry":"workspace:^3.3.0-dev.88","@itwin/core-orbitgt":"workspace:^3.3.0-dev.88","@itwin/core-quantity":"workspace:^3.3.0-dev.88","@itwin/webgl-compatibility":"workspace:^3.3.0-dev.88"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/lodash":"^4.14.0","@types/mocha":"^8.2.2","@types/node":"16.11.7","@types/qs":"^6.5.0","@types/semver":"^7.3.9","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^7.11.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~4.4.0","webpack":"^5.64.4"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.1","semver":"^7.3.5","superagent":"7.1.3","wms-capabilities":"0.4.0","xml-js":"~1.6.11"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
|
|
305210
305244
|
|
|
305211
305245
|
/***/ })
|
|
305212
305246
|
|