HexGrid library provides easy and intuitive way of working with hexagonal grids.
MIT License
45
stars
8
forks
source link
Added doccomments to HexGrid properties and various structures and enumerations. Encapsulated pixelWidth and pixelHeight properties into a HexSize structure. #11
Mostly this just includes additional doccomments, but there are two "actual" changes here:
pixelWidth
andpixelHeight
in favor of a newpixelSize
.didSet
to thehexSize
property to callupdatePixelDomensions()
, because otherwise the pixel values were outdated at that time.I didn't write any new tests, but I did update them to refer to the
pixelSize
property.Note that the first change above is a breaking API change, and you'll have to update any code that relies on those properties.