@itwin/rpcinterface-full-stack-tests 4.6.0-dev.24 → 4.6.0-dev.25

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":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|E:\\vsts_b\\65\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.1.6\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_b\\26\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.1.6\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
@@ -50375,26 +50375,23 @@ __webpack_require__.r(__webpack_exports__);
50375
50375
  * @extensions
50376
50376
  */
50377
50377
  class TextAnnotation {
50378
- constructor(origin, angles, textBlock, anchor) {
50379
- this.origin = origin;
50378
+ constructor(angles, textBlock, anchor) {
50380
50379
  this.orientation = angles;
50381
50380
  this.textBlock = textBlock;
50382
50381
  this.anchor = anchor;
50383
50382
  }
50384
50383
  /** Creates a new TextAnnotation. */
50385
50384
  static create(args) {
50386
- const origin = args?.origin ?? new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Point3d();
50387
50385
  const angles = args?.orientation ?? new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.YawPitchRollAngles();
50388
50386
  const textBlock = args?.textBlock ?? _TextBlock__WEBPACK_IMPORTED_MODULE_1__.TextBlock.createEmpty();
50389
50387
  const anchor = args?.anchor ?? { vertical: "top", horizontal: "left" };
50390
- return new TextAnnotation(origin, angles, textBlock, anchor);
50388
+ return new TextAnnotation(angles, textBlock, anchor);
50391
50389
  }
50392
50390
  /**
50393
50391
  * Creates a new TextAnnotation instance from its JSON representation.
50394
50392
  */
50395
50393
  static fromJSON(props) {
50396
50394
  return TextAnnotation.create({
50397
- origin: props?.origin ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Point3d.fromJSON(props.origin) : undefined,
50398
50395
  orientation: props?.orientation ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.YawPitchRollAngles.fromJSON(props.orientation) : undefined,
50399
50396
  textBlock: props?.textBlock ? _TextBlock__WEBPACK_IMPORTED_MODULE_1__.TextBlock.create(props.textBlock) : undefined,
50400
50397
  anchor: props?.anchor ? { ...props.anchor } : undefined,
@@ -50408,9 +50405,6 @@ class TextAnnotation {
50408
50405
  // Even if the text block is empty, we want to record its style name and overrides, e.g.,
50409
50406
  // so the user can pick up where they left off editing it next time.
50410
50407
  props.textBlock = this.textBlock.toJSON();
50411
- if (!this.origin.isZero) {
50412
- props.origin = this.origin.toJSON();
50413
- }
50414
50408
  if (!this.orientation.isIdentity()) {
50415
50409
  props.orientation = this.orientation.toJSON();
50416
50410
  }
@@ -50423,31 +50417,36 @@ class TextAnnotation {
50423
50417
  * @internal used by produceTextAnnotationGeometry; requires layoutRange computed by layoutTextBlock.
50424
50418
  */
50425
50419
  computeDocumentTransform(layoutRange) {
50426
- const origin = this.origin.clone();
50420
+ const origin = this.computeAnchorPoint(layoutRange);
50427
50421
  const matrix = this.orientation.toMatrix3d();
50422
+ return _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Transform.createFixedPointAndMatrix(origin, matrix);
50423
+ }
50424
+ /** @internal */
50425
+ computeAnchorPoint(layoutRange) {
50426
+ let x = 0;
50427
+ let y = 0;
50428
50428
  switch (this.anchor.horizontal) {
50429
50429
  case "center":
50430
- origin.x -= layoutRange.xLength() / 2;
50430
+ x += layoutRange.xLength() / 2;
50431
50431
  break;
50432
50432
  case "right":
50433
- origin.x -= layoutRange.xLength();
50433
+ x += layoutRange.xLength();
50434
50434
  break;
50435
50435
  }
50436
50436
  switch (this.anchor.vertical) {
50437
50437
  case "middle":
50438
- origin.y += layoutRange.yLength() / 2;
50438
+ y -= layoutRange.yLength() / 2;
50439
50439
  break;
50440
50440
  case "bottom":
50441
- origin.y += layoutRange.yLength();
50441
+ y -= layoutRange.yLength();
50442
50442
  break;
50443
50443
  }
50444
- return _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Transform.createRefs(origin, matrix);
50444
+ return new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Point3d(x, y, 0);
50445
50445
  }
50446
50446
  /** Returns true if this annotation is logically equivalent to `other`. */
50447
50447
  equals(other) {
50448
50448
  return this.anchor.horizontal === other.anchor.horizontal && this.anchor.vertical === other.anchor.vertical
50449
- && this.orientation.isAlmostEqual(other.orientation) && this.origin.isAlmostEqual(other.origin)
50450
- && this.textBlock.equals(other.textBlock);
50449
+ && this.orientation.isAlmostEqual(other.orientation) && this.textBlock.equals(other.textBlock);
50451
50450
  }
50452
50451
  }
50453
50452
 
@@ -289989,7 +289988,7 @@ class TestContext {
289989
289988
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
289990
289989
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
289991
289990
  await core_frontend_1.NoRenderApp.startup({
289992
- applicationVersion: "4.6.0-dev.24",
289991
+ applicationVersion: "4.6.0-dev.25",
289993
289992
  applicationId: this.settings.gprid,
289994
289993
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
289995
289994
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -314026,7 +314025,7 @@ function __disposeResources(env) {
314026
314025
  /***/ ((module) => {
314027
314026
 
314028
314027
  "use strict";
314029
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.6.0-dev.24","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 && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/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-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -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 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.6.0-dev.24","@itwin/core-bentley":"workspace:^4.6.0-dev.24","@itwin/core-common":"workspace:^4.6.0-dev.24","@itwin/core-geometry":"workspace:^4.6.0-dev.24","@itwin/core-orbitgt":"workspace:^4.6.0-dev.24","@itwin/core-quantity":"workspace:^4.6.0-dev.24"},"//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":"4.0.0-dev.52","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^10.0.6","@types/sinon":"^17.0.2","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7.1.1","cpx2":"^3.0.0","eslint":"^8.44.0","glob":"^10.3.12","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.1","source-map-loader":"^4.0.0","typescript":"~5.3.3","typemoq":"^2.1.0","webpack":"^5.76.0"},"//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/cloud-agnostic-core":"^2.1.0","@itwin/object-storage-core":"^2.2.2","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
314028
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.6.0-dev.25","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 && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/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-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -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 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.6.0-dev.25","@itwin/core-bentley":"workspace:^4.6.0-dev.25","@itwin/core-common":"workspace:^4.6.0-dev.25","@itwin/core-geometry":"workspace:^4.6.0-dev.25","@itwin/core-orbitgt":"workspace:^4.6.0-dev.25","@itwin/core-quantity":"workspace:^4.6.0-dev.25"},"//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":"4.0.0-dev.52","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^10.0.6","@types/sinon":"^17.0.2","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7.1.1","cpx2":"^3.0.0","eslint":"^8.44.0","glob":"^10.3.12","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.1","source-map-loader":"^4.0.0","typescript":"~5.3.3","typemoq":"^2.1.0","webpack":"^5.76.0"},"//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/cloud-agnostic-core":"^2.1.0","@itwin/object-storage-core":"^2.2.2","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
314030
314029
 
314031
314030
  /***/ }),
314032
314031