@itwin/ecschema-rpcinterface-tests 3.3.0-dev.7 → 3.3.0-dev.8
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 +27 -14
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +16 -16
|
@@ -85213,6 +85213,12 @@ exports.SchemaGraph = SchemaGraph;
|
|
|
85213
85213
|
|
|
85214
85214
|
"use strict";
|
|
85215
85215
|
|
|
85216
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
85217
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
85218
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
85219
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
85220
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
85221
|
+
};
|
|
85216
85222
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
85217
85223
|
exports.ECSchemaRpcInterface = void 0;
|
|
85218
85224
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -85254,11 +85260,14 @@ class ECSchemaRpcInterface extends core_common_1.RpcInterface {
|
|
|
85254
85260
|
return this.forward.apply(this, [arguments]);
|
|
85255
85261
|
}
|
|
85256
85262
|
}
|
|
85257
|
-
exports.ECSchemaRpcInterface = ECSchemaRpcInterface;
|
|
85258
85263
|
/** The version of the RPC Interface. */
|
|
85259
85264
|
ECSchemaRpcInterface.version = "2.0.0";
|
|
85260
85265
|
ECSchemaRpcInterface.interfaceName = "ECSchemaRpcInterface";
|
|
85261
85266
|
ECSchemaRpcInterface.interfaceVersion = ECSchemaRpcInterface.version;
|
|
85267
|
+
__decorate([
|
|
85268
|
+
core_common_1.RpcOperation.setPolicy({ allowResponseCompression: true })
|
|
85269
|
+
], ECSchemaRpcInterface.prototype, "getSchemaJSON", null);
|
|
85270
|
+
exports.ECSchemaRpcInterface = ECSchemaRpcInterface;
|
|
85262
85271
|
|
|
85263
85272
|
|
|
85264
85273
|
/***/ }),
|
|
@@ -95874,7 +95883,7 @@ class IModelApp {
|
|
|
95874
95883
|
applicationId: this.applicationId,
|
|
95875
95884
|
applicationVersion: this.applicationVersion,
|
|
95876
95885
|
sessionId: this.sessionId,
|
|
95877
|
-
authorization: await this.getAccessToken(),
|
|
95886
|
+
authorization: _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__["ProcessDetector"].isMobileAppFrontend ? "" : await this.getAccessToken(),
|
|
95878
95887
|
};
|
|
95879
95888
|
const csrf = IModelApp.securityOptions.csrfProtection;
|
|
95880
95889
|
if (csrf && csrf.enabled) {
|
|
@@ -104455,27 +104464,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
104455
104464
|
/** @packageDocumentation
|
|
104456
104465
|
* @module Views
|
|
104457
104466
|
*/
|
|
104458
|
-
/** A rectangle in integer view coordinates with (0,0) corresponding to the top-left corner of the view.
|
|
104459
|
-
*
|
|
104467
|
+
/** A rectangle in unsigned integer view coordinates with (0,0) corresponding to the top-left corner of the view.
|
|
104460
104468
|
* Increasing **x** moves from left to right, and increasing **y** moves from top to bottom.
|
|
104469
|
+
* [[left]], [[top]], [[right]], and [[bottom]] are required to be non-negative integers; any negative inputs are treated as
|
|
104470
|
+
* zero and any non-integer inputs are rounded down to the nearest integer.
|
|
104461
104471
|
* @public
|
|
104462
104472
|
* @extensions
|
|
104463
104473
|
*/
|
|
104464
104474
|
class ViewRect {
|
|
104465
104475
|
/** Construct a new ViewRect. */
|
|
104466
104476
|
constructor(left = 0, top = 0, right = 0, bottom = 0) { this.init(left, top, right, bottom); }
|
|
104467
|
-
|
|
104477
|
+
_set(key, value) {
|
|
104478
|
+
this[key] = Math.max(0, Math.floor(value));
|
|
104479
|
+
}
|
|
104480
|
+
/** The leftmost side of this ViewRect. */
|
|
104468
104481
|
get left() { return this._left; }
|
|
104469
|
-
set left(val) { this._left
|
|
104482
|
+
set left(val) { this._set("_left", val); }
|
|
104470
104483
|
/** The topmost side of this ViewRect. */
|
|
104471
104484
|
get top() { return this._top; }
|
|
104472
|
-
set top(val) { this._top
|
|
104485
|
+
set top(val) { this._set("_top", val); }
|
|
104473
104486
|
/** The rightmost side of this ViewRect. */
|
|
104474
104487
|
get right() { return this._right; }
|
|
104475
|
-
set right(val) { this._right
|
|
104488
|
+
set right(val) { this._set("_right", val); }
|
|
104476
104489
|
/** The bottommost side of this ViewRect. */
|
|
104477
104490
|
get bottom() { return this._bottom; }
|
|
104478
|
-
set bottom(val) { this._bottom
|
|
104491
|
+
set bottom(val) { this._set("_bottom", val); }
|
|
104479
104492
|
/** True if this ViewRect has an area > 0. */
|
|
104480
104493
|
get isNull() { return this.right <= this.left || this.bottom <= this.top; }
|
|
104481
104494
|
/** True if `!isNull` */
|
|
@@ -108916,7 +108929,7 @@ class Viewport {
|
|
|
108916
108929
|
return false; // Reality Models not selectable
|
|
108917
108930
|
return undefined === this.mapLayerFromIds(pixel.featureTable.modelId, pixel.elementId); // Maps no selectable.
|
|
108918
108931
|
}
|
|
108919
|
-
/** Read the current image from this viewport from the rendering system. If a
|
|
108932
|
+
/** Read the current image from this viewport from the rendering system. If a "null" rectangle is supplied (@see [[ViewRect.isNull]]), the entire view is captured.
|
|
108920
108933
|
* @param rect The area of the view to read. The origin of a viewRect must specify the upper left corner.
|
|
108921
108934
|
* @param targetSize The size of the image to be returned. The size can be larger or smaller than the original view.
|
|
108922
108935
|
* @param flipVertically If true, the image is flipped along the x-axis.
|
|
@@ -108924,7 +108937,7 @@ class Viewport {
|
|
|
108924
108937
|
* @note By default the image is returned with the coordinate (0,0) referring to the bottom-most pixel. Pass `true` for `flipVertically` to flip it along the x-axis.
|
|
108925
108938
|
* @deprecated Use readImageBuffer.
|
|
108926
108939
|
*/
|
|
108927
|
-
readImage(rect = new _ViewRect__WEBPACK_IMPORTED_MODULE_25__["ViewRect"](
|
|
108940
|
+
readImage(rect = new _ViewRect__WEBPACK_IMPORTED_MODULE_25__["ViewRect"](1, 1, 0, 0), targetSize = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Point2d"].createZero(), flipVertically = false) {
|
|
108928
108941
|
// eslint-disable-next-line deprecation/deprecation
|
|
108929
108942
|
return this.target.readImage(rect, targetSize, flipVertically);
|
|
108930
108943
|
}
|
|
@@ -136993,14 +137006,14 @@ class Target extends _RenderTarget__WEBPACK_IMPORTED_MODULE_8__["RenderTarget"]
|
|
|
136993
137006
|
return new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Point2d"](curSize.x * bestRatio, curSize.y * bestRatio);
|
|
136994
137007
|
}
|
|
136995
137008
|
/** wantRectIn is in CSS pixels. Output ImageBuffer will be in device pixels.
|
|
136996
|
-
* If wantRect
|
|
137009
|
+
* If wantRect is null, that means "read the entire image".
|
|
136997
137010
|
*/
|
|
136998
137011
|
readImage(wantRectIn, targetSizeIn, flipVertically) {
|
|
136999
137012
|
if (!this.assignDC())
|
|
137000
137013
|
return undefined;
|
|
137001
137014
|
// Determine capture rect and validate
|
|
137002
137015
|
const actualViewRect = this.renderRect; // already has device pixel ratio applied
|
|
137003
|
-
const wantRect =
|
|
137016
|
+
const wantRect = wantRectIn.isNull ? actualViewRect : this.cssViewRectToDeviceViewRect(wantRectIn);
|
|
137004
137017
|
const lowerRight = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Point2d"].create(wantRect.right - 1, wantRect.bottom - 1);
|
|
137005
137018
|
if (!actualViewRect.containsPoint(_itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Point2d"].create(wantRect.left, wantRect.top)) || !actualViewRect.containsPoint(lowerRight))
|
|
137006
137019
|
return undefined;
|
|
@@ -178963,7 +178976,7 @@ SetupWalkCameraTool.iconSpec = "icon-camera-location";
|
|
|
178963
178976
|
/*! exports provided: name, version, description, main, module, typings, license, scripts, repository, keywords, author, peerDependencies, //devDependencies, devDependencies, //dependencies, dependencies, nyc, eslintConfig, default */
|
|
178964
178977
|
/***/ (function(module) {
|
|
178965
178978
|
|
|
178966
|
-
module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.3.0-dev.
|
|
178979
|
+
module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.3.0-dev.8\",\"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\",\"build:ci\":\"npm run -s build && npm run -s build:esm\",\"build:cjs\":\"tsc 1>&2 --outDir lib/cjs\",\"build:esm\":\"tsc 1>&2 --module ES2020 --outDir lib/esm\",\"clean\":\"rimraf lib .rush/temp/package-deps*.json\",\"copy:public\":\"cpx \\\"./src/public/**/*\\\" ./lib/public\",\"docs\":\"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/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-eslintrc -c \\\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\\" \\\"./src/**/*.ts\\\" 1>&2\",\"lint\":\"eslint -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\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend\"},\"keywords\":[\"Bentley\",\"BIM\",\"iModel\",\"digital-twin\",\"iTwin\"],\"author\":{\"name\":\"Bentley Systems, Inc.\",\"url\":\"http://www.bentley.com\"},\"peerDependencies\":{\"@itwin/appui-abstract\":\"workspace:^3.3.0-dev.8\",\"@itwin/core-bentley\":\"workspace:^3.3.0-dev.8\",\"@itwin/core-common\":\"workspace:^3.3.0-dev.8\",\"@itwin/core-geometry\":\"workspace:^3.3.0-dev.8\",\"@itwin/core-orbitgt\":\"workspace:^3.3.0-dev.8\",\"@itwin/core-quantity\":\"workspace:^3.3.0-dev.8\",\"@itwin/webgl-compatibility\":\"workspace:^3.3.0-dev.8\"},\"//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\":\"workspace:*\",\"@itwin/webgl-compatibility\":\"workspace:*\",\"@types/chai\":\"^4.1.4\",\"@types/chai-as-promised\":\"^7\",\"@types/deep-assign\":\"^0.1.0\",\"@types/lodash\":\"^4.14.0\",\"@types/mocha\":\"^8.2.2\",\"@types/node\":\"16.11.7\",\"@types/qs\":\"^6.5.0\",\"@types/semver\":\"^5.5.0\",\"@types/superagent\":\"^4.1.14\",\"@types/sinon\":\"^9.0.0\",\"chai\":\"^4.1.2\",\"chai-as-promised\":\"^7\",\"cpx2\":\"^3.0.0\",\"eslint\":\"^7.11.0\",\"glob\":\"^7.1.2\",\"mocha\":\"^8.3.2\",\"nyc\":\"^15.1.0\",\"rimraf\":\"^3.0.2\",\"sinon\":\"^9.0.2\",\"source-map-loader\":\"^1.0.0\",\"typescript\":\"~4.4.0\",\"webpack\":\"4.42.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/core-i18n\":\"workspace:*\",\"@itwin/core-telemetry\":\"workspace:*\",\"@loaders.gl/core\":\"^3.1.6\",\"@loaders.gl/draco\":\"^3.1.6\",\"deep-assign\":\"^2.0.0\",\"fuse.js\":\"^3.3.0\",\"lodash\":\"^4.17.10\",\"qs\":\"^6.5.1\",\"semver\":\"^5.5.0\",\"superagent\":\"^7.0.1\",\"wms-capabilities\":\"0.4.0\",\"xml-js\":\"~1.6.11\"},\"nyc\":{\"extends\":\"./node_modules/@itwin/build-tools/.nycrc\"},\"eslintConfig\":{\"plugins\":[\"@itwin\"],\"extends\":\"plugin:@itwin/itwinjs-recommended\",\"rules\":{\"@itwin/no-internal-barrel-imports\":[\"error\",{\"required-barrel-modules\":[\"./src/tile/internal.ts\"]}],\"@itwin/public-extension-exports\":[\"error\",{\"releaseTags\":[\"public\",\"preview\"],\"outputApiFile\":false}]},\"overrides\":[{\"files\":[\"*.test.ts\",\"*.test.tsx\",\"**/test/**/*.ts\"],\"rules\":{\"@itwin/no-internal-barrel-imports\":\"off\"}}]}}");
|
|
178967
178980
|
|
|
178968
178981
|
/***/ }),
|
|
178969
178982
|
|