@itwin/ecschema-rpcinterface-tests 5.15.0-dev.5 → 5.15.0-dev.7
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 +25 -13
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +15 -15
|
@@ -47297,10 +47297,8 @@ class HorizontalCRS {
|
|
|
47297
47297
|
}
|
|
47298
47298
|
}
|
|
47299
47299
|
/** Vertical Coordinate reference System implementation.
|
|
47300
|
-
*
|
|
47301
|
-
*
|
|
47302
|
-
* we expect to support a broader set in the future including, eventually, user defined vertical CRS
|
|
47303
|
-
* which will require additional parameters to be added.
|
|
47300
|
+
* A VerticalCRS can identify a predefined system by dictionary name or EPSG code while retaining
|
|
47301
|
+
* one of the five legacy keys for backward compatibility.
|
|
47304
47302
|
* @public
|
|
47305
47303
|
*/
|
|
47306
47304
|
class VerticalCRS {
|
|
@@ -47315,10 +47313,19 @@ class VerticalCRS {
|
|
|
47315
47313
|
* be used for datums that are not considered coincident vertically with WGS84. Use of this vertical datum is strongly discouraged.
|
|
47316
47314
|
*/
|
|
47317
47315
|
id;
|
|
47316
|
+
/** Dictionary CRS name, e.g. "EGM96 height". Takes precedence over [[epsg]] and [[id]] when set.
|
|
47317
|
+
* @beta */
|
|
47318
|
+
crsName;
|
|
47319
|
+
/** EPSG code identifying the vertical CRS. Takes precedence over [[id]] when [[crsName]] is not set.
|
|
47320
|
+
* @beta */
|
|
47321
|
+
epsg;
|
|
47318
47322
|
constructor(data) {
|
|
47319
47323
|
this.id = "GEOID";
|
|
47320
|
-
if (data)
|
|
47324
|
+
if (data) {
|
|
47321
47325
|
this.id = data.id;
|
|
47326
|
+
this.crsName = data.crsName;
|
|
47327
|
+
this.epsg = data.epsg;
|
|
47328
|
+
}
|
|
47322
47329
|
}
|
|
47323
47330
|
/** Creates a Vertical CRS from JSON representation.
|
|
47324
47331
|
* @public */
|
|
@@ -47328,12 +47335,17 @@ class VerticalCRS {
|
|
|
47328
47335
|
/** Creates a JSON from the Vertical CRS definition
|
|
47329
47336
|
* @public */
|
|
47330
47337
|
toJSON() {
|
|
47331
|
-
|
|
47338
|
+
const data = { id: this.id };
|
|
47339
|
+
if (this.crsName !== undefined)
|
|
47340
|
+
data.crsName = this.crsName;
|
|
47341
|
+
if (this.epsg !== undefined)
|
|
47342
|
+
data.epsg = this.epsg;
|
|
47343
|
+
return data;
|
|
47332
47344
|
}
|
|
47333
|
-
/**
|
|
47345
|
+
/** Strictly compares the stored properties of two vertical CRS, not their resolved identities.
|
|
47334
47346
|
* @public */
|
|
47335
47347
|
equals(other) {
|
|
47336
|
-
return
|
|
47348
|
+
return this.id === other.id && this.crsName === other.crsName && this.epsg === other.epsg;
|
|
47337
47349
|
}
|
|
47338
47350
|
}
|
|
47339
47351
|
/** Geographic Coordinate Reference System implementation. This is the class that indicates the definition of a Geographic
|
|
@@ -154319,16 +154331,16 @@ async function computeVerticalDatumShift(geoOrigin, heightAsEllipsoidalDbZ, iMod
|
|
|
154319
154331
|
return 0;
|
|
154320
154332
|
// The backend always resolves the vertical datum id. Convert against the iModel's own datum.
|
|
154321
154333
|
let source;
|
|
154322
|
-
const
|
|
154323
|
-
switch (
|
|
154334
|
+
const verticalCRS = iModel.geographicCoordinateSystem?.verticalCRS;
|
|
154335
|
+
switch (verticalCRS?.id) {
|
|
154324
154336
|
// Pair GEOID with a WGS84 horizontal CRS (EPSG:4326).
|
|
154325
154337
|
case "GEOID":
|
|
154326
|
-
source = { horizontalCRS: { epsg: 4326 }, verticalCRS:
|
|
154338
|
+
source = { horizontalCRS: { epsg: 4326 }, verticalCRS: verticalCRS.toJSON() };
|
|
154327
154339
|
break;
|
|
154328
154340
|
// Native rejects NAVD88 and NGVD29 with WGS84; pair them with NAD83 (EPSG:4269).
|
|
154329
154341
|
case "NAVD88":
|
|
154330
154342
|
case "NGVD29":
|
|
154331
|
-
source = { horizontalCRS: { epsg: 4269 }, verticalCRS:
|
|
154343
|
+
source = { horizontalCRS: { epsg: 4269 }, verticalCRS: verticalCRS.toJSON() };
|
|
154332
154344
|
break;
|
|
154333
154345
|
default:
|
|
154334
154346
|
return 0;
|
|
@@ -337586,7 +337598,7 @@ class WMS {
|
|
|
337586
337598
|
(module) {
|
|
337587
337599
|
|
|
337588
337600
|
"use strict";
|
|
337589
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.15.0-dev.
|
|
337601
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.15.0-dev.7","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 build:workers && npm run -s copy:draco","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:draco":"cpx \\"./node_modules/@loaders.gl/draco/dist/libs/*\\" ./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 && npm run -s extract","extract":"betools extract --fileExt=ts --extractFrom=./src/test/example-code --recursive --out=../../generated-docs/extract","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 build:test-worker && vitest --run","cover":"npm run build:test-worker && vitest --run","build:test-worker":"vite build --config ./src/test/worker/vite.config.mts 1>&2","build:workers":"rimraf lib/workers/webpack && vite build --config ./src/workers/ImdlParser/vite.config.mts 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":{"@bentley/aec-units-schema":"^1.0.3","@bentley/formats-schema":"^1.0.0","@bentley/units-schema":"^1.0.12","@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/object-storage-core":"^3.0.4","@itwin/eslint-plugin":"^6.0.0","@types/node":"~20.17.0","@types/sinon":"^17.0.2","@vitest/browser-playwright":"^4.1.10","@vitest/coverage-v8":"^4.1.10","cpx2":"^8.0.0","eslint":"^9.31.0","playwright":"~1.56.1","rimraf":"^6.0.1","sinon":"^17.0.2","typescript":"~5.6.2","vite":"^6.4.3","vitest":"^4.1.10"},"//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/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^4.4.5","@loaders.gl/draco":"^4.4.5","fuse.js":"^3.3.0","wms-capabilities":"0.6.0"}}');
|
|
337590
337602
|
|
|
337591
337603
|
/***/ },
|
|
337592
337604
|
|