@itwin/rpcinterface-full-stack-tests 5.1.0-dev.5 → 5.1.0-dev.7
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/bundled-tests.js +31 -24
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +14 -14
|
@@ -121277,16 +121277,21 @@ class RenderContext {
|
|
|
121277
121277
|
* @public
|
|
121278
121278
|
*/
|
|
121279
121279
|
class DynamicsContext extends RenderContext {
|
|
121280
|
-
|
|
121280
|
+
_foreground;
|
|
121281
|
+
_overlay;
|
|
121281
121282
|
/** Add a graphic to the list of dynamic graphics to be drawn in this context's [[Viewport]]. */
|
|
121282
121283
|
addGraphic(graphic) {
|
|
121283
|
-
|
|
121284
|
-
|
|
121285
|
-
|
|
121284
|
+
this.add(graphic, false);
|
|
121285
|
+
}
|
|
121286
|
+
/** @internal */
|
|
121287
|
+
add(graphic, isOverlay) {
|
|
121288
|
+
const key = isOverlay ? "_overlay" : "_foreground";
|
|
121289
|
+
const list = this[key] ?? (this[key] = []);
|
|
121290
|
+
list.push(graphic);
|
|
121286
121291
|
}
|
|
121287
121292
|
/** @internal */
|
|
121288
121293
|
changeDynamics() {
|
|
121289
|
-
this.viewport.changeDynamics(this.
|
|
121294
|
+
this.viewport.changeDynamics(this._foreground, this._overlay);
|
|
121290
121295
|
}
|
|
121291
121296
|
/** Create a builder for producing a [[RenderGraphic]] appropriate for rendering within this context's [[Viewport]].
|
|
121292
121297
|
* @param options Options describing how to create the builder.
|
|
@@ -122390,10 +122395,10 @@ class ViewManager {
|
|
|
122390
122395
|
this.inDynamicsMode = false;
|
|
122391
122396
|
const cursorVp = _IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.toolAdmin.cursorView;
|
|
122392
122397
|
if (cursorVp)
|
|
122393
|
-
cursorVp.changeDynamics(undefined);
|
|
122398
|
+
cursorVp.changeDynamics(undefined, undefined);
|
|
122394
122399
|
for (const vp of this._viewports) {
|
|
122395
122400
|
if (vp !== cursorVp)
|
|
122396
|
-
vp.changeDynamics(undefined);
|
|
122401
|
+
vp.changeDynamics(undefined, undefined);
|
|
122397
122402
|
}
|
|
122398
122403
|
}
|
|
122399
122404
|
/** @internal */
|
|
@@ -126691,8 +126696,8 @@ class Viewport {
|
|
|
126691
126696
|
return this.view.is3d() && this.view.isCameraOn;
|
|
126692
126697
|
}
|
|
126693
126698
|
/** @internal */
|
|
126694
|
-
changeDynamics(dynamics) {
|
|
126695
|
-
this.target.changeDynamics(dynamics);
|
|
126699
|
+
changeDynamics(dynamics, overlay) {
|
|
126700
|
+
this.target.changeDynamics(dynamics, overlay);
|
|
126696
126701
|
this.invalidateDecorations();
|
|
126697
126702
|
}
|
|
126698
126703
|
_assigningFlashedId = false;
|
|
@@ -138282,7 +138287,7 @@ var MockRender;
|
|
|
138282
138287
|
get analysisFraction() { return 0; }
|
|
138283
138288
|
set analysisFraction(_fraction) { }
|
|
138284
138289
|
changeScene(_scene) { }
|
|
138285
|
-
changeDynamics(
|
|
138290
|
+
changeDynamics(_foreground, _overlay) { }
|
|
138286
138291
|
changeDecorations(_decs) { }
|
|
138287
138292
|
changeRenderPlan(_plan) { }
|
|
138288
138293
|
drawFrame(_sceneTime) { }
|
|
@@ -150372,9 +150377,8 @@ class RenderCommands {
|
|
|
150372
150377
|
this.addGraphics(gfx.foreground);
|
|
150373
150378
|
this.addBackgroundMapGraphics(gfx.background);
|
|
150374
150379
|
this.addOverlayGraphics(gfx.overlays);
|
|
150375
|
-
|
|
150376
|
-
|
|
150377
|
-
this.addDecorations(dynamics);
|
|
150380
|
+
this.addGraphics(gfx.foregroundDynamics);
|
|
150381
|
+
this.addOverlayGraphics(gfx.overlayDynamics);
|
|
150378
150382
|
const dec = gfx.decorations;
|
|
150379
150383
|
if (undefined !== dec) {
|
|
150380
150384
|
this.addBackground(dec.viewBackground);
|
|
@@ -157332,8 +157336,8 @@ class Target extends _render_RenderTarget__WEBPACK_IMPORTED_MODULE_7__.RenderTar
|
|
|
157332
157336
|
this.changeDrapesOrClassifiers(this._planarClassifiers, planarClassifiers);
|
|
157333
157337
|
this._planarClassifiers = planarClassifiers;
|
|
157334
157338
|
}
|
|
157335
|
-
changeDynamics(
|
|
157336
|
-
this.graphics.
|
|
157339
|
+
changeDynamics(foreground, overlay) {
|
|
157340
|
+
this.graphics.changeDynamics(foreground, overlay);
|
|
157337
157341
|
}
|
|
157338
157342
|
overrideFeatureSymbology(ovr) {
|
|
157339
157343
|
this.uniforms.branch.overrideFeatureSymbology(ovr);
|
|
@@ -158214,26 +158218,29 @@ class TargetGraphics {
|
|
|
158214
158218
|
foreground = [];
|
|
158215
158219
|
background = [];
|
|
158216
158220
|
overlays = [];
|
|
158217
|
-
|
|
158221
|
+
foregroundDynamics = [];
|
|
158222
|
+
overlayDynamics = [];
|
|
158218
158223
|
_decorations;
|
|
158219
158224
|
[Symbol.dispose]() {
|
|
158220
158225
|
this.foreground.length = this.background.length = this.overlays.length = 0;
|
|
158221
|
-
|
|
158226
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.disposeArray)(this.foregroundDynamics);
|
|
158227
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.disposeArray)(this.overlayDynamics);
|
|
158222
158228
|
this._decorations = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.dispose)(this._decorations);
|
|
158223
158229
|
}
|
|
158224
158230
|
get isDisposed() {
|
|
158225
158231
|
return 0 === this.foreground.length && 0 === this.background.length && 0 === this.overlays.length
|
|
158226
|
-
&&
|
|
158232
|
+
&& 0 === this.foregroundDynamics.length && 0 === this.overlayDynamics.length && !this._decorations;
|
|
158227
158233
|
}
|
|
158228
158234
|
changeScene(scene) {
|
|
158229
158235
|
this.foreground = scene.foreground;
|
|
158230
158236
|
this.background = scene.background;
|
|
158231
158237
|
this.overlays = scene.overlay;
|
|
158232
158238
|
}
|
|
158233
|
-
|
|
158234
|
-
|
|
158235
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.disposeArray)(this.
|
|
158236
|
-
this.
|
|
158239
|
+
changeDynamics(foreground, overlay) {
|
|
158240
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.disposeArray)(this.foregroundDynamics);
|
|
158241
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.disposeArray)(this.overlayDynamics);
|
|
158242
|
+
this.foregroundDynamics = foreground ?? [];
|
|
158243
|
+
this.overlayDynamics = overlay ?? [];
|
|
158237
158244
|
}
|
|
158238
158245
|
get decorations() { return this._decorations; }
|
|
158239
158246
|
set decorations(decorations) {
|
|
@@ -329483,7 +329490,7 @@ class TestContext {
|
|
|
329483
329490
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
329484
329491
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
329485
329492
|
await core_frontend_1.NoRenderApp.startup({
|
|
329486
|
-
applicationVersion: "5.1.0-dev.
|
|
329493
|
+
applicationVersion: "5.1.0-dev.7",
|
|
329487
329494
|
applicationId: this.settings.gprid,
|
|
329488
329495
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
|
|
329489
329496
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -354551,7 +354558,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
354551
354558
|
/***/ ((module) => {
|
|
354552
354559
|
|
|
354553
354560
|
"use strict";
|
|
354554
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.1.0-dev.
|
|
354561
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.1.0-dev.7","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 ES2022 --outDir lib/esm","clean":"rimraf -g 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 --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 \\"./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 webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run","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:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*"},"//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/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*","@itwin/eslint-plugin":"5.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^6.0.1","source-map-loader":"^5.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^3.0.6","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"2.2.0","webpack":"^5.97.1"},"//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.2.4","@itwin/object-storage-core":"^2.3.0","@itwin/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
|
|
354555
354562
|
|
|
354556
354563
|
/***/ }),
|
|
354557
354564
|
|