@itwin/ecschema-rpcinterface-tests 4.6.0-dev.23 → 4.6.0-dev.25
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 +111 -19
- 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 +16 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\
|
|
1
|
+
{"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_b\\26\\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":""}
|
|
@@ -32524,6 +32524,7 @@ class PropertyMetaData {
|
|
|
32524
32524
|
*/
|
|
32525
32525
|
class EntityMetaData {
|
|
32526
32526
|
constructor(jsonObj) {
|
|
32527
|
+
this.classId = jsonObj.classId;
|
|
32527
32528
|
this.ecclass = jsonObj.ecclass;
|
|
32528
32529
|
this.description = jsonObj.description;
|
|
32529
32530
|
this.modifier = jsonObj.modifier;
|
|
@@ -44118,26 +44119,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
44118
44119
|
* @extensions
|
|
44119
44120
|
*/
|
|
44120
44121
|
class TextAnnotation {
|
|
44121
|
-
constructor(
|
|
44122
|
-
this.origin = origin;
|
|
44122
|
+
constructor(angles, textBlock, anchor) {
|
|
44123
44123
|
this.orientation = angles;
|
|
44124
44124
|
this.textBlock = textBlock;
|
|
44125
44125
|
this.anchor = anchor;
|
|
44126
44126
|
}
|
|
44127
44127
|
/** Creates a new TextAnnotation. */
|
|
44128
44128
|
static create(args) {
|
|
44129
|
-
const origin = args?.origin ?? new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Point3d();
|
|
44130
44129
|
const angles = args?.orientation ?? new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.YawPitchRollAngles();
|
|
44131
44130
|
const textBlock = args?.textBlock ?? _TextBlock__WEBPACK_IMPORTED_MODULE_1__.TextBlock.createEmpty();
|
|
44132
44131
|
const anchor = args?.anchor ?? { vertical: "top", horizontal: "left" };
|
|
44133
|
-
return new TextAnnotation(
|
|
44132
|
+
return new TextAnnotation(angles, textBlock, anchor);
|
|
44134
44133
|
}
|
|
44135
44134
|
/**
|
|
44136
44135
|
* Creates a new TextAnnotation instance from its JSON representation.
|
|
44137
44136
|
*/
|
|
44138
44137
|
static fromJSON(props) {
|
|
44139
44138
|
return TextAnnotation.create({
|
|
44140
|
-
origin: props?.origin ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Point3d.fromJSON(props.origin) : undefined,
|
|
44141
44139
|
orientation: props?.orientation ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.YawPitchRollAngles.fromJSON(props.orientation) : undefined,
|
|
44142
44140
|
textBlock: props?.textBlock ? _TextBlock__WEBPACK_IMPORTED_MODULE_1__.TextBlock.create(props.textBlock) : undefined,
|
|
44143
44141
|
anchor: props?.anchor ? { ...props.anchor } : undefined,
|
|
@@ -44151,9 +44149,6 @@ class TextAnnotation {
|
|
|
44151
44149
|
// Even if the text block is empty, we want to record its style name and overrides, e.g.,
|
|
44152
44150
|
// so the user can pick up where they left off editing it next time.
|
|
44153
44151
|
props.textBlock = this.textBlock.toJSON();
|
|
44154
|
-
if (!this.origin.isZero) {
|
|
44155
|
-
props.origin = this.origin.toJSON();
|
|
44156
|
-
}
|
|
44157
44152
|
if (!this.orientation.isIdentity()) {
|
|
44158
44153
|
props.orientation = this.orientation.toJSON();
|
|
44159
44154
|
}
|
|
@@ -44166,31 +44161,36 @@ class TextAnnotation {
|
|
|
44166
44161
|
* @internal used by produceTextAnnotationGeometry; requires layoutRange computed by layoutTextBlock.
|
|
44167
44162
|
*/
|
|
44168
44163
|
computeDocumentTransform(layoutRange) {
|
|
44169
|
-
const origin = this.
|
|
44164
|
+
const origin = this.computeAnchorPoint(layoutRange);
|
|
44170
44165
|
const matrix = this.orientation.toMatrix3d();
|
|
44166
|
+
return _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Transform.createFixedPointAndMatrix(origin, matrix);
|
|
44167
|
+
}
|
|
44168
|
+
/** @internal */
|
|
44169
|
+
computeAnchorPoint(layoutRange) {
|
|
44170
|
+
let x = 0;
|
|
44171
|
+
let y = 0;
|
|
44171
44172
|
switch (this.anchor.horizontal) {
|
|
44172
44173
|
case "center":
|
|
44173
|
-
|
|
44174
|
+
x += layoutRange.xLength() / 2;
|
|
44174
44175
|
break;
|
|
44175
44176
|
case "right":
|
|
44176
|
-
|
|
44177
|
+
x += layoutRange.xLength();
|
|
44177
44178
|
break;
|
|
44178
44179
|
}
|
|
44179
44180
|
switch (this.anchor.vertical) {
|
|
44180
44181
|
case "middle":
|
|
44181
|
-
|
|
44182
|
+
y -= layoutRange.yLength() / 2;
|
|
44182
44183
|
break;
|
|
44183
44184
|
case "bottom":
|
|
44184
|
-
|
|
44185
|
+
y -= layoutRange.yLength();
|
|
44185
44186
|
break;
|
|
44186
44187
|
}
|
|
44187
|
-
return _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.
|
|
44188
|
+
return new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_0__.Point3d(x, y, 0);
|
|
44188
44189
|
}
|
|
44189
44190
|
/** Returns true if this annotation is logically equivalent to `other`. */
|
|
44190
44191
|
equals(other) {
|
|
44191
44192
|
return this.anchor.horizontal === other.anchor.horizontal && this.anchor.vertical === other.anchor.vertical
|
|
44192
|
-
&& this.orientation.isAlmostEqual(other.orientation) && this.
|
|
44193
|
-
&& this.textBlock.equals(other.textBlock);
|
|
44193
|
+
&& this.orientation.isAlmostEqual(other.orientation) && this.textBlock.equals(other.textBlock);
|
|
44194
44194
|
}
|
|
44195
44195
|
}
|
|
44196
44196
|
|
|
@@ -75532,6 +75532,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75532
75532
|
/* harmony import */ var _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
75533
75533
|
/* harmony import */ var _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @itwin/core-geometry */ "../../core/geometry/lib/esm/core-geometry.js");
|
|
75534
75534
|
/* harmony import */ var _IpcApp__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./IpcApp */ "../../core/frontend/lib/esm/IpcApp.js");
|
|
75535
|
+
/* harmony import */ var _TxnEntityChanges__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TxnEntityChanges */ "../../core/frontend/lib/esm/TxnEntityChanges.js");
|
|
75535
75536
|
/*---------------------------------------------------------------------------------------------
|
|
75536
75537
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
75537
75538
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -75543,6 +75544,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75543
75544
|
|
|
75544
75545
|
|
|
75545
75546
|
|
|
75547
|
+
|
|
75546
75548
|
/**
|
|
75547
75549
|
* Base class for notification handlers for events from the backend that are specific to a [[BriefcaseConnection]].
|
|
75548
75550
|
* @see [[BriefcaseTxns]].
|
|
@@ -75718,11 +75720,11 @@ class BriefcaseTxns extends BriefcaseNotificationHandler {
|
|
|
75718
75720
|
}
|
|
75719
75721
|
/** @internal */
|
|
75720
75722
|
notifyElementsChanged(changed) {
|
|
75721
|
-
this.onElementsChanged.raiseEvent(changed);
|
|
75723
|
+
this.onElementsChanged.raiseEvent(new _TxnEntityChanges__WEBPACK_IMPORTED_MODULE_4__.EntityChanges(changed));
|
|
75722
75724
|
}
|
|
75723
75725
|
/** @internal */
|
|
75724
75726
|
notifyModelsChanged(changed) {
|
|
75725
|
-
this.onModelsChanged.raiseEvent(changed);
|
|
75727
|
+
this.onModelsChanged.raiseEvent(new _TxnEntityChanges__WEBPACK_IMPORTED_MODULE_4__.EntityChanges(changed));
|
|
75726
75728
|
}
|
|
75727
75729
|
/** @internal */
|
|
75728
75730
|
notifyGeometryGuidsChanged(changes) {
|
|
@@ -88140,6 +88142,96 @@ class Tiles {
|
|
|
88140
88142
|
}
|
|
88141
88143
|
|
|
88142
88144
|
|
|
88145
|
+
/***/ }),
|
|
88146
|
+
|
|
88147
|
+
/***/ "../../core/frontend/lib/esm/TxnEntityChanges.js":
|
|
88148
|
+
/*!*******************************************************!*\
|
|
88149
|
+
!*** ../../core/frontend/lib/esm/TxnEntityChanges.js ***!
|
|
88150
|
+
\*******************************************************/
|
|
88151
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
88152
|
+
|
|
88153
|
+
"use strict";
|
|
88154
|
+
__webpack_require__.r(__webpack_exports__);
|
|
88155
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
88156
|
+
/* harmony export */ "EntityChanges": () => (/* binding */ EntityChanges),
|
|
88157
|
+
/* harmony export */ "Metadata": () => (/* binding */ Metadata)
|
|
88158
|
+
/* harmony export */ });
|
|
88159
|
+
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
88160
|
+
/*---------------------------------------------------------------------------------------------
|
|
88161
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
88162
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
88163
|
+
*--------------------------------------------------------------------------------------------*/
|
|
88164
|
+
/** @packageDocumentation
|
|
88165
|
+
* @module IModelConnection
|
|
88166
|
+
*/
|
|
88167
|
+
|
|
88168
|
+
class Metadata {
|
|
88169
|
+
constructor(name) {
|
|
88170
|
+
this.baseClasses = [];
|
|
88171
|
+
this.classFullName = name;
|
|
88172
|
+
}
|
|
88173
|
+
is(baseName) {
|
|
88174
|
+
return baseName === this.classFullName || this.baseClasses.some((base) => base.is(baseName));
|
|
88175
|
+
}
|
|
88176
|
+
}
|
|
88177
|
+
function* entityChangesIterator(changes, options) {
|
|
88178
|
+
let excludedMetaIndices;
|
|
88179
|
+
if (options?.includeMetadata) {
|
|
88180
|
+
for (let i = 0; i < changes.metadata.length; i++) {
|
|
88181
|
+
if (!options.includeMetadata(changes.metadata[i])) {
|
|
88182
|
+
excludedMetaIndices = excludedMetaIndices ?? new Set();
|
|
88183
|
+
excludedMetaIndices.add(i);
|
|
88184
|
+
}
|
|
88185
|
+
}
|
|
88186
|
+
}
|
|
88187
|
+
function* process(type) {
|
|
88188
|
+
if (options?.includeTypes && !options.includeTypes.includes(type)) {
|
|
88189
|
+
return;
|
|
88190
|
+
}
|
|
88191
|
+
const ids = changes[type];
|
|
88192
|
+
if (undefined === ids) {
|
|
88193
|
+
return;
|
|
88194
|
+
}
|
|
88195
|
+
const metaIndices = changes.args[`${type}Meta`];
|
|
88196
|
+
let index = 0;
|
|
88197
|
+
for (const id of _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.iterable(ids)) {
|
|
88198
|
+
const metaIndex = metaIndices[index++];
|
|
88199
|
+
if (excludedMetaIndices && excludedMetaIndices.has(metaIndex)) {
|
|
88200
|
+
continue;
|
|
88201
|
+
}
|
|
88202
|
+
const metadata = changes.metadata[metaIndex];
|
|
88203
|
+
yield { type, id, metadata };
|
|
88204
|
+
}
|
|
88205
|
+
}
|
|
88206
|
+
yield* process("inserted");
|
|
88207
|
+
yield* process("deleted");
|
|
88208
|
+
yield* process("updated");
|
|
88209
|
+
}
|
|
88210
|
+
class EntityChanges {
|
|
88211
|
+
constructor(args) {
|
|
88212
|
+
this.args = args;
|
|
88213
|
+
this.metadata = args.meta.map((x) => new Metadata(x.name));
|
|
88214
|
+
for (let i = 0; i < this.metadata.length; i++) {
|
|
88215
|
+
const meta = this.metadata[i];
|
|
88216
|
+
for (const baseIndex of args.meta[i].bases) {
|
|
88217
|
+
meta.baseClasses.push(this.metadata[baseIndex]);
|
|
88218
|
+
}
|
|
88219
|
+
}
|
|
88220
|
+
}
|
|
88221
|
+
get inserted() { return this.args.inserted; }
|
|
88222
|
+
get deleted() { return this.args.deleted; }
|
|
88223
|
+
get updated() { return this.args.updated; }
|
|
88224
|
+
[Symbol.iterator]() {
|
|
88225
|
+
return entityChangesIterator(this);
|
|
88226
|
+
}
|
|
88227
|
+
filter(options) {
|
|
88228
|
+
return {
|
|
88229
|
+
[Symbol.iterator]: () => entityChangesIterator(this, options),
|
|
88230
|
+
};
|
|
88231
|
+
}
|
|
88232
|
+
}
|
|
88233
|
+
|
|
88234
|
+
|
|
88143
88235
|
/***/ }),
|
|
88144
88236
|
|
|
88145
88237
|
/***/ "../../core/frontend/lib/esm/UserPreferences.js":
|
|
@@ -297055,7 +297147,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
297055
297147
|
/***/ ((module) => {
|
|
297056
297148
|
|
|
297057
297149
|
"use strict";
|
|
297058
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.6.0-dev.
|
|
297150
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.6.0-dev.25","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.6.0-dev.25","@itwin/core-bentley":"workspace:^4.6.0-dev.25","@itwin/core-common":"workspace:^4.6.0-dev.25","@itwin/core-geometry":"workspace:^4.6.0-dev.25","@itwin/core-orbitgt":"workspace:^4.6.0-dev.25","@itwin/core-quantity":"workspace:^4.6.0-dev.25"},"//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.52","@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":"^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"}}');
|
|
297059
297151
|
|
|
297060
297152
|
/***/ })
|
|
297061
297153
|
|