bruce-models 0.8.2 → 0.8.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/dist/bruce-models.es5.js +3 -6
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +3 -6
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/entity/getters/entity-globe.js +3 -6
- package/dist/lib/entity/getters/entity-globe.js.map +1 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -3811,10 +3811,6 @@ function getCellSizeFromHeight(height) {
|
|
|
3811
3811
|
}
|
|
3812
3812
|
return 1.5;
|
|
3813
3813
|
}
|
|
3814
|
-
function getCell(cells, cellSize, lon, maxLon, lat, maxLat) {
|
|
3815
|
-
var id = cellSize + "_" + lon + "_" + maxLon + "_" + lat + "_" + maxLat;
|
|
3816
|
-
return cells[id];
|
|
3817
|
-
}
|
|
3818
3814
|
function isCellFetched(cell) {
|
|
3819
3815
|
if (cell.Fetched) {
|
|
3820
3816
|
return true;
|
|
@@ -3823,9 +3819,9 @@ function isCellFetched(cell) {
|
|
|
3823
3819
|
}
|
|
3824
3820
|
function getOrCreateCell(cells, cellSize, lon, maxLon, lat, maxLat) {
|
|
3825
3821
|
var id = cellSize + "_" + lon + "_" + maxLon + "_" + lat + "_" + maxLat;
|
|
3826
|
-
var cell =
|
|
3822
|
+
var cell = cells[id];
|
|
3827
3823
|
if (!cell) {
|
|
3828
|
-
cell = new Cell();
|
|
3824
|
+
cell = cells[id] = new Cell();
|
|
3829
3825
|
cell.Boundaries = {
|
|
3830
3826
|
minLatitude: lat,
|
|
3831
3827
|
maxLatitude: maxLat,
|
|
@@ -3846,6 +3842,7 @@ var EntityGlobe;
|
|
|
3846
3842
|
var Grid = /** @class */ (function () {
|
|
3847
3843
|
function Grid() {
|
|
3848
3844
|
this.cells = {};
|
|
3845
|
+
this.patches = [];
|
|
3849
3846
|
}
|
|
3850
3847
|
Grid.prototype.GetCellsForView = function (viewRect) {
|
|
3851
3848
|
var _this = this;
|