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

layout

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

layout - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

lib/algorithms/bottom-up.algorithm.js

22

lib/layout.js

@@ -12,1 +12,23 @@ /*

};
/**
* Method to add new algorithms via
* @param {String} name Name of algorithm
* @param {Function} algorithm Algorithm to bind under name
*/
function addAlgorithm(name, algorithm) {
// Save the algorithm to algorithms
algorithms[name] = algorithm;
}
// Make algorithms easier to add
Spritesmith.addAlgorithm = addAlgorithm;
Spritesmith.algorithms = algorithms;
// Add default algorithms
addAlgorithm('top-down', require('./algorithms/top-down.algorithm.js'));
addAlgorithm('bottom-up', require('./algorithms/bottom-up.algorithm.js'));
addAlgorithm('left-right', require('./algorithms/left-right.algorithm.js'));
addAlgorithm('right-left', require('./algorithms/right-left.algorithm.js'));
addAlgorithm('diagonal', require('./algorithms/diagonal.algorithm.js'));
addAlgorithm('negative-diagonal', require('./algorithms/negative-diagonal.algorithm.js'));
addAlgorithm('reverse-diagonal', require('./algorithms/reverse-diagonal.algorithm.js'));

2

package.json
{
"name": "layout",
"description": "Organize and layout items based on various algorithms",
"version": "0.1.0",
"version": "0.1.1",
"homepage": "https://github.com/twolfson/layout",

@@ -6,0 +6,0 @@ "author": {

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