@itwin/rpcinterface-full-stack-tests 4.6.0-dev.23 → 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.
- package/lib/dist/_bea9.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +112 -20
- 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_1_6_node_modules_loaders_gl_draco_di-0642a6.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_meshoptimizer_0_20_0_node_modules_meshoptimizer_index_m-a5ae61.bundled-tests.js.map +1 -1
- package/package.json +14 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\
|
|
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":""}
|
|
@@ -38780,6 +38780,7 @@ class PropertyMetaData {
|
|
|
38780
38780
|
*/
|
|
38781
38781
|
class EntityMetaData {
|
|
38782
38782
|
constructor(jsonObj) {
|
|
38783
|
+
this.classId = jsonObj.classId;
|
|
38783
38784
|
this.ecclass = jsonObj.ecclass;
|
|
38784
38785
|
this.description = jsonObj.description;
|
|
38785
38786
|
this.modifier = jsonObj.modifier;
|
|
@@ -50374,26 +50375,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
50374
50375
|
* @extensions
|
|
50375
50376
|
*/
|
|
50376
50377
|
class TextAnnotation {
|
|
50377
|
-
constructor(
|
|
50378
|
-
this.origin = origin;
|
|
50378
|
+
constructor(angles, textBlock, anchor) {
|
|
50379
50379
|
this.orientation = angles;
|
|
50380
50380
|
this.textBlock = textBlock;
|
|
50381
50381
|
this.anchor = anchor;
|
|
50382
50382
|
}
|
|
50383
50383
|
/** Creates a new TextAnnotation. */
|
|
50384
50384
|
static create(args) {
|
|
50385
|
-
const origin = args?.origin ?? new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Point3d();
|
|
50386
50385
|
const angles = args?.orientation ?? new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.YawPitchRollAngles();
|
|
50387
50386
|
const textBlock = args?.textBlock ?? _TextBlock__WEBPACK_IMPORTED_MODULE_1__.TextBlock.createEmpty();
|
|
50388
50387
|
const anchor = args?.anchor ?? { vertical: "top", horizontal: "left" };
|
|
50389
|
-
return new TextAnnotation(
|
|
50388
|
+
return new TextAnnotation(angles, textBlock, anchor);
|
|
50390
50389
|
}
|
|
50391
50390
|
/**
|
|
50392
50391
|
* Creates a new TextAnnotation instance from its JSON representation.
|
|
50393
50392
|
*/
|
|
50394
50393
|
static fromJSON(props) {
|
|
50395
50394
|
return TextAnnotation.create({
|
|
50396
|
-
origin: props?.origin ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Point3d.fromJSON(props.origin) : undefined,
|
|
50397
50395
|
orientation: props?.orientation ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.YawPitchRollAngles.fromJSON(props.orientation) : undefined,
|
|
50398
50396
|
textBlock: props?.textBlock ? _TextBlock__WEBPACK_IMPORTED_MODULE_1__.TextBlock.create(props.textBlock) : undefined,
|
|
50399
50397
|
anchor: props?.anchor ? { ...props.anchor } : undefined,
|
|
@@ -50407,9 +50405,6 @@ class TextAnnotation {
|
|
|
50407
50405
|
// Even if the text block is empty, we want to record its style name and overrides, e.g.,
|
|
50408
50406
|
// so the user can pick up where they left off editing it next time.
|
|
50409
50407
|
props.textBlock = this.textBlock.toJSON();
|
|
50410
|
-
if (!this.origin.isZero) {
|
|
50411
|
-
props.origin = this.origin.toJSON();
|
|
50412
|
-
}
|
|
50413
50408
|
if (!this.orientation.isIdentity()) {
|
|
50414
50409
|
props.orientation = this.orientation.toJSON();
|
|
50415
50410
|
}
|
|
@@ -50422,31 +50417,36 @@ class TextAnnotation {
|
|
|
50422
50417
|
* @internal used by produceTextAnnotationGeometry; requires layoutRange computed by layoutTextBlock.
|
|
50423
50418
|
*/
|
|
50424
50419
|
computeDocumentTransform(layoutRange) {
|
|
50425
|
-
const origin = this.
|
|
50420
|
+
const origin = this.computeAnchorPoint(layoutRange);
|
|
50426
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;
|
|
50427
50428
|
switch (this.anchor.horizontal) {
|
|
50428
50429
|
case "center":
|
|
50429
|
-
|
|
50430
|
+
x += layoutRange.xLength() / 2;
|
|
50430
50431
|
break;
|
|
50431
50432
|
case "right":
|
|
50432
|
-
|
|
50433
|
+
x += layoutRange.xLength();
|
|
50433
50434
|
break;
|
|
50434
50435
|
}
|
|
50435
50436
|
switch (this.anchor.vertical) {
|
|
50436
50437
|
case "middle":
|
|
50437
|
-
|
|
50438
|
+
y -= layoutRange.yLength() / 2;
|
|
50438
50439
|
break;
|
|
50439
50440
|
case "bottom":
|
|
50440
|
-
|
|
50441
|
+
y -= layoutRange.yLength();
|
|
50441
50442
|
break;
|
|
50442
50443
|
}
|
|
50443
|
-
return _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.
|
|
50444
|
+
return new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Point3d(x, y, 0);
|
|
50444
50445
|
}
|
|
50445
50446
|
/** Returns true if this annotation is logically equivalent to `other`. */
|
|
50446
50447
|
equals(other) {
|
|
50447
50448
|
return this.anchor.horizontal === other.anchor.horizontal && this.anchor.vertical === other.anchor.vertical
|
|
50448
|
-
&& this.orientation.isAlmostEqual(other.orientation) && this.
|
|
50449
|
-
&& this.textBlock.equals(other.textBlock);
|
|
50449
|
+
&& this.orientation.isAlmostEqual(other.orientation) && this.textBlock.equals(other.textBlock);
|
|
50450
50450
|
}
|
|
50451
50451
|
}
|
|
50452
50452
|
|
|
@@ -81619,6 +81619,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
81619
81619
|
/* harmony import */ var _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
81620
81620
|
/* harmony import */ var _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @itwin/core-geometry */ "../../core/geometry/lib/esm/core-geometry.js");
|
|
81621
81621
|
/* harmony import */ var _IpcApp__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./IpcApp */ "../../core/frontend/lib/esm/IpcApp.js");
|
|
81622
|
+
/* harmony import */ var _TxnEntityChanges__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TxnEntityChanges */ "../../core/frontend/lib/esm/TxnEntityChanges.js");
|
|
81622
81623
|
/*---------------------------------------------------------------------------------------------
|
|
81623
81624
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
81624
81625
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -81630,6 +81631,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
81630
81631
|
|
|
81631
81632
|
|
|
81632
81633
|
|
|
81634
|
+
|
|
81633
81635
|
/**
|
|
81634
81636
|
* Base class for notification handlers for events from the backend that are specific to a [[BriefcaseConnection]].
|
|
81635
81637
|
* @see [[BriefcaseTxns]].
|
|
@@ -81805,11 +81807,11 @@ class BriefcaseTxns extends BriefcaseNotificationHandler {
|
|
|
81805
81807
|
}
|
|
81806
81808
|
/** @internal */
|
|
81807
81809
|
notifyElementsChanged(changed) {
|
|
81808
|
-
this.onElementsChanged.raiseEvent(changed);
|
|
81810
|
+
this.onElementsChanged.raiseEvent(new _TxnEntityChanges__WEBPACK_IMPORTED_MODULE_4__.EntityChanges(changed));
|
|
81809
81811
|
}
|
|
81810
81812
|
/** @internal */
|
|
81811
81813
|
notifyModelsChanged(changed) {
|
|
81812
|
-
this.onModelsChanged.raiseEvent(changed);
|
|
81814
|
+
this.onModelsChanged.raiseEvent(new _TxnEntityChanges__WEBPACK_IMPORTED_MODULE_4__.EntityChanges(changed));
|
|
81813
81815
|
}
|
|
81814
81816
|
/** @internal */
|
|
81815
81817
|
notifyGeometryGuidsChanged(changes) {
|
|
@@ -94227,6 +94229,96 @@ class Tiles {
|
|
|
94227
94229
|
}
|
|
94228
94230
|
|
|
94229
94231
|
|
|
94232
|
+
/***/ }),
|
|
94233
|
+
|
|
94234
|
+
/***/ "../../core/frontend/lib/esm/TxnEntityChanges.js":
|
|
94235
|
+
/*!*******************************************************!*\
|
|
94236
|
+
!*** ../../core/frontend/lib/esm/TxnEntityChanges.js ***!
|
|
94237
|
+
\*******************************************************/
|
|
94238
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
94239
|
+
|
|
94240
|
+
"use strict";
|
|
94241
|
+
__webpack_require__.r(__webpack_exports__);
|
|
94242
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
94243
|
+
/* harmony export */ "EntityChanges": () => (/* binding */ EntityChanges),
|
|
94244
|
+
/* harmony export */ "Metadata": () => (/* binding */ Metadata)
|
|
94245
|
+
/* harmony export */ });
|
|
94246
|
+
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
94247
|
+
/*---------------------------------------------------------------------------------------------
|
|
94248
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
94249
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
94250
|
+
*--------------------------------------------------------------------------------------------*/
|
|
94251
|
+
/** @packageDocumentation
|
|
94252
|
+
* @module IModelConnection
|
|
94253
|
+
*/
|
|
94254
|
+
|
|
94255
|
+
class Metadata {
|
|
94256
|
+
constructor(name) {
|
|
94257
|
+
this.baseClasses = [];
|
|
94258
|
+
this.classFullName = name;
|
|
94259
|
+
}
|
|
94260
|
+
is(baseName) {
|
|
94261
|
+
return baseName === this.classFullName || this.baseClasses.some((base) => base.is(baseName));
|
|
94262
|
+
}
|
|
94263
|
+
}
|
|
94264
|
+
function* entityChangesIterator(changes, options) {
|
|
94265
|
+
let excludedMetaIndices;
|
|
94266
|
+
if (options?.includeMetadata) {
|
|
94267
|
+
for (let i = 0; i < changes.metadata.length; i++) {
|
|
94268
|
+
if (!options.includeMetadata(changes.metadata[i])) {
|
|
94269
|
+
excludedMetaIndices = excludedMetaIndices ?? new Set();
|
|
94270
|
+
excludedMetaIndices.add(i);
|
|
94271
|
+
}
|
|
94272
|
+
}
|
|
94273
|
+
}
|
|
94274
|
+
function* process(type) {
|
|
94275
|
+
if (options?.includeTypes && !options.includeTypes.includes(type)) {
|
|
94276
|
+
return;
|
|
94277
|
+
}
|
|
94278
|
+
const ids = changes[type];
|
|
94279
|
+
if (undefined === ids) {
|
|
94280
|
+
return;
|
|
94281
|
+
}
|
|
94282
|
+
const metaIndices = changes.args[`${type}Meta`];
|
|
94283
|
+
let index = 0;
|
|
94284
|
+
for (const id of _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.iterable(ids)) {
|
|
94285
|
+
const metaIndex = metaIndices[index++];
|
|
94286
|
+
if (excludedMetaIndices && excludedMetaIndices.has(metaIndex)) {
|
|
94287
|
+
continue;
|
|
94288
|
+
}
|
|
94289
|
+
const metadata = changes.metadata[metaIndex];
|
|
94290
|
+
yield { type, id, metadata };
|
|
94291
|
+
}
|
|
94292
|
+
}
|
|
94293
|
+
yield* process("inserted");
|
|
94294
|
+
yield* process("deleted");
|
|
94295
|
+
yield* process("updated");
|
|
94296
|
+
}
|
|
94297
|
+
class EntityChanges {
|
|
94298
|
+
constructor(args) {
|
|
94299
|
+
this.args = args;
|
|
94300
|
+
this.metadata = args.meta.map((x) => new Metadata(x.name));
|
|
94301
|
+
for (let i = 0; i < this.metadata.length; i++) {
|
|
94302
|
+
const meta = this.metadata[i];
|
|
94303
|
+
for (const baseIndex of args.meta[i].bases) {
|
|
94304
|
+
meta.baseClasses.push(this.metadata[baseIndex]);
|
|
94305
|
+
}
|
|
94306
|
+
}
|
|
94307
|
+
}
|
|
94308
|
+
get inserted() { return this.args.inserted; }
|
|
94309
|
+
get deleted() { return this.args.deleted; }
|
|
94310
|
+
get updated() { return this.args.updated; }
|
|
94311
|
+
[Symbol.iterator]() {
|
|
94312
|
+
return entityChangesIterator(this);
|
|
94313
|
+
}
|
|
94314
|
+
filter(options) {
|
|
94315
|
+
return {
|
|
94316
|
+
[Symbol.iterator]: () => entityChangesIterator(this, options),
|
|
94317
|
+
};
|
|
94318
|
+
}
|
|
94319
|
+
}
|
|
94320
|
+
|
|
94321
|
+
|
|
94230
94322
|
/***/ }),
|
|
94231
94323
|
|
|
94232
94324
|
/***/ "../../core/frontend/lib/esm/UserPreferences.js":
|
|
@@ -289896,7 +289988,7 @@ class TestContext {
|
|
|
289896
289988
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
289897
289989
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
289898
289990
|
await core_frontend_1.NoRenderApp.startup({
|
|
289899
|
-
applicationVersion: "4.6.0-dev.
|
|
289991
|
+
applicationVersion: "4.6.0-dev.25",
|
|
289900
289992
|
applicationId: this.settings.gprid,
|
|
289901
289993
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
289902
289994
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -313933,7 +314025,7 @@ function __disposeResources(env) {
|
|
|
313933
314025
|
/***/ ((module) => {
|
|
313934
314026
|
|
|
313935
314027
|
"use strict";
|
|
313936
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.6.0-dev.
|
|
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"}}');
|
|
313937
314029
|
|
|
313938
314030
|
/***/ }),
|
|
313939
314031
|
|