@loaders.gl/tiles
Advanced tools
Comparing version 3.0.0-alpha.19 to 3.0.0-alpha.20
{ | ||
"name": "@loaders.gl/tiles", | ||
"version": "3.0.0-alpha.19", | ||
"version": "3.0.0-alpha.20", | ||
"description": "Common components for different tiles loaders.", | ||
@@ -35,9 +35,9 @@ "license": "MIT", | ||
"dependencies": { | ||
"@loaders.gl/core": "3.0.0-alpha.19", | ||
"@loaders.gl/loader-utils": "3.0.0-alpha.19", | ||
"@loaders.gl/math": "3.0.0-alpha.19", | ||
"@math.gl/core": "^3.3.0", | ||
"@math.gl/culling": "^3.3.0", | ||
"@math.gl/geospatial": "^3.3.0", | ||
"@math.gl/web-mercator": "^3.3.0", | ||
"@loaders.gl/core": "3.0.0-alpha.20", | ||
"@loaders.gl/loader-utils": "3.0.0-alpha.20", | ||
"@loaders.gl/math": "3.0.0-alpha.20", | ||
"@math.gl/core": "3.5.0-alpha.1", | ||
"@math.gl/culling": "3.5.0-alpha.1", | ||
"@math.gl/geospatial": "3.5.0-alpha.1", | ||
"@math.gl/web-mercator": "3.5.0-alpha.1", | ||
"@probe.gl/stats": "^3.3.0" | ||
@@ -48,3 +48,3 @@ }, | ||
}, | ||
"gitHead": "4e0a11c8f59a3c3b96eab8e5b81469f72d682e96" | ||
"gitHead": "a21d85019d34c9045feae797e22ee7ce7f34d648" | ||
} |
@@ -20,6 +20,4 @@ // This file is derived from the Cesium code base under Apache 2 license | ||
export function calculateDynamicScreenSpaceError(root, {camera, mapProjection}, options = {}) { | ||
const { | ||
dynamicScreenSpaceErrorHeightFalloff = 0.25, | ||
dynamicScreenSpaceErrorDensity = 0.00278 | ||
} = options; | ||
const {dynamicScreenSpaceErrorHeightFalloff = 0.25, dynamicScreenSpaceErrorDensity = 0.00278} = | ||
options; | ||
@@ -26,0 +24,0 @@ let up; |
@@ -349,6 +349,6 @@ // This file is derived from the Cesium code base under Apache 2 license | ||
} | ||
const set1 = new Set(oldSelectedTiles.map(t => t.id)); | ||
const set2 = new Set(selectedTiles.map(t => t.id)); | ||
let changed = oldSelectedTiles.filter(x => !set2.has(x.id)).length > 0; | ||
changed = changed || selectedTiles.filter(x => !set1.has(x.id)).length > 0; | ||
const set1 = new Set(oldSelectedTiles.map((t) => t.id)); | ||
const set2 = new Set(selectedTiles.map((t) => t.id)); | ||
let changed = oldSelectedTiles.filter((x) => !set2.has(x.id)).length > 0; | ||
changed = changed || selectedTiles.filter((x) => !set1.has(x.id)).length > 0; | ||
return changed; | ||
@@ -542,3 +542,3 @@ } | ||
_addTileToCache(tile) { | ||
this._cache.add(this, tile, tileset => tileset._updateCacheStats(tile)); | ||
this._cache.add(this, tile, (tileset) => tileset._updateCacheStats(tile)); | ||
} | ||
@@ -545,0 +545,0 @@ |
@@ -17,7 +17,7 @@ const STATUS = { | ||
request() | ||
.then(data => { | ||
.then((data) => { | ||
this._statusMap[key].status = STATUS.COMPLETED; | ||
this._statusMap[key].callback(data, frameState); | ||
}) | ||
.catch(error => { | ||
.catch((error) => { | ||
this._statusMap[key].status = STATUS.ERROR; | ||
@@ -24,0 +24,0 @@ callback(error); |
@@ -29,3 +29,3 @@ import {load} from '@loaders.gl/core'; | ||
// if child tile is not fetched | ||
const childTile = childTiles && childTiles.find(t => t.id === extendedId); | ||
const childTile = childTiles && childTiles.find((t) => t.id === extendedId); | ||
if (!childTile) { | ||
@@ -42,3 +42,3 @@ let request = () => this._loadTile(child.id, tileset); | ||
extendedId, | ||
header => this._onTileLoad(header, tile, extendedId), | ||
(header) => this._onTileLoad(header, tile, extendedId), | ||
frameState | ||
@@ -45,0 +45,0 @@ ); |
@@ -342,3 +342,3 @@ import ManagedArray from '../../utils/managed-array'; | ||
if (traverse) { | ||
const children = tile.children.filter(c => c); | ||
const children = tile.children.filter((c) => c); | ||
for (const child of children) { | ||
@@ -345,0 +345,0 @@ // eslint-disable-next-line max-depth |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2610261
107
6
9052
+ Added@loaders.gl/core@3.0.0-alpha.20(transitive)
+ Added@loaders.gl/images@3.0.0-alpha.20(transitive)
+ Added@loaders.gl/loader-utils@3.0.0-alpha.20(transitive)
+ Added@loaders.gl/math@3.0.0-alpha.20(transitive)
+ Added@loaders.gl/worker-utils@3.0.0-alpha.20(transitive)
+ Added@math.gl/core@3.5.0-alpha.1(transitive)
+ Added@math.gl/culling@3.5.0-alpha.1(transitive)
+ Added@math.gl/geospatial@3.5.0-alpha.1(transitive)
+ Added@math.gl/web-mercator@3.5.0-alpha.1(transitive)
- Removed@loaders.gl/core@3.0.0-alpha.19(transitive)
- Removed@loaders.gl/images@3.0.0-alpha.19(transitive)
- Removed@loaders.gl/loader-utils@3.0.0-alpha.19(transitive)
- Removed@loaders.gl/math@3.0.0-alpha.19(transitive)
- Removed@loaders.gl/worker-utils@3.0.0-alpha.19(transitive)
- Removed@math.gl/core@3.6.3(transitive)
- Removed@math.gl/culling@3.6.3(transitive)
- Removed@math.gl/geospatial@3.6.3(transitive)
- Removed@math.gl/types@3.6.3(transitive)
- Removed@math.gl/web-mercator@3.6.3(transitive)
Updated@math.gl/core@3.5.0-alpha.1