MCPcopy
hub / github.com/metafizzy/packery

github.com/metafizzy/packery @v3.0.0 sqlite

repository ↗ · DeepWiki ↗ · release v3.0.0 ↗
34 symbols 66 edges 31 files 1 documented · 3%
README

Packery

Bin-packing layout library

See packery.metafizzy.co for complete docs and demos

Install

Download

CDN

Link directly to Packery files on unpkg.

<script src="https://unpkg.com/packery@3/dist/packery.pkgd.js"></script>

<script src="https://unpkg.com/packery@3/dist/packery.pkgd.min.js"></script>

Package managers

npm: npm install packery --save

Bower: bower install packery --save

License

Packery v3 is licensed under the MIT license.

Initialize

With jQuery

$('.grid').packery({
  // options...
  itemSelector: '.grid-item'
});

With vanilla JavaScript

// vanilla JS
var grid = document.querySelector('.grid');
// initialize with element
var pckry = new Packery( grid, {
  // options...
  itemSelector: '.grid-item'
});

// initialize with selector string
var pckry = new Packery('.grid', {
  // options...
});

With HTML

Add a data-packery attribute to your element. Options can be set in JSON in the value.














  ...




By Metafizzy

Core symbols most depended-on inside this repo

checkItemPosition
called by 16
test/unit/draggable.js
checkItemPosition
called by 13
test/unit/fit.js
checkItemPosition
called by 8
test/unit/layout.js
checkRect
called by 6
test/unit/test-packer.js
simulateDrag
called by 4
test/unit/draggable.js
checkPackeryGrid
called by 4
test/unit/grid.js
resetAsync
called by 3
test/unit/fit.js
getBanner
called by 2
gulpfile.js

Shape

Function 34

Languages

TypeScript100%

Modules by API surface

test/unit/fit.js9 symbols
js/packery.js6 symbols
test/unit/draggable.js5 symbols
test/unit/grid.js3 symbols
test/unit/layout.js2 symbols
gulpfile.js2 symbols
test/unit/test-packer.js1 symbols
test/unit/sub-pixel-fit.js1 symbols
test/unit/consecutive.js1 symbols
sandbox/examples.js1 symbols
js/rect.js1 symbols
js/packer.js1 symbols

Dependencies from manifests, versioned

chalk1.1.1 · 1×
draggabilly2.1.0 · 1×
get-size2.0.2 · 1×
gulp3.9.0 · 1×
gulp-jshint2.0.0 · 1×
gulp-json-lint0.1.0 · 1×
gulp-rename1.2.2 · 1×
gulp-replace0.5.4 · 1×
gulp-requirejs-optimizegithub:metafizzy/gul · 1×
gulp-uglify1.5.1 · 1×
gulp-util3.0.7 · 1×
jquery>=2 <4 · 1×

For agents

$ claude mcp add packery \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact