@itwin/rpcinterface-full-stack-tests 4.7.2 → 4.7.4
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 +36 -6
- 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 +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\
|
|
1
|
+
{"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\8\\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":""}
|
|
@@ -42258,6 +42258,17 @@ class IModel {
|
|
|
42258
42258
|
get iTwinId() { return this._iTwinId; }
|
|
42259
42259
|
/** The Guid that identifies this iModel. */
|
|
42260
42260
|
get iModelId() { return this._iModelId; }
|
|
42261
|
+
/** @public */
|
|
42262
|
+
get changeset() {
|
|
42263
|
+
return { ...this._changeset };
|
|
42264
|
+
}
|
|
42265
|
+
set changeset(changeset) {
|
|
42266
|
+
const prev = this._changeset;
|
|
42267
|
+
if (prev.id !== changeset.id || prev.index !== changeset.index) {
|
|
42268
|
+
this._changeset = { id: changeset.id, index: changeset.index };
|
|
42269
|
+
this.onChangesetChanged.raiseEvent(prev);
|
|
42270
|
+
}
|
|
42271
|
+
}
|
|
42261
42272
|
/** The [[OpenMode]] used for this IModel. */
|
|
42262
42273
|
get openMode() { return this._openMode; }
|
|
42263
42274
|
/** Return a token for RPC operations.
|
|
@@ -42294,15 +42305,15 @@ class IModel {
|
|
|
42294
42305
|
this.onEcefLocationChanged = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
42295
42306
|
/** Event raised after [[geographicCoordinateSystem]] changes. */
|
|
42296
42307
|
this.onGeographicCoordinateSystemChanged = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
42308
|
+
/** Event raised after [[changeset]] changes. */
|
|
42309
|
+
this.onChangesetChanged = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
42297
42310
|
this._openMode = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.OpenMode.Readonly;
|
|
42298
|
-
this.
|
|
42311
|
+
this._changeset = tokenProps?.changeset ?? { id: "", index: 0 };
|
|
42299
42312
|
this._fileKey = "";
|
|
42300
42313
|
if (tokenProps) {
|
|
42301
42314
|
this._fileKey = tokenProps.key;
|
|
42302
42315
|
this._iTwinId = tokenProps.iTwinId;
|
|
42303
42316
|
this._iModelId = tokenProps.iModelId;
|
|
42304
|
-
if (tokenProps.changeset)
|
|
42305
|
-
this.changeset = tokenProps.changeset;
|
|
42306
42317
|
}
|
|
42307
42318
|
}
|
|
42308
42319
|
/** @internal */
|
|
@@ -90889,6 +90900,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
90889
90900
|
class PlanarClipMaskState {
|
|
90890
90901
|
constructor(settings) {
|
|
90891
90902
|
this._allLoaded = false;
|
|
90903
|
+
this._usingViewportOverrides = false;
|
|
90892
90904
|
this.settings = settings;
|
|
90893
90905
|
}
|
|
90894
90906
|
static create(settings) {
|
|
@@ -90897,6 +90909,8 @@ class PlanarClipMaskState {
|
|
|
90897
90909
|
static fromJSON(props) {
|
|
90898
90910
|
return this.create(_itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.PlanarClipMaskSettings.fromJSON(props));
|
|
90899
90911
|
}
|
|
90912
|
+
get usingViewportOverrides() { return this._usingViewportOverrides; }
|
|
90913
|
+
;
|
|
90900
90914
|
discloseTileTrees(trees) {
|
|
90901
90915
|
if (this._tileTreeRefs)
|
|
90902
90916
|
this._tileTreeRefs.forEach((treeRef) => treeRef.discloseTileTrees(trees));
|
|
@@ -90927,6 +90941,7 @@ class PlanarClipMaskState {
|
|
|
90927
90941
|
}
|
|
90928
90942
|
// Returns any potential FeatureSymbology overrides for drawing the planar clip mask.
|
|
90929
90943
|
getPlanarClipMaskSymbologyOverrides(view, context) {
|
|
90944
|
+
this._usingViewportOverrides = false;
|
|
90930
90945
|
// First obtain a list of models that will need to be turned off for drawing the planar clip mask (only used for batched tile trees).
|
|
90931
90946
|
const overrideModels = view.getModelsNotInMask(this.settings.modelIds, _itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.PlanarClipMaskMode.Priority === this.settings.mode);
|
|
90932
90947
|
const noSubCategoryOrElementIds = !this.settings.subCategoryOrElementIds;
|
|
@@ -90939,6 +90954,7 @@ class PlanarClipMaskState {
|
|
|
90939
90954
|
const appOff = _itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.FeatureAppearance.fromTransparency(1.0);
|
|
90940
90955
|
// For Priority or Models mode, we need to start with the current overrides and modify them
|
|
90941
90956
|
if (_itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.PlanarClipMaskMode.Priority === this.settings.mode || _itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.PlanarClipMaskMode.Models === this.settings.mode || noSubCategoryOrElementIds) {
|
|
90957
|
+
this._usingViewportOverrides = true; // Set flag to use listener since context.viewport might change afterwards.
|
|
90942
90958
|
const curOverrides = new _render_FeatureSymbology__WEBPACK_IMPORTED_MODULE_1__.FeatureSymbology.Overrides(context.viewport);
|
|
90943
90959
|
curOverrides.addInvisibleElementOverridesToNeverDrawn(); // need this for fully trans element overrides to not participate in mask
|
|
90944
90960
|
overrideModels.forEach((modelId) => {
|
|
@@ -123254,6 +123270,10 @@ class PlanarClassifier extends _RenderPlanarClassifier__WEBPACK_IMPORTED_MODULE_
|
|
|
123254
123270
|
this._maskBuffer = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.dispose)(this._maskBuffer);
|
|
123255
123271
|
this._classifierCombinedBuffer = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.dispose)(this._classifierCombinedBuffer);
|
|
123256
123272
|
this._classifierAndMaskCombinedBuffer = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.dispose)(this._classifierAndMaskCombinedBuffer);
|
|
123273
|
+
if (this._removeMe) {
|
|
123274
|
+
this._removeMe();
|
|
123275
|
+
this._removeMe = undefined;
|
|
123276
|
+
}
|
|
123257
123277
|
}
|
|
123258
123278
|
get texture() {
|
|
123259
123279
|
switch (this._contentMode) {
|
|
@@ -123324,6 +123344,16 @@ class PlanarClassifier extends _RenderPlanarClassifier__WEBPACK_IMPORTED_MODULE_
|
|
|
123324
123344
|
this._frustum = projection.textureFrustum;
|
|
123325
123345
|
this._debugFrustum = projection.debugFrustum;
|
|
123326
123346
|
this._planarClipMaskOverrides = this._planarClipMask?.getPlanarClipMaskSymbologyOverrides(viewState, context);
|
|
123347
|
+
if (!this._planarClipMask?.usingViewportOverrides && this._removeMe) {
|
|
123348
|
+
this._removeMe();
|
|
123349
|
+
this._removeMe = undefined;
|
|
123350
|
+
}
|
|
123351
|
+
else if (this._planarClipMask?.usingViewportOverrides && !this._removeMe) {
|
|
123352
|
+
this._removeMe = context.viewport.onFeatureOverridesChanged.addListener(() => {
|
|
123353
|
+
this._planarClipMaskOverrides = this._planarClipMask?.getPlanarClipMaskSymbologyOverrides(viewState, context);
|
|
123354
|
+
context.viewport.requestRedraw();
|
|
123355
|
+
});
|
|
123356
|
+
}
|
|
123327
123357
|
const drawTree = (treeRef, graphics) => {
|
|
123328
123358
|
this._graphics = graphics;
|
|
123329
123359
|
const frustumPlanes = this._frustum ? _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.FrustumPlanes.fromFrustum(this._frustum) : _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.FrustumPlanes.createEmpty();
|
|
@@ -290361,7 +290391,7 @@ class TestContext {
|
|
|
290361
290391
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
290362
290392
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
290363
290393
|
await core_frontend_1.NoRenderApp.startup({
|
|
290364
|
-
applicationVersion: "4.7.
|
|
290394
|
+
applicationVersion: "4.7.4",
|
|
290365
290395
|
applicationId: this.settings.gprid,
|
|
290366
290396
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
290367
290397
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -300865,7 +300895,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
300865
300895
|
|
|
300866
300896
|
/** @docs-package-description
|
|
300867
300897
|
* The appui-abstract package contains abstractions for UI controls, such as toolbars, buttons and menus.
|
|
300868
|
-
* For more information, see [
|
|
300898
|
+
* For more information, see [UI]($docs/ui/index.md).
|
|
300869
300899
|
*/
|
|
300870
300900
|
/**
|
|
300871
300901
|
* @docs-group-description Backstage
|
|
@@ -314356,7 +314386,7 @@ function __disposeResources(env) {
|
|
|
314356
314386
|
/***/ ((module) => {
|
|
314357
314387
|
|
|
314358
314388
|
"use strict";
|
|
314359
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.7.
|
|
314389
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.7.4","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.7.4","@itwin/core-bentley":"workspace:^4.7.4","@itwin/core-common":"workspace:^4.7.4","@itwin/core-geometry":"workspace:^4.7.4","@itwin/core-orbitgt":"workspace:^4.7.4","@itwin/core-quantity":"workspace:^4.7.4"},"//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.2","@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.56.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"}}');
|
|
314360
314390
|
|
|
314361
314391
|
/***/ }),
|
|
314362
314392
|
|