3d-tiles-renderer
Advanced tools
Comparing version 0.3.34 to 0.3.35
{ | ||
"name": "3d-tiles-renderer", | ||
"version": "0.3.34", | ||
"version": "0.3.35", | ||
"description": "https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/master/specification", | ||
@@ -44,8 +44,10 @@ "keywords": [ | ||
"@types/three": "^0.165.0", | ||
"@typescript-eslint/eslint-plugin": "^7.14.1", | ||
"@typescript-eslint/parser": "^7.14.1", | ||
"babel-jest": "^29.5.0", | ||
"cesium": "^1.97.0", | ||
"concurrently": "^6.2.1", | ||
"eslint": "^7.10.0", | ||
"eslint-config-mdcs": "^4.2.3", | ||
"eslint-plugin-jest": "^24.1.0", | ||
"@types/eslint": "^7.28.1", | ||
"eslint-config-mdcs": "^5.0.0", | ||
"eslint-plugin-jest": "^28.6.0", | ||
"jest": "^27.1.1", | ||
@@ -52,0 +54,0 @@ "jest-cli": "^27.1.1", |
@@ -373,3 +373,3 @@ import { getUrlExtension } from '../utilities/urlExtension.js'; | ||
// remove trailing slash and last path-segment from the URL | ||
let basePath = url.replace( /\/[^\/]*\/?$/, '' ); | ||
let basePath = url.replace( /\/[^/]*\/?$/, '' ); | ||
basePath = new URL( basePath, window.location.href ).toString(); | ||
@@ -664,3 +664,3 @@ this.preprocessNode( json.root, basePath, parent ); | ||
lruCache.remove( toRemove[ i ] ); | ||
lruCache.remove( toRemove[ i ] ); | ||
@@ -667,0 +667,0 @@ } |
@@ -411,10 +411,2 @@ import { Box3Helper, Group, MeshStandardMaterial, PointsMaterial, Sphere } from 'three'; | ||
parseTile( buffer, tile, ext ) { | ||
tile[ LOAD_TIME ] = performance.now(); | ||
return super.parseTile( buffer, tile, ext ); | ||
} | ||
setTileVisible( tile, visible ) { | ||
@@ -481,2 +473,4 @@ | ||
tile[ LOAD_TIME ] = performance.now(); | ||
return super | ||
@@ -483,0 +477,0 @@ .parseTile( buffer, tile, extension ) |
@@ -179,3 +179,3 @@ import { Vector2 } from 'three'; | ||
const arr = target[ i ]; | ||
for ( let j = 0, lj = arr.length; j < lj; lj ++ ) { | ||
for ( let j = 0, lj = arr.length; j < lj; j ++ ) { | ||
@@ -182,0 +182,0 @@ arr[ j ] = property.readDataFromBuffer( readBuffer, j, arr[ j ] ); |
@@ -207,3 +207,3 @@ import { | ||
const elements = target.elements; | ||
for ( const i = 0, l = elements.length; i < l; i ++ ) { | ||
for ( let i = 0, l = elements.length; i < l; i ++ ) { | ||
@@ -210,0 +210,0 @@ elements[ i ] = defaultValue[ i ]; |
@@ -545,3 +545,3 @@ import { TilesRendererBase } from '../base/TilesRendererBase.js'; | ||
const uri = tile.content.uri; | ||
const uriSplits = uri.split( /[\\\/]/g ); | ||
const uriSplits = uri.split( /[\\/]/g ); | ||
uriSplits.pop(); | ||
@@ -628,3 +628,4 @@ const workingPath = uriSplits.join( '/' ); | ||
case 'gltf': | ||
case 'glb': | ||
case 'glb': { | ||
const loader = new GLTFExtensionLoader( manager ); | ||
@@ -636,2 +637,4 @@ loader.workingPath = workingPath; | ||
} | ||
default: | ||
@@ -665,2 +668,3 @@ console.warn( `TilesRenderer: Content type "${ fileType }" not supported.` ); | ||
} | ||
// ensure the matrix is up to date in case the scene has a transform applied | ||
@@ -667,0 +671,0 @@ scene.updateMatrix(); |
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
280825
16
7016