curran / d3-area-label

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

Make independent of D3 DOM Manipulation #26

Open curran opened 4 years ago

curran commented 4 years ago

As a user of Svelte or React, I want to be able to place labels using this library without having to use D3 selections for DOM manipulation.

Currently, the only way to use this library is to use D3 selections.

The original reasoning behind this was related to measuring the length of the text (I think).

I'm open to suggestions/PRs/ideas for how to disentangle the label placement from the DOM manipulation.

curran commented 2 years ago

The tricky part is measuring the text.