@itwin/rpcinterface-full-stack-tests 5.5.0-dev.5 → 5.5.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 +15 -8
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +14 -14
|
@@ -190970,7 +190970,7 @@ class GltfReader {
|
|
|
190970
190970
|
return "BLEND" === material.alphaMode;
|
|
190971
190971
|
}
|
|
190972
190972
|
}
|
|
190973
|
-
createDisplayParams(material, hasBakedLighting) {
|
|
190973
|
+
createDisplayParams(material, hasBakedLighting, isPointPrimitive = false) {
|
|
190974
190974
|
const isTransparent = this.isMaterialTransparent(material);
|
|
190975
190975
|
const textureId = this.extractTextureId(material);
|
|
190976
190976
|
const normalMapId = this.extractNormalMapId(material);
|
|
@@ -190983,7 +190983,14 @@ class GltfReader {
|
|
|
190983
190983
|
// DisplayParams doesn't want a separate texture mapping if the material already has one.
|
|
190984
190984
|
textureMapping = undefined;
|
|
190985
190985
|
}
|
|
190986
|
-
|
|
190986
|
+
let width = 1;
|
|
190987
|
+
if (isPointPrimitive && !(0,_common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.isGltf1Material)(material)) {
|
|
190988
|
+
const pointStyle = material.extensions?.BENTLEY_materials_point_style;
|
|
190989
|
+
if (pointStyle && pointStyle.diameter > 0 && Math.floor(pointStyle.diameter) === pointStyle.diameter) {
|
|
190990
|
+
width = pointStyle.diameter;
|
|
190991
|
+
}
|
|
190992
|
+
}
|
|
190993
|
+
return new _common_internal_render_DisplayParams__WEBPACK_IMPORTED_MODULE_8__.DisplayParams(_common_internal_render_DisplayParams__WEBPACK_IMPORTED_MODULE_8__.DisplayParams.Type.Mesh, color, color, width, _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.LinePixels.Solid, _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FillFlags.None, renderMaterial, undefined, hasBakedLighting, textureMapping);
|
|
190987
190994
|
}
|
|
190988
190995
|
readMeshPrimitives(node, featureTable, thisTransform, thisBias, instances) {
|
|
190989
190996
|
const meshes = [];
|
|
@@ -191038,10 +191045,6 @@ class GltfReader {
|
|
|
191038
191045
|
const material = 0 < materialName.length ? this._materials[materialName] : {};
|
|
191039
191046
|
if (!material)
|
|
191040
191047
|
return undefined;
|
|
191041
|
-
const hasBakedLighting = undefined === primitive.attributes.NORMAL || undefined !== material.extensions?.KHR_materials_unlit;
|
|
191042
|
-
const displayParams = material ? this.createDisplayParams(material, hasBakedLighting) : undefined;
|
|
191043
|
-
if (!displayParams)
|
|
191044
|
-
return undefined;
|
|
191045
191048
|
let primitiveType = -1;
|
|
191046
191049
|
switch (meshMode) {
|
|
191047
191050
|
case _common_gltf_GltfSchema__WEBPACK_IMPORTED_MODULE_12__.GltfMeshMode.Lines:
|
|
@@ -191057,6 +191060,10 @@ class GltfReader {
|
|
|
191057
191060
|
default:
|
|
191058
191061
|
return undefined;
|
|
191059
191062
|
}
|
|
191063
|
+
const hasBakedLighting = undefined === primitive.attributes.NORMAL || undefined !== material.extensions?.KHR_materials_unlit;
|
|
191064
|
+
const displayParams = material ? this.createDisplayParams(material, hasBakedLighting, _common_internal_render_MeshPrimitive__WEBPACK_IMPORTED_MODULE_11__.MeshPrimitiveType.Point === primitiveType) : undefined;
|
|
191065
|
+
if (!displayParams)
|
|
191066
|
+
return undefined;
|
|
191060
191067
|
const isVolumeClassifier = this._isVolumeClassifier;
|
|
191061
191068
|
const meshPrimitive = _common_internal_render_MeshPrimitives__WEBPACK_IMPORTED_MODULE_5__.Mesh.create({
|
|
191062
191069
|
displayParams,
|
|
@@ -337462,7 +337469,7 @@ class TestContext {
|
|
|
337462
337469
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
337463
337470
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
337464
337471
|
await core_frontend_1.NoRenderApp.startup({
|
|
337465
|
-
applicationVersion: "5.5.0-dev.
|
|
337472
|
+
applicationVersion: "5.5.0-dev.7",
|
|
337466
337473
|
applicationId: this.settings.gprid,
|
|
337467
337474
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
|
|
337468
337475
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -362757,7 +362764,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
362757
362764
|
/***/ ((module) => {
|
|
362758
362765
|
|
|
362759
362766
|
"use strict";
|
|
362760
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.5.0-dev.
|
|
362767
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.5.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 && npm run -s copy:draco","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","copy:draco":"cpx \\"./node_modules/@loaders.gl/draco/dist/libs/*\\" ./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/object-storage-core":"^3.0.4","@itwin/eslint-plugin":"5.2.2-dev.2","@types/chai-as-promised":"^7","@types/draco3d":"^1.4.10","@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.5.0","playwright":"~1.56.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/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^4.3.4","@loaders.gl/draco":"^4.3.4","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
|
|
362761
362768
|
|
|
362762
362769
|
/***/ }),
|
|
362763
362770
|
|