@itwin/ecschema-rpcinterface-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":""}
@@ -44119,26 +44119,23 @@ __webpack_require__.r(__webpack_exports__);
44119
44119
  * @extensions
44120
44120
  */
44121
44121
  class TextAnnotation {
44122
- constructor(origin, angles, textBlock, anchor) {
44123
- this.origin = origin;
44122
+ constructor(angles, textBlock, anchor) {
44124
44123
  this.orientation = angles;
44125
44124
  this.textBlock = textBlock;
44126
44125
  this.anchor = anchor;
44127
44126
  }
44128
44127
  /** Creates a new TextAnnotation. */
44129
44128
  static create(args) {
44130
- const origin = args?.origin ?? new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Point3d();
44131
44129
  const angles = args?.orientation ?? new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.YawPitchRollAngles();
44132
44130
  const textBlock = args?.textBlock ?? _TextBlock__WEBPACK_IMPORTED_MODULE_1__.TextBlock.createEmpty();
44133
44131
  const anchor = args?.anchor ?? { vertical: "top", horizontal: "left" };
44134
- return new TextAnnotation(origin, angles, textBlock, anchor);
44132
+ return new TextAnnotation(angles, textBlock, anchor);
44135
44133
  }
44136
44134
  /**
44137
44135
  * Creates a new TextAnnotation instance from its JSON representation.
44138
44136
  */
44139
44137
  static fromJSON(props) {
44140
44138
  return TextAnnotation.create({
44141
- origin: props?.origin ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Point3d.fromJSON(props.origin) : undefined,
44142
44139
  orientation: props?.orientation ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.YawPitchRollAngles.fromJSON(props.orientation) : undefined,
44143
44140
  textBlock: props?.textBlock ? _TextBlock__WEBPACK_IMPORTED_MODULE_1__.TextBlock.create(props.textBlock) : undefined,
44144
44141
  anchor: props?.anchor ? { ...props.anchor } : undefined,
@@ -44152,9 +44149,6 @@ class TextAnnotation {
44152
44149
  // Even if the text block is empty, we want to record its style name and overrides, e.g.,
44153
44150
  // so the user can pick up where they left off editing it next time.
44154
44151
  props.textBlock = this.textBlock.toJSON();
44155
- if (!this.origin.isZero) {
44156
- props.origin = this.origin.toJSON();
44157
- }
44158
44152
  if (!this.orientation.isIdentity()) {
44159
44153
  props.orientation = this.orientation.toJSON();
44160
44154
  }
@@ -44167,31 +44161,36 @@ class TextAnnotation {
44167
44161
  * @internal used by produceTextAnnotationGeometry; requires layoutRange computed by layoutTextBlock.
44168
44162
  */
44169
44163
  computeDocumentTransform(layoutRange) {
44170
- const origin = this.origin.clone();
44164
+ const origin = this.computeAnchorPoint(layoutRange);
44171
44165
  const matrix = this.orientation.toMatrix3d();
44166
+ return _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Transform.createFixedPointAndMatrix(origin, matrix);
44167
+ }
44168
+ /** @internal */
44169
+ computeAnchorPoint(layoutRange) {
44170
+ let x = 0;
44171
+ let y = 0;
44172
44172
  switch (this.anchor.horizontal) {
44173
44173
  case "center":
44174
- origin.x -= layoutRange.xLength() / 2;
44174
+ x += layoutRange.xLength() / 2;
44175
44175
  break;
44176
44176
  case "right":
44177
- origin.x -= layoutRange.xLength();
44177
+ x += layoutRange.xLength();
44178
44178
  break;
44179
44179
  }
44180
44180
  switch (this.anchor.vertical) {
44181
44181
  case "middle":
44182
- origin.y += layoutRange.yLength() / 2;
44182
+ y -= layoutRange.yLength() / 2;
44183
44183
  break;
44184
44184
  case "bottom":
44185
- origin.y += layoutRange.yLength();
44185
+ y -= layoutRange.yLength();
44186
44186
  break;
44187
44187
  }
44188
- return _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Transform.createRefs(origin, matrix);
44188
+ return new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Point3d(x, y, 0);
44189
44189
  }
44190
44190
  /** Returns true if this annotation is logically equivalent to `other`. */
44191
44191
  equals(other) {
44192
44192
  return this.anchor.horizontal === other.anchor.horizontal && this.anchor.vertical === other.anchor.vertical
44193
- && this.orientation.isAlmostEqual(other.orientation) && this.origin.isAlmostEqual(other.origin)
44194
- && this.textBlock.equals(other.textBlock);
44193
+ && this.orientation.isAlmostEqual(other.orientation) && this.textBlock.equals(other.textBlock);
44195
44194
  }
44196
44195
  }
44197
44196
 
@@ -297148,7 +297147,7 @@ var loadLanguages = instance.loadLanguages;
297148
297147
  /***/ ((module) => {
297149
297148
 
297150
297149
  "use strict";
297151
- 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"}}');
297150
+ 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"}}');
297152
297151
 
297153
297152
  /***/ })
297154
297153