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

lr-core

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lr-core - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

14

line-rider-engine/grids/getCellsFromLine.js

@@ -61,3 +61,6 @@ 'use strict';

let addNextCell = (cellPos, pos) => {
let cellPos = cellPosStart;
let pos = { x: line.p1.x, y: line.p1.y };
while (cellPos != null) {
let d = this.getDelta(line, cellPos, gridSize);

@@ -70,8 +73,9 @@

cellsPos.push(nextCellPos);
addNextCell(nextCellPos, nextPos);
cellPos = nextCellPos;
pos = nextPos;
} else {
cellPos = null;
}
};
}
addNextCell(cellPosStart, { x: line.p1.x, y: line.p1.y });
return cellsPos;

@@ -78,0 +82,0 @@ }

{
"name": "lr-core",
"version": "0.8.1",
"version": "0.8.2",
"description": "Line Rider core library",

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

@@ -44,3 +44,6 @@ import {hashIntPair} from '../../utils/hashNumberPair.js'

let addNextCell = (cellPos, pos) => {
let cellPos = cellPosStart
let pos = { x: line.p1.x, y: line.p1.y }
while (cellPos != null) {
let d = this.getDelta(line, cellPos, gridSize)

@@ -53,8 +56,9 @@

cellsPos.push(nextCellPos)
addNextCell(nextCellPos, nextPos)
cellPos = nextCellPos
pos = nextPos
} else {
cellPos = null
}
}
addNextCell(cellPosStart, { x: line.p1.x, y: line.p1.y })
return cellsPos

@@ -61,0 +65,0 @@ }

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