Comparing version 1.0.2 to 1.0.3
@@ -179,8 +179,8 @@ // DO NOT EDIT THIS FILE | ||
var HexGrid = (function HexGridClass(){ | ||
function HexGrid(bWidth,lDiagonal,rDiagonal,x0,y0,hexClass, hexes){ | ||
function HexGrid(bWidth,lDiagonal,rDiagonal,x0,y0,hexClass, hexdata){ | ||
// This function assumes that there is symmetry along at least two axis | ||
// in otherwords bw == ld OR ld == rd OR rd == bw | ||
var hexes = []; | ||
var hexes = [] | ||
var offsets = []; | ||
var lengths = []; | ||
var lengths = []; | ||
var left; | ||
@@ -192,5 +192,5 @@ var right; | ||
var arrayHeight = lDiagonal+rDiagonal -1; | ||
for (var count = 0; count < arrayHeight; count++) { | ||
rightPad = (Math.max(0, count - lDiagonal + 1)); | ||
@@ -204,7 +204,7 @@ leftPad = (Math.max(0, lDiagonal - count - 1)); | ||
for (var cellCount = 0; cellCount < length; cellCount++){ | ||
var hexToAdd = new hexClass(this._getLocation(offset,cellCount,count), hexes[count][cellCount]); | ||
var hexToAdd = new hexClass(this._getLocation(offset,cellCount,count), hexdata[count][cellCount]); | ||
hexToAdd.setLocation(this._getLocation(offset,cellCount, count)); | ||
currentLine.push(hexToAdd); | ||
} | ||
hexes.push(currentLine); | ||
@@ -214,3 +214,3 @@ } | ||
this.hexes = hexes; | ||
this.linkOverlaps() | ||
this.linkOverlaps() | ||
}; | ||
@@ -217,0 +217,0 @@ |
{ | ||
"name": "byu-catan", | ||
"description": "Project framework for BYU CS 340 group project", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "dist-tags": { |
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9
15387093