Releases: flauwekeul/honeycomb
Releases · flauwekeul/honeycomb
v4.1.5
v4.1.4
v4.1.3
v4.1.2
v4.1.1
v4.1.0
v4.0.1
v4.0.0
v4.0.0 (2022-10-04)
✨ New Features
e08bc46
add, update and remove several Grid methodsfbac697
add some methods to Gridf74f0d9
add completeCubeCoordinates() function0db7e22
add translate() function442e723
add pixelWidth and pixelHeight getters to Grid6b29a12
Hex is now a class5825ff0
update grid-related code to use Hex class6fc63cb
rename functions and add utile3cafe0
Hex's toString() returns constructor nameb369f1b
hexes now only have q and r in the instance46ab7f2
grids now also accept iterables of coordinates6acb7e7
make `hexPrototype` public in `Grid`97e2838
add static `settings` prop to `Hex` (Issues:#86
)
🐛 Bug Fixes
38daeb0
fix Grid's traverse() (Issues:#84
)5b6f730
fix releaseb5a3895
another attempt to fix the release8f09aa4
actually build the project in ci 🥲921726d
don't add /dist to git 🫤8115d61
use prepare hook for husky8e5d2b3
a spiral's radius now excludes the center3ed0fa5
fix bug in pointToHex()
4.0.0 (2022-10-04)
Bug Fixes
- grid: fix bug where internal hexes were cleared after Grid run() was called (cb6c65d), closes #67
- grid: fix incorrect width or height calculation in Grid.rectangleFromOpposingCorners() (3b4bb7c)
- grid: fix neighborOf() (and functions that use it like move()) (3b8cdf6)
- grid: grid's update() now always returns a grid that iterates over hexes in its store (b2a0298), closes #68
- grid: grids are now iterable again (e.g.:
[...grid]
orfor (const hex of grid) {})
) (c142a68) - hex: createHex() now also accepts tuple coordinates (8f5196e)
- hex: fix typing issue for createHexPrototype() (d6e24b4)
- hex: when overriding a hex prototype method,
this
is now correctly typed (8df5488), closes 1#comment116992054_66162731 - move (internal) util to fix circular dependency (be57fee)
Code Refactoring
- grid: rename at() to add() and make it accept multiple coordinates (e63f650)
Features
- add benny for running benchmarks (in node) (63a932f)
- add parcel-bundler and playground (2845088)
- coordinates: expand the HexCoordinates type to include a tuple of axial or cube coordinates (ca41673)
- createHexPrototype() adds several readonly properties (WIP) (6af96e1)
- first functionality of v4.0 (WIP) (fcd005a)
- fix reference to type declaration and improve typing of
createHexPrototype()
(2c53678) - grid/neighborof: returns a hex instead of just coordinates (fa9f2f0)
- grid/transduce: add transduce function (efd9c2e)
- grid/transducers: add inGrid() transducer (97660e4)
- grid/transducers: add tap() (28797cf)
- grid/traversers: add repeatWith traverser (8e400af)
- grid/traversers: re-implement rays, ring and spiral (9c84121)
- grid/traversers: revert back to outputting arrays (282f1f1)
- grid: a grid can now be created with an optional traverser (e56ced8)
- grid: add distance function and method that returns the amount of hexes between 2 hexes (7a2de46)
- grid: add from() static method that accepts an iterable of hexes and returns a new grid (83b25ad)
- grid: add GridStore type and make sure the toString() Hex method is called to create an id (99192b2)
- grid: add HexCache class and use it as a start to cache hexes in grid (2b4afeb)
- grid: add hexes() and cursor() methods to Grid (5738045)
- grid: add map() method to Grid (3716e6c)
- grid: add NoOpCache and use it as the default cache in Grid (30d7a87)
- grid: add optional argument to move() traverser to move in the same direction multiple times (f8b96ad)
- grid: add rays() traverser (50e707d)
- grid: add ring() traverser (256879f)
- grid: add setStore helper function and add set method to GridStore interface (10125c1)
- grid: add size getter and hasHex() method (eb41e71)
- grid: add spiral() traverser (d433af0)
- grid: add update() method to Grid (ec0dfce)
- grid: call copy() on the initial cursor hex in Grid.traverse() (98c7054)
- grid: change how a grid's store is set (2376845)
- grid: grids can now be created/traversed with a single traverser or an array of traversers (890ce96)
- grid: improve types and name some anonymous functions for better debugging (383dfbd)
- grid: improve typing of Grid methods and traverse commands ([193531d](193531d9d2091399f4fae0a1539a...