Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

snap-points-2d

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snap-points-2d - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+1
-1
package.json
{
"name": "snap-points-2d",
"version": "1.0.0",
"version": "1.0.1",
"description": "snap round 2d points",

@@ -5,0 +5,0 @@ "main": "snap.js",

@@ -15,3 +15,3 @@ 'use strict'

function partitionLines(points, ids, start, end, lox, loy, hix, hiy) {
function partition(points, ids, start, end, lox, loy, hix, hiy) {
var mid = start

@@ -80,3 +80,3 @@ for(var i=start; i<end; ++i) {

var scales = [ new PointInterval(diam, n-1) ]
var scales = [ new SnapInterval(diam, n-1, 1) ]
var lastScale = diam

@@ -94,7 +94,7 @@

outputId[ptr] = ids[start]
ptr -= 1
start += 1
if(d < lastScale) {
scales.push(new SnapInterval(d, ptr, n-ptr))
}
ptr -= 1
start += 1
lastScale = d

@@ -106,3 +106,3 @@ var s = d / SUBDIV

var y0 = y + s * j
var mid = partitionPoints(
var mid = partition(
points,

@@ -109,0 +109,0 @@ ids,