bruce-cesium 3.0.4 → 3.0.6
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/dist/bruce-cesium.es5.js +13 -6
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +12 -5
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/visuals-register.js +11 -4
- package/dist/lib/rendering/visuals-register.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -6387,20 +6387,27 @@
|
|
|
6387
6387
|
* @returns
|
|
6388
6388
|
*/
|
|
6389
6389
|
Register.prototype.GetRegosFromCursor = function (params) {
|
|
6390
|
-
var _a;
|
|
6390
|
+
var _a, _b;
|
|
6391
6391
|
var cursor = params.cursor;
|
|
6392
6392
|
var found = [];
|
|
6393
6393
|
var width = Math.ceil(EnsureNumber(params.width, 5));
|
|
6394
6394
|
var height = Math.ceil(EnsureNumber(params.height, 5));
|
|
6395
6395
|
var pickLimit = Math.ceil(EnsureNumber(params.pickLimit, 5));
|
|
6396
6396
|
var picked = this.viewer.scene.drillPick(new Cesium.Cartesian2(cursor.x, cursor.y), pickLimit, width, height);
|
|
6397
|
-
|
|
6397
|
+
var _loop_5 = function (i) {
|
|
6398
6398
|
var object = picked[i];
|
|
6399
6399
|
var entity = (object && object.id && object.id instanceof Cesium.Entity ? object.id : object);
|
|
6400
6400
|
var visual = entity;
|
|
6401
|
-
if (((_a = visual === null || visual === void 0 ? void 0 : visual._register) === null || _a === void 0 ? void 0 : _a.Id) ==
|
|
6402
|
-
|
|
6401
|
+
if (((_a = visual === null || visual === void 0 ? void 0 : visual._register) === null || _a === void 0 ? void 0 : _a.Id) == this_3.id) {
|
|
6402
|
+
var foundEntityId_1 = (_b = visual._rego) === null || _b === void 0 ? void 0 : _b.entityId;
|
|
6403
|
+
if (foundEntityId_1 && found.findIndex(function (x) { return x.entityId == foundEntityId_1; }) <= -1) {
|
|
6404
|
+
found.push(visual._rego);
|
|
6405
|
+
}
|
|
6403
6406
|
}
|
|
6407
|
+
};
|
|
6408
|
+
var this_3 = this;
|
|
6409
|
+
for (var i = 0; i < picked.length; i++) {
|
|
6410
|
+
_loop_5(i);
|
|
6404
6411
|
}
|
|
6405
6412
|
return {
|
|
6406
6413
|
regos: found
|
|
@@ -18385,7 +18392,7 @@
|
|
|
18385
18392
|
ViewerUtils.CreateWidgets = CreateWidgets;
|
|
18386
18393
|
})(exports.ViewerUtils || (exports.ViewerUtils = {}));
|
|
18387
18394
|
|
|
18388
|
-
var VERSION$1 = "3.0.
|
|
18395
|
+
var VERSION$1 = "3.0.6";
|
|
18389
18396
|
|
|
18390
18397
|
exports.VERSION = VERSION$1;
|
|
18391
18398
|
exports.CesiumParabola = CesiumParabola;
|