🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@ptloader/pcd

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ptloader/pcd - npm Package Compare versions

Comparing version

to
3.3.24-debug

9

dist/dist.min.js

@@ -561,3 +561,7 @@ (() => {

if (offset.x !== void 0) {
fields.push(new Field("POSITION", new FixedSizeList(3, new Field("xyz", new Float32())), false));
if (offset.intersity !== void 0) {
fields.push(new Field("POSITION", new FixedSizeList(4, new Field("xyzi", new Float32())), false));
} else {
fields.push(new Field("POSITION", new FixedSizeList(3, new Field("xyz", new Float32())), false));
}
}

@@ -596,3 +600,5 @@ if (offset.normal_x !== void 0) {

}
console.log("attributes: ", attributes);
attributes = getMeshAttributes(attributes);
console.log("attributes after getMeshAttributes: ", attributes);
const header = getMeshHeader(pcdHeader, attributes);

@@ -796,2 +802,3 @@ const metadata = new Map([

}
console.log("PCDheader: ", PCDheader);
if (offset.intersity !== void 0) {

@@ -798,0 +805,0 @@ position.push(dataview.getFloat32(PCDheader.points * offset.intersity + PCDheader.size[2] * i, LITTLE_ENDIAN));

@@ -12,3 +12,7 @@ "use strict";

if (offset.x !== undefined) {
fields.push(new _schema.Field('POSITION', new _schema.FixedSizeList(3, new _schema.Field('xyz', new _schema.Float32())), false));
if (offset.intersity !== undefined) {
fields.push(new _schema.Field('POSITION', new _schema.FixedSizeList(4, new _schema.Field('xyzi', new _schema.Float32())), false));
} else {
fields.push(new _schema.Field('POSITION', new _schema.FixedSizeList(3, new _schema.Field('xyz', new _schema.Float32())), false));
}
}

@@ -15,0 +19,0 @@ if (offset.normal_x !== undefined) {

@@ -28,3 +28,5 @@ "use strict";

}
console.log('attributes: ', attributes);
attributes = getMeshAttributes(attributes);
console.log('attributes after getMeshAttributes: ', attributes);
var header = getMeshHeader(pcdHeader, attributes);

@@ -245,2 +247,3 @@ var metadata = new Map([['mode', '0'], ['boundingBox', JSON.stringify(header.boundingBox)]]);

}
console.log('PCDheader: ', PCDheader);
if (offset.intersity !== undefined) {

@@ -247,0 +250,0 @@ position.push(dataview.getFloat32(PCDheader.points * offset.intersity + PCDheader.size[2] * i, LITTLE_ENDIAN));

2

dist/es5/pcd-loader.js

@@ -7,3 +7,3 @@ "use strict";

exports._typecheckPCDLoader = exports.PCDLoader = void 0;
var VERSION = typeof "3.3.23" !== 'undefined' ? "3.3.23" : 'latest';
var VERSION = typeof "3.3.24-debug" !== 'undefined' ? "3.3.24-debug" : 'latest';
var PCDLoader = {

@@ -10,0 +10,0 @@ name: 'PCD (Point Cloud Data)',

@@ -6,3 +6,7 @@ import { Schema, Field, Float32, Uint8, FixedSizeList } from '@ptloader/schema';

if (offset.x !== undefined) {
fields.push(new Field('POSITION', new FixedSizeList(3, new Field('xyz', new Float32())), false));
if (offset.intersity !== undefined) {
fields.push(new Field('POSITION', new FixedSizeList(4, new Field('xyzi', new Float32())), false));
} else {
fields.push(new Field('POSITION', new FixedSizeList(3, new Field('xyz', new Float32())), false));
}
}

@@ -9,0 +13,0 @@ if (offset.normal_x !== undefined) {

@@ -22,3 +22,5 @@ import { getMeshBoundingBox } from '@ptloader/schema';

}
console.log('attributes: ', attributes);
attributes = getMeshAttributes(attributes);
console.log('attributes after getMeshAttributes: ', attributes);
const header = getMeshHeader(pcdHeader, attributes);

@@ -235,2 +237,3 @@ const metadata = new Map([['mode', '0'], ['boundingBox', JSON.stringify(header.boundingBox)]]);

}
console.log('PCDheader: ', PCDheader);
if (offset.intersity !== undefined) {

@@ -237,0 +240,0 @@ position.push(dataview.getFloat32(PCDheader.points * offset.intersity + PCDheader.size[2] * i, LITTLE_ENDIAN));

@@ -1,2 +0,2 @@

const VERSION = typeof "3.3.23" !== 'undefined' ? "3.3.23" : 'latest';
const VERSION = typeof "3.3.24-debug" !== 'undefined' ? "3.3.24-debug" : 'latest';
export const PCDLoader = {

@@ -3,0 +3,0 @@ name: 'PCD (Point Cloud Data)',

@@ -15,3 +15,8 @@ "use strict";

if (offset.x !== undefined) {
fields.push(new schema_1.Field('POSITION', new schema_1.FixedSizeList(3, new schema_1.Field('xyz', new schema_1.Float32())), false));
if (offset.intersity !== undefined) {
fields.push(new schema_1.Field('POSITION', new schema_1.FixedSizeList(4, new schema_1.Field('xyzi', new schema_1.Float32())), false));
}
else {
fields.push(new schema_1.Field('POSITION', new schema_1.FixedSizeList(3, new schema_1.Field('xyz', new schema_1.Float32())), false));
}
}

@@ -18,0 +23,0 @@ if (offset.normal_x !== undefined) {

@@ -38,3 +38,5 @@ "use strict";

}
console.log('attributes: ', attributes);
attributes = getMeshAttributes(attributes);
console.log('attributes after getMeshAttributes: ', attributes);
const header = getMeshHeader(pcdHeader, attributes);

@@ -264,2 +266,3 @@ const metadata = new Map([

*/
// eslint-disable-next-line max-statements
function parsePCDBinaryCompressed(PCDheader, data) {

@@ -281,2 +284,3 @@ const position = [];

}
console.log('PCDheader: ', PCDheader);
if (offset.intersity !== undefined) {

@@ -283,0 +287,0 @@ position.push(dataview.getFloat32(PCDheader.points * offset.intersity + PCDheader.size[2] * i, LITTLE_ENDIAN));

@@ -701,3 +701,7 @@ (() => {

if (offset.x !== void 0) {
fields.push(new Field("POSITION", new FixedSizeList(3, new Field("xyz", new Float32())), false));
if (offset.intersity !== void 0) {
fields.push(new Field("POSITION", new FixedSizeList(4, new Field("xyzi", new Float32())), false));
} else {
fields.push(new Field("POSITION", new FixedSizeList(3, new Field("xyz", new Float32())), false));
}
}

@@ -732,3 +736,5 @@ if (offset.normal_x !== void 0) {

}
console.log("attributes: ", attributes);
attributes = getMeshAttributes(attributes);
console.log("attributes after getMeshAttributes: ", attributes);
const header = getMeshHeader(pcdHeader, attributes);

@@ -932,2 +938,3 @@ const metadata = new Map([

}
console.log("PCDheader: ", PCDheader);
if (offset.intersity !== void 0) {

@@ -955,3 +962,3 @@ position.push(dataview.getFloat32(PCDheader.points * offset.intersity + PCDheader.size[2] * i, LITTLE_ENDIAN));

// src/pcd-loader.ts
var VERSION = true ? "3.3.23" : "latest";
var VERSION = true ? "3.3.24-debug" : "latest";
var PCDLoader = {

@@ -958,0 +965,0 @@ name: "PCD (Point Cloud Data)",

{
"name": "@ptloader/pcd",
"version": "3.3.23",
"version": "3.3.24-debug",
"description": "Framework-independent loader for the PCD format",

@@ -36,6 +36,6 @@ "license": "MIT",

"dependencies": {
"@ptloader/loader-utils": "3.3.23",
"@ptloader/schema": "3.3.23"
"@ptloader/loader-utils": "3.3.24-debug",
"@ptloader/schema": "3.3.24-debug"
},
"gitHead": "def52a15de4a340bad3dcea6e8b8d6400cd80fad"
"gitHead": "efa31217739e5631978f5b34e61b9a821c4d63e1"
}

@@ -18,5 +18,11 @@ import {Schema, Field, Float32, Uint8, FixedSizeList} from '@ptloader/schema';

if (offset.x !== undefined) {
fields.push(
new Field('POSITION', new FixedSizeList(3, new Field('xyz', new Float32())), false)
);
if (offset.intersity !== undefined) {
fields.push(
new Field('POSITION', new FixedSizeList(4, new Field('xyzi', new Float32())), false)
);
} else {
fields.push(
new Field('POSITION', new FixedSizeList(3, new Field('xyz', new Float32())), false)
);
}
}

@@ -23,0 +29,0 @@

@@ -66,4 +66,8 @@ // PCD Loader, adapted from THREE.js (MIT license)

console.log('attributes: ', attributes);
attributes = getMeshAttributes(attributes);
console.log('attributes after getMeshAttributes: ', attributes);
const header = getMeshHeader(pcdHeader, attributes);

@@ -337,2 +341,3 @@

*/
// eslint-disable-next-line max-statements
function parsePCDBinaryCompressed(PCDheader: PCDHeader, data: ArrayBufferLike): HeaderAttributes {

@@ -375,3 +380,3 @@ const position: number[] = [];

}
console.log('PCDheader: ', PCDheader);
if (offset.intersity !== undefined) {

@@ -378,0 +383,0 @@ position.push(

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet