@loaders.gl/tiles
Advanced tools
Comparing version 3.0.0-alpha.14 to 3.0.0-alpha.15
@@ -190,2 +190,7 @@ "use strict"; | ||
}, { | ||
key: "setOptions", | ||
value: function setOptions(options) { | ||
this.options = _objectSpread(_objectSpread({}, this.options), options); | ||
} | ||
}, { | ||
key: "getTileUrl", | ||
@@ -204,2 +209,6 @@ value: function getTileUrl(tilePath) { | ||
value: function update(viewports) { | ||
if ('loadTiles' in this.options && !this.options.loadTiles) { | ||
return; | ||
} | ||
if (this.traverseCounter > 0) { | ||
@@ -206,0 +215,0 @@ return; |
@@ -166,2 +166,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator"; | ||
}, { | ||
key: "setOptions", | ||
value: function setOptions(options) { | ||
this.options = _objectSpread(_objectSpread({}, this.options), options); | ||
} | ||
}, { | ||
key: "getTileUrl", | ||
@@ -180,2 +185,6 @@ value: function getTileUrl(tilePath) { | ||
value: function update(viewports) { | ||
if ('loadTiles' in this.options && !this.options.loadTiles) { | ||
return; | ||
} | ||
if (this.traverseCounter > 0) { | ||
@@ -182,0 +191,0 @@ return; |
{ | ||
"name": "@loaders.gl/tiles", | ||
"version": "3.0.0-alpha.14", | ||
"version": "3.0.0-alpha.15", | ||
"description": "Common components for different tiles loaders.", | ||
@@ -35,5 +35,5 @@ "license": "MIT", | ||
"dependencies": { | ||
"@loaders.gl/core": "3.0.0-alpha.14", | ||
"@loaders.gl/loader-utils": "3.0.0-alpha.14", | ||
"@loaders.gl/math": "3.0.0-alpha.14", | ||
"@loaders.gl/core": "3.0.0-alpha.15", | ||
"@loaders.gl/loader-utils": "3.0.0-alpha.15", | ||
"@loaders.gl/math": "3.0.0-alpha.15", | ||
"@math.gl/core": "^3.3.0", | ||
@@ -48,3 +48,3 @@ "@math.gl/culling": "^3.3.0", | ||
}, | ||
"gitHead": "fe9717732559902e25911b6e575d14f731b1ce7d" | ||
"gitHead": "c4ad9755e5f58c995bf6e7f7eca0d34f0adbd0dd" | ||
} |
@@ -9,2 +9,7 @@ import {Vector3} from '@math.gl/core'; | ||
/** | ||
* Calculate appropriate zoom value for a particular boundingVolume | ||
* @param {BoundingSphere, OrientedBoundingBox} boundingVolume - the instance of bounding volume | ||
* @returns {number} - zoom value | ||
*/ | ||
export function getZoomFromBoundingVolume(boundingVolume) { | ||
@@ -11,0 +16,0 @@ const {halfAxes, radius, width, height} = boundingVolume; |
@@ -220,2 +220,6 @@ // This file is derived from the Cesium code base under Apache 2 license | ||
setOptions(options) { | ||
this.options = {...this.options, ...options}; | ||
} | ||
getTileUrl(tilePath) { | ||
@@ -235,2 +239,5 @@ const isDataUrl = tilePath.startsWith('data:'); | ||
update(viewports) { | ||
if ('loadTiles' in this.options && !this.options.loadTiles) { | ||
return; | ||
} | ||
if (this.traverseCounter > 0) { | ||
@@ -237,0 +244,0 @@ return; |
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 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
1892462
26425
+ Added@loaders.gl/core@3.0.0-alpha.15(transitive)
+ Added@loaders.gl/images@3.0.0-alpha.15(transitive)
+ Added@loaders.gl/loader-utils@3.0.0-alpha.15(transitive)
+ Added@loaders.gl/math@3.0.0-alpha.15(transitive)
+ Added@loaders.gl/worker-utils@3.0.0-alpha.15(transitive)
- Removed@loaders.gl/core@3.0.0-alpha.14(transitive)
- Removed@loaders.gl/images@3.0.0-alpha.14(transitive)
- Removed@loaders.gl/loader-utils@3.0.0-alpha.14(transitive)
- Removed@loaders.gl/math@3.0.0-alpha.14(transitive)
- Removed@loaders.gl/worker-utils@3.0.0-alpha.14(transitive)