ember-cli-d3 icon indicating copy to clipboard operation
ember-cli-d3 copied to clipboard

`.call` should receive an empty selection

Open ming-codes opened this issue 9 years ago • 0 comments

The current convention is that .call on component with d3-support receives a d3 selection of the container <g> element. This causes some flexibility issue where component must use a <g> element as parent.

If .call are to receive an empty selection, the component will have control over what type of element it want as parent. This makes putting things in <defs> much easier.

The downside is that this may break a lot of existing code. :frowning:

ming-codes avatar Mar 22 '16 17:03 ming-codes