flauwekeul / honeycomb

Create hex grids easily, in node or the browser.
https://abbekeultjes.nl/honeycomb
MIT License
630 stars 57 forks source link

Question, what's the difference between translate(x,y) and move(x,y)? #62

Closed lpnueg4 closed 3 years ago

lpnueg4 commented 3 years ago

Hi everyone, could you tell me, what's the difference between translate(x,y) and move(x,y)?

flauwekeul commented 3 years ago

Honeycomb doesn't have a translate() nor a move() function. Do you mean the ones from SVG.js? I think translate is one of the transform methods that will set an transform="translate(x, y)" attribute on the element and move will probably alter the element's x and y attributes directly. Not sure when to use which, probably better to ask in SVG.js's gitter channel or something.