
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
gridgy-presets
Advanced tools
This contains some premade instances and creators for the Tesselation and Grid classes from gridgy.
With npm installed, run
npm install gridgy-presets
UMD builds made with rollup are available in the dist directory.
The example on the gridgy readme shows a simple case of using gridgy-presets. A more complete example is the demo and its JS source.
Here is another example that covers the tesselation override feature:
import {Tesselation} from "gridgy";
import {tessHexagonV, hexagonVCubic} from "gridgy-presets";
// A grid of square cells where every other row is offset by the width of half
// a cell. Topologically equivalent to tessHexagonV.
const tessHexagonVSquareCells = new Tesselation({
periodMatrix: [1, 0, 0.5, 1],
faceVerticesTable: tessHexagonV.getProps().faceVerticesTable,
vertexCoordinatesTable: {
"0": [0, 0],
"1": [0, 1],
},
});
const grid = hexagonVCubic({
width: 3,
heightTL: 3,
heightBL: 3,
tesselation: tessHexagonVSquareCells,
origin: [50, 10],
scale: 20,
});
// followed by use of the grid instance
gridgy-presets exports two categories of things: premade Tesselation instances, and functions creating Grid instances of a certain shape given a few dimensions. All of these exports are viewable in the demo. This API documentation mostly concerns itself with the features the demo does not cover.
The exported tesselations are
These are premade instances, not functions. As the example above demonstrates, gridgy makes it easy to create altered tesselation instances based on these in case that is what you need.
The exported Grid-creating functions, which map one-to-one with the items in the main dropdown on the demo page, are
You can see the code used to construct the appropriate Grid instance at the bottom left of the demo page. The demo page shows the keys used to specify the dimensions of the grid (which depends on what grid shape is being used), the origin key, and the scale key.
In addition to the dimensions, origin, and scale, there are many other keys supported on all of these functions, many of which come directly from the Grid constructor provided by gridgy. The full list of keys is:
width and height are required
for square, and only length is required for triangleHDown. Please refer to
the demo to see
what dimensions are required for each grid.exclude. Specify these in your custom key format, if any.MIT
FAQs
Premade gridgy classes for common grid styles
We found that gridgy-presets demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.