@code-dot-org/maze
Advanced tools
Comparing version 2.15.0 to 2.16.0
{ | ||
"name": "@code-dot-org/maze", | ||
"version": "2.15.0", | ||
"version": "2.16.0", | ||
"description": "standalone project for the Maze app type", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
@@ -268,5 +268,11 @@ const {SVG_NS, pegmanElements} = require('./constants'); | ||
var rect = document.getElementById(utils.getPegmanElementId(`${options.type}ClipRect`, options.pegmanId)); | ||
if (!rect) { | ||
return; | ||
} | ||
rect.setAttribute('x', options.col * this.maze.SQUARE_SIZE + 1 + this.maze.PEGMAN_X_OFFSET); | ||
rect.setAttribute('y', getPegmanYForRow(this.maze.skin, options.row, this.maze.SQUARE_SIZE)); | ||
var img = document.getElementById(utils.getPegmanElementId(options.type, options.pegmanId)); | ||
if (!img) { | ||
return; | ||
} | ||
var x = this.maze.SQUARE_SIZE * options.col - | ||
@@ -273,0 +279,0 @@ options.direction * this.maze.PEGMAN_WIDTH + 1 + this.maze.PEGMAN_X_OFFSET; |
Sorry, the diff of this file is too big to display
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
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
5863
334904
1