@loaders.gl/draco
Advanced tools
Comparing version 1.0.3 to 1.1.0-alpha.1
@@ -14,8 +14,2 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "DracoWorkerLoader", { | ||
enumerable: true, | ||
get: function get() { | ||
return _dracoWorkerLoader["default"]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "DracoWriter", { | ||
@@ -39,7 +33,6 @@ enumerable: true, | ||
}); | ||
exports.DracoWorkerLoader = void 0; | ||
var _dracoLoader = _interopRequireDefault(require("./draco-loader")); | ||
var _dracoWorkerLoader = _interopRequireDefault(require("./draco-worker-loader")); | ||
var _dracoWriter = _interopRequireDefault(require("./draco-writer")); | ||
@@ -50,2 +43,22 @@ | ||
var _dracoBuilder = _interopRequireDefault(require("./draco-builder")); | ||
var DEPRECATION_WARNING = "DracoWorkerLoader must be imported from @loaders.gl/draco/worker-loader. Using DracoLoader instead"; | ||
function parseSync(arrayBuffer, options) { | ||
console.warn(DEPRECATION_WARNING); | ||
var dracoParser = new _dracoParser["default"](); | ||
try { | ||
return dracoParser.parseSync(arrayBuffer, options); | ||
} finally { | ||
dracoParser.destroy(); | ||
} | ||
} | ||
var DracoWorkerLoader = { | ||
name: 'DRACO', | ||
extensions: ['drc'], | ||
parseSync: parseSync | ||
}; | ||
exports.DracoWorkerLoader = DracoWorkerLoader; | ||
//# sourceMappingURL=index.js.map |
export { default as DracoLoader } from './draco-loader'; | ||
export { default as DracoWorkerLoader } from './draco-worker-loader'; | ||
export { default as DracoWriter } from './draco-writer'; | ||
export { default as DracoParser } from './draco-parser'; | ||
export { default as DracoBuilder } from './draco-builder'; | ||
import DracoParser from './draco-parser'; | ||
const DEPRECATION_WARNING = "DracoWorkerLoader must be imported from @loaders.gl/draco/worker-loader. Using DracoLoader instead"; | ||
function parseSync(arrayBuffer, options) { | ||
console.warn(DEPRECATION_WARNING); | ||
const dracoParser = new DracoParser(); | ||
try { | ||
return dracoParser.parseSync(arrayBuffer, options); | ||
} finally { | ||
dracoParser.destroy(); | ||
} | ||
} | ||
export const DracoWorkerLoader = { | ||
name: 'DRACO', | ||
extensions: ['drc'], | ||
parseSync | ||
}; | ||
//# sourceMappingURL=index.js.map |
export { default as DracoLoader } from './draco-loader'; | ||
export { default as DracoWorkerLoader } from './draco-worker-loader'; | ||
export { default as DracoWriter } from './draco-writer'; | ||
export { default as DracoParser } from './draco-parser'; | ||
export { default as DracoBuilder } from './draco-builder'; | ||
import DracoParser from './draco-parser'; | ||
var DEPRECATION_WARNING = "DracoWorkerLoader must be imported from @loaders.gl/draco/worker-loader. Using DracoLoader instead"; | ||
function parseSync(arrayBuffer, options) { | ||
console.warn(DEPRECATION_WARNING); | ||
var dracoParser = new DracoParser(); | ||
try { | ||
return dracoParser.parseSync(arrayBuffer, options); | ||
} finally { | ||
dracoParser.destroy(); | ||
} | ||
} | ||
export var DracoWorkerLoader = { | ||
name: 'DRACO', | ||
extensions: ['drc'], | ||
parseSync: parseSync | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@loaders.gl/draco", | ||
"version": "1.0.3", | ||
"version": "1.1.0-alpha.1", | ||
"description": "Framework-independent loader and writer for Draco compressed meshes and point clouds", | ||
@@ -31,7 +31,7 @@ "license": "MIT", | ||
"dist", | ||
"README.md" | ||
"README.md", | ||
"worker-loader.js" | ||
], | ||
"scripts": { | ||
"pre-build": "npm run build-worker", | ||
"pre-build-disabled": "npm run build-worker && npm run build-bundle && npm run build-bundle -- --env.dev", | ||
"pre-build": "npm run build-worker && npm run build-bundle && npm run build-bundle -- --env.dev", | ||
"build-bundle": "webpack --display=minimal --config ../../scripts/bundle.config.js", | ||
@@ -42,5 +42,5 @@ "build-worker": "webpack --entry ./src/draco-loader.worker.js --output ./dist/draco-loader.worker.js --config ../../scripts/worker-webpack-config.js" | ||
"@babel/runtime": "^7.3.1", | ||
"@loaders.gl/core": "1.0.3", | ||
"@loaders.gl/loader-utils": "1.1.0-alpha.1", | ||
"draco3d": "^1.3.4" | ||
} | ||
} |
@@ -6,1 +6,3 @@ # @loaders.gl/draco | ||
This module contains loader and writer for Draco compressed meshes and point clouds. | ||
For documentation please visit the [website](https://loaders.gl). |
import DracoLoader from './draco-loader'; | ||
import {createWorker} from '@loaders.gl/core'; | ||
import {createWorker} from '@loaders.gl/loader-utils'; | ||
createWorker(DracoLoader); |
export {default as DracoLoader} from './draco-loader'; | ||
export {default as DracoWorkerLoader} from './draco-worker-loader'; | ||
export {default as DracoWriter} from './draco-writer'; | ||
@@ -7,1 +6,27 @@ | ||
export {default as DracoBuilder} from './draco-builder'; | ||
// DEPRECATED | ||
// eslint-disable-next-line import/first | ||
import DracoParser from './draco-parser'; | ||
const DEPRECATION_WARNING = `\ | ||
DracoWorkerLoader must be imported from @loaders.gl/draco/worker-loader. \ | ||
Using DracoLoader instead`; | ||
function parseSync(arrayBuffer, options) { | ||
// eslint-disable-next-line | ||
console.warn(DEPRECATION_WARNING); | ||
const dracoParser = new DracoParser(); | ||
try { | ||
return dracoParser.parseSync(arrayBuffer, options); | ||
} finally { | ||
dracoParser.destroy(); | ||
} | ||
} | ||
export const DracoWorkerLoader = { | ||
name: 'DRACO', | ||
extensions: ['drc'], | ||
parseSync | ||
}; |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
10185404
56
29190
8
2
+ Added@loaders.gl/loader-utils@1.1.0-alpha.1(transitive)
- Removed@loaders.gl/core@1.0.3
- Removed@loaders.gl/core@1.0.3(transitive)