@itwin/ecschema-rpcinterface-tests 5.2.0-dev.13 → 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.
- package/lib/dist/bundled-tests.js +22 -19
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +16 -16
|
@@ -126143,10 +126143,13 @@ class FrameBuffers {
|
|
|
126143
126143
|
if (undefined === boundColor)
|
|
126144
126144
|
return;
|
|
126145
126145
|
if (undefined === this.stencilSet) {
|
|
126146
|
-
if (undefined === textures.volClassBlend
|
|
126146
|
+
if (undefined === textures.volClassBlend) {
|
|
126147
126147
|
throw new Error("Volume classifier blend texture is not defined.");
|
|
126148
126148
|
}
|
|
126149
126149
|
if (undefined !== depthMS) { // if multisampling use the multisampled depth everywhere
|
|
126150
|
+
if (undefined === textures.volClassBlendMsBuff) {
|
|
126151
|
+
throw new Error("Volume classifier blend multisample buffer is not defined.");
|
|
126152
|
+
}
|
|
126150
126153
|
this.stencilSet = _FrameBuffer__WEBPACK_IMPORTED_MODULE_9__.FrameBuffer.create([], depth, [], [], depthMS);
|
|
126151
126154
|
this.altZOnly = _FrameBuffer__WEBPACK_IMPORTED_MODULE_9__.FrameBuffer.create([], volClassDepth, [], [], volClassDepthMS);
|
|
126152
126155
|
this.volClassCreateBlend = _FrameBuffer__WEBPACK_IMPORTED_MODULE_9__.FrameBuffer.create([textures.volClassBlend], depth, [textures.volClassBlendMsBuff], [_GL__WEBPACK_IMPORTED_MODULE_10__.GL.MultiSampling.Filter.Nearest], depthMS);
|
|
@@ -140939,9 +140942,9 @@ function addPlanarClassifierCommon(builder) {
|
|
|
140939
140942
|
const vert = builder.vert;
|
|
140940
140943
|
vert.addUniform("u_pClassProj", 7 /* VariableType.Mat4 */, (prog) => {
|
|
140941
140944
|
prog.addGraphicUniform("u_pClassProj", (uniform, params) => {
|
|
140942
|
-
const source =
|
|
140945
|
+
const source = params.target.currentPlanarClassifierOrDrape;
|
|
140943
140946
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== source || undefined !== params.target.activeVolumeClassifierTexture);
|
|
140944
|
-
if (undefined !==
|
|
140947
|
+
if (undefined !== source) {
|
|
140945
140948
|
source.projectionMatrix.multiplyMatrixMatrix(_itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Matrix4d.createTransform(params.target.currentTransform, scratchModel), scratchModelProjection);
|
|
140946
140949
|
scratchMatrix.initFromMatrix4d(scratchModelProjection);
|
|
140947
140950
|
}
|
|
@@ -143285,8 +143288,8 @@ function addTexture(builder, animated, isThematic, isPointCloud, isHilite, isMap
|
|
|
143285
143288
|
builder.addFunctionComputedVarying("v_texCoord", 3 /* VariableType.Vec2 */, "computeTexCoord", animated ? getComputeAnimatedTexCoord(quantized) : getComputeTexCoord(quantized));
|
|
143286
143289
|
builder.vert.addUniform("u_qTexCoordParams", 5 /* VariableType.Vec4 */, (prog) => {
|
|
143287
143290
|
prog.addGraphicUniform("u_qTexCoordParams", (uniform, params) => {
|
|
143288
|
-
const surfGeom =
|
|
143289
|
-
if (surfGeom
|
|
143291
|
+
const surfGeom = params.geometry.asSurface;
|
|
143292
|
+
if (surfGeom?.useTexture(params.programParams) || (surfGeom?.useNormalMap(params.programParams) && !isPointCloud)) {
|
|
143290
143293
|
const uvQParams = surfGeom.lut.uvQParams;
|
|
143291
143294
|
if (undefined !== uvQParams) {
|
|
143292
143295
|
uniform.setUniform4fv(uvQParams);
|
|
@@ -143297,11 +143300,11 @@ function addTexture(builder, animated, isThematic, isPointCloud, isHilite, isMap
|
|
|
143297
143300
|
}
|
|
143298
143301
|
builder.frag.addUniform("s_texture", 8 /* VariableType.Sampler2D */, (prog) => {
|
|
143299
143302
|
prog.addGraphicUniform("s_texture", (uniform, params) => {
|
|
143300
|
-
const surfGeom =
|
|
143303
|
+
const surfGeom = params.geometry.asSurface;
|
|
143301
143304
|
if (params.geometry.supportsThematicDisplay && params.target.wantThematicDisplay) { // NB: if thematic display is enabled, bind the thematic texture and ignore any applied surface textures
|
|
143302
143305
|
params.target.uniforms.thematic.bindTexture(uniform, _RenderFlags__WEBPACK_IMPORTED_MODULE_3__.TextureUnit.SurfaceTexture);
|
|
143303
143306
|
}
|
|
143304
|
-
else if (surfGeom
|
|
143307
|
+
else if (surfGeom?.useTexture(params.programParams)) {
|
|
143305
143308
|
const texture = (params.geometry.hasAnimation && params.target.analysisTexture) ? params.target.analysisTexture : surfGeom.texture;
|
|
143306
143309
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== texture);
|
|
143307
143310
|
texture.texture.bindSampler(uniform, _RenderFlags__WEBPACK_IMPORTED_MODULE_3__.TextureUnit.SurfaceTexture);
|
|
@@ -143314,8 +143317,8 @@ function addTexture(builder, animated, isThematic, isPointCloud, isHilite, isMap
|
|
|
143314
143317
|
if (!isHilite && !isPointCloud) {
|
|
143315
143318
|
builder.frag.addUniform("s_normalMap", 8 /* VariableType.Sampler2D */, (prog) => {
|
|
143316
143319
|
prog.addGraphicUniform("s_normalMap", (uniform, params) => {
|
|
143317
|
-
const surfGeom =
|
|
143318
|
-
if (surfGeom
|
|
143320
|
+
const surfGeom = params.geometry.asSurface;
|
|
143321
|
+
if (surfGeom?.useNormalMap(params.programParams)) {
|
|
143319
143322
|
const normalMap = surfGeom.normalMap;
|
|
143320
143323
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== normalMap);
|
|
143321
143324
|
normalMap.texture.bindSampler(uniform, _RenderFlags__WEBPACK_IMPORTED_MODULE_3__.TextureUnit.NormalMap);
|
|
@@ -143329,7 +143332,7 @@ function addTexture(builder, animated, isThematic, isPointCloud, isHilite, isMap
|
|
|
143329
143332
|
if (isMaplayer) {
|
|
143330
143333
|
builder.frag.addUniform("u_texturesPresent", 0 /* VariableType.Boolean */, (program) => {
|
|
143331
143334
|
program.addGraphicUniform("u_texturesPresent", (uniform, params) => {
|
|
143332
|
-
uniform.setUniform1i(
|
|
143335
|
+
uniform.setUniform1i(params.geometry.asSurface?.hasTextures ? 1 : 0);
|
|
143333
143336
|
});
|
|
143334
143337
|
});
|
|
143335
143338
|
const textureUnits = [
|
|
@@ -143345,8 +143348,8 @@ function addTexture(builder, animated, isThematic, isPointCloud, isHilite, isMap
|
|
|
143345
143348
|
builder.frag.addUniform(textureLabel, 8 /* VariableType.Sampler2D */, (prog) => {
|
|
143346
143349
|
prog.addGraphicUniform(textureLabel, (uniform, params) => {
|
|
143347
143350
|
const textureUnit = textureUnits[i];
|
|
143348
|
-
const mesh =
|
|
143349
|
-
const drapeTexture = mesh
|
|
143351
|
+
const mesh = params.geometry.asSurface;
|
|
143352
|
+
const drapeTexture = mesh?.textureParams ? mesh.textureParams.params[i].texture : undefined;
|
|
143350
143353
|
if (drapeTexture !== undefined) {
|
|
143351
143354
|
const texture = drapeTexture;
|
|
143352
143355
|
texture.texture.bindSampler(uniform, textureUnit);
|
|
@@ -143360,8 +143363,8 @@ function addTexture(builder, animated, isThematic, isPointCloud, isHilite, isMap
|
|
|
143360
143363
|
const paramsLabel = `u_texParams${i}`, matrixLabel = `u_texMatrix${i}`;
|
|
143361
143364
|
builder.frag.addUniform(matrixLabel, 7 /* VariableType.Mat4 */, (prog) => {
|
|
143362
143365
|
prog.addGraphicUniform(matrixLabel, (uniform, params) => {
|
|
143363
|
-
const mesh =
|
|
143364
|
-
const textureParam = mesh
|
|
143366
|
+
const mesh = params.geometry.asSurface;
|
|
143367
|
+
const textureParam = mesh?.textureParams?.params[i];
|
|
143365
143368
|
if (undefined !== textureParam) {
|
|
143366
143369
|
const projectionMatrix = textureParam.getProjectionMatrix();
|
|
143367
143370
|
if (projectionMatrix) {
|
|
@@ -143376,8 +143379,8 @@ function addTexture(builder, animated, isThematic, isPointCloud, isHilite, isMap
|
|
|
143376
143379
|
});
|
|
143377
143380
|
builder.frag.addUniform(paramsLabel, 7 /* VariableType.Mat4 */, (prog) => {
|
|
143378
143381
|
prog.addGraphicUniform(paramsLabel, (uniform, params) => {
|
|
143379
|
-
const mesh =
|
|
143380
|
-
const textureParam = mesh
|
|
143382
|
+
const mesh = params.geometry.asSurface;
|
|
143383
|
+
const textureParam = mesh?.textureParams?.params[i];
|
|
143381
143384
|
if (undefined !== textureParam) {
|
|
143382
143385
|
uniform.setMatrix4(textureParam.getParams(scratchMatrix));
|
|
143383
143386
|
}
|
|
@@ -143452,8 +143455,8 @@ function createSurfaceBuilder(flags) {
|
|
|
143452
143455
|
addTexture(builder, flags.isAnimated, flags.isThematic, false, false, true);
|
|
143453
143456
|
builder.frag.addUniform("u_applyGlyphTex", 0 /* VariableType.Boolean */, (prog) => {
|
|
143454
143457
|
prog.addGraphicUniform("u_applyGlyphTex", (uniform, params) => {
|
|
143455
|
-
const surfGeom =
|
|
143456
|
-
uniform.setUniform1i(surfGeom
|
|
143458
|
+
const surfGeom = params.geometry.asSurface;
|
|
143459
|
+
uniform.setUniform1i(surfGeom?.useTexture(params.programParams) && surfGeom.isGlyph ? 1 : 0);
|
|
143457
143460
|
});
|
|
143458
143461
|
});
|
|
143459
143462
|
// Fragment and Vertex
|
|
@@ -318866,7 +318869,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
318866
318869
|
/***/ ((module) => {
|
|
318867
318870
|
|
|
318868
318871
|
"use strict";
|
|
318869
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.2.0-dev.
|
|
318872
|
+
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"}}');
|
|
318870
318873
|
|
|
318871
318874
|
/***/ })
|
|
318872
318875
|
|