@code-dot-org/maze
Advanced tools
Comparing version 2.13.0 to 2.14.0
{ | ||
"name": "@code-dot-org/maze", | ||
"version": "2.13.0", | ||
"version": "2.14.0", | ||
"description": "standalone project for the Maze app type", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
import Subtype from "./subtype"; | ||
import NeighborhoodCell from "./neighborhoodCell"; | ||
import NeighborhoodSquareDrawer from "./neighborhoodSquareDrawer"; | ||
import NeighborhoodCircleDrawer from "./neighborhoodCircleDrawer"; | ||
import NeighborhoodDrawer from "./neighborhoodDrawer"; | ||
import { Direction } from "./tiles"; | ||
@@ -79,20 +78,10 @@ | ||
**/ | ||
createDrawer(svg, drawer = "square") { | ||
if (drawer === "square") { | ||
this.drawer = new NeighborhoodSquareDrawer( | ||
this.maze_.map, | ||
this.skin_, | ||
svg, | ||
this.squareSize, | ||
this | ||
); | ||
} else { | ||
this.drawer = new NeighborhoodCircleDrawer( | ||
this.maze_.map, | ||
this.skin_, | ||
svg, | ||
this.squareSize, | ||
this | ||
); | ||
} | ||
createDrawer(svg) { | ||
this.drawer = new NeighborhoodDrawer( | ||
this.maze_.map, | ||
this.skin_, | ||
svg, | ||
this.squareSize, | ||
this | ||
); | ||
} | ||
@@ -99,0 +88,0 @@ |
Sorry, the diff of this file is too big to display
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
0
561847
61
5826