lifelike / hexmapextension

Inkscape extension for creating hex grids suitable for boardgame maps.
129 stars 16 forks source link

Big center dots #14

Closed sennewood closed 5 years ago

sennewood commented 5 years ago

I created hex grid with 5mm, but the center dots are a little to big: hexdots

Maybe use the stroke size for the dot size?

lifelike commented 5 years ago

The circle radii are based on stroke-width (CENTERDOT_SIZE_FACTOR = 1.1690625). At least that is the theory. It looks as if they might be a bit bigger than that really. Maybe the circles also have a stroke added around them, so that the total diameter is more than four times the stroke-width? That looks like what is seen in that image.

EDIT: Nope. It looks correct now that the stroke-width is properly calculated. The old variant was a bit suspicious. It probably did not work reliably in recent Inkscape versions due to dpi changes and the way user-units are treated now. But the updated code should be correct.