@itwin/ecschema-rpcinterface-tests 4.4.0-dev.3 → 4.4.0-dev.4
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 -27
- 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 +15 -15
|
@@ -253638,14 +253638,16 @@ var HalfEdgeMask;
|
|
|
253638
253638
|
/**
|
|
253639
253639
|
* Mask commonly set consistently around exterior faces.
|
|
253640
253640
|
* * A boundary edge with interior to one side, exterior to the other, will have EXTERIOR only on the outside.
|
|
253641
|
-
* * An
|
|
253641
|
+
* * An edge inserted "within a purely exterior face" can have EXTERIOR on both sides.
|
|
253642
253642
|
* * An interior edge (such as added during triangulation) will have no EXTERIOR bits.
|
|
253643
|
+
* * Visualization can be found at geometry/internaldocs/Graph.md
|
|
253643
253644
|
*/
|
|
253644
253645
|
HalfEdgeMask[HalfEdgeMask["EXTERIOR"] = 1] = "EXTERIOR";
|
|
253645
253646
|
/**
|
|
253646
|
-
* Mask commonly set (on both sides) of original geometry edges that are transition from outside
|
|
253647
|
+
* Mask commonly set (on both sides) of original geometry edges that are transition from outside to inside.
|
|
253647
253648
|
* * At the moment of creating an edge from primary user boundary loop coordinates, the fact that an edge is BOUNDARY
|
|
253648
253649
|
* is often clear even though there is uncertainty about which side should be EXTERIOR.
|
|
253650
|
+
* * Visualization can be found at geometry/internaldocs/Graph.md
|
|
253649
253651
|
*/
|
|
253650
253652
|
HalfEdgeMask[HalfEdgeMask["BOUNDARY_EDGE"] = 2] = "BOUNDARY_EDGE";
|
|
253651
253653
|
/**
|
|
@@ -253796,7 +253798,7 @@ class HalfEdge {
|
|
|
253796
253798
|
/**
|
|
253797
253799
|
* Create a new vertex within the edge beginning at `baseA`.
|
|
253798
253800
|
* * This creates two new nodes in their own vertex loop.
|
|
253799
|
-
* * If the base is undefined
|
|
253801
|
+
* * If the base is `undefined`, create a single-edge loop.
|
|
253800
253802
|
* * Existing nodes stay in their face and vertex loops and retain xyz and i values.
|
|
253801
253803
|
* * Unlike [[pinch]], this breaks the edgeMate pairing of the input edge:
|
|
253802
253804
|
* each node of the input edge gets a new node as its edge mate.
|
|
@@ -254293,7 +254295,15 @@ class HalfEdge {
|
|
|
254293
254295
|
const other = this.facePredecessor;
|
|
254294
254296
|
return _geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Vector3d.create(other.x - this.x, other.y - this.y, other.z - this.z, result);
|
|
254295
254297
|
}
|
|
254296
|
-
/**
|
|
254298
|
+
/**
|
|
254299
|
+
* Test if `spaceNode` is in the sector of `sectorNode`.
|
|
254300
|
+
* * The sector at `sectorNode` is defined by two rays starting at `sectorNode` and extending along the edges
|
|
254301
|
+
* owned by `sectorNode` and its face predecessor.
|
|
254302
|
+
* * In general, this method returns `true` if the coordinates of `spaceNode` are _strictly_ inside this sector
|
|
254303
|
+
* (not on the rays).
|
|
254304
|
+
* * Interpretation is whether a viewer at `sectorNode` can see `spaceNode` between the two rays.
|
|
254305
|
+
* * Degenerate sectors of 180 or 360 degrees have special handling.
|
|
254306
|
+
*/
|
|
254297
254307
|
static isNodeVisibleInSector(spaceNode, sectorNode) {
|
|
254298
254308
|
// remark: fussy details ported from native code. The obscure cases seemed "unlikely" at first. But pre-existing
|
|
254299
254309
|
// unit tests for triangulation pinged just about everything. So it really matters to do the "0" cases this way
|
|
@@ -254354,7 +254364,7 @@ class HalfEdge {
|
|
|
254354
254364
|
* @param nodeB the second node in the chain; the node at the sector vertex.
|
|
254355
254365
|
* @param nodeC the third node in the chain, nominally the face successor of nodeB.
|
|
254356
254366
|
* @param signedAreaTol optional signed area tolerance to use in test for parallel vectors. Typically this is a
|
|
254357
|
-
* fraction of the sector's face's signed area. We can't compute area here, so if undefined
|
|
254367
|
+
* fraction of the sector's face's signed area. We can't compute area here, so if `undefined`, zero tolerance is used.
|
|
254358
254368
|
* @returns true iff the sector is convex. A degenerate sector, where the incident edges overlap, returns false.
|
|
254359
254369
|
*/
|
|
254360
254370
|
static isSectorConvex(nodeA, nodeB, nodeC, signedAreaTol = 0) {
|
|
@@ -254373,7 +254383,7 @@ class HalfEdge {
|
|
|
254373
254383
|
* (convex) or a right turn (not-convex). Note that if we have a convex face, then to traverse it in ccw orientation,
|
|
254374
254384
|
* we always do left turns. However, if the face is not convex, we make both left and right turns.
|
|
254375
254385
|
* * This computation ignores z-coordinates.
|
|
254376
|
-
* @param signedAreaTol optional signed area tolerance to use in test for parallel vectors. If undefined
|
|
254386
|
+
* @param signedAreaTol optional signed area tolerance to use in test for parallel vectors. If `undefined`, a fraction
|
|
254377
254387
|
* (`Geometry.smallMetricDistanceSquared`) of the computed signed area is used. Pass 0 to skip toleranced computation.
|
|
254378
254388
|
* @returns true iff the sector is convex. A degenerate sector, where the incident edges overlap, returns false.
|
|
254379
254389
|
*/
|
|
@@ -254662,7 +254672,7 @@ class HalfEdge {
|
|
|
254662
254672
|
}
|
|
254663
254673
|
/**
|
|
254664
254674
|
* Compute fractional coordinates of the intersection of edges from given base nodes.
|
|
254665
|
-
* * If parallel or colinear, return undefined
|
|
254675
|
+
* * If parallel or colinear, return `undefined`.
|
|
254666
254676
|
* * If (possibly extended) lines intersect, return the fractions of intersection as x,y in the result.
|
|
254667
254677
|
* @param nodeA0 base node of edge A.
|
|
254668
254678
|
* @param nodeB0 base node of edge B.
|
|
@@ -254683,7 +254693,7 @@ class HalfEdge {
|
|
|
254683
254693
|
}
|
|
254684
254694
|
/**
|
|
254685
254695
|
* Compute fractional position (possibly outside 0..1) of the intersection of a horizontal line with an edge.
|
|
254686
|
-
* * If the edge is horizontal with (approximate) identical y, return the node.
|
|
254696
|
+
* * If the edge is horizontal with (approximate) identical y, return the base node.
|
|
254687
254697
|
* * If the edge is horizontal with different y, return `undefined`.
|
|
254688
254698
|
* @param node0 base node of edge.
|
|
254689
254699
|
* @param y y coordinate of the horizontal line.
|
|
@@ -254835,7 +254845,7 @@ class HalfEdgeGraph {
|
|
|
254835
254845
|
/**
|
|
254836
254846
|
* Create a new vertex within the edge beginning at `base`.
|
|
254837
254847
|
* * This creates two new nodes in their own vertex loop.
|
|
254838
|
-
* * If the base is undefined
|
|
254848
|
+
* * If the base is `undefined`, create a single-edge loop.
|
|
254839
254849
|
* * Existing nodes stay in their face and vertex loops and retain xyz and i values.
|
|
254840
254850
|
* * Unlike [[pinch]], this breaks the edgeMate pairing of the input edge:
|
|
254841
254851
|
* each node of the input edge gets a new node as its edge mate.
|
|
@@ -255925,6 +255935,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
255925
255935
|
* @internal
|
|
255926
255936
|
*/
|
|
255927
255937
|
class NodeXYZUV {
|
|
255938
|
+
/** Constructor */
|
|
255928
255939
|
constructor(node, x, y, z, u, v) {
|
|
255929
255940
|
this._x = x;
|
|
255930
255941
|
this._y = y;
|
|
@@ -255933,7 +255944,8 @@ class NodeXYZUV {
|
|
|
255933
255944
|
this._v = v;
|
|
255934
255945
|
this._node = node;
|
|
255935
255946
|
}
|
|
255936
|
-
/**
|
|
255947
|
+
/**
|
|
255948
|
+
* Set all content directly from args.
|
|
255937
255949
|
* @returns `this` reference
|
|
255938
255950
|
*/
|
|
255939
255951
|
set(node, x, y, z, u, v) {
|
|
@@ -255945,6 +255957,7 @@ class NodeXYZUV {
|
|
|
255945
255957
|
this._node = node;
|
|
255946
255958
|
return this;
|
|
255947
255959
|
}
|
|
255960
|
+
/** Set from `other` */
|
|
255948
255961
|
setFrom(other) {
|
|
255949
255962
|
this._x = other.x;
|
|
255950
255963
|
this._y = other.y;
|
|
@@ -255953,9 +255966,13 @@ class NodeXYZUV {
|
|
|
255953
255966
|
this._v = other.v;
|
|
255954
255967
|
this._node = other.node;
|
|
255955
255968
|
}
|
|
255956
|
-
/**
|
|
255957
|
-
*
|
|
255958
|
-
* *
|
|
255969
|
+
/**
|
|
255970
|
+
* Create a `NodeXYZUV` with:
|
|
255971
|
+
* * node from the given HalfEdge.
|
|
255972
|
+
* * x,y,z as the coordinates of `node`.
|
|
255973
|
+
* * u as the xy dot product of vectorA with `ray.direction`, where vectorA is the vector from ray origin to
|
|
255974
|
+
* `node` coordinates.
|
|
255975
|
+
* * v as the xy cross product of `ray.direction` with vectorA.
|
|
255959
255976
|
*/
|
|
255960
255977
|
static createNodeAndRayOrigin(node, ray, result) {
|
|
255961
255978
|
const x = node.x;
|
|
@@ -255969,28 +255986,42 @@ class NodeXYZUV {
|
|
|
255969
255986
|
return result.set(node, x, y, z, u, v);
|
|
255970
255987
|
return new NodeXYZUV(node, x, y, z, u, v);
|
|
255971
255988
|
}
|
|
255972
|
-
/** Create a `NodeXYZUV` with explicit node
|
|
255989
|
+
/** Create a `NodeXYZUV` with explicit `node`, xyz, uv. */
|
|
255973
255990
|
static create(node, x = 0, y = 0, z = 0, u = 0, v = 0) {
|
|
255974
255991
|
return new NodeXYZUV(node, x, y, z, u, v);
|
|
255975
255992
|
}
|
|
255976
255993
|
/** Access the node. */
|
|
255977
|
-
get node() {
|
|
255978
|
-
|
|
255979
|
-
|
|
255980
|
-
/** Access the
|
|
255981
|
-
get
|
|
255982
|
-
|
|
255983
|
-
|
|
255984
|
-
/** Access the
|
|
255985
|
-
get
|
|
255986
|
-
|
|
255987
|
-
|
|
255994
|
+
get node() {
|
|
255995
|
+
return this._node;
|
|
255996
|
+
}
|
|
255997
|
+
/** Access the x coordinate. */
|
|
255998
|
+
get x() {
|
|
255999
|
+
return this._x;
|
|
256000
|
+
}
|
|
256001
|
+
/** Access the y coordinate. */
|
|
256002
|
+
get y() {
|
|
256003
|
+
return this._y;
|
|
256004
|
+
}
|
|
256005
|
+
/** Access the z coordinate. */
|
|
256006
|
+
get z() {
|
|
256007
|
+
return this._z;
|
|
256008
|
+
}
|
|
256009
|
+
/** Access the u coordinate. */
|
|
256010
|
+
get u() {
|
|
256011
|
+
return this._u;
|
|
256012
|
+
}
|
|
256013
|
+
/** Access the v coordinate. */
|
|
256014
|
+
get v() {
|
|
256015
|
+
return this._v;
|
|
256016
|
+
}
|
|
255988
256017
|
/** Access the x,y,z coordinates as Point3d with optional caller-supplied result. */
|
|
255989
256018
|
getXYZAsPoint3d(result) {
|
|
255990
256019
|
return _geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(this._x, this._y, this._z, result);
|
|
255991
256020
|
}
|
|
255992
256021
|
/** Access the uv coordinates as Point2d with optional caller-supplied result. */
|
|
255993
|
-
getUVAsPoint2d(result) {
|
|
256022
|
+
getUVAsPoint2d(result) {
|
|
256023
|
+
return _geometry3d_Point2dVector2d__WEBPACK_IMPORTED_MODULE_2__.Point2d.create(this._u, this._v, result);
|
|
256024
|
+
}
|
|
255994
256025
|
/** Toleranced comparison function for u coordinate */
|
|
255995
256026
|
classifyU(target, tol) {
|
|
255996
256027
|
const delta = this.u - target;
|
|
@@ -289009,7 +289040,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
289009
289040
|
/***/ ((module) => {
|
|
289010
289041
|
|
|
289011
289042
|
"use strict";
|
|
289012
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.4.0-dev.
|
|
289043
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.4.0-dev.4","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.4.0-dev.4","@itwin/core-bentley":"workspace:^4.4.0-dev.4","@itwin/core-common":"workspace:^4.4.0-dev.4","@itwin/core-geometry":"workspace:^4.4.0-dev.4","@itwin/core-orbitgt":"workspace:^4.4.0-dev.4","@itwin/core-quantity":"workspace:^4.4.0-dev.4"},"//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/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"}}');
|
|
289013
289044
|
|
|
289014
289045
|
/***/ })
|
|
289015
289046
|
|