@itwin/rpcinterface-full-stack-tests 5.2.0-dev.14 → 5.2.0-dev.15

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.
@@ -155778,10 +155778,13 @@ class FrameBuffers {
155778
155778
  if (undefined === boundColor)
155779
155779
  return;
155780
155780
  if (undefined === this.stencilSet) {
155781
- if (undefined === textures.volClassBlend || undefined === textures.volClassBlendMsBuff) {
155781
+ if (undefined === textures.volClassBlend) {
155782
155782
  throw new Error("Volume classifier blend texture is not defined.");
155783
155783
  }
155784
155784
  if (undefined !== depthMS) { // if multisampling use the multisampled depth everywhere
155785
+ if (undefined === textures.volClassBlendMsBuff) {
155786
+ throw new Error("Volume classifier blend multisample buffer is not defined.");
155787
+ }
155785
155788
  this.stencilSet = _FrameBuffer__WEBPACK_IMPORTED_MODULE_9__.FrameBuffer.create([], depth, [], [], depthMS);
155786
155789
  this.altZOnly = _FrameBuffer__WEBPACK_IMPORTED_MODULE_9__.FrameBuffer.create([], volClassDepth, [], [], volClassDepthMS);
155787
155790
  this.volClassCreateBlend = _FrameBuffer__WEBPACK_IMPORTED_MODULE_9__.FrameBuffer.create([textures.volClassBlend], depth, [textures.volClassBlendMsBuff], [_GL__WEBPACK_IMPORTED_MODULE_10__.GL.MultiSampling.Filter.Nearest], depthMS);
@@ -170574,9 +170577,9 @@ function addPlanarClassifierCommon(builder) {
170574
170577
  const vert = builder.vert;
170575
170578
  vert.addUniform("u_pClassProj", 7 /* VariableType.Mat4 */, (prog) => {
170576
170579
  prog.addGraphicUniform("u_pClassProj", (uniform, params) => {
170577
- const source = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.expectDefined)(params.target.currentPlanarClassifierOrDrape);
170580
+ const source = params.target.currentPlanarClassifierOrDrape;
170578
170581
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== source || undefined !== params.target.activeVolumeClassifierTexture);
170579
- if (undefined !== params.target.currentPlanarClassifierOrDrape) {
170582
+ if (undefined !== source) {
170580
170583
  source.projectionMatrix.multiplyMatrixMatrix(_itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Matrix4d.createTransform(params.target.currentTransform, scratchModel), scratchModelProjection);
170581
170584
  scratchMatrix.initFromMatrix4d(scratchModelProjection);
170582
170585
  }
@@ -172920,8 +172923,8 @@ function addTexture(builder, animated, isThematic, isPointCloud, isHilite, isMap
172920
172923
  builder.addFunctionComputedVarying("v_texCoord", 3 /* VariableType.Vec2 */, "computeTexCoord", animated ? getComputeAnimatedTexCoord(quantized) : getComputeTexCoord(quantized));
172921
172924
  builder.vert.addUniform("u_qTexCoordParams", 5 /* VariableType.Vec4 */, (prog) => {
172922
172925
  prog.addGraphicUniform("u_qTexCoordParams", (uniform, params) => {
172923
- const surfGeom = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.expectDefined)(params.geometry.asSurface);
172924
- if (surfGeom.useTexture(params.programParams) || (surfGeom.useNormalMap(params.programParams) && !isPointCloud)) {
172926
+ const surfGeom = params.geometry.asSurface;
172927
+ if (surfGeom?.useTexture(params.programParams) || (surfGeom?.useNormalMap(params.programParams) && !isPointCloud)) {
172925
172928
  const uvQParams = surfGeom.lut.uvQParams;
172926
172929
  if (undefined !== uvQParams) {
172927
172930
  uniform.setUniform4fv(uvQParams);
@@ -172932,11 +172935,11 @@ function addTexture(builder, animated, isThematic, isPointCloud, isHilite, isMap
172932
172935
  }
172933
172936
  builder.frag.addUniform("s_texture", 8 /* VariableType.Sampler2D */, (prog) => {
172934
172937
  prog.addGraphicUniform("s_texture", (uniform, params) => {
172935
- const surfGeom = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.expectDefined)(params.geometry.asSurface);
172938
+ const surfGeom = params.geometry.asSurface;
172936
172939
  if (params.geometry.supportsThematicDisplay && params.target.wantThematicDisplay) { // NB: if thematic display is enabled, bind the thematic texture and ignore any applied surface textures
172937
172940
  params.target.uniforms.thematic.bindTexture(uniform, _RenderFlags__WEBPACK_IMPORTED_MODULE_3__.TextureUnit.SurfaceTexture);
172938
172941
  }
172939
- else if (surfGeom.useTexture(params.programParams)) {
172942
+ else if (surfGeom?.useTexture(params.programParams)) {
172940
172943
  const texture = (params.geometry.hasAnimation && params.target.analysisTexture) ? params.target.analysisTexture : surfGeom.texture;
172941
172944
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== texture);
172942
172945
  texture.texture.bindSampler(uniform, _RenderFlags__WEBPACK_IMPORTED_MODULE_3__.TextureUnit.SurfaceTexture);
@@ -172949,8 +172952,8 @@ function addTexture(builder, animated, isThematic, isPointCloud, isHilite, isMap
172949
172952
  if (!isHilite && !isPointCloud) {
172950
172953
  builder.frag.addUniform("s_normalMap", 8 /* VariableType.Sampler2D */, (prog) => {
172951
172954
  prog.addGraphicUniform("s_normalMap", (uniform, params) => {
172952
- const surfGeom = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.expectDefined)(params.geometry.asSurface);
172953
- if (surfGeom.useNormalMap(params.programParams)) {
172955
+ const surfGeom = params.geometry.asSurface;
172956
+ if (surfGeom?.useNormalMap(params.programParams)) {
172954
172957
  const normalMap = surfGeom.normalMap;
172955
172958
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== normalMap);
172956
172959
  normalMap.texture.bindSampler(uniform, _RenderFlags__WEBPACK_IMPORTED_MODULE_3__.TextureUnit.NormalMap);
@@ -172964,7 +172967,7 @@ function addTexture(builder, animated, isThematic, isPointCloud, isHilite, isMap
172964
172967
  if (isMaplayer) {
172965
172968
  builder.frag.addUniform("u_texturesPresent", 0 /* VariableType.Boolean */, (program) => {
172966
172969
  program.addGraphicUniform("u_texturesPresent", (uniform, params) => {
172967
- uniform.setUniform1i((0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.expectDefined)(params.geometry.asSurface).hasTextures ? 1 : 0);
172970
+ uniform.setUniform1i(params.geometry.asSurface?.hasTextures ? 1 : 0);
172968
172971
  });
172969
172972
  });
172970
172973
  const textureUnits = [
@@ -172980,8 +172983,8 @@ function addTexture(builder, animated, isThematic, isPointCloud, isHilite, isMap
172980
172983
  builder.frag.addUniform(textureLabel, 8 /* VariableType.Sampler2D */, (prog) => {
172981
172984
  prog.addGraphicUniform(textureLabel, (uniform, params) => {
172982
172985
  const textureUnit = textureUnits[i];
172983
- const mesh = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.expectDefined)(params.geometry.asSurface);
172984
- const drapeTexture = mesh.textureParams ? mesh.textureParams.params[i].texture : undefined;
172986
+ const mesh = params.geometry.asSurface;
172987
+ const drapeTexture = mesh?.textureParams ? mesh.textureParams.params[i].texture : undefined;
172985
172988
  if (drapeTexture !== undefined) {
172986
172989
  const texture = drapeTexture;
172987
172990
  texture.texture.bindSampler(uniform, textureUnit);
@@ -172995,8 +172998,8 @@ function addTexture(builder, animated, isThematic, isPointCloud, isHilite, isMap
172995
172998
  const paramsLabel = `u_texParams${i}`, matrixLabel = `u_texMatrix${i}`;
172996
172999
  builder.frag.addUniform(matrixLabel, 7 /* VariableType.Mat4 */, (prog) => {
172997
173000
  prog.addGraphicUniform(matrixLabel, (uniform, params) => {
172998
- const mesh = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.expectDefined)(params.geometry.asSurface);
172999
- const textureParam = mesh.textureParams?.params[i];
173001
+ const mesh = params.geometry.asSurface;
173002
+ const textureParam = mesh?.textureParams?.params[i];
173000
173003
  if (undefined !== textureParam) {
173001
173004
  const projectionMatrix = textureParam.getProjectionMatrix();
173002
173005
  if (projectionMatrix) {
@@ -173011,8 +173014,8 @@ function addTexture(builder, animated, isThematic, isPointCloud, isHilite, isMap
173011
173014
  });
173012
173015
  builder.frag.addUniform(paramsLabel, 7 /* VariableType.Mat4 */, (prog) => {
173013
173016
  prog.addGraphicUniform(paramsLabel, (uniform, params) => {
173014
- const mesh = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.expectDefined)(params.geometry.asSurface);
173015
- const textureParam = mesh.textureParams?.params[i];
173017
+ const mesh = params.geometry.asSurface;
173018
+ const textureParam = mesh?.textureParams?.params[i];
173016
173019
  if (undefined !== textureParam) {
173017
173020
  uniform.setMatrix4(textureParam.getParams(scratchMatrix));
173018
173021
  }
@@ -173087,8 +173090,8 @@ function createSurfaceBuilder(flags) {
173087
173090
  addTexture(builder, flags.isAnimated, flags.isThematic, false, false, true);
173088
173091
  builder.frag.addUniform("u_applyGlyphTex", 0 /* VariableType.Boolean */, (prog) => {
173089
173092
  prog.addGraphicUniform("u_applyGlyphTex", (uniform, params) => {
173090
- const surfGeom = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.expectDefined)(params.geometry.asSurface);
173091
- uniform.setUniform1i(surfGeom.useTexture(params.programParams) && surfGeom.isGlyph ? 1 : 0);
173093
+ const surfGeom = params.geometry.asSurface;
173094
+ uniform.setUniform1i(surfGeom?.useTexture(params.programParams) && surfGeom.isGlyph ? 1 : 0);
173092
173095
  });
173093
173096
  });
173094
173097
  // Fragment and Vertex
@@ -335953,7 +335956,7 @@ class TestContext {
335953
335956
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
335954
335957
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
335955
335958
  await core_frontend_1.NoRenderApp.startup({
335956
- applicationVersion: "5.2.0-dev.14",
335959
+ applicationVersion: "5.2.0-dev.15",
335957
335960
  applicationId: this.settings.gprid,
335958
335961
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
335959
335962
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -361042,7 +361045,7 @@ var loadLanguages = instance.loadLanguages;
361042
361045
  /***/ ((module) => {
361043
361046
 
361044
361047
  "use strict";
361045
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.2.0-dev.14","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","lint-deprecation":"eslint --fix -f visualstudio --no-inline-config -c ../../common/config/eslint/eslint.config.deprecation-policy.js \\"./src/**/*.ts\\"","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.2.2-dev.2","@types/chai-as-promised":"^7","@types/sinon":"^17.0.2","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.31.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^6.0.1","sinon":"^17.0.2","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"}}');
361048
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.2.0-dev.15","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","lint-deprecation":"eslint --fix -f visualstudio --no-inline-config -c ../../common/config/eslint/eslint.config.deprecation-policy.js \\"./src/**/*.ts\\"","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.2.2-dev.2","@types/chai-as-promised":"^7","@types/sinon":"^17.0.2","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.31.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^6.0.1","sinon":"^17.0.2","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"}}');
361046
361049
 
361047
361050
  /***/ }),
361048
361051