@itwin/ecschema-rpcinterface-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 +35 -8
- 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 +15 -15
|
@@ -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":""}
|
|
@@ -71101,7 +71101,7 @@ class ThreeAxes {
|
|
|
71101
71101
|
*/
|
|
71102
71102
|
class AccuDraw {
|
|
71103
71103
|
constructor() {
|
|
71104
|
-
this.
|
|
71104
|
+
this._currentState = CurrentState.NotEnabled;
|
|
71105
71105
|
this.compassMode = CompassMode.Rectangular; // Compass mode
|
|
71106
71106
|
this.rotationMode = RotationMode.View; // Compass rotation
|
|
71107
71107
|
/** @internal */
|
|
@@ -71187,6 +71187,16 @@ class AccuDraw {
|
|
|
71187
71187
|
this.autoFocusFields = true;
|
|
71188
71188
|
this.autoPointPlacement = false;
|
|
71189
71189
|
}
|
|
71190
|
+
/** Current AccuDraw state */
|
|
71191
|
+
get currentState() { return this._currentState; }
|
|
71192
|
+
set currentState(state) {
|
|
71193
|
+
if (state === this._currentState)
|
|
71194
|
+
return;
|
|
71195
|
+
const wasActive = this.isActive;
|
|
71196
|
+
this._currentState = state;
|
|
71197
|
+
if (wasActive !== this.isActive)
|
|
71198
|
+
this.onCompassDisplayChange(wasActive ? "hide" : "show");
|
|
71199
|
+
}
|
|
71190
71200
|
/** @internal */
|
|
71191
71201
|
onInitialized() { this.enableForSession(); }
|
|
71192
71202
|
/** @internal */
|
|
@@ -72729,6 +72739,8 @@ class AccuDraw {
|
|
|
72729
72739
|
this.saveCoordinate(ItemField.Z_Item, this.delta.z);
|
|
72730
72740
|
}
|
|
72731
72741
|
}
|
|
72742
|
+
/** Called after compass state is changed between the active state and one of the disabled states */
|
|
72743
|
+
onCompassDisplayChange(_state) { }
|
|
72732
72744
|
/** Called after compass mode is changed between polar and rectangular */
|
|
72733
72745
|
onCompassModeChange() { }
|
|
72734
72746
|
/** Called after compass rotation is changed */
|
|
@@ -102537,7 +102549,7 @@ class MaterialAtlasRemapper {
|
|
|
102537
102549
|
alpha: alphaOverridden ? (entry[0] >>> 24) / 255.0 : undefined,
|
|
102538
102550
|
diffuse: {
|
|
102539
102551
|
color: rgbOverridden ? _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ColorDef.fromTbgr(entry[0] & 0xffffff) : undefined,
|
|
102540
|
-
weight: (entry[1] >>> 8) / 255.0,
|
|
102552
|
+
weight: ((entry[1] >>> 8) & 0xff) / 255.0,
|
|
102541
102553
|
},
|
|
102542
102554
|
specular: {
|
|
102543
102555
|
color: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ColorDef.fromTbgr(entry[2]),
|
|
@@ -102581,9 +102593,22 @@ class Node {
|
|
|
102581
102593
|
}
|
|
102582
102594
|
this.indices.push(newIndex);
|
|
102583
102595
|
}
|
|
102584
|
-
buildOutput(maxDimension) {
|
|
102596
|
+
buildOutput(maxDimension, surfaceMaterial) {
|
|
102585
102597
|
const materialAtlas = this.atlas?.buildAtlasTable();
|
|
102586
|
-
|
|
102598
|
+
let material;
|
|
102599
|
+
if (materialAtlas instanceof Uint32Array) {
|
|
102600
|
+
const colorTableOffset = undefined !== this.colors?.colors.length && this.colors?.colors.length > 1 ? this.colors?.colors.length : 0;
|
|
102601
|
+
material = {
|
|
102602
|
+
isAtlas: true,
|
|
102603
|
+
hasTranslucency: (surfaceMaterial?.isAtlas && surfaceMaterial?.hasTranslucency) ?? false,
|
|
102604
|
+
overridesAlpha: (surfaceMaterial?.isAtlas && surfaceMaterial?.overridesAlpha) ?? false,
|
|
102605
|
+
vertexTableOffset: colorTableOffset,
|
|
102606
|
+
numMaterials: materialAtlas.length / 4,
|
|
102607
|
+
};
|
|
102608
|
+
}
|
|
102609
|
+
else {
|
|
102610
|
+
material = materialAtlas;
|
|
102611
|
+
}
|
|
102587
102612
|
return {
|
|
102588
102613
|
indices: this.indices.toVertexIndices(),
|
|
102589
102614
|
vertices: this.vertices.buildVertexTable(maxDimension, this.colors?.buildColorTable(), materialAtlas),
|
|
@@ -102892,7 +102917,7 @@ function splitMeshParams(args) {
|
|
|
102892
102917
|
}, args.computeNodeId);
|
|
102893
102918
|
const edges = args.params.edges ? splitEdges(args.params.edges, nodes, args.maxDimension) : undefined;
|
|
102894
102919
|
for (const [id, node] of nodes) {
|
|
102895
|
-
const { vertices, indices, material } = node.buildOutput(args.maxDimension);
|
|
102920
|
+
const { vertices, indices, material } = node.buildOutput(args.maxDimension, args.params.surface.material);
|
|
102896
102921
|
const params = {
|
|
102897
102922
|
vertices,
|
|
102898
102923
|
surface: {
|
|
@@ -163081,12 +163106,14 @@ class ElementSetTool extends _PrimitiveTool__WEBPACK_IMPORTED_MODULE_9__.Primiti
|
|
|
163081
163106
|
await this.onAgendaModified();
|
|
163082
163107
|
return true;
|
|
163083
163108
|
}
|
|
163084
|
-
/** If the supplied element is
|
|
163109
|
+
/** If the supplied element is part of an assembly, return all member ids. */
|
|
163085
163110
|
async getGroupIds(id) {
|
|
163086
163111
|
const ids = new Set();
|
|
163087
163112
|
ids.add(id);
|
|
163088
163113
|
try {
|
|
163089
|
-
|
|
163114
|
+
// When assembly parent is selected, pick all geometric elements with it as the parent.
|
|
163115
|
+
// When assembly member is selected, pick the parent as well as all the other members.
|
|
163116
|
+
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}))`;
|
|
163090
163117
|
for await (const row of this.iModel.createQueryReader(ecsql, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames })) {
|
|
163091
163118
|
ids.add(row.parentId);
|
|
163092
163119
|
ids.add(row.id);
|
|
@@ -298835,7 +298862,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
298835
298862
|
/***/ ((module) => {
|
|
298836
298863
|
|
|
298837
298864
|
"use strict";
|
|
298838
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.8.0-dev.
|
|
298865
|
+
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"}}');
|
|
298839
298866
|
|
|
298840
298867
|
/***/ })
|
|
298841
298868
|
|