@itwin/ecschema-rpcinterface-tests 3.3.0-dev.86 → 3.3.0-dev.89

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.
@@ -1 +1 @@
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":""}
1
+ {"version":3,"file":"_c41d.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_b\\89\\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 || !message.method)
86477
+ if (message.type !== IpcWebSocketMessageType.Invoke)
86477
86478
  return;
86478
- const handler = this._handlers.get(message.channel);
86479
- if (!handler)
86479
+ this._processingQueue.push(message);
86480
+ await this.processMessages();
86481
+ }
86482
+ async processMessages() {
86483
+ if (this._processing || !this._processingQueue.length) {
86480
86484
  return;
86481
- let args = message.data;
86482
- if (typeof (args) === "undefined")
86483
- args = [];
86484
- const response = await handler({}, message.method, ...args);
86485
- IpcWebSocket.transport.send({
86486
- type: IpcWebSocketMessageType.Response,
86487
- channel: message.channel,
86488
- response: message.request,
86489
- data: response,
86490
- sequence: -1,
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
 
@@ -89588,6 +89602,9 @@ class BentleyCloudRpcProtocol extends _WebAppRpcProtocol__WEBPACK_IMPORTED_MODUL
89588
89602
  const components = url.pathname.split("/").filter((x) => x); // filter out empty segments
89589
89603
  const operationComponent = components.slice(-1)[0];
89590
89604
  const encodedRequest = url.searchParams.get("parameters") || "";
89605
+ // The encodedRequest should be base64 - fail now if any other characters detected.
89606
+ if (/[^A-z0-9=+\/]/.test(encodedRequest))
89607
+ throw new _IModelError__WEBPACK_IMPORTED_MODULE_1__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR, `Invalid request: Malformed URL parameters detected.`);
89591
89608
  const firstHyphen = operationComponent.indexOf("-");
89592
89609
  const lastHyphen = operationComponent.lastIndexOf("-");
89593
89610
  const interfaceDefinition = operationComponent.slice(0, firstHyphen);
@@ -89979,11 +89996,13 @@ __webpack_require__.r(__webpack_exports__);
89979
89996
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
89980
89997
  /* harmony export */ "WebAppRpcProtocol": () => (/* binding */ WebAppRpcProtocol)
89981
89998
  /* harmony export */ });
89982
- /* harmony import */ var _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/RpcConstants */ "../../core/common/lib/esm/rpc/core/RpcConstants.js");
89983
- /* harmony import */ var _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/RpcProtocol */ "../../core/common/lib/esm/rpc/core/RpcProtocol.js");
89984
- /* harmony import */ var _OpenAPI__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./OpenAPI */ "../../core/common/lib/esm/rpc/web/OpenAPI.js");
89985
- /* harmony import */ var _WebAppRpcLogging__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./WebAppRpcLogging */ "../../core/common/lib/esm/rpc/web/WebAppRpcLogging.js");
89986
- /* harmony import */ var _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./WebAppRpcRequest */ "../../core/common/lib/esm/rpc/web/WebAppRpcRequest.js");
89999
+ /* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
90000
+ /* harmony import */ var _CommonLoggerCategory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../CommonLoggerCategory */ "../../core/common/lib/esm/CommonLoggerCategory.js");
90001
+ /* harmony import */ var _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/RpcConstants */ "../../core/common/lib/esm/rpc/core/RpcConstants.js");
90002
+ /* harmony import */ var _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/RpcProtocol */ "../../core/common/lib/esm/rpc/core/RpcProtocol.js");
90003
+ /* harmony import */ var _OpenAPI__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./OpenAPI */ "../../core/common/lib/esm/rpc/web/OpenAPI.js");
90004
+ /* harmony import */ var _WebAppRpcLogging__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./WebAppRpcLogging */ "../../core/common/lib/esm/rpc/web/WebAppRpcLogging.js");
90005
+ /* harmony import */ var _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./WebAppRpcRequest */ "../../core/common/lib/esm/rpc/web/WebAppRpcRequest.js");
89987
90006
  /*---------------------------------------------------------------------------------------------
89988
90007
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
89989
90008
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -89996,10 +90015,12 @@ __webpack_require__.r(__webpack_exports__);
89996
90015
 
89997
90016
 
89998
90017
 
90018
+
90019
+
89999
90020
  /** The HTTP application protocol.
90000
90021
  * @internal
90001
90022
  */
90002
- class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.RpcProtocol {
90023
+ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_3__.RpcProtocol {
90003
90024
  /** Constructs an HTTP protocol. */
90004
90025
  constructor(configuration) {
90005
90026
  super(configuration);
@@ -90007,9 +90028,9 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
90007
90028
  /** An optional prefix for RPC operation URI paths. */
90008
90029
  this.pathPrefix = "";
90009
90030
  /** The RPC request class for this protocol. */
90010
- this.requestType = _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_4__.WebAppRpcRequest;
90031
+ this.requestType = _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__.WebAppRpcRequest;
90011
90032
  this.supportsStatusCategory = true;
90012
- this.events.addListener(_WebAppRpcLogging__WEBPACK_IMPORTED_MODULE_3__.WebAppRpcLogging.logProtocolEvent);
90033
+ this.events.addListener(_WebAppRpcLogging__WEBPACK_IMPORTED_MODULE_5__.WebAppRpcLogging.logProtocolEvent);
90013
90034
  }
90014
90035
  /** Convenience handler for an RPC operation get request for an HTTP server. */
90015
90036
  async handleOperationGetRequest(req, res) {
@@ -90017,9 +90038,19 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
90017
90038
  }
90018
90039
  /** Convenience handler for an RPC operation post request for an HTTP server. */
90019
90040
  async handleOperationPostRequest(req, res) {
90020
- const request = await _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_4__.WebAppRpcRequest.parseRequest(this, req);
90041
+ let request;
90042
+ try {
90043
+ request = await _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__.WebAppRpcRequest.parseRequest(this, req);
90044
+ }
90045
+ catch (error) {
90046
+ const message = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorMessage(error);
90047
+ _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logError(_CommonLoggerCategory__WEBPACK_IMPORTED_MODULE_1__.CommonLoggerCategory.RpcInterfaceBackend, `Failed to parse request: ${message}`, _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorMetadata(error));
90048
+ res.status(400);
90049
+ res.send(JSON.stringify({ message, isError: true }));
90050
+ return;
90051
+ }
90021
90052
  const fulfillment = await this.fulfill(request);
90022
- await _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_4__.WebAppRpcRequest.sendResponse(this, request, fulfillment, req, res);
90053
+ await _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__.WebAppRpcRequest.sendResponse(this, request, fulfillment, req, res);
90023
90054
  }
90024
90055
  /** Convenience handler for an OpenAPI description request for an HTTP server. */
90025
90056
  handleOpenApiDescriptionRequest(_req, res) {
@@ -90029,45 +90060,45 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
90029
90060
  /** Converts an HTTP content type value to an RPC content type value. */
90030
90061
  static computeContentType(httpType) {
90031
90062
  if (!httpType)
90032
- return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcContentType.Unknown;
90033
- if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.WEB_RPC_CONSTANTS.ANY_TEXT) === 0) {
90034
- return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcContentType.Text;
90063
+ return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Unknown;
90064
+ if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.WEB_RPC_CONSTANTS.ANY_TEXT) === 0) {
90065
+ return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Text;
90035
90066
  }
90036
- else if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.WEB_RPC_CONSTANTS.BINARY) === 0) {
90037
- return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcContentType.Binary;
90067
+ else if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.WEB_RPC_CONSTANTS.BINARY) === 0) {
90068
+ return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Binary;
90038
90069
  }
90039
- else if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.WEB_RPC_CONSTANTS.MULTIPART) === 0) {
90040
- return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcContentType.Multipart;
90070
+ else if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.WEB_RPC_CONSTANTS.MULTIPART) === 0) {
90071
+ return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Multipart;
90041
90072
  }
90042
90073
  else {
90043
- return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcContentType.Unknown;
90074
+ return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Unknown;
90044
90075
  }
90045
90076
  }
90046
90077
  /** Supplies the status corresponding to a protocol-specific code value. */
90047
90078
  getStatus(code) {
90048
90079
  switch (code) {
90049
- case 404: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.NotFound;
90050
- case 202: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.Pending;
90051
- case 200: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.Resolved;
90052
- case 500: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.Rejected;
90053
- case 204: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.NoContent;
90054
- case 502: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.BadGateway;
90055
- case 503: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.ServiceUnavailable;
90056
- case 504: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.GatewayTimeout;
90057
- default: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.Unknown;
90080
+ case 404: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NotFound;
90081
+ case 202: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Pending;
90082
+ case 200: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Resolved;
90083
+ case 500: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Rejected;
90084
+ case 204: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NoContent;
90085
+ case 502: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.BadGateway;
90086
+ case 503: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.ServiceUnavailable;
90087
+ case 504: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.GatewayTimeout;
90088
+ default: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Unknown;
90058
90089
  }
90059
90090
  }
90060
90091
  /** Supplies the protocol-specific code corresponding to a status value. */
90061
90092
  getCode(status) {
90062
90093
  switch (status) {
90063
- case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.NotFound: return 404;
90064
- case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.Pending: return 202;
90065
- case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.Resolved: return 200;
90066
- case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.Rejected: return 500;
90067
- case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.NoContent: return 204;
90068
- case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.BadGateway: return 502;
90069
- case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.ServiceUnavailable: return 503;
90070
- case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.GatewayTimeout: return 504;
90094
+ case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NotFound: return 404;
90095
+ case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Pending: return 202;
90096
+ case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Resolved: return 200;
90097
+ case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Rejected: return 500;
90098
+ case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NoContent: return 204;
90099
+ case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.BadGateway: return 502;
90100
+ case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.ServiceUnavailable: return 503;
90101
+ case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.GatewayTimeout: return 504;
90071
90102
  default: return 501;
90072
90103
  }
90073
90104
  }
@@ -90078,7 +90109,7 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
90078
90109
  /** An OpenAPI-compatible description of this protocol.
90079
90110
  * @internal
90080
90111
  */
90081
- get openAPIDescription() { return new _OpenAPI__WEBPACK_IMPORTED_MODULE_2__.RpcOpenAPIDescription(this); }
90112
+ get openAPIDescription() { return new _OpenAPI__WEBPACK_IMPORTED_MODULE_4__.RpcOpenAPIDescription(this); }
90082
90113
  }
90083
90114
 
90084
90115
 
@@ -90179,7 +90210,7 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_6__.Rpc
90179
90210
  }
90180
90211
  }
90181
90212
  if (!request.id) {
90182
- throw new _IModelError__WEBPACK_IMPORTED_MODULE_2__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR, `Invalid request.`);
90213
+ throw new _IModelError__WEBPACK_IMPORTED_MODULE_2__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR, `Invalid request: Missing required activity ID.`);
90183
90214
  }
90184
90215
  return request;
90185
90216
  }
@@ -145823,8 +145854,6 @@ class RealityMeshGeometry extends _CachedGeometry__WEBPACK_IMPORTED_MODULE_7__.I
145823
145854
  }
145824
145855
  get techniqueId() { return 7 /* RealityMesh */; }
145825
145856
  getPass(target) {
145826
- if (target.isDrawingShadowMap)
145827
- return "none";
145828
145857
  if (this._baseIsTransparent || (target.wantThematicDisplay && target.uniforms.thematic.wantIsoLines))
145829
145858
  return "translucent";
145830
145859
  return "opaque";
@@ -172247,6 +172276,7 @@ class RealityTileTree extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTree {
172247
172276
  const preloadDebugBuilder = (debugControl && debugControl.displayRealityTilePreload) ? args.context.createSceneGraphicBuilder() : undefined;
172248
172277
  const graphicTypeBranches = new Map();
172249
172278
  const selectedTiles = this.selectRealityTiles(args, displayedTileDescendants, preloadDebugBuilder);
172279
+ args.processSelectedTiles(selectedTiles);
172250
172280
  let sortIndices;
172251
172281
  if (!this.parentsAndChildrenExclusive) {
172252
172282
  sortIndices = selectedTiles.map((_x, i) => i);
@@ -252841,7 +252871,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
252841
252871
  * * 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
252872
  * * For semi-axis length input, x corresponds to an ellipse local axis nominally situated parallel to the xy-plane.
252843
252873
  * * The center of Arc3d input is translated to the centerline start point to act as initial cross section.
252844
- * @param centerline centerline of pipe
252874
+ * @param centerline centerline of pipe. If curved, it will be stroked using the builder's StrokeOptions.
252845
252875
  * @param sectionData circle radius, ellipse semi-axis lengths, or full Arc3d
252846
252876
  * @param numFacetAround how many equal parameter-space chords around each section
252847
252877
  */
@@ -252860,7 +252890,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
252860
252890
  }
252861
252891
  else if (centerline instanceof _curve_GeometryQuery__WEBPACK_IMPORTED_MODULE_32__.GeometryQuery) {
252862
252892
  const linestring = _curve_LineString3d__WEBPACK_IMPORTED_MODULE_11__.LineString3d.create();
252863
- centerline.emitStrokes(linestring);
252893
+ centerline.emitStrokes(linestring, this._options);
252864
252894
  this.addMiteredPipesFromPoints(linestring.packedPoints, sectionData, numFacetAround);
252865
252895
  }
252866
252896
  }
@@ -263904,6 +263934,26 @@ class Sample {
263904
263934
  }
263905
263935
  return result;
263906
263936
  }
263937
+ /** Create various orders of non-rational B-spline curves with helical poles */
263938
+ static createBsplineCurveHelices(radius, height, numTurns, numSamplesPerTurn) {
263939
+ const pts = [];
263940
+ const zDelta = (height / numTurns) / numSamplesPerTurn;
263941
+ const aDelta = 2 * Math.PI / numSamplesPerTurn;
263942
+ for (let iTurn = 0; iTurn < numTurns; ++iTurn) {
263943
+ for (let iSample = 0; iSample < numSamplesPerTurn; iSample++) {
263944
+ pts.push(_geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(radius * Math.cos(iSample * aDelta), radius * Math.sin(iSample * aDelta), pts.length * zDelta));
263945
+ }
263946
+ }
263947
+ const result = [];
263948
+ for (const order of [2, 3, 4, 9, 16, 25]) {
263949
+ if (order > pts.length)
263950
+ continue;
263951
+ const curve = _bspline_BSplineCurve__WEBPACK_IMPORTED_MODULE_9__.BSplineCurve3d.createUniformKnots(pts, order);
263952
+ if (curve !== undefined)
263953
+ result.push(curve);
263954
+ }
263955
+ return result;
263956
+ }
263907
263957
  /** Create weighted bsplines for circular arcs.
263908
263958
  */
263909
263959
  static createBspline3dHArcs() {
@@ -305206,7 +305256,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
305206
305256
  /***/ ((module) => {
305207
305257
 
305208
305258
  "use strict";
305209
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.3.0-dev.86","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.86","@itwin/core-bentley":"workspace:^3.3.0-dev.86","@itwin/core-common":"workspace:^3.3.0-dev.86","@itwin/core-geometry":"workspace:^3.3.0-dev.86","@itwin/core-orbitgt":"workspace:^3.3.0-dev.86","@itwin/core-quantity":"workspace:^3.3.0-dev.86","@itwin/webgl-compatibility":"workspace:^3.3.0-dev.86"},"//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"}}]}}');
305259
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.3.0-dev.89","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.89","@itwin/core-bentley":"workspace:^3.3.0-dev.89","@itwin/core-common":"workspace:^3.3.0-dev.89","@itwin/core-geometry":"workspace:^3.3.0-dev.89","@itwin/core-orbitgt":"workspace:^3.3.0-dev.89","@itwin/core-quantity":"workspace:^3.3.0-dev.89","@itwin/webgl-compatibility":"workspace:^3.3.0-dev.89"},"//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
305260
 
305211
305261
  /***/ })
305212
305262