@loaders.gl/draco
Advanced tools
Comparing version 4.0.4 to 4.1.0-alpha.1
@@ -62,10 +62,2 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
// src/draco-loader.ts | ||
var DEFAULT_DRACO_OPTIONS = { | ||
draco: { | ||
decoderType: typeof WebAssembly === "object" ? "wasm" : "js", | ||
libraryPath: "libs/", | ||
extraAttributes: {}, | ||
attributeNameEntry: void 0 | ||
} | ||
}; | ||
var DracoLoader = { | ||
@@ -81,3 +73,10 @@ name: "Draco", | ||
tests: ["DRACO"], | ||
options: DEFAULT_DRACO_OPTIONS | ||
options: { | ||
draco: { | ||
decoderType: typeof WebAssembly === "object" ? "wasm" : "js", | ||
libraryPath: "libs/", | ||
extraAttributes: {}, | ||
attributeNameEntry: void 0 | ||
} | ||
} | ||
}; | ||
@@ -84,0 +83,0 @@ |
import { VERSION } from "./lib/utils/version.js"; | ||
const DEFAULT_DRACO_OPTIONS = { | ||
draco: { | ||
decoderType: typeof WebAssembly === 'object' ? 'wasm' : 'js', | ||
libraryPath: 'libs/', | ||
extraAttributes: {}, | ||
attributeNameEntry: undefined | ||
} | ||
}; | ||
export const DracoLoader = { | ||
@@ -20,4 +12,11 @@ name: 'Draco', | ||
tests: ['DRACO'], | ||
options: DEFAULT_DRACO_OPTIONS | ||
options: { | ||
draco: { | ||
decoderType: typeof WebAssembly === 'object' ? 'wasm' : 'js', | ||
libraryPath: 'libs/', | ||
extraAttributes: {}, | ||
attributeNameEntry: undefined | ||
} | ||
} | ||
}; | ||
//# sourceMappingURL=draco-loader.js.map |
@@ -46,3 +46,3 @@ "use strict"; | ||
} else { | ||
globalThis._loadersgl_.version = "4.0.4"; | ||
globalThis._loadersgl_.version = "4.1.0-alpha.1"; | ||
} | ||
@@ -362,14 +362,5 @@ } | ||
// src/lib/utils/version.ts | ||
var VERSION2 = true ? "4.0.4" : "latest"; | ||
var VERSION2 = true ? "4.1.0-alpha.1" : "latest"; | ||
// src/draco-loader.ts | ||
var DEFAULT_DRACO_OPTIONS = { | ||
draco: { | ||
decoderType: typeof WebAssembly === "object" ? "wasm" : "js", | ||
// 'js' for IE11 | ||
libraryPath: "libs/", | ||
extraAttributes: {}, | ||
attributeNameEntry: void 0 | ||
} | ||
}; | ||
var DracoLoader = { | ||
@@ -386,3 +377,11 @@ name: "Draco", | ||
tests: ["DRACO"], | ||
options: DEFAULT_DRACO_OPTIONS | ||
options: { | ||
draco: { | ||
decoderType: typeof WebAssembly === "object" ? "wasm" : "js", | ||
// 'js' for IE11 | ||
libraryPath: "libs/", | ||
extraAttributes: {}, | ||
attributeNameEntry: void 0 | ||
} | ||
} | ||
}; | ||
@@ -389,0 +388,0 @@ |
@@ -46,3 +46,3 @@ "use strict"; | ||
} else { | ||
globalThis._loadersgl_.version = "4.0.4"; | ||
globalThis._loadersgl_.version = "4.1.0-alpha.1"; | ||
} | ||
@@ -655,3 +655,3 @@ } | ||
// src/lib/utils/version.ts | ||
var VERSION2 = true ? "4.0.4" : "latest"; | ||
var VERSION2 = true ? "4.1.0-alpha.1" : "latest"; | ||
@@ -658,0 +658,0 @@ // src/draco-writer.ts |
{ | ||
"name": "@loaders.gl/draco", | ||
"version": "4.0.4", | ||
"version": "4.1.0-alpha.1", | ||
"description": "Framework-independent loader and writer for Draco compressed meshes and point clouds", | ||
@@ -15,4 +15,6 @@ "license": "MIT", | ||
"keywords": [ | ||
"webgl", | ||
"loader", | ||
"parser", | ||
"writer", | ||
"encoder", | ||
"3d", | ||
@@ -22,3 +24,7 @@ "mesh", | ||
"draco3d", | ||
"draco" | ||
"draco", | ||
"geometry", | ||
"geometry compression", | ||
"webgl", | ||
"webgpu" | ||
], | ||
@@ -56,11 +62,11 @@ "types": "dist/index.d.ts", | ||
"@babel/runtime": "^7.3.1", | ||
"@loaders.gl/loader-utils": "4.0.4", | ||
"@loaders.gl/schema": "4.0.4", | ||
"@loaders.gl/worker-utils": "4.0.4", | ||
"@loaders.gl/loader-utils": "4.1.0-alpha.1", | ||
"@loaders.gl/schema": "4.1.0-alpha.1", | ||
"@loaders.gl/worker-utils": "4.1.0-alpha.1", | ||
"draco3d": "1.5.5" | ||
}, | ||
"devDependencies": { | ||
"@loaders.gl/polyfills": "4.0.4" | ||
"@loaders.gl/polyfills": "4.1.0-alpha.1" | ||
}, | ||
"gitHead": "4dc810fa04bb400f4aedfef98a83c7ef882ed3d7" | ||
"gitHead": "6a4d3da93d45115ad99861474a43c3f4a0b280a7" | ||
} |
// loaders.gl, MIT license | ||
// Copyright (c) vis.gl contributors | ||
import type {Loader, LoaderOptions} from '@loaders.gl/loader-utils'; | ||
@@ -18,11 +19,2 @@ import type {DracoMesh} from './lib/draco-types'; | ||
const DEFAULT_DRACO_OPTIONS: DracoLoaderOptions = { | ||
draco: { | ||
decoderType: typeof WebAssembly === 'object' ? 'wasm' : 'js', // 'js' for IE11 | ||
libraryPath: 'libs/', | ||
extraAttributes: {}, | ||
attributeNameEntry: undefined | ||
} | ||
}; | ||
/** | ||
@@ -42,3 +34,10 @@ * Worker loader for Draco3D compressed geometries | ||
tests: ['DRACO'], | ||
options: DEFAULT_DRACO_OPTIONS | ||
options: { | ||
draco: { | ||
decoderType: typeof WebAssembly === 'object' ? 'wasm' : 'js', // 'js' for IE11 | ||
libraryPath: 'libs/', | ||
extraAttributes: {}, | ||
attributeNameEntry: undefined | ||
} | ||
} | ||
}; |
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 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 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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
19539858
150979
8
+ Added@loaders.gl/loader-utils@4.1.0-alpha.1(transitive)
+ Added@loaders.gl/schema@4.1.0-alpha.1(transitive)
+ Added@loaders.gl/worker-utils@4.1.0-alpha.1(transitive)
- Removed@loaders.gl/loader-utils@4.0.4(transitive)
- Removed@loaders.gl/schema@4.0.4(transitive)
- Removed@loaders.gl/worker-utils@4.0.4(transitive)