@loaders.gl/3d-tiles 4.0.4 → 4.0.6
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DataViewFile } from '@loaders.gl/loader-utils';
|
|
2
2
|
import { parse3DTilesArchive as parse3DTilesArchiveFromProvider } from "./3d-tiles-archive/3d-tiles-archive-parser.js";
|
|
3
|
-
const VERSION = typeof
|
|
3
|
+
const VERSION = typeof "4.0.6" !== 'undefined' ? "4.0.6" : 'latest';
|
|
4
4
|
export const Tiles3DArchiveFileLoader = {
|
|
5
5
|
name: '3tz',
|
|
6
6
|
id: '3tz',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3d-tiles-archive-loader.js","names":["DataViewFile","parse3DTilesArchive","parse3DTilesArchiveFromProvider","VERSION","
|
|
1
|
+
{"version":3,"file":"3d-tiles-archive-loader.js","names":["DataViewFile","parse3DTilesArchive","parse3DTilesArchiveFromProvider","VERSION","Tiles3DArchiveFileLoader","name","id","module","version","mimeTypes","parse","extensions","options","data","_options$3dTilesArc","_options$3dTilesArc2","arguments","length","undefined","archive","DataView","getFile","path"],"sources":["../src/3d-tiles-archive-loader.ts"],"sourcesContent":["import type {LoaderOptions, LoaderWithParser} from '@loaders.gl/loader-utils';\nimport {DataViewFile} from '@loaders.gl/loader-utils';\nimport {parse3DTilesArchive as parse3DTilesArchiveFromProvider} from './3d-tiles-archive/3d-tiles-archive-parser';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\n/** options to load data from 3tz */\nexport type Tiles3DArchiveFileLoaderOptions = LoaderOptions & {\n '3d-tiles-archive'?: {\n /** path inside the 3tz archive */\n path?: string;\n };\n};\n\n/**\n * Loader for 3tz packages\n */\nexport const Tiles3DArchiveFileLoader: LoaderWithParser<\n ArrayBuffer,\n never,\n Tiles3DArchiveFileLoaderOptions\n> = {\n name: '3tz',\n id: '3tz',\n module: '3d-tiles',\n version: VERSION,\n mimeTypes: ['application/octet-stream', 'application/vnd.maxar.archive.3tz+zip'],\n parse: parse3DTilesArchive,\n extensions: ['3tz'],\n options: {}\n};\n\n/**\n * returns a single file from the 3tz archive\n * @param data 3tz archive data\n * @param options options\n * @returns requested file\n */\nasync function parse3DTilesArchive(\n data: ArrayBuffer,\n options: Tiles3DArchiveFileLoaderOptions = {}\n): Promise<ArrayBuffer> {\n const archive = await parse3DTilesArchiveFromProvider(new DataViewFile(new DataView(data)));\n return archive.getFile(options['3d-tiles-archive']?.path ?? '');\n}\n"],"mappings":"AACA,SAAQA,YAAY,QAAO,0BAA0B;AAAC,SAC9CC,mBAAmB,IAAIC,+BAA+B;AAI9D,MAAMC,OAAO,GAAG,cAAkB,KAAK,WAAW,aAAiB,QAAQ;AAa3E,OAAO,MAAMC,wBAIZ,GAAG;EACFC,IAAI,EAAE,KAAK;EACXC,EAAE,EAAE,KAAK;EACTC,MAAM,EAAE,UAAU;EAClBC,OAAO,EAAEL,OAAO;EAChBM,SAAS,EAAE,CAAC,0BAA0B,EAAE,uCAAuC,CAAC;EAChFC,KAAK,EAAET,mBAAmB;EAC1BU,UAAU,EAAE,CAAC,KAAK,CAAC;EACnBC,OAAO,EAAE,CAAC;AACZ,CAAC;AAQD,eAAeX,mBAAmBA,CAChCY,IAAiB,EAEK;EAAA,IAAAC,mBAAA,EAAAC,oBAAA;EAAA,IADtBH,OAAwC,GAAAI,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAE7C,MAAMG,OAAO,GAAG,MAAMjB,+BAA+B,CAAC,IAAIF,YAAY,CAAC,IAAIoB,QAAQ,CAACP,IAAI,CAAC,CAAC,CAAC;EAC3F,OAAOM,OAAO,CAACE,OAAO,EAAAP,mBAAA,IAAAC,oBAAA,GAACH,OAAO,CAAC,kBAAkB,CAAC,cAAAG,oBAAA,uBAA3BA,oBAAA,CAA6BO,IAAI,cAAAR,mBAAA,cAAAA,mBAAA,GAAI,EAAE,CAAC;AACjE"}
|
package/dist/dist.dev.js
CHANGED
|
@@ -4302,15 +4302,14 @@ var __exports__ = (() => {
|
|
|
4302
4302
|
var nodeVersion = matches && parseFloat(matches[1]) || 0;
|
|
4303
4303
|
|
|
4304
4304
|
// ../worker-utils/src/lib/env-utils/version.ts
|
|
4305
|
-
var NPM_TAG = "latest";
|
|
4306
4305
|
function getVersion() {
|
|
4307
4306
|
if (!globalThis._loadersgl_?.version) {
|
|
4308
4307
|
globalThis._loadersgl_ = globalThis._loadersgl_ || {};
|
|
4309
|
-
if (
|
|
4308
|
+
if (false) {
|
|
4310
4309
|
console.warn("loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.");
|
|
4311
4310
|
globalThis._loadersgl_.version = NPM_TAG;
|
|
4312
4311
|
} else {
|
|
4313
|
-
globalThis._loadersgl_.version =
|
|
4312
|
+
globalThis._loadersgl_.version = "4.0.6";
|
|
4314
4313
|
}
|
|
4315
4314
|
}
|
|
4316
4315
|
return globalThis._loadersgl_.version;
|
|
@@ -10073,7 +10072,7 @@ var __exports__ = (() => {
|
|
|
10073
10072
|
}({});
|
|
10074
10073
|
|
|
10075
10074
|
// src/lib/utils/version.ts
|
|
10076
|
-
var VERSION2 =
|
|
10075
|
+
var VERSION2 = true ? "4.0.6" : "latest";
|
|
10077
10076
|
|
|
10078
10077
|
// src/lib/constants.ts
|
|
10079
10078
|
var TILE3D_TYPE = {
|
|
@@ -10107,7 +10106,7 @@ var __exports__ = (() => {
|
|
|
10107
10106
|
}
|
|
10108
10107
|
|
|
10109
10108
|
// ../draco/src/lib/utils/version.ts
|
|
10110
|
-
var VERSION3 =
|
|
10109
|
+
var VERSION3 = true ? "4.0.6" : "latest";
|
|
10111
10110
|
|
|
10112
10111
|
// ../draco/src/draco-loader.ts
|
|
10113
10112
|
var DEFAULT_DRACO_OPTIONS = {
|
|
@@ -11815,7 +11814,7 @@ var __exports__ = (() => {
|
|
|
11815
11814
|
});
|
|
11816
11815
|
|
|
11817
11816
|
// ../images/src/lib/utils/version.ts
|
|
11818
|
-
var VERSION4 =
|
|
11817
|
+
var VERSION4 = true ? "4.0.6" : "latest";
|
|
11819
11818
|
|
|
11820
11819
|
// ../images/src/lib/category-api/image-type.ts
|
|
11821
11820
|
var parseImageNode = globalThis.loaders?.parseImageNode;
|
|
@@ -13521,10 +13520,10 @@ var __exports__ = (() => {
|
|
|
13521
13520
|
}
|
|
13522
13521
|
|
|
13523
13522
|
// ../gltf/src/lib/utils/version.ts
|
|
13524
|
-
var VERSION5 =
|
|
13523
|
+
var VERSION5 = true ? "4.0.6" : "latest";
|
|
13525
13524
|
|
|
13526
13525
|
// ../textures/src/lib/utils/version.ts
|
|
13527
|
-
var VERSION6 =
|
|
13526
|
+
var VERSION6 = true ? "4.0.6" : "latest";
|
|
13528
13527
|
|
|
13529
13528
|
// ../textures/src/lib/parsers/basis-module-loader.ts
|
|
13530
13529
|
var BASIS_EXTERNAL_LIBRARIES = {
|
|
@@ -19312,7 +19311,7 @@ var __exports__ = (() => {
|
|
|
19312
19311
|
};
|
|
19313
19312
|
|
|
19314
19313
|
// src/3d-tiles-archive-loader.ts
|
|
19315
|
-
var VERSION8 =
|
|
19314
|
+
var VERSION8 = true ? "4.0.6" : "latest";
|
|
19316
19315
|
var Tiles3DArchiveFileLoader = {
|
|
19317
19316
|
name: "3tz",
|
|
19318
19317
|
id: "3tz",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = typeof
|
|
1
|
+
export const VERSION = typeof "4.0.6" !== 'undefined' ? "4.0.6" : 'latest';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","names":["VERSION"
|
|
1
|
+
{"version":3,"file":"version.js","names":["VERSION"],"sources":["../../../src/lib/utils/version.ts"],"sourcesContent":["// Version constant cannot be imported, it needs to correspond to the build version of **this** module.\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nexport const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n"],"mappings":"AAGA,OAAO,MAAMA,OAAO,GAAG,cAAkB,KAAK,WAAW,aAAiB,QAAQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/3d-tiles",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.6",
|
|
4
4
|
"description": "3D Tiles, an open standard for streaming massive heterogeneous 3D geospatial datasets.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"build-bundle": "ocular-bundle ./src/index.ts"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@loaders.gl/draco": "4.0.
|
|
46
|
-
"@loaders.gl/gltf": "4.0.
|
|
47
|
-
"@loaders.gl/loader-utils": "4.0.
|
|
48
|
-
"@loaders.gl/math": "4.0.
|
|
49
|
-
"@loaders.gl/tiles": "4.0.
|
|
50
|
-
"@loaders.gl/zip": "4.0.
|
|
45
|
+
"@loaders.gl/draco": "4.0.6",
|
|
46
|
+
"@loaders.gl/gltf": "4.0.6",
|
|
47
|
+
"@loaders.gl/loader-utils": "4.0.6",
|
|
48
|
+
"@loaders.gl/math": "4.0.6",
|
|
49
|
+
"@loaders.gl/tiles": "4.0.6",
|
|
50
|
+
"@loaders.gl/zip": "4.0.6",
|
|
51
51
|
"@math.gl/core": "^4.0.0",
|
|
52
52
|
"@math.gl/geospatial": "^4.0.0",
|
|
53
53
|
"@probe.gl/log": "^4.0.4",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@loaders.gl/core": "^4.0.0"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "1582e06e4ac81b61091148f3d872f67478fe7511"
|
|
60
60
|
}
|