Skip to content
This repository was archived by the owner on Jul 25, 2026. It is now read-only.

Repository files navigation

@vanduo-oss/hex-grid

npm license: MIT

⚠️ Retired — 2026-07-25. @vanduo-oss/hex-grid is no longer developed or released. The Vanduo legacy line (the dual-engine Vanilla + Vue 3 system) is retired; development continues in the perspective line. @vanduo-oss/vd3-cbun/hex-grid is the successor. The final release, 1.1.0, stays on npm and keeps working — this is a stop to development, not a removal.

New docs: https://vanduo-oss.github.io/vd3-docs/ · Migration guide: https://vanduo-oss.github.io/vd3-docs/guides/migration

Interactive canvas hex grids for the Vanduo design system.

VdHexGrid — canvas-based hex grids with axial math, pan/zoom, terrain, and pathfinding. Theme-aware; framework-agnostic core with an optional Vue 3 wrapper.

Install

pnpm add @vanduo-oss/hex-grid

Quick start

import { VdHexGrid } from "@vanduo-oss/hex-grid";

const grid = new VdHexGrid({
  element: document.getElementById("hex-container"),
  size: 30,
  width: 15,
  height: 10,
});

grid.on("select", (hex) => console.log("selected", hex));

Vue 3 (optional peer): import { VdHexGrid } from "@vanduo-oss/hex-grid/vue".

<VdHexGrid :size="30" :width="15" :height="10" @select="onSelect" />

Documentation

License

MIT © Vanduo

About

[RETIRED 2026-07-25] Canvas hex grids for the Vanduo legacy line. Superseded by @vanduo-oss/vd3-cbun/hex-grid.

Topics

Resources

Stars

Watchers

Forks

Releases

Contributors

Languages