@loaders.gl/3d-tiles
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -9,3 +9,2 @@ "use strict"; | ||
exports.parseBatchedModel3DTile = parseBatchedModel3DTile; | ||
exports.parseBatchedModel = parseBatchedModel; | ||
@@ -32,2 +31,4 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); | ||
_parseBatchedModel3DTile = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee(tile, arrayBuffer, byteOffset, options, context) { | ||
var _ref, extensions; | ||
return _regenerator["default"].wrap(function _callee$(_context) { | ||
@@ -42,5 +43,11 @@ while (1) { | ||
case 3: | ||
_ref = tile.gltf || {}, extensions = _ref.extensions; | ||
if (extensions && extensions.CESIUM_RTC) { | ||
tile.rtcCenter = extensions.CESIUM_RTC.center; | ||
} | ||
return _context.abrupt("return", byteOffset); | ||
case 4: | ||
case 6: | ||
case "end": | ||
@@ -62,5 +69,4 @@ return _context.stop(); | ||
tile.rtcCenter = featureTable.getGlobalProperty('RTC_CENTER', _math.GL.FLOAT, 3); | ||
(0, _parse3dTileGltfView.extractGLTF)(tile, _parse3dTileGltfView.GLTF_FORMAT.EMBEDDED, options, context); | ||
return byteOffset; | ||
} | ||
//# sourceMappingURL=parse-3d-tile-batched-model.js.map |
@@ -16,3 +16,3 @@ "use strict"; | ||
var VERSION = typeof "2.0.3" !== 'undefined' ? "2.0.3" : 'latest'; | ||
var VERSION = typeof "2.0.4" !== 'undefined' ? "2.0.4" : 'latest'; | ||
@@ -19,0 +19,0 @@ function parse(_x, _x2, _x3, _x4) { |
@@ -9,5 +9,14 @@ import { GL } from '@loaders.gl/math'; | ||
await extractGLTF(tile, GLTF_FORMAT.EMBEDDED, options, context); | ||
const { | ||
extensions | ||
} = tile.gltf || {}; | ||
if (extensions && extensions.CESIUM_RTC) { | ||
tile.rtcCenter = extensions.CESIUM_RTC.center; | ||
} | ||
return byteOffset; | ||
} | ||
export function parseBatchedModel(tile, arrayBuffer, byteOffset, options, context) { | ||
function parseBatchedModel(tile, arrayBuffer, byteOffset, options, context) { | ||
byteOffset = parse3DTileHeaderSync(tile, arrayBuffer, byteOffset, options); | ||
@@ -19,5 +28,4 @@ byteOffset = parse3DTileTablesHeaderSync(tile, arrayBuffer, byteOffset, options); | ||
tile.rtcCenter = featureTable.getGlobalProperty('RTC_CENTER', GL.FLOAT, 3); | ||
extractGLTF(tile, GLTF_FORMAT.EMBEDDED, options, context); | ||
return byteOffset; | ||
} | ||
//# sourceMappingURL=parse-3d-tile-batched-model.js.map |
@@ -1,2 +0,2 @@ | ||
const VERSION = typeof "2.0.3" !== 'undefined' ? "2.0.3" : 'latest'; | ||
const VERSION = typeof "2.0.4" !== 'undefined' ? "2.0.4" : 'latest'; | ||
import { parse3DTile } from './lib/parsers/parse-3d-tile'; | ||
@@ -3,0 +3,0 @@ |
@@ -14,2 +14,4 @@ import _regeneratorRuntime from "@babel/runtime/regenerator"; | ||
_parseBatchedModel3DTile = _asyncToGenerator(_regeneratorRuntime.mark(function _callee(tile, arrayBuffer, byteOffset, options, context) { | ||
var _ref, extensions; | ||
return _regeneratorRuntime.wrap(function _callee$(_context) { | ||
@@ -24,5 +26,11 @@ while (1) { | ||
case 3: | ||
_ref = tile.gltf || {}, extensions = _ref.extensions; | ||
if (extensions && extensions.CESIUM_RTC) { | ||
tile.rtcCenter = extensions.CESIUM_RTC.center; | ||
} | ||
return _context.abrupt("return", byteOffset); | ||
case 4: | ||
case 6: | ||
case "end": | ||
@@ -37,3 +45,3 @@ return _context.stop(); | ||
export function parseBatchedModel(tile, arrayBuffer, byteOffset, options, context) { | ||
function parseBatchedModel(tile, arrayBuffer, byteOffset, options, context) { | ||
byteOffset = parse3DTileHeaderSync(tile, arrayBuffer, byteOffset, options); | ||
@@ -45,5 +53,4 @@ byteOffset = parse3DTileTablesHeaderSync(tile, arrayBuffer, byteOffset, options); | ||
tile.rtcCenter = featureTable.getGlobalProperty('RTC_CENTER', GL.FLOAT, 3); | ||
extractGLTF(tile, GLTF_FORMAT.EMBEDDED, options, context); | ||
return byteOffset; | ||
} | ||
//# sourceMappingURL=parse-3d-tile-batched-model.js.map |
import _regeneratorRuntime from "@babel/runtime/regenerator"; | ||
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator"; | ||
var VERSION = typeof "2.0.3" !== 'undefined' ? "2.0.3" : 'latest'; | ||
var VERSION = typeof "2.0.4" !== 'undefined' ? "2.0.4" : 'latest'; | ||
import { parse3DTile } from './lib/parsers/parse-3d-tile'; | ||
@@ -5,0 +5,0 @@ |
{ | ||
"name": "@loaders.gl/3d-tiles", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "3D Tiles, an open standard for streaming massive heterogeneous 3D geospatial datasets.", | ||
@@ -37,6 +37,6 @@ "license": "MIT", | ||
"dependencies": { | ||
"@loaders.gl/core": "2.0.3", | ||
"@loaders.gl/gltf": "2.0.3", | ||
"@loaders.gl/loader-utils": "2.0.3", | ||
"@loaders.gl/math": "2.0.3", | ||
"@loaders.gl/core": "2.0.4", | ||
"@loaders.gl/gltf": "2.0.4", | ||
"@loaders.gl/loader-utils": "2.0.4", | ||
"@loaders.gl/math": "2.0.4", | ||
"@math.gl/culling": "^3.1.2", | ||
@@ -50,3 +50,3 @@ "@math.gl/geospatial": "^3.1.2", | ||
}, | ||
"gitHead": "baa25826f5d67f703a32b2edecc12a4a7d24f673" | ||
"gitHead": "c631425f5a0c9b5a2d92c595bfc4c96334011362" | ||
} |
@@ -15,6 +15,12 @@ // This file is derived from the Cesium code base under Apache 2 license | ||
await extractGLTF(tile, GLTF_FORMAT.EMBEDDED, options, context); | ||
const {extensions} = tile.gltf || {}; | ||
if (extensions && extensions.CESIUM_RTC) { | ||
tile.rtcCenter = extensions.CESIUM_RTC.center; | ||
} | ||
return byteOffset; | ||
} | ||
export function parseBatchedModel(tile, arrayBuffer, byteOffset, options, context) { | ||
function parseBatchedModel(tile, arrayBuffer, byteOffset, options, context) { | ||
byteOffset = parse3DTileHeaderSync(tile, arrayBuffer, byteOffset, options); | ||
@@ -30,5 +36,3 @@ | ||
extractGLTF(tile, GLTF_FORMAT.EMBEDDED, options, context); | ||
return byteOffset; | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3084017
42162
+ Added@loaders.gl/core@2.0.4(transitive)
+ Added@loaders.gl/gltf@2.0.4(transitive)
+ Added@loaders.gl/images@2.0.4(transitive)
+ Added@loaders.gl/loader-utils@2.0.4(transitive)
+ Added@loaders.gl/math@2.0.4(transitive)
- Removed@loaders.gl/core@2.0.3(transitive)
- Removed@loaders.gl/gltf@2.0.3(transitive)
- Removed@loaders.gl/images@2.0.3(transitive)
- Removed@loaders.gl/loader-utils@2.0.3(transitive)
- Removed@loaders.gl/math@2.0.3(transitive)
Updated@loaders.gl/core@2.0.4
Updated@loaders.gl/gltf@2.0.4
Updated@loaders.gl/math@2.0.4