Comparing version 1.0.2 to 1.0.4
{ | ||
"name": "optimesh", | ||
"version": "1.0.2", | ||
"version": "1.0.4", | ||
"description": "OptiMesh reduces meshes resolution to optimize performance, memory usage and download size", | ||
"cdn": "https://cdn.jsdelivr.net/npm/optimesh@1.0.2/build/main.js", | ||
"cdn": "https://cdn.jsdelivr.net/npm/optimesh@1.0.4/build/main.js", | ||
"main": "build/main.js", | ||
@@ -11,4 +11,5 @@ "jsnext:main": "build/main.module.js", | ||
"build": "rollup -c", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"lint": "eslint src" | ||
"test": "jest src", | ||
"lint": "eslint src", | ||
"publish": "(git diff-index --quiet HEAD -- || echo \"There are uncommitted changes\";) && node --experimental-modules publish.mjs && npm publish && git add package.json && git commit -m \"bump and publish\"" | ||
}, | ||
@@ -18,2 +19,5 @@ "author": "DVLP", | ||
"devDependencies": { | ||
"@babel/core": "^7.6.4", | ||
"@babel/plugin-transform-modules-commonjs": "^7.6.0", | ||
"@babel/preset-env": "^7.6.3", | ||
"rollup": "^1.25.0" | ||
@@ -27,2 +31,2 @@ }, | ||
} | ||
} | ||
} |
// BELOW FLAT ARRAYS MANAGER | ||
const FIELDS_NO = 30; | ||
const FIELDS_OVERSIZE = 500; | ||
const OVERSIZE_CONTAINER_CAPACITY = 2000; | ||
export const FIELDS_NO = 30; | ||
export const FIELDS_OVERSIZE = 500; | ||
export const OVERSIZE_CONTAINER_CAPACITY = 2000; | ||
@@ -212,4 +212,3 @@ export function addToSBWithOversize( | ||
} | ||
function removeFromOversizeContainer( | ||
export function removeFromOversizeContainer( | ||
oversizeContainer, | ||
@@ -278,3 +277,3 @@ oversizeContainerIndex, | ||
function removeOversizedContainer( | ||
export function removeOversizedContainer( | ||
oversizeContainer, | ||
@@ -294,3 +293,3 @@ oversizeContainerIndex, | ||
function popOversizedContainer( | ||
export function popOversizedContainer( | ||
oversizeContainer, | ||
@@ -297,0 +296,0 @@ oversizeContainerIndex, |
@@ -1,12 +0,5 @@ | ||
// import cache from './Cache'; | ||
// import { BufferAttribute, BufferGeometry, ClampToEdgeWrapping, Geometry, Matrix3, Matrix4, Mesh, MeshBasicMaterial, Object3D, PerspectiveCamera, PlaneBufferGeometry, | ||
// Raycaster, RepeatWrapping, Texture, Vector2, Vector3, WebGLRenderer, WebGLRenderTarget } from './_THREE'; | ||
// import Car from './Vehicle/Car'; | ||
// import Bridge from 'driver-bridge'; | ||
// import ObjectApp from './ObjectApp'; | ||
// | ||
// build index and unique positions | ||
// it's like indexed geometry but only index and positions attributes | ||
// we'll us non-indexed geometry for other attributes to preserve all the details | ||
// using non-indexed geometry for other attributes to preserve all the details | ||
// | ||
@@ -13,0 +6,0 @@ |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
314423
14
9545
1
1
4
4
2