Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@loaders.gl/draco

Package Overview
Dependencies
Maintainers
9
Versions
338
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loaders.gl/draco - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0-alpha.1

dist/dist.js

29

dist/es5/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc