@itwin/rpcinterface-full-stack-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 +52 -18
- 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 +15 -16
|
@@ -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":""}
|
|
@@ -86797,6 +86797,7 @@ class IpcWebSocketBackend extends IpcWebSocket {
|
|
|
86797
86797
|
constructor() {
|
|
86798
86798
|
super();
|
|
86799
86799
|
this._handlers = new Map();
|
|
86800
|
+
this._processingQueue = [];
|
|
86800
86801
|
IpcWebSocket.receivers.add(async (e, m) => this.dispatch(e, m));
|
|
86801
86802
|
}
|
|
86802
86803
|
send(channel, ...data) {
|
|
@@ -86810,22 +86811,35 @@ class IpcWebSocketBackend extends IpcWebSocket {
|
|
|
86810
86811
|
};
|
|
86811
86812
|
}
|
|
86812
86813
|
async dispatch(_evt, message) {
|
|
86813
|
-
if (message.type !== IpcWebSocketMessageType.Invoke
|
|
86814
|
+
if (message.type !== IpcWebSocketMessageType.Invoke)
|
|
86814
86815
|
return;
|
|
86815
|
-
|
|
86816
|
-
|
|
86816
|
+
this._processingQueue.push(message);
|
|
86817
|
+
await this.processMessages();
|
|
86818
|
+
}
|
|
86819
|
+
async processMessages() {
|
|
86820
|
+
if (this._processing || !this._processingQueue.length) {
|
|
86817
86821
|
return;
|
|
86818
|
-
|
|
86819
|
-
|
|
86820
|
-
|
|
86821
|
-
|
|
86822
|
-
|
|
86823
|
-
|
|
86824
|
-
|
|
86825
|
-
|
|
86826
|
-
|
|
86827
|
-
|
|
86828
|
-
|
|
86822
|
+
}
|
|
86823
|
+
const message = this._processingQueue.shift();
|
|
86824
|
+
if (message && message.method) {
|
|
86825
|
+
const handler = this._handlers.get(message.channel);
|
|
86826
|
+
if (handler) {
|
|
86827
|
+
this._processing = message;
|
|
86828
|
+
let args = message.data;
|
|
86829
|
+
if (typeof (args) === "undefined")
|
|
86830
|
+
args = [];
|
|
86831
|
+
const response = await handler({}, message.method, ...args);
|
|
86832
|
+
IpcWebSocket.transport.send({
|
|
86833
|
+
type: IpcWebSocketMessageType.Response,
|
|
86834
|
+
channel: message.channel,
|
|
86835
|
+
response: message.request,
|
|
86836
|
+
data: response,
|
|
86837
|
+
sequence: -1,
|
|
86838
|
+
});
|
|
86839
|
+
this._processing = undefined;
|
|
86840
|
+
}
|
|
86841
|
+
}
|
|
86842
|
+
await this.processMessages();
|
|
86829
86843
|
}
|
|
86830
86844
|
}
|
|
86831
86845
|
|
|
@@ -243623,7 +243637,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
243623
243637
|
* * Circular or elliptical pipe cross sections can be specified by supplying either a radius, a pair of semi-axis lengths, or a full Arc3d.
|
|
243624
243638
|
* * For semi-axis length input, x corresponds to an ellipse local axis nominally situated parallel to the xy-plane.
|
|
243625
243639
|
* * The center of Arc3d input is translated to the centerline start point to act as initial cross section.
|
|
243626
|
-
* @param centerline centerline of pipe
|
|
243640
|
+
* @param centerline centerline of pipe. If curved, it will be stroked using the builder's StrokeOptions.
|
|
243627
243641
|
* @param sectionData circle radius, ellipse semi-axis lengths, or full Arc3d
|
|
243628
243642
|
* @param numFacetAround how many equal parameter-space chords around each section
|
|
243629
243643
|
*/
|
|
@@ -243642,7 +243656,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
243642
243656
|
}
|
|
243643
243657
|
else if (centerline instanceof _curve_GeometryQuery__WEBPACK_IMPORTED_MODULE_32__.GeometryQuery) {
|
|
243644
243658
|
const linestring = _curve_LineString3d__WEBPACK_IMPORTED_MODULE_11__.LineString3d.create();
|
|
243645
|
-
centerline.emitStrokes(linestring);
|
|
243659
|
+
centerline.emitStrokes(linestring, this._options);
|
|
243646
243660
|
this.addMiteredPipesFromPoints(linestring.packedPoints, sectionData, numFacetAround);
|
|
243647
243661
|
}
|
|
243648
243662
|
}
|
|
@@ -254686,6 +254700,26 @@ class Sample {
|
|
|
254686
254700
|
}
|
|
254687
254701
|
return result;
|
|
254688
254702
|
}
|
|
254703
|
+
/** Create various orders of non-rational B-spline curves with helical poles */
|
|
254704
|
+
static createBsplineCurveHelices(radius, height, numTurns, numSamplesPerTurn) {
|
|
254705
|
+
const pts = [];
|
|
254706
|
+
const zDelta = (height / numTurns) / numSamplesPerTurn;
|
|
254707
|
+
const aDelta = 2 * Math.PI / numSamplesPerTurn;
|
|
254708
|
+
for (let iTurn = 0; iTurn < numTurns; ++iTurn) {
|
|
254709
|
+
for (let iSample = 0; iSample < numSamplesPerTurn; iSample++) {
|
|
254710
|
+
pts.push(_geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(radius * Math.cos(iSample * aDelta), radius * Math.sin(iSample * aDelta), pts.length * zDelta));
|
|
254711
|
+
}
|
|
254712
|
+
}
|
|
254713
|
+
const result = [];
|
|
254714
|
+
for (const order of [2, 3, 4, 9, 16, 25]) {
|
|
254715
|
+
if (order > pts.length)
|
|
254716
|
+
continue;
|
|
254717
|
+
const curve = _bspline_BSplineCurve__WEBPACK_IMPORTED_MODULE_9__.BSplineCurve3d.createUniformKnots(pts, order);
|
|
254718
|
+
if (curve !== undefined)
|
|
254719
|
+
result.push(curve);
|
|
254720
|
+
}
|
|
254721
|
+
return result;
|
|
254722
|
+
}
|
|
254689
254723
|
/** Create weighted bsplines for circular arcs.
|
|
254690
254724
|
*/
|
|
254691
254725
|
static createBspline3dHArcs() {
|
|
@@ -287059,7 +287093,7 @@ class TestContext {
|
|
|
287059
287093
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
287060
287094
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
|
|
287061
287095
|
await core_frontend_1.NoRenderApp.startup({
|
|
287062
|
-
applicationVersion: "3.3.0-dev.
|
|
287096
|
+
applicationVersion: "3.3.0-dev.88",
|
|
287063
287097
|
applicationId: this.settings.gprid,
|
|
287064
287098
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
287065
287099
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -305516,7 +305550,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
305516
305550
|
/***/ ((module) => {
|
|
305517
305551
|
|
|
305518
305552
|
"use strict";
|
|
305519
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.3.0-dev.
|
|
305553
|
+
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"}}]}}');
|
|
305520
305554
|
|
|
305521
305555
|
/***/ }),
|
|
305522
305556
|
|