@itwin/ecschema-rpcinterface-tests 4.4.0-dev.26 → 4.4.0-dev.28
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 +64 -10
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +16 -16
|
@@ -67512,6 +67512,18 @@ class RelationshipClass extends Class_1.ECClass {
|
|
|
67512
67512
|
setStrengthDirection(direction) {
|
|
67513
67513
|
this._strengthDirection = direction;
|
|
67514
67514
|
}
|
|
67515
|
+
/**
|
|
67516
|
+
* @alpha Used for schema editing.
|
|
67517
|
+
*/
|
|
67518
|
+
setSourceConstraint(source) {
|
|
67519
|
+
this._source = source;
|
|
67520
|
+
}
|
|
67521
|
+
/**
|
|
67522
|
+
* @alpha Used for schema editing.
|
|
67523
|
+
*/
|
|
67524
|
+
setTargetConstraint(target) {
|
|
67525
|
+
this._target = target;
|
|
67526
|
+
}
|
|
67515
67527
|
/**
|
|
67516
67528
|
* Save this RelationshipClass's properties to an object for serializing to JSON.
|
|
67517
67529
|
* @param standalone Serialization includes only this object (as opposed to the full schema).
|
|
@@ -67565,12 +67577,24 @@ class RelationshipConstraint {
|
|
|
67565
67577
|
this._relationshipClass = relClass;
|
|
67566
67578
|
this._roleLabel = roleLabel;
|
|
67567
67579
|
}
|
|
67568
|
-
get multiplicity() { return this._multiplicity; }
|
|
67569
|
-
|
|
67580
|
+
get multiplicity() { return this._multiplicity ?? RelationshipMultiplicity.zeroOne; }
|
|
67581
|
+
set multiplicity(multiplicity) {
|
|
67582
|
+
this._multiplicity = multiplicity;
|
|
67583
|
+
}
|
|
67584
|
+
get polymorphic() { return this._polymorphic ?? false; }
|
|
67585
|
+
set polymorphic(polymorphic) {
|
|
67586
|
+
this._polymorphic = polymorphic;
|
|
67587
|
+
}
|
|
67570
67588
|
get roleLabel() { return this._roleLabel; }
|
|
67589
|
+
set roleLabel(roleLabel) {
|
|
67590
|
+
this._roleLabel = roleLabel;
|
|
67591
|
+
}
|
|
67571
67592
|
get constraintClasses() { return this._constraintClasses; }
|
|
67572
67593
|
get relationshipClass() { return this._relationshipClass; }
|
|
67573
67594
|
get relationshipEnd() { return this._relationshipEnd; }
|
|
67595
|
+
set relationshipEnd(relationshipEnd) {
|
|
67596
|
+
this._relationshipEnd = relationshipEnd;
|
|
67597
|
+
}
|
|
67574
67598
|
get customAttributes() { return this._customAttributes; }
|
|
67575
67599
|
/** Returns the constraint name, ie. 'RelationshipName.Source/Target' */
|
|
67576
67600
|
get fullName() { return `${this._relationshipClass.name}:${this.isSource ? "Source" : "Target"}`; }
|
|
@@ -67602,6 +67626,19 @@ class RelationshipConstraint {
|
|
|
67602
67626
|
// TODO: Handle relationship constraints
|
|
67603
67627
|
this._constraintClasses.push(new DelayedPromise_1.DelayedPromiseWithProps(constraint.key, async () => constraint));
|
|
67604
67628
|
}
|
|
67629
|
+
/**
|
|
67630
|
+
* Removes the provided class as a constraint class from this constraint.
|
|
67631
|
+
* @param constraint The class to add as a constraint class.
|
|
67632
|
+
*/
|
|
67633
|
+
removeClass(constraint) {
|
|
67634
|
+
if (undefined === this._constraintClasses)
|
|
67635
|
+
return;
|
|
67636
|
+
this._constraintClasses.forEach((item, index) => {
|
|
67637
|
+
const constraintName = item.fullName;
|
|
67638
|
+
if (constraintName === constraint.fullName)
|
|
67639
|
+
this._constraintClasses?.splice(index, 1);
|
|
67640
|
+
});
|
|
67641
|
+
}
|
|
67605
67642
|
/**
|
|
67606
67643
|
* Save this RelationshipConstraint's properties to an object for serializing to JSON.
|
|
67607
67644
|
*/
|
|
@@ -77202,6 +77239,16 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
|
|
|
77202
77239
|
func(model);
|
|
77203
77240
|
}
|
|
77204
77241
|
}
|
|
77242
|
+
*getRealityModels() {
|
|
77243
|
+
for (const model of this.settings.contextRealityModels.models) {
|
|
77244
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(model instanceof _ContextRealityModelState__WEBPACK_IMPORTED_MODULE_5__.ContextRealityModelState);
|
|
77245
|
+
yield model;
|
|
77246
|
+
}
|
|
77247
|
+
}
|
|
77248
|
+
/** Iterate over the reality models attached to this display style. */
|
|
77249
|
+
get realityModels() {
|
|
77250
|
+
return this.getRealityModels();
|
|
77251
|
+
}
|
|
77205
77252
|
/** @internal */
|
|
77206
77253
|
forEachRealityTileTreeRef(func) {
|
|
77207
77254
|
this.forEachRealityModel((model) => func(model.treeRef));
|
|
@@ -138189,9 +138236,9 @@ class BatchedTileIdMap {
|
|
|
138189
138236
|
}
|
|
138190
138237
|
return entry.id;
|
|
138191
138238
|
}
|
|
138192
|
-
|
|
138193
|
-
|
|
138194
|
-
return
|
|
138239
|
+
getFeatureProperties(id) {
|
|
138240
|
+
const props = this._idMap?.get(id);
|
|
138241
|
+
return typeof props === "object" ? props : undefined;
|
|
138195
138242
|
}
|
|
138196
138243
|
}
|
|
138197
138244
|
|
|
@@ -144622,10 +144669,9 @@ class RealityTreeReference extends RealityModelTileTree.Reference {
|
|
|
144622
144669
|
}
|
|
144623
144670
|
async getToolTip(hit) {
|
|
144624
144671
|
const tree = this.treeOwner.tileTree;
|
|
144625
|
-
if (
|
|
144672
|
+
if (!(tree instanceof _internal__WEBPACK_IMPORTED_MODULE_8__.RealityTileTree) || hit.iModel !== tree.iModel)
|
|
144626
144673
|
return undefined;
|
|
144627
|
-
const
|
|
144628
|
-
const batch = undefined !== map ? map.getBatchProperties(hit.sourceId) : undefined;
|
|
144674
|
+
const batch = tree.batchTableProperties?.getFeatureProperties(hit.sourceId);
|
|
144629
144675
|
if (undefined === batch && tree.modelId !== hit.sourceId)
|
|
144630
144676
|
return undefined;
|
|
144631
144677
|
const strings = [];
|
|
@@ -145627,6 +145673,12 @@ class RealityTileTree extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTree {
|
|
|
145627
145673
|
}
|
|
145628
145674
|
}
|
|
145629
145675
|
}
|
|
145676
|
+
/** The mapping of per-feature JSON properties from this tile tree's batch table, if one is defined.
|
|
145677
|
+
* @beta
|
|
145678
|
+
*/
|
|
145679
|
+
get batchTableProperties() {
|
|
145680
|
+
return this.loader.getBatchIdMap();
|
|
145681
|
+
}
|
|
145630
145682
|
/** @internal */
|
|
145631
145683
|
get rootTile() { return this._rootTile; }
|
|
145632
145684
|
/** @internal */
|
|
@@ -281602,7 +281654,9 @@ class Parser {
|
|
|
281602
281654
|
}
|
|
281603
281655
|
processingNumber = true;
|
|
281604
281656
|
}
|
|
281605
|
-
|
|
281657
|
+
// Decimal separators must be replaced with '.' before converting to a number - parseFloat() only supports '.' as the decimal separator.
|
|
281658
|
+
const charToAdd = charCode === format.decimalSeparator.charCodeAt(0) ? "." : str[i];
|
|
281659
|
+
wipToken = wipToken.concat(charToAdd);
|
|
281606
281660
|
}
|
|
281607
281661
|
else {
|
|
281608
281662
|
if (processingNumber) {
|
|
@@ -292453,7 +292507,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
292453
292507
|
/***/ ((module) => {
|
|
292454
292508
|
|
|
292455
292509
|
"use strict";
|
|
292456
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.4.0-dev.
|
|
292510
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.4.0-dev.28","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 -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.4.0-dev.28","@itwin/core-bentley":"workspace:^4.4.0-dev.28","@itwin/core-common":"workspace:^4.4.0-dev.28","@itwin/core-geometry":"workspace:^4.4.0-dev.28","@itwin/core-orbitgt":"workspace:^4.4.0-dev.28","@itwin/core-quantity":"workspace:^4.4.0-dev.28"},"//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.0-dev.44","@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.44.0","glob":"^7.1.2","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.1","source-map-loader":"^4.0.0","typescript":"~5.0.2","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","wms-capabilities":"0.4.0"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
|
|
292457
292511
|
|
|
292458
292512
|
/***/ })
|
|
292459
292513
|
|