curran / d3-area-label

A library for placing labels in areas.
BSD 3-Clause "New" or "Revised" License
75 stars 4 forks source link

Design API #3

Closed curran closed 6 years ago

curran commented 6 years ago

Should this follow the same pattern as other D3 modules for setting parameters?

How to best expose the positioning result?

Is the current API too limiting?

curran commented 6 years ago

Added accessors, expose result as transform string. This should address most use cases. Any case where raw x, y, height result would be useful? I can't think of any.