@itwin/rpcinterface-full-stack-tests 4.3.0-dev.7 → 4.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 +15 -9
- 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_4_14_node_modules_loaders_gl_draco_d-aa4ff5.bundled-tests.js.map +1 -1
- package/package.json +14 -14
|
@@ -193866,7 +193866,8 @@ class RegionOps {
|
|
|
193866
193866
|
return halfDistTol * (range.xLength() + range.yLength() + halfDistTol);
|
|
193867
193867
|
}
|
|
193868
193868
|
/**
|
|
193869
|
-
* Return
|
|
193869
|
+
* Return a (signed) xy area for a region.
|
|
193870
|
+
* * The area is negative if and only if the region is oriented clockwise with respect to the positive z-axis.
|
|
193870
193871
|
* @param root any Loop, ParityRegion, or UnionRegion.
|
|
193871
193872
|
*/
|
|
193872
193873
|
static computeXYArea(root) {
|
|
@@ -236138,7 +236139,7 @@ class PolyfaceClip {
|
|
|
236138
236139
|
* * This method computes the portion of the input mesh that lies inside the clipper generated from sweeping the input region in the given direction.
|
|
236139
236140
|
* @param mesh input mesh, untouched
|
|
236140
236141
|
* @param region planar region to drape onto mesh
|
|
236141
|
-
* @param sweepVector optional sweep direction for region
|
|
236142
|
+
* @param sweepVector optional sweep direction for region, magnitude unused. If undefined, sweep is along the region normal.
|
|
236142
236143
|
* @param options how to stroke the region boundary
|
|
236143
236144
|
* @returns clipped facets. No other mesh data but vertices appear in output.
|
|
236144
236145
|
*/
|
|
@@ -236148,10 +236149,13 @@ class PolyfaceClip {
|
|
|
236148
236149
|
const contour = _solid_SweepContour__WEBPACK_IMPORTED_MODULE_15__.SweepContour.createForLinearSweep(region);
|
|
236149
236150
|
if (!contour)
|
|
236150
236151
|
return undefined;
|
|
236151
|
-
|
|
236152
|
+
let sweep = sweepVector;
|
|
236153
|
+
if (sweepVector && contour.localToWorld.matrix.dotColumnZ(sweepVector) < 0.0)
|
|
236154
|
+
sweep = sweepVector.scale(-1); // avoid inverted clipper
|
|
236155
|
+
const clipper = contour.sweepToUnionOfConvexClipPlaneSets(sweep, false, false, options);
|
|
236152
236156
|
if (!clipper)
|
|
236153
236157
|
return undefined;
|
|
236154
|
-
const builders = ClippedPolyfaceBuilders.create(true);
|
|
236158
|
+
const builders = ClippedPolyfaceBuilders.create(true); // we want only the facets inside the clipper
|
|
236155
236159
|
this.clipPolyfaceUnionOfConvexClipPlaneSetsToBuilders(mesh, clipper, builders, 1);
|
|
236156
236160
|
return builders.claimPolyface(0, true);
|
|
236157
236161
|
}
|
|
@@ -237002,7 +237006,7 @@ class PolyfaceQuery {
|
|
|
237002
237006
|
return result;
|
|
237003
237007
|
}
|
|
237004
237008
|
/** Return the sum of all facet areas.
|
|
237005
|
-
* @param vectorToEye compute facet
|
|
237009
|
+
* @param vectorToEye compute sum of *signed* facet areas projected to a view plane perpendicular to this vector
|
|
237006
237010
|
*/
|
|
237007
237011
|
static sumFacetAreas(source, vectorToEye) {
|
|
237008
237012
|
let s = 0;
|
|
@@ -253717,9 +253721,11 @@ class SweepContour {
|
|
|
253717
253721
|
}
|
|
253718
253722
|
/**
|
|
253719
253723
|
* Create a UnionOfConvexClipPlaneSets that clips to the swept faceted contour region.
|
|
253720
|
-
* @param sweepVector the sweep direction
|
|
253724
|
+
* @param sweepVector the sweep direction and distance:
|
|
253725
|
+
* * If undefined, the sweep direction is along the contour normal and no caps are constructed (the sweep is infinite in both directions).
|
|
253726
|
+
* * If defined, the returned clipper is inverted if and only if sweepVector is in the opposite half-space as the computed contour normal.
|
|
253721
253727
|
* @param cap0 construct a clip plane equal to the contour plane. Note that `sweepVector` must be defined.
|
|
253722
|
-
* @param cap1 construct a clip plane parallel to the contour plane at the end of `sweepVector`.
|
|
253728
|
+
* @param cap1 construct a clip plane parallel to the contour plane at the end of `sweepVector`.
|
|
253723
253729
|
* @param options how to stroke the contour
|
|
253724
253730
|
* @returns clipper defined by faceting then sweeping the contour region
|
|
253725
253731
|
*/
|
|
@@ -280674,7 +280680,7 @@ class TestContext {
|
|
|
280674
280680
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
280675
280681
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
280676
280682
|
await core_frontend_1.NoRenderApp.startup({
|
|
280677
|
-
applicationVersion: "4.3.0-dev.
|
|
280683
|
+
applicationVersion: "4.3.0-dev.8",
|
|
280678
280684
|
applicationId: this.settings.gprid,
|
|
280679
280685
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
280680
280686
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -300082,7 +300088,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
300082
300088
|
/***/ ((module) => {
|
|
300083
300089
|
|
|
300084
300090
|
"use strict";
|
|
300085
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.3.0-dev.
|
|
300091
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.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 && 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","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.3.0-dev.8","@itwin/core-bentley":"workspace:^4.3.0-dev.8","@itwin/core-common":"workspace:^4.3.0-dev.8","@itwin/core-geometry":"workspace:^4.3.0-dev.8","@itwin/core-orbitgt":"workspace:^4.3.0-dev.8","@itwin/core-quantity":"workspace:^4.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":"4.0.0-dev.44","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^8.2.2","@types/node":"18.16.1","@types/sinon":"^10.0.15","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^8.44.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^15.0.4","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.1.0","@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"}}');
|
|
300086
300092
|
|
|
300087
300093
|
/***/ }),
|
|
300088
300094
|
|