@itwin/rpcinterface-full-stack-tests 4.8.0-dev.34 → 4.8.0-dev.36
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 +40 -9
- 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\\18\\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":""}
|
|
@@ -77185,7 +77185,7 @@ class ThreeAxes {
|
|
|
77185
77185
|
*/
|
|
77186
77186
|
class AccuDraw {
|
|
77187
77187
|
constructor() {
|
|
77188
|
-
this.
|
|
77188
|
+
this._currentState = CurrentState.NotEnabled;
|
|
77189
77189
|
this.compassMode = CompassMode.Rectangular; // Compass mode
|
|
77190
77190
|
this.rotationMode = RotationMode.View; // Compass rotation
|
|
77191
77191
|
/** @internal */
|
|
@@ -77271,6 +77271,16 @@ class AccuDraw {
|
|
|
77271
77271
|
this.autoFocusFields = true;
|
|
77272
77272
|
this.autoPointPlacement = false;
|
|
77273
77273
|
}
|
|
77274
|
+
/** Current AccuDraw state */
|
|
77275
|
+
get currentState() { return this._currentState; }
|
|
77276
|
+
set currentState(state) {
|
|
77277
|
+
if (state === this._currentState)
|
|
77278
|
+
return;
|
|
77279
|
+
const wasActive = this.isActive;
|
|
77280
|
+
this._currentState = state;
|
|
77281
|
+
if (wasActive !== this.isActive)
|
|
77282
|
+
this.onCompassDisplayChange(wasActive ? "hide" : "show");
|
|
77283
|
+
}
|
|
77274
77284
|
/** @internal */
|
|
77275
77285
|
onInitialized() { this.enableForSession(); }
|
|
77276
77286
|
/** @internal */
|
|
@@ -78813,6 +78823,8 @@ class AccuDraw {
|
|
|
78813
78823
|
this.saveCoordinate(ItemField.Z_Item, this.delta.z);
|
|
78814
78824
|
}
|
|
78815
78825
|
}
|
|
78826
|
+
/** Called after compass state is changed between the active state and one of the disabled states */
|
|
78827
|
+
onCompassDisplayChange(_state) { }
|
|
78816
78828
|
/** Called after compass mode is changed between polar and rectangular */
|
|
78817
78829
|
onCompassModeChange() { }
|
|
78818
78830
|
/** Called after compass rotation is changed */
|
|
@@ -108621,7 +108633,7 @@ class MaterialAtlasRemapper {
|
|
|
108621
108633
|
alpha: alphaOverridden ? (entry[0] >>> 24) / 255.0 : undefined,
|
|
108622
108634
|
diffuse: {
|
|
108623
108635
|
color: rgbOverridden ? _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ColorDef.fromTbgr(entry[0] & 0xffffff) : undefined,
|
|
108624
|
-
weight: (entry[1] >>> 8) / 255.0,
|
|
108636
|
+
weight: ((entry[1] >>> 8) & 0xff) / 255.0,
|
|
108625
108637
|
},
|
|
108626
108638
|
specular: {
|
|
108627
108639
|
color: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ColorDef.fromTbgr(entry[2]),
|
|
@@ -108665,9 +108677,22 @@ class Node {
|
|
|
108665
108677
|
}
|
|
108666
108678
|
this.indices.push(newIndex);
|
|
108667
108679
|
}
|
|
108668
|
-
buildOutput(maxDimension) {
|
|
108680
|
+
buildOutput(maxDimension, surfaceMaterial) {
|
|
108669
108681
|
const materialAtlas = this.atlas?.buildAtlasTable();
|
|
108670
|
-
|
|
108682
|
+
let material;
|
|
108683
|
+
if (materialAtlas instanceof Uint32Array) {
|
|
108684
|
+
const colorTableOffset = undefined !== this.colors?.colors.length && this.colors?.colors.length > 1 ? this.colors?.colors.length : 0;
|
|
108685
|
+
material = {
|
|
108686
|
+
isAtlas: true,
|
|
108687
|
+
hasTranslucency: (surfaceMaterial?.isAtlas && surfaceMaterial?.hasTranslucency) ?? false,
|
|
108688
|
+
overridesAlpha: (surfaceMaterial?.isAtlas && surfaceMaterial?.overridesAlpha) ?? false,
|
|
108689
|
+
vertexTableOffset: colorTableOffset,
|
|
108690
|
+
numMaterials: materialAtlas.length / 4,
|
|
108691
|
+
};
|
|
108692
|
+
}
|
|
108693
|
+
else {
|
|
108694
|
+
material = materialAtlas;
|
|
108695
|
+
}
|
|
108671
108696
|
return {
|
|
108672
108697
|
indices: this.indices.toVertexIndices(),
|
|
108673
108698
|
vertices: this.vertices.buildVertexTable(maxDimension, this.colors?.buildColorTable(), materialAtlas),
|
|
@@ -108976,7 +109001,7 @@ function splitMeshParams(args) {
|
|
|
108976
109001
|
}, args.computeNodeId);
|
|
108977
109002
|
const edges = args.params.edges ? splitEdges(args.params.edges, nodes, args.maxDimension) : undefined;
|
|
108978
109003
|
for (const [id, node] of nodes) {
|
|
108979
|
-
const { vertices, indices, material } = node.buildOutput(args.maxDimension);
|
|
109004
|
+
const { vertices, indices, material } = node.buildOutput(args.maxDimension, args.params.surface.material);
|
|
108980
109005
|
const params = {
|
|
108981
109006
|
vertices,
|
|
108982
109007
|
surface: {
|
|
@@ -169165,12 +169190,14 @@ class ElementSetTool extends _PrimitiveTool__WEBPACK_IMPORTED_MODULE_9__.Primiti
|
|
|
169165
169190
|
await this.onAgendaModified();
|
|
169166
169191
|
return true;
|
|
169167
169192
|
}
|
|
169168
|
-
/** If the supplied element is
|
|
169193
|
+
/** If the supplied element is part of an assembly, return all member ids. */
|
|
169169
169194
|
async getGroupIds(id) {
|
|
169170
169195
|
const ids = new Set();
|
|
169171
169196
|
ids.add(id);
|
|
169172
169197
|
try {
|
|
169173
|
-
|
|
169198
|
+
// When assembly parent is selected, pick all geometric elements with it as the parent.
|
|
169199
|
+
// When assembly member is selected, pick the parent as well as all the other members.
|
|
169200
|
+
const ecsql = `SELECT ECInstanceId as id, Parent.Id as parentId FROM BisCore.GeometricElement WHERE Parent.Id IN (SELECT Parent.Id as parentId FROM BisCore.GeometricElement WHERE (parent.Id IS NOT NULL AND ECInstanceId IN (${id})) OR parent.Id IN (${id}))`;
|
|
169174
169201
|
for await (const row of this.iModel.createQueryReader(ecsql, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames })) {
|
|
169175
169202
|
ids.add(row.parentId);
|
|
169176
169203
|
ids.add(row.id);
|
|
@@ -291673,7 +291700,7 @@ class TestContext {
|
|
|
291673
291700
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
291674
291701
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
291675
291702
|
await core_frontend_1.NoRenderApp.startup({
|
|
291676
|
-
applicationVersion: "4.8.0-dev.
|
|
291703
|
+
applicationVersion: "4.8.0-dev.36",
|
|
291677
291704
|
applicationId: this.settings.gprid,
|
|
291678
291705
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
291679
291706
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -301317,6 +301344,9 @@ class SelectionManager {
|
|
|
301317
301344
|
return this._currentSelection.getSelection(imodel.key, level);
|
|
301318
301345
|
}
|
|
301319
301346
|
handleEvent(evt) {
|
|
301347
|
+
if (!this._knownIModels.has(evt.imodel.key)) {
|
|
301348
|
+
this._knownIModels.set(evt.imodel.key, evt.imodel);
|
|
301349
|
+
}
|
|
301320
301350
|
switch (evt.changeType) {
|
|
301321
301351
|
case _SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_6__.SelectionChangeType.Add:
|
|
301322
301352
|
this._selectionStorage.addToSelection({
|
|
@@ -301493,6 +301523,7 @@ class SelectionManager {
|
|
|
301493
301523
|
const currentSelectables = this._selectionStorage.getSelection({ iModelKey: args.iModelKey, level: args.level });
|
|
301494
301524
|
return this._currentSelection.computeSelection(args.iModelKey, args.level, currentSelectables, args.selectables).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_9__.mergeMap)(({ level, changedSelection }) => {
|
|
301495
301525
|
const imodel = this._knownIModels.get(args.iModelKey);
|
|
301526
|
+
// istanbul ignore if
|
|
301496
301527
|
if (!imodel) {
|
|
301497
301528
|
return rxjs__WEBPACK_IMPORTED_MODULE_10__.EMPTY;
|
|
301498
301529
|
}
|
|
@@ -315669,7 +315700,7 @@ function __disposeResources(env) {
|
|
|
315669
315700
|
/***/ ((module) => {
|
|
315670
315701
|
|
|
315671
315702
|
"use strict";
|
|
315672
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.8.0-dev.
|
|
315703
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.8.0-dev.36","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.8.0-dev.36","@itwin/core-bentley":"workspace:^4.8.0-dev.36","@itwin/core-common":"workspace:^4.8.0-dev.36","@itwin/core-geometry":"workspace:^4.8.0-dev.36","@itwin/core-orbitgt":"workspace:^4.8.0-dev.36","@itwin/core-quantity":"workspace:^4.8.0-dev.36"},"//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"}}');
|
|
315673
315704
|
|
|
315674
315705
|
/***/ }),
|
|
315675
315706
|
|