@itwin/rpcinterface-full-stack-tests 3.2.0-dev.76 → 3.2.0-dev.77
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 +58 -51
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +14 -14
|
@@ -79660,56 +79660,63 @@ class AccuSnap {
|
|
|
79660
79660
|
return undefined; // Don't make back end request when only doing intersection snap when we don't have another hit to intersect with...
|
|
79661
79661
|
}
|
|
79662
79662
|
}
|
|
79663
|
-
|
|
79664
|
-
|
|
79665
|
-
out
|
|
79666
|
-
|
|
79667
|
-
|
|
79668
|
-
|
|
79669
|
-
const
|
|
79670
|
-
|
|
79671
|
-
|
|
79672
|
-
|
|
79673
|
-
|
|
79674
|
-
|
|
79675
|
-
|
|
79676
|
-
|
|
79677
|
-
|
|
79678
|
-
|
|
79679
|
-
|
|
79680
|
-
|
|
79681
|
-
|
|
79682
|
-
|
|
79683
|
-
|
|
79684
|
-
|
|
79685
|
-
|
|
79686
|
-
|
|
79687
|
-
|
|
79688
|
-
|
|
79689
|
-
|
|
79690
|
-
|
|
79691
|
-
|
|
79692
|
-
|
|
79693
|
-
|
|
79694
|
-
|
|
79695
|
-
|
|
79696
|
-
|
|
79697
|
-
|
|
79698
|
-
|
|
79699
|
-
|
|
79700
|
-
|
|
79701
|
-
|
|
79702
|
-
|
|
79703
|
-
|
|
79704
|
-
|
|
79705
|
-
|
|
79706
|
-
|
|
79707
|
-
|
|
79708
|
-
|
|
79709
|
-
|
|
79663
|
+
try {
|
|
79664
|
+
const result = await thisHit.iModel.requestSnap(requestProps);
|
|
79665
|
+
if (out)
|
|
79666
|
+
out.snapStatus = result.status;
|
|
79667
|
+
if (result.status !== _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__["SnapStatus"].Success)
|
|
79668
|
+
return undefined;
|
|
79669
|
+
const parseCurve = (json) => {
|
|
79670
|
+
const parsed = undefined !== json ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["IModelJson"].Reader.parse(json) : undefined;
|
|
79671
|
+
return parsed instanceof _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["GeometryQuery"] && "curvePrimitive" === parsed.geometryCategory ? parsed : undefined;
|
|
79672
|
+
};
|
|
79673
|
+
// If this hit is from a plan projection model, apply the model's elevation to the snap point for display.
|
|
79674
|
+
// Likewise, if it is a hit on a model with a display transform, apply the model's transform to the snap point.
|
|
79675
|
+
let snapPoint = result.snapPoint;
|
|
79676
|
+
const elevation = undefined !== thisHit.modelId ? thisHit.viewport.view.getModelElevation(thisHit.modelId) : 0;
|
|
79677
|
+
if (0 !== elevation || undefined !== thisHit.viewport.view.modelDisplayTransformProvider) {
|
|
79678
|
+
const adjustedSnapPoint = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Point3d"].fromJSON(snapPoint);
|
|
79679
|
+
thisHit.viewport.view.transformPointByModelDisplayTransform(thisHit.modelId, adjustedSnapPoint, false);
|
|
79680
|
+
adjustedSnapPoint.z += elevation;
|
|
79681
|
+
snapPoint = adjustedSnapPoint;
|
|
79682
|
+
}
|
|
79683
|
+
const snap = new _HitDetail__WEBPACK_IMPORTED_MODULE_3__["SnapDetail"](thisHit, result.snapMode, result.heat, snapPoint);
|
|
79684
|
+
// Apply model's elevation and display transform to curve for display.
|
|
79685
|
+
let transform;
|
|
79686
|
+
if (undefined !== thisHit.modelId && undefined !== thisHit.viewport.view.modelDisplayTransformProvider) {
|
|
79687
|
+
transform = thisHit.viewport.view.getModelDisplayTransform(thisHit.modelId, _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Transform"].createIdentity());
|
|
79688
|
+
if (0 !== elevation)
|
|
79689
|
+
transform.origin.set(0, 0, elevation);
|
|
79690
|
+
}
|
|
79691
|
+
else if (0 !== elevation) {
|
|
79692
|
+
transform = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Transform"].createTranslationXYZ(0, 0, elevation);
|
|
79693
|
+
}
|
|
79694
|
+
snap.setCurvePrimitive(parseCurve(result.curve), transform, result.geomType);
|
|
79695
|
+
if (undefined !== result.parentGeomType)
|
|
79696
|
+
snap.parentGeomType = result.parentGeomType;
|
|
79697
|
+
if (undefined !== result.hitPoint) {
|
|
79698
|
+
snap.hitPoint.setFromJSON(result.hitPoint); // Update hitPoint from readPixels with exact point location corrected to surface/edge geometry...
|
|
79699
|
+
thisHit.viewport.view.transformPointByModelDisplayTransform(thisHit.modelId, snap.hitPoint, false);
|
|
79700
|
+
}
|
|
79701
|
+
if (undefined !== result.normal) {
|
|
79702
|
+
snap.normal = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__["Vector3d"].fromJSON(result.normal);
|
|
79703
|
+
thisHit.viewport.view.transformNormalByModelDisplayTransform(thisHit.modelId, snap.normal);
|
|
79704
|
+
}
|
|
79705
|
+
if (_HitDetail__WEBPACK_IMPORTED_MODULE_3__["SnapMode"].Intersection !== snap.snapMode)
|
|
79706
|
+
return snap;
|
|
79707
|
+
if (undefined === result.intersectId)
|
|
79708
|
+
return undefined;
|
|
79709
|
+
const otherPrimitive = parseCurve(result.intersectCurve);
|
|
79710
|
+
if (undefined === otherPrimitive)
|
|
79711
|
+
return undefined;
|
|
79712
|
+
const intersect = new _HitDetail__WEBPACK_IMPORTED_MODULE_3__["IntersectDetail"](snap, snap.heat, snap.snapPoint, otherPrimitive, result.intersectId);
|
|
79713
|
+
return intersect;
|
|
79714
|
+
}
|
|
79715
|
+
catch (_err) {
|
|
79716
|
+
if (out)
|
|
79717
|
+
out.snapStatus = _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__["SnapStatus"].Aborted;
|
|
79710
79718
|
return undefined;
|
|
79711
|
-
|
|
79712
|
-
return intersect;
|
|
79719
|
+
}
|
|
79713
79720
|
}
|
|
79714
79721
|
async getAccuSnapDetail(hitList, out) {
|
|
79715
79722
|
const thisHit = hitList.getNextHit();
|
|
@@ -169703,7 +169710,7 @@ SetupWalkCameraTool.iconSpec = "icon-camera-location";
|
|
|
169703
169710
|
/*! exports provided: name, version, description, main, module, typings, license, scripts, repository, keywords, author, peerDependencies, //devDependencies, devDependencies, //dependencies, dependencies, nyc, eslintConfig, default */
|
|
169704
169711
|
/***/ (function(module) {
|
|
169705
169712
|
|
|
169706
|
-
module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.2.0-dev.
|
|
169713
|
+
module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.2.0-dev.77\",\"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.2.0-dev.77\",\"@itwin/core-bentley\":\"workspace:^3.2.0-dev.77\",\"@itwin/core-common\":\"workspace:^3.2.0-dev.77\",\"@itwin/core-geometry\":\"workspace:^3.2.0-dev.77\",\"@itwin/core-orbitgt\":\"workspace:^3.2.0-dev.77\",\"@itwin/core-quantity\":\"workspace:^3.2.0-dev.77\",\"@itwin/webgl-compatibility\":\"workspace:^3.2.0-dev.77\"},\"//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\"}}]}}");
|
|
169707
169714
|
|
|
169708
169715
|
/***/ }),
|
|
169709
169716
|
|
|
@@ -283153,7 +283160,7 @@ class TestContext {
|
|
|
283153
283160
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
283154
283161
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
|
|
283155
283162
|
await core_frontend_1.NoRenderApp.startup({
|
|
283156
|
-
applicationVersion: "3.2.0-dev.
|
|
283163
|
+
applicationVersion: "3.2.0-dev.77",
|
|
283157
283164
|
applicationId: this.settings.gprid,
|
|
283158
283165
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
283159
283166
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|